sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_usn_v4_record) function_name_usn_v4_record (parameters (identifier_header) identifier_header (identifier_record) identifier_record )parameters (block (expression_statement (assignment (pattern_list (identifier_length) identifier_length (identifier_major_version) identifier_major_version (identifier_minor_version) identifier_minor_version )pattern_list (identifier_header) identifier_header )assignment )expression_statement (expression_statement (assignment (identifier_fields) identifier_fields (call (attribute (identifier_V4_RECORD) identifier_V4_RECORD (identifier_unpack_from) identifier_unpack_from )attribute (argument_list (identifier_record) identifier_record (attribute (identifier_RECORD_HEADER) identifier_RECORD_HEADER (identifier_size) identifier_size )attribute )argument_list )call )assignment )expression_statement (raise_statement (call (identifier_NotImplementedError) identifier_NotImplementedError (argument_list (string_'Not implemented') string_'Not implemented' )argument_list )call )raise_statement )block )function_definition )module
Extracts USN V4 record information.
(module (function_definition (function_name_urlencode) function_name_urlencode (parameters (identifier_txt) identifier_txt )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_txt) identifier_txt (identifier_unicode) identifier_unicode )argument_list )call (block (expression_statement (assignment (identifier_txt) identifier_txt (call (attribute (identifier_txt) identifier_txt (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_urllib) identifier_urllib (identifier_quote_plus) identifier_quote_plus )attribute (argument_list (identifier_txt) identifier_txt )argument_list )call )return_statement )block )function_definition )module
Url encode a path.
(module (function_definition (function_name_saveComicStrip) function_name_saveComicStrip (parameters (identifier_self) identifier_self (identifier_strip) identifier_strip )parameters (block (expression_statement (assignment (identifier_allskipped) identifier_allskipped (True) True )assignment )expression_statement (for_statement (identifier_image) identifier_image (call (attribute (identifier_strip) identifier_strip (identifier_getImages) identifier_getImages )attribute (argument_list )argument_list )call (block (try_statement (block (if_statement (attribute (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute (identifier_dry_run) identifier_dry_run )attribute (block (expression_statement (assignment (pattern_list (identifier_filename) identifier_filename (identifier_saved) identifier_saved )pattern_list (expression_list (string_"") string_"" (False) False )expression_list )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (pattern_list (identifier_filename) identifier_filename (identifier_saved) identifier_saved )pattern_list (call (attribute (identifier_image) identifier_image (identifier_save) identifier_save )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute (identifier_basepath) identifier_basepath )attribute )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (identifier_saved) identifier_saved (block (expression_statement (assignment (identifier_allskipped) identifier_allskipped (False) False )assignment )expression_statement )block )if_statement (if_statement (attribute (identifier_self) identifier_self (identifier_stopped) identifier_stopped )attribute (block (break_statement )break_statement )block )if_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_msg) identifier_msg )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_out) identifier_out (identifier_exception) identifier_exception )attribute (argument_list (binary_operator (string_'Could not save image at %s to %s: %r') string_'Could not save image at %s to %s: %r' (tuple (attribute (identifier_image) identifier_image (identifier_referrer) identifier_referrer )attribute (attribute (identifier_image) identifier_image (identifier_filename) identifier_filename )attribute (identifier_msg) identifier_msg )tuple )binary_operator )argument_list )call )expression_statement (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier_errors) identifier_errors )attribute (integer_1) integer_1 )augmented_assignment )expression_statement )block )except_clause )try_statement )block )for_statement (return_statement (identifier_allskipped) identifier_allskipped )return_statement )block )function_definition )module
Save a comic strip which can consist of multiple images.
(module (function_definition (function_name__get_ssl_sock) function_name__get_ssl_sock (parameters (identifier_self) identifier_self )parameters (block (assert_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_scheme) identifier_scheme )attribute (string_u"https") string_u"https" )comparison_operator (identifier_self) identifier_self )assert_statement (expression_statement (assignment (identifier_raw_connection) identifier_raw_connection (attribute (attribute (attribute (identifier_self) identifier_self (identifier_url_connection) identifier_url_connection )attribute (identifier_raw) identifier_raw )attribute (identifier__connection) identifier__connection )attribute )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_raw_connection) identifier_raw_connection (identifier_sock) identifier_sock )attribute (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_raw_connection) identifier_raw_connection (identifier_connect) identifier_connect )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (return_statement (attribute (identifier_raw_connection) identifier_raw_connection (identifier_sock) identifier_sock )attribute )return_statement )block )function_definition )module
Get raw SSL socket.
(module (function_definition (function_name__get_formatting_template) function_name__get_formatting_template (parameters (identifier_self) identifier_self (identifier_number_pattern) identifier_number_pattern (identifier_number_format) identifier_number_format )parameters (block (expression_statement (assignment (identifier_longest_phone_number) identifier_longest_phone_number (call (identifier_unicod) identifier_unicod (argument_list (string_"999999999999999") string_"999999999999999" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_number_re) identifier_number_re (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (identifier_number_pattern) identifier_number_pattern )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_m) identifier_m (call (attribute (identifier_number_re) identifier_number_re (identifier_search) identifier_search )attribute (argument_list (identifier_longest_phone_number) identifier_longest_phone_number )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_a_phone_number) identifier_a_phone_number (call (attribute (identifier_m) identifier_m (identifier_group) identifier_group )attribute (argument_list (integer_0) integer_0 )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_a_phone_number) identifier_a_phone_number )argument_list )call (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__national_number) identifier__national_number )attribute )argument_list )call )comparison_operator (block (return_statement (identifier_U_EMPTY_STRING) identifier_U_EMPTY_STRING )return_statement )block )if_statement (expression_statement (assignment (identifier_template) identifier_template (call (attribute (identifier_re) identifier_re (identifier_sub) identifier_sub )attribute (argument_list (identifier_number_pattern) identifier_number_pattern (identifier_number_format) identifier_number_format (identifier_a_phone_number) identifier_a_phone_number )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_template) identifier_template (call (attribute (identifier_re) identifier_re (identifier_sub) identifier_sub )attribute (argument_list (string_"9") string_"9" (identifier__DIGIT_PLACEHOLDER) identifier__DIGIT_PLACEHOLDER (identifier_template) identifier_template )argument_list )call )assignment )expression_statement (return_statement (identifier_template) identifier_template )return_statement )block )function_definition )module
Gets a formatting template which can be used to efficiently format a partial number where digits are added one by one.
(module (function_definition (function_name__build_zmat) function_name__build_zmat (parameters (identifier_self) identifier_self (identifier_construction_table) identifier_construction_table )parameters (block (expression_statement (assignment (identifier_c_table) identifier_c_table (identifier_construction_table) identifier_construction_table )assignment )expression_statement (expression_statement (assignment (identifier_default_cols) identifier_default_cols (list (string_'atom') string_'atom' (string_'b') string_'b' (string_'bond') string_'bond' (string_'a') string_'a' (string_'angle') string_'angle' (string_'d') string_'d' (string_'dihedral') string_'dihedral' )list )assignment )expression_statement (expression_statement (assignment (identifier_optional_cols) identifier_optional_cols (call (identifier_list) identifier_list (argument_list (binary_operator (call (identifier_set) identifier_set (argument_list (attribute (identifier_self) identifier_self (identifier_columns) identifier_columns )attribute )argument_list )call (set (string_'atom') string_'atom' (string_'x') string_'x' (string_'y') string_'y' (string_'z') string_'z' )set )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_zmat_frame) identifier_zmat_frame (call (attribute (identifier_pd) identifier_pd (identifier_DataFrame) identifier_DataFrame )attribute (argument_list (keyword_argument (identifier_columns) identifier_columns (binary_operator (identifier_default_cols) identifier_default_cols (identifier_optional_cols) identifier_optional_cols )binary_operator )keyword_argument (keyword_argument (identifier_dtype) identifier_dtype (string_'float') string_'float' )keyword_argument (keyword_argument (identifier_index) identifier_index (attribute (identifier_c_table) identifier_c_table (identifier_index) identifier_index )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_zmat_frame) identifier_zmat_frame (identifier_loc) identifier_loc )attribute (slice (colon) colon )slice (identifier_optional_cols) identifier_optional_cols )subscript (subscript (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute (attribute (identifier_c_table) identifier_c_table (identifier_index) identifier_index )attribute (identifier_optional_cols) identifier_optional_cols )subscript )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_zmat_frame) identifier_zmat_frame (identifier_loc) identifier_loc )attribute (slice (colon) colon )slice (string_'atom') string_'atom' )subscript (subscript (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute (attribute (identifier_c_table) identifier_c_table (identifier_index) identifier_index )attribute (string_'atom') string_'atom' )subscript )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_zmat_frame) identifier_zmat_frame (identifier_loc) identifier_loc )attribute (slice (colon) colon )slice (list (string_'b') string_'b' (string_'a') string_'a' (string_'d') string_'d' )list )subscript (identifier_c_table) identifier_c_table )assignment )expression_statement (expression_statement (assignment (identifier_zmat_values) identifier_zmat_values (call (attribute (identifier_self) identifier_self (identifier__calculate_zmat_values) identifier__calculate_zmat_values )attribute (argument_list (identifier_c_table) identifier_c_table )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_zmat_frame) identifier_zmat_frame (identifier_loc) identifier_loc )attribute (slice (colon) colon )slice (list (string_'bond') string_'bond' (string_'angle') string_'angle' (string_'dihedral') string_'dihedral' )list )subscript (identifier_zmat_values) identifier_zmat_values )assignment )expression_statement (expression_statement (assignment (identifier_zmatrix) identifier_zmatrix (call (identifier_Zmat) identifier_Zmat (argument_list (identifier_zmat_frame) identifier_zmat_frame (keyword_argument (identifier_metadata) identifier_metadata (attribute (identifier_self) identifier_self (identifier_metadata) identifier_metadata )attribute )keyword_argument (keyword_argument (identifier__metadata) identifier__metadata (dictionary (pair (string_'last_valid_cartesian') string_'last_valid_cartesian' (call (attribute (identifier_self) identifier_self (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_zmatrix) identifier_zmatrix )return_statement )block )function_definition )module
Create the Zmatrix from a construction table. Args: Construction table (pd.DataFrame): Returns: Zmat: A new instance of :class:`Zmat`.
(module (function_definition (function_name_cached_property) function_name_cached_property (parameters (identifier_func) identifier_func )parameters (block (expression_statement (assignment (identifier_name) identifier_name (attribute (identifier_func) identifier_func (identifier___name__) identifier___name__ )attribute )assignment )expression_statement (expression_statement (assignment (identifier_doc) identifier_doc (attribute (identifier_func) identifier_func (identifier___doc__) identifier___doc__ )attribute )assignment )expression_statement (function_definition (function_name_getter) function_name_getter (parameters (identifier_self) identifier_self (default_parameter (identifier_name) identifier_name (identifier_name) identifier_name )default_parameter )parameters (block (try_statement (block (return_statement (subscript (attribute (identifier_self) identifier_self (identifier___dict__) identifier___dict__ )attribute (identifier_name) identifier_name )subscript )return_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier___dict__) identifier___dict__ )attribute (identifier_name) identifier_name )subscript (assignment (identifier_value) identifier_value (call (identifier_func) identifier_func (argument_list (identifier_self) identifier_self )argument_list )call )assignment )assignment )expression_statement (return_statement (identifier_value) identifier_value )return_statement )block )except_clause )try_statement )block )function_definition (expression_statement (assignment (attribute (identifier_getter) identifier_getter (identifier_func_name) identifier_func_name )attribute (identifier_name) identifier_name )assignment )expression_statement (return_statement (call (identifier_property) identifier_property (argument_list (identifier_getter) identifier_getter (keyword_argument (identifier_doc) identifier_doc (identifier_doc) identifier_doc )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Special property decorator that caches the computed property value in the object's instance dict the first time it is accessed.
(module (function_definition (function_name_ints) function_name_ints (parameters (identifier_l) identifier_l (default_parameter (identifier_ifilter) identifier_ifilter (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (identifier_x) identifier_x )lambda )default_parameter (default_parameter (identifier_idescr) identifier_idescr (None) None )default_parameter )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_l) identifier_l (identifier_string_types) identifier_string_types )argument_list )call (block (if_statement (boolean_operator (comparison_operator (subscript (identifier_l) identifier_l (integer_0) integer_0 )subscript (string_'[') string_'[' )comparison_operator (comparison_operator (subscript (identifier_l) identifier_l (unary_operator (integer_1) integer_1 )unary_operator )subscript (string_']') string_']' )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_l) identifier_l (subscript (identifier_l) identifier_l (slice (integer_1) integer_1 (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_l) identifier_l (call (identifier_list) identifier_list (argument_list (call (identifier_map) identifier_map (argument_list (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (call (attribute (identifier_x) identifier_x (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )lambda (call (attribute (identifier_l) identifier_l (identifier_split) identifier_split )attribute (argument_list (string_',') string_',' )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement )block )if_statement (try_statement (block (expression_statement (assignment (identifier_l) identifier_l (call (identifier_list) identifier_list (argument_list (call (identifier_map) identifier_map (argument_list (identifier_ifilter) identifier_ifilter (call (identifier_list) identifier_list (argument_list (call (identifier_map) identifier_map (argument_list (identifier_int) identifier_int (identifier_l) identifier_l )argument_list )call )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement )block (except_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_"Bad list of {}integers") string_"Bad list of {}integers" (identifier_format) identifier_format )attribute (argument_list (conditional_expression (string_"") string_"" (comparison_operator (identifier_idescr) identifier_idescr (None) None )comparison_operator (binary_operator (identifier_idescr) identifier_idescr (string_" ") string_" " )binary_operator )conditional_expression )argument_list )call )argument_list )call )raise_statement )block )except_clause )try_statement (return_statement (identifier_l) identifier_l )return_statement )block )function_definition )module
Parses a comma-separated list of ints.
(module (function_definition (function_name_triangle_plots) function_name_triangle_plots (parameters (identifier_self) identifier_self (default_parameter (identifier_basename) identifier_basename (None) None )default_parameter (default_parameter (identifier_format) identifier_format (string_'png') string_'png' )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_fit_for_distance) identifier_fit_for_distance )attribute (block (expression_statement (assignment (identifier_fig1) identifier_fig1 (call (attribute (identifier_self) identifier_self (identifier_triangle) identifier_triangle )attribute (argument_list (keyword_argument (identifier_plot_datapoints) identifier_plot_datapoints (False) False )keyword_argument (keyword_argument (identifier_params) identifier_params (list (string_'mass') string_'mass' (string_'radius') string_'radius' (string_'Teff') string_'Teff' (string_'logg') string_'logg' (string_'feh') string_'feh' (string_'age') string_'age' (string_'distance') string_'distance' (string_'AV') string_'AV' )list )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_fig1) identifier_fig1 (call (attribute (identifier_self) identifier_self (identifier_triangle) identifier_triangle )attribute (argument_list (keyword_argument (identifier_plot_datapoints) identifier_plot_datapoints (False) False )keyword_argument (keyword_argument (identifier_params) identifier_params (list (string_'mass') string_'mass' (string_'radius') string_'radius' (string_'Teff') string_'Teff' (string_'feh') string_'feh' (string_'age') string_'age' )list )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (comparison_operator (identifier_basename) identifier_basename (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_savefig) identifier_savefig )attribute (argument_list (call (attribute (string_'{}_physical.{}') string_'{}_physical.{}' (identifier_format) identifier_format )attribute (argument_list (identifier_basename) identifier_basename (identifier_format) identifier_format )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_fig2) identifier_fig2 (call (attribute (identifier_self) identifier_self (identifier_prop_triangle) identifier_prop_triangle )attribute (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_basename) identifier_basename (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_savefig) identifier_savefig )attribute (argument_list (call (attribute (string_'{}_observed.{}') string_'{}_observed.{}' (identifier_format) identifier_format )attribute (argument_list (identifier_basename) identifier_basename (identifier_format) identifier_format )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (return_statement (expression_list (identifier_fig1) identifier_fig1 (identifier_fig2) identifier_fig2 )expression_list )return_statement )block )function_definition )module
Returns two triangle plots, one with physical params, one observational :param basename: If basename is provided, then plots will be saved as "[basename]_physical.[format]" and "[basename]_observed.[format]" :param format: Format in which to save figures (e.g., 'png' or 'pdf') :param **kwargs: Additional keyword arguments passed to :func:`StarModel.triangle` and :func:`StarModel.prop_triangle` :return: * Physical parameters triangle plot (mass, radius, Teff, feh, age, distance) * Observed properties triangle plot.
(module (function_definition (function_name_get_descendants) function_name_get_descendants (parameters (identifier_self) identifier_self (default_parameter (identifier_include_self) identifier_include_self (False) False )default_parameter (default_parameter (identifier_depth) identifier_depth (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_params) identifier_params (dictionary (pair (binary_operator (string_"%s__parent") string_"%s__parent" (call (attribute (identifier_self) identifier_self (identifier__closure_childref) identifier__closure_childref )attribute (argument_list )argument_list )call )binary_operator (attribute (identifier_self) identifier_self (identifier_pk) identifier_pk )attribute )pair )dictionary )assignment )expression_statement (if_statement (comparison_operator (identifier_depth) identifier_depth (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_params) identifier_params (binary_operator (string_"%s__depth__lte") string_"%s__depth__lte" (call (attribute (identifier_self) identifier_self (identifier__closure_childref) identifier__closure_childref )attribute (argument_list )argument_list )call )binary_operator )subscript (identifier_depth) identifier_depth )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_descendants) identifier_descendants (call (attribute (attribute (call (attribute (identifier_self) identifier_self (identifier__toplevel) identifier__toplevel )attribute (argument_list )argument_list )call (identifier_objects) identifier_objects )attribute (identifier_filter) identifier_filter )attribute (argument_list (dictionary_splat (identifier_params) identifier_params )dictionary_splat )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_include_self) identifier_include_self )not_operator (block (expression_statement (assignment (identifier_descendants) identifier_descendants (call (attribute (identifier_descendants) identifier_descendants (identifier_exclude) identifier_exclude )attribute (argument_list (keyword_argument (identifier_pk) identifier_pk (attribute (identifier_self) identifier_self (identifier_pk) identifier_pk )attribute )keyword_argument )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_descendants) identifier_descendants (identifier_order_by) identifier_order_by )attribute (argument_list (binary_operator (string_"%s__depth") string_"%s__depth" (call (attribute (identifier_self) identifier_self (identifier__closure_childref) identifier__closure_childref )attribute (argument_list )argument_list )call )binary_operator )argument_list )call )return_statement )block )function_definition )module
Return all the descendants of this object.
(module (function_definition (function_name__handle_wikilink_separator) function_name__handle_wikilink_separator (parameters (identifier_self) identifier_self )parameters (block (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier__context) identifier__context )attribute (attribute (identifier_contexts) identifier_contexts (identifier_WIKILINK_TITLE) identifier_WIKILINK_TITLE )attribute )augmented_assignment )expression_statement (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier__context) identifier__context )attribute (attribute (identifier_contexts) identifier_contexts (identifier_WIKILINK_TEXT) identifier_WIKILINK_TEXT )attribute )augmented_assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__emit) identifier__emit )attribute (argument_list (call (attribute (identifier_tokens) identifier_tokens (identifier_WikilinkSeparator) identifier_WikilinkSeparator )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Handle the separator between a wikilink's title and its text.
(module (function_definition (function_name_on_binlog) function_name_on_binlog (parameters (identifier_event) identifier_event (identifier_stream) identifier_stream )parameters (block (expression_statement (assignment (pattern_list (identifier_rows) identifier_rows (identifier_meta) identifier_meta )pattern_list (call (identifier__rows_event_to_dict) identifier__rows_event_to_dict (argument_list (identifier_event) identifier_event (identifier_stream) identifier_stream )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_table_name) identifier_table_name (binary_operator (string_'%s.%s') string_'%s.%s' (tuple (subscript (identifier_meta) identifier_meta (string_'schema') string_'schema' )subscript (subscript (identifier_meta) identifier_meta (string_'table') string_'table' )subscript )tuple )binary_operator )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_meta) identifier_meta (string_'action') string_'action' )subscript (string_'insert') string_'insert' )comparison_operator (block (expression_statement (assignment (identifier_sig) identifier_sig (attribute (identifier_signals) identifier_signals (identifier_rows_inserted) identifier_rows_inserted )attribute )assignment )expression_statement )block (elif_clause (comparison_operator (subscript (identifier_meta) identifier_meta (string_'action') string_'action' )subscript (string_'update') string_'update' )comparison_operator (block (expression_statement (assignment (identifier_sig) identifier_sig (attribute (identifier_signals) identifier_signals (identifier_rows_updated) identifier_rows_updated )attribute )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (subscript (identifier_meta) identifier_meta (string_'action') string_'action' )subscript (string_'delete') string_'delete' )comparison_operator (block (expression_statement (assignment (identifier_sig) identifier_sig (attribute (identifier_signals) identifier_signals (identifier_rows_deleted) identifier_rows_deleted )attribute )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (binary_operator (string_'Invalid action "%s"') string_'Invalid action "%s"' (subscript (identifier_meta) identifier_meta (string_'action') string_'action' )subscript )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_sig) identifier_sig (identifier_send) identifier_send )attribute (argument_list (identifier_table_name) identifier_table_name (keyword_argument (identifier_rows) identifier_rows (identifier_rows) identifier_rows )keyword_argument (keyword_argument (identifier_meta) identifier_meta (identifier_meta) identifier_meta )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Process on a binlog event 1. Convert event instance into a dict 2. Send corresponding schema/table/signals Args: event (pymysqlreplication.row_event.RowsEvent): the event
(module (function_definition (function_name_exception) function_name_exception (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_exceptions) identifier_exceptions )list_splat_pattern )parameters (block (function_definition (function_name_response) function_name_response (parameters (identifier_handler) identifier_handler )parameters (block (for_statement (identifier_exception) identifier_exception (identifier_exceptions) identifier_exceptions (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_exception) identifier_exception (tuple (identifier_tuple) identifier_tuple (identifier_list) identifier_list )tuple )argument_list )call (block (for_statement (identifier_e) identifier_e (identifier_exception) identifier_exception (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_error_handler) identifier_error_handler )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_e) identifier_e (identifier_handler) identifier_handler )argument_list )call )expression_statement )block )for_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_error_handler) identifier_error_handler )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_exception) identifier_exception (identifier_handler) identifier_handler )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_handler) identifier_handler )return_statement )block )function_definition (return_statement (identifier_response) identifier_response )return_statement )block )function_definition )module
Decorate a function to be registered as a handler for exceptions :param exceptions: exceptions :return: decorated function
(module (function_definition (function_name_dump) function_name_dump (parameters (identifier_obj) identifier_obj (identifier_file_path) identifier_file_path (default_parameter (identifier_prettify) identifier_prettify (False) False )default_parameter )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_file_path) identifier_file_path (string_'w') string_'w' )argument_list )call (as_pattern_target (identifier_fp) identifier_fp )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_fp) identifier_fp (identifier_write) identifier_write )attribute (argument_list (call (identifier_dumps) identifier_dumps (argument_list (identifier_obj) identifier_obj )argument_list )call )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Dumps a data structure to the filesystem as TOML. The given value must be either a dict of dict values, a dict, or a TOML file constructed by this module.
(module (function_definition (function_name_detect_stream_mode) function_name_detect_stream_mode (parameters (identifier_stream) identifier_stream )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_stream) identifier_stream (string_'mode') string_'mode' )argument_list )call (block (if_statement (comparison_operator (string_'b') string_'b' (attribute (identifier_stream) identifier_stream (identifier_mode) identifier_mode )attribute )comparison_operator (block (return_statement (identifier_bytes) identifier_bytes )return_statement )block (elif_clause (comparison_operator (string_'t') string_'t' (attribute (identifier_stream) identifier_stream (identifier_mode) identifier_mode )attribute )comparison_operator (block (return_statement (identifier_str) identifier_str )return_statement )block )elif_clause )if_statement )block )if_statement (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_stream) identifier_stream (string_'read') string_'read' )argument_list )call (block (expression_statement (assignment (identifier_zeroStr) identifier_zeroStr (call (attribute (identifier_stream) identifier_stream (identifier_read) identifier_read )attribute (argument_list (integer_0) integer_0 )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_zeroStr) identifier_zeroStr )argument_list )call (identifier_str) identifier_str )comparison_operator (block (return_statement (identifier_str) identifier_str )return_statement )block )if_statement (return_statement (identifier_bytes) identifier_bytes )return_statement )block (elif_clause (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_stream) identifier_stream (string_'recv') string_'recv' )argument_list )call (block (expression_statement (assignment (identifier_zeroStr) identifier_zeroStr (call (attribute (identifier_stream) identifier_stream (identifier_recv) identifier_recv )attribute (argument_list (integer_0) integer_0 )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_zeroStr) identifier_zeroStr )argument_list )call (identifier_str) identifier_str )comparison_operator (block (return_statement (identifier_str) identifier_str )return_statement )block )if_statement (return_statement (identifier_bytes) identifier_bytes )return_statement )block )elif_clause )if_statement (return_statement (identifier_bytes) identifier_bytes )return_statement )block )function_definition )module
detect_stream_mode - Detect the mode on a given stream @param stream <object> - A stream object If "mode" is present, that will be used. @return <type> - "Bytes" type or "str" type
(module (function_definition (function_name_counts) function_name_counts (parameters (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_p) identifier_p (call (identifier_OptionParser) identifier_OptionParser (argument_list (attribute (identifier_counts) identifier_counts (identifier___doc__) identifier___doc__ )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_opts) identifier_opts (identifier_args) identifier_args )pattern_list (call (attribute (identifier_p) identifier_p (identifier_parse_args) identifier_parse_args )attribute (argument_list (identifier_args) identifier_args )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_args) identifier_args )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (call (attribute (identifier_sys) identifier_sys (identifier_exit) identifier_exit )attribute (argument_list (not_operator (call (attribute (identifier_p) identifier_p (identifier_print_help) identifier_print_help )attribute (argument_list )argument_list )call )not_operator )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_vcffile) identifier_vcffile )pattern_list (identifier_args) identifier_args )assignment )expression_statement (expression_statement (assignment (identifier_vcf_reader) identifier_vcf_reader (call (attribute (identifier_vcf) identifier_vcf (identifier_Reader) identifier_Reader )attribute (argument_list (call (identifier_open) identifier_open (argument_list (identifier_vcffile) identifier_vcffile )argument_list )call )argument_list )call )assignment )expression_statement (for_statement (identifier_r) identifier_r (identifier_vcf_reader) identifier_vcf_reader (block (expression_statement (assignment (identifier_v) identifier_v (call (identifier_CPRA) identifier_CPRA (argument_list (identifier_r) identifier_r )argument_list )call )assignment )expression_statement (if_statement (not_operator (attribute (identifier_v) identifier_v (identifier_is_valid) identifier_is_valid )attribute )not_operator (block (continue_statement )continue_statement )block )if_statement (for_statement (identifier_sample) identifier_sample (attribute (identifier_r) identifier_r (identifier_samples) identifier_samples )attribute (block (expression_statement (assignment (identifier_ro) identifier_ro (subscript (identifier_sample) identifier_sample (string_"RO") string_"RO" )subscript )assignment )expression_statement (expression_statement (assignment (identifier_ao) identifier_ao (subscript (identifier_sample) identifier_sample (string_"AO") string_"AO" )subscript )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_"\t") string_"\t" (identifier_join) identifier_join )attribute (generator_expression (call (identifier_str) identifier_str (argument_list (identifier_x) identifier_x )argument_list )call (for_in_clause (identifier_x) identifier_x (tuple (identifier_v) identifier_v (identifier_ro) identifier_ro (identifier_ao) identifier_ao )tuple )for_in_clause )generator_expression )call )argument_list )call )expression_statement )block )for_statement )block )for_statement )block )function_definition )module
%prog counts vcffile Collect allele counts from RO and AO fields.
(module (function_definition (function_name_endpoint_get) function_name_endpoint_get (parameters (default_parameter (identifier_auth) identifier_auth (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_cloud) identifier_cloud (call (identifier_get_operator_cloud) identifier_get_operator_cloud (argument_list (identifier_auth) identifier_auth )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_kwargs) identifier_kwargs (call (identifier__clean_kwargs) identifier__clean_kwargs (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_cloud) identifier_cloud (identifier_get_endpoint) identifier_get_endpoint )attribute (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Get a single endpoint CLI Example: .. code-block:: bash salt '*' keystoneng.endpoint_get id=02cffaa173b2460f98e40eda3748dae5
(module (function_definition (function_name_set_time) function_name_set_time (parameters (identifier_time) identifier_time )parameters (block (expression_statement (assignment (identifier_time_format) identifier_time_format (call (identifier__get_date_time_format) identifier__get_date_time_format (argument_list (identifier_time) identifier_time )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_dt_obj) identifier_dt_obj (call (attribute (identifier_datetime) identifier_datetime (identifier_strptime) identifier_strptime )attribute (argument_list (identifier_time) identifier_time (identifier_time_format) identifier_time_format )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_'systemsetup -settime {0}') string_'systemsetup -settime {0}' (identifier_format) identifier_format )attribute (argument_list (call (attribute (identifier_dt_obj) identifier_dt_obj (identifier_strftime) identifier_strftime )attribute (argument_list (string_'%H:%M:%S') string_'%H:%M:%S' )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_mac_utils) identifier_mac_utils )attribute (identifier_execute_return_success) identifier_execute_return_success )attribute (argument_list (identifier_cmd) identifier_cmd )argument_list )call )return_statement )block )function_definition )module
Sets the current time. Must be in 24 hour format. :param str time: The time to set in 24 hour format. The value must be double quoted. ie: '"17:46"' :return: True if successful, False if not :rtype: bool :raises: SaltInvocationError on Invalid Time format :raises: CommandExecutionError on failure CLI Example: .. code-block:: bash salt '*' timezone.set_time '"17:34"'
(module (function_definition (function_name_user_delete) function_name_user_delete (parameters (identifier_users) identifier_users (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_conn_args) identifier_conn_args (call (identifier__login) identifier__login (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (dictionary )dictionary )assignment )expression_statement (try_statement (block (if_statement (identifier_conn_args) identifier_conn_args (block (expression_statement (assignment (identifier_method) identifier_method (string_'user.delete') string_'user.delete' )assignment )expression_statement (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_users) identifier_users (identifier_list) identifier_list )argument_list )call )not_operator (block (expression_statement (assignment (identifier_params) identifier_params (list (identifier_users) identifier_users )list )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_params) identifier_params (identifier_users) identifier_users )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_ret) identifier_ret (call (identifier__query) identifier__query (argument_list (identifier_method) identifier_method (identifier_params) identifier_params (subscript (identifier_conn_args) identifier_conn_args (string_'url') string_'url' )subscript (subscript (identifier_conn_args) identifier_conn_args (string_'auth') string_'auth' )subscript )argument_list )call )assignment )expression_statement (return_statement (subscript (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (string_'userids') string_'userids' )subscript )return_statement )block (else_clause (block (raise_statement (identifier_KeyError) identifier_KeyError )raise_statement )block )else_clause )if_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (return_statement (identifier_ret) identifier_ret )return_statement )block )except_clause )try_statement )block )function_definition )module
Delete zabbix users. .. versionadded:: 2016.3.0 :param users: array of users (userids) to delete :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring) :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring) :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring) :return: On success array with userids of deleted users. CLI Example: .. code-block:: bash salt '*' zabbix.user_delete 15
(module (function_definition (function_name_zip_namedtuple) function_name_zip_namedtuple (parameters (identifier_nt_list) identifier_nt_list )parameters (block (if_statement (not_operator (identifier_nt_list) identifier_nt_list )not_operator (block (return_statement (call (identifier_dict) identifier_dict (argument_list )argument_list )call )return_statement )block )if_statement (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_nt_list) identifier_nt_list (identifier_list) identifier_list )argument_list )call )not_operator (block (expression_statement (assignment (identifier_nt_list) identifier_nt_list (list (identifier_nt_list) identifier_nt_list )list )assignment )expression_statement )block )if_statement (for_statement (identifier_nt) identifier_nt (identifier_nt_list) identifier_nt_list (block (assert_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_nt) identifier_nt )argument_list )call (call (identifier_type) identifier_type (argument_list (subscript (identifier_nt_list) identifier_nt_list (integer_0) integer_0 )subscript )argument_list )call )comparison_operator )assert_statement )block )for_statement (expression_statement (assignment (identifier_ret) identifier_ret (dictionary_comprehension (pair (identifier_k) identifier_k (list (identifier_v) identifier_v )list )pair (for_in_clause (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (call (attribute (subscript (identifier_nt_list) identifier_nt_list (integer_0) integer_0 )subscript (identifier__asdict) identifier__asdict )attribute (argument_list )argument_list )call (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )dictionary_comprehension )assignment )expression_statement (for_statement (identifier_nt) identifier_nt (subscript (identifier_nt_list) identifier_nt_list (slice (integer_1) integer_1 (colon) colon )slice )subscript (block (for_statement (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (call (attribute (identifier_nt) identifier_nt (identifier__asdict) identifier__asdict )attribute (argument_list )argument_list )call (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (subscript (identifier_ret) identifier_ret (identifier_k) identifier_k )subscript (identifier_append) identifier_append )attribute (argument_list (identifier_v) identifier_v )argument_list )call )expression_statement )block )for_statement )block )for_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
accept list of namedtuple, return a dict of zipped fields
(module (function_definition (function_name_get_context_data) function_name_get_context_data (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 (expression_statement (assignment (identifier_context) identifier_context (call (attribute (call (identifier_super) identifier_super (argument_list )argument_list )call (identifier_get_context_data) identifier_get_context_data )attribute (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_context) identifier_context (string_"is_plans_plural") string_"is_plans_plural" )subscript (comparison_operator (call (attribute (attribute (identifier_Plan) identifier_Plan (identifier_objects) identifier_objects )attribute (identifier_count) identifier_count )attribute (argument_list )argument_list )call (integer_1) integer_1 )comparison_operator )assignment )expression_statement (expression_statement (assignment (pattern_list (subscript (identifier_context) identifier_context (string_"customer") string_"customer" )subscript (identifier__created) identifier__created )pattern_list (call (attribute (identifier_Customer) identifier_Customer (identifier_get_or_create) identifier_get_or_create )attribute (argument_list (keyword_argument (identifier_subscriber) identifier_subscriber (call (attribute (identifier_djstripe_settings) identifier_djstripe_settings (identifier_subscriber_request_callback) identifier_subscriber_request_callback )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_request) identifier_request )attribute )argument_list )call )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_context) identifier_context (string_"subscription") string_"subscription" )subscript (attribute (subscript (identifier_context) identifier_context (string_"customer") string_"customer" )subscript (identifier_subscription) identifier_subscription )attribute )assignment )expression_statement (return_statement (identifier_context) identifier_context )return_statement )block )function_definition )module
Inject is_plans_plural and customer into context_data.
(module (function_definition (function_name_rotate_scale) function_name_rotate_scale (parameters (identifier_im) identifier_im (identifier_angle) identifier_angle (identifier_scale) identifier_scale (default_parameter (identifier_borderValue) identifier_borderValue (integer_0) integer_0 )default_parameter (default_parameter (identifier_interp) identifier_interp (attribute (identifier_cv2) identifier_cv2 (identifier_INTER_CUBIC) identifier_INTER_CUBIC )attribute )default_parameter )parameters (block (expression_statement (assignment (identifier_im) identifier_im (call (attribute (identifier_np) identifier_np (identifier_asarray) identifier_asarray )attribute (argument_list (identifier_im) identifier_im (keyword_argument (identifier_dtype) identifier_dtype (attribute (identifier_np) identifier_np (identifier_float32) identifier_float32 )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_rows) identifier_rows (identifier_cols) identifier_cols )pattern_list (attribute (identifier_im) identifier_im (identifier_shape) identifier_shape )attribute )assignment )expression_statement (expression_statement (assignment (identifier_M) identifier_M (call (attribute (identifier_cv2) identifier_cv2 (identifier_getRotationMatrix2D) identifier_getRotationMatrix2D )attribute (argument_list (tuple (binary_operator (identifier_cols) identifier_cols (integer_2) integer_2 )binary_operator (binary_operator (identifier_rows) identifier_rows (integer_2) integer_2 )binary_operator )tuple (binary_operator (binary_operator (unary_operator (identifier_angle) identifier_angle )unary_operator (integer_180) integer_180 )binary_operator (attribute (identifier_np) identifier_np (identifier_pi) identifier_pi )attribute )binary_operator (binary_operator (integer_1) integer_1 (identifier_scale) identifier_scale )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_im) identifier_im (call (attribute (identifier_cv2) identifier_cv2 (identifier_warpAffine) identifier_warpAffine )attribute (argument_list (identifier_im) identifier_im (identifier_M) identifier_M (tuple (identifier_cols) identifier_cols (identifier_rows) identifier_rows )tuple (keyword_argument (identifier_borderMode) identifier_borderMode (attribute (identifier_cv2) identifier_cv2 (identifier_BORDER_CONSTANT) identifier_BORDER_CONSTANT )attribute )keyword_argument (keyword_argument (identifier_flags) identifier_flags (identifier_interp) identifier_interp )keyword_argument (keyword_argument (identifier_borderValue) identifier_borderValue (identifier_borderValue) identifier_borderValue )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_im) identifier_im )return_statement )block )function_definition )module
Rotates and scales the image Parameters ---------- im: 2d array The image angle: number The angle, in radians, to rotate scale: positive number The scale factor borderValue: number, default 0 The value for the pixels outside the border (default 0) Returns ------- im: 2d array the rotated and scaled image Notes ----- The output image has the same size as the input. Therefore the image may be cropped in the process.
(module (function_definition (function_name_removeByIndex) function_name_removeByIndex (parameters (identifier_self) identifier_self (identifier_index) identifier_index )parameters (block (if_statement (boolean_operator (comparison_operator (identifier_index) identifier_index (binary_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__invites) identifier__invites )attribute )argument_list )call (integer_1) integer_1 )binary_operator )comparison_operator (line_continuation_\) line_continuation_\ (comparison_operator (identifier_index) identifier_index (integer_0) integer_0 )comparison_operator )boolean_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__invites) identifier__invites )attribute (identifier_remove) identifier_remove )attribute (argument_list (identifier_index) identifier_index )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
removes a user from the invitation list by position
(module (function_definition (function_name_vars_to_array) function_name_vars_to_array (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_warn) identifier_warn )attribute (argument_list (concatenated_string (string_'This function is deprecated. You can inspect `self.np_vars` directly as NumPy arrays ') string_'This function is deprecated. You can inspect `self.np_vars` directly as NumPy arrays ' (string_'without conversion.') string_'without conversion.' )concatenated_string )argument_list )call )expression_statement (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute )not_operator (block (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (identifier_vars_matrix) identifier_vars_matrix (call (attribute (call (identifier_matrix) identifier_matrix (argument_list (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute (keyword_argument (identifier_size) identifier_size (tuple (subscript (attribute (subscript (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute (integer_0) integer_0 )subscript (identifier_size) identifier_size )attribute (integer_0) integer_0 )subscript (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute )argument_list )call )tuple )keyword_argument )argument_list )call (identifier_trans) identifier_trans )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_vars_array) identifier_vars_array )attribute (call (attribute (identifier_np) identifier_np (identifier_array) identifier_array )attribute (argument_list (identifier_vars_matrix) identifier_vars_matrix )argument_list )call )assignment )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_vars_array) identifier_vars_array )attribute )return_statement )block )function_definition )module
Convert `self.vars` to a numpy array Returns ------- numpy.array
(module (function_definition (function_name_get_channels_by_sln_year_quarter) function_name_get_channels_by_sln_year_quarter (parameters (identifier_self) identifier_self (identifier_channel_type) identifier_channel_type (identifier_sln) identifier_sln (identifier_year) identifier_year (identifier_quarter) identifier_quarter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_search_channels) identifier_search_channels )attribute (argument_list (keyword_argument (identifier_type) identifier_type (identifier_channel_type) identifier_channel_type )keyword_argument (keyword_argument (identifier_tag_sln) identifier_tag_sln (identifier_sln) identifier_sln )keyword_argument (keyword_argument (identifier_tag_year) identifier_tag_year (identifier_year) identifier_year )keyword_argument (keyword_argument (identifier_tag_quarter) identifier_tag_quarter (identifier_quarter) identifier_quarter )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Search for all channels by sln, year and quarter
(module (function_definition (function_name_queryone) function_name_queryone (parameters (identifier_self) identifier_self (identifier_stmt) identifier_stmt (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (assignment (identifier_results) identifier_results (await (call (attribute (identifier_self) identifier_self (identifier_query) identifier_query )attribute (argument_list (identifier_stmt) identifier_stmt (list_splat (identifier_args) identifier_args )list_splat )argument_list )call )await )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_results) identifier_results )argument_list )call (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_NoResultError) identifier_NoResultError (argument_list )argument_list )call )raise_statement )block (elif_clause (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_results) identifier_results )argument_list )call (integer_1) integer_1 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"Expected 1 result, got %d") string_"Expected 1 result, got %d" (call (identifier_len) identifier_len (argument_list (identifier_results) identifier_results )argument_list )call )binary_operator )argument_list )call )raise_statement )block )elif_clause )if_statement (return_statement (subscript (identifier_results) identifier_results (integer_0) integer_0 )subscript )return_statement )block )function_definition )module
Query for exactly one result. Raises NoResultError if there are no results, or ValueError if there are more than one.
(module (function_definition (function_name_get_all_guild_roles) function_name_get_all_guild_roles (parameters (identifier_self) identifier_self (typed_parameter (identifier_guild_id) identifier_guild_id (type (identifier_int) identifier_int )type )typed_parameter )parameters (type (generic_type (identifier_List) identifier_List (type_parameter (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )type_parameter )generic_type )type (block (return_statement (call (attribute (identifier_self) identifier_self (identifier__query) identifier__query )attribute (argument_list (string_f'guilds/{guild_id}/roles') string_f'guilds/{guild_id}/roles' (string_'GET') string_'GET' )argument_list )call )return_statement )block )function_definition )module
Gets all the roles for the specified guild Args: guild_id: snowflake id of the guild Returns: List of dictionary objects of roles in the guild. Example: [ { "id": "41771983423143936", "name": "WE DEM BOYZZ!!!!!!", "color": 3447003, "hoist": true, "position": 1, "permissions": 66321471, "managed": false, "mentionable": false }, { "hoist": false, "name": "Admin", "mentionable": false, "color": 15158332, "position": 2, "id": "151107620239966208", "managed": false, "permissions": 66583679 }, { "hoist": false, "name": "@everyone", "mentionable": false, "color": 0, "position": 0, "id": "151106790233210882", "managed": false, "permissions": 37215297 } ]
(module (function_definition (function_name_block_icmp) function_name_block_icmp (parameters (identifier_zone) identifier_zone (identifier_icmp) identifier_icmp (default_parameter (identifier_permanent) identifier_permanent (True) True )default_parameter )parameters (block (if_statement (comparison_operator (identifier_icmp) identifier_icmp (call (identifier_get_icmp_types) identifier_get_icmp_types (argument_list (identifier_permanent) identifier_permanent )argument_list )call )comparison_operator (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_'Invalid ICMP type') string_'Invalid ICMP type' )argument_list )call )expression_statement (return_statement (False) False )return_statement )block )if_statement (if_statement (comparison_operator (identifier_icmp) identifier_icmp (call (identifier_list_icmp_block) identifier_list_icmp_block (argument_list (identifier_zone) identifier_zone (identifier_permanent) identifier_permanent )argument_list )call )comparison_operator (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_info) identifier_info )attribute (argument_list (string_'ICMP block already exists') string_'ICMP block already exists' )argument_list )call )expression_statement (return_statement (string_'success') string_'success' )return_statement )block )if_statement (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_'--zone={0} --add-icmp-block={1}') string_'--zone={0} --add-icmp-block={1}' (identifier_format) identifier_format )attribute (argument_list (identifier_zone) identifier_zone (identifier_icmp) identifier_icmp )argument_list )call )assignment )expression_statement (if_statement (identifier_permanent) identifier_permanent (block (expression_statement (augmented_assignment (identifier_cmd) identifier_cmd (string_' --permanent') string_' --permanent' )augmented_assignment )expression_statement )block )if_statement (return_statement (call (identifier___firewall_cmd) identifier___firewall_cmd (argument_list (identifier_cmd) identifier_cmd )argument_list )call )return_statement )block )function_definition )module
Block a specific ICMP type on a zone .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.block_icmp zone echo-reply
(module (function_definition (function_name_update_single_grading_period) function_name_update_single_grading_period (parameters (identifier_self) identifier_self (identifier_id) identifier_id (identifier_course_id) identifier_course_id (identifier_grading_periods_end_date) identifier_grading_periods_end_date (identifier_grading_periods_start_date) identifier_grading_periods_start_date (default_parameter (identifier_grading_periods_weight) identifier_grading_periods_weight (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_path) identifier_path (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_params) identifier_params (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (subscript (identifier_path) identifier_path (string_"course_id") string_"course_id" )subscript (identifier_course_id) identifier_course_id )assignment )expression_statement (expression_statement (assignment (subscript (identifier_path) identifier_path (string_"id") string_"id" )subscript (identifier_id) identifier_id )assignment )expression_statement (expression_statement (assignment (subscript (identifier_data) identifier_data (string_"grading_periods[start_date]") string_"grading_periods[start_date]" )subscript (identifier_grading_periods_start_date) identifier_grading_periods_start_date )assignment )expression_statement (expression_statement (assignment (subscript (identifier_data) identifier_data (string_"grading_periods[end_date]") string_"grading_periods[end_date]" )subscript (identifier_grading_periods_end_date) identifier_grading_periods_end_date )assignment )expression_statement (if_statement (comparison_operator (identifier_grading_periods_weight) identifier_grading_periods_weight (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_data) identifier_data (string_"grading_periods[weight]") string_"grading_periods[weight]" )subscript (identifier_grading_periods_weight) identifier_grading_periods_weight )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_logger) identifier_logger )attribute (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_"PUT /api/v1/courses/{course_id}/grading_periods/{id} with query params: {params} and form data: {data}") string_"PUT /api/v1/courses/{course_id}/grading_periods/{id} with query params: {params} and form data: {data}" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_params) identifier_params (identifier_params) identifier_params )keyword_argument (keyword_argument (identifier_data) identifier_data (identifier_data) identifier_data )keyword_argument (dictionary_splat (identifier_path) identifier_path )dictionary_splat )argument_list )call )argument_list )call )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_generic_request) identifier_generic_request )attribute (argument_list (string_"PUT") string_"PUT" (call (attribute (string_"/api/v1/courses/{course_id}/grading_periods/{id}") string_"/api/v1/courses/{course_id}/grading_periods/{id}" (identifier_format) identifier_format )attribute (argument_list (dictionary_splat (identifier_path) identifier_path )dictionary_splat )argument_list )call (keyword_argument (identifier_data) identifier_data (identifier_data) identifier_data )keyword_argument (keyword_argument (identifier_params) identifier_params (identifier_params) identifier_params )keyword_argument (keyword_argument (identifier_no_data) identifier_no_data (True) True )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Update a single grading period. Update an existing grading period.
(module (function_definition (function_name__get_key_file_path) function_name__get_key_file_path (parameters )parameters (block (if_statement (boolean_operator (comparison_operator (call (attribute (identifier_os) identifier_os (identifier_getenv) identifier_getenv )attribute (argument_list (identifier_USER_HOME) identifier_USER_HOME )argument_list )call (None) None )comparison_operator (call (attribute (identifier_os) identifier_os (identifier_access) identifier_access )attribute (argument_list (call (attribute (identifier_os) identifier_os (identifier_getenv) identifier_getenv )attribute (argument_list (identifier_USER_HOME) identifier_USER_HOME )argument_list )call (attribute (identifier_os) identifier_os (identifier_W_OK) identifier_W_OK )attribute )argument_list )call )boolean_operator (block (return_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (call (attribute (identifier_os) identifier_os (identifier_getenv) identifier_getenv )attribute (argument_list (identifier_USER_HOME) identifier_USER_HOME )argument_list )call (identifier_KEY_FILE_NAME) identifier_KEY_FILE_NAME )argument_list )call )return_statement )block )if_statement (return_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (call (attribute (identifier_os) identifier_os (identifier_getcwd) identifier_getcwd )attribute (argument_list )argument_list )call (identifier_KEY_FILE_NAME) identifier_KEY_FILE_NAME )argument_list )call )return_statement )block )function_definition )module
Return the key file path.
(module (function_definition (function_name_print_time) function_name_print_time (parameters (identifier_self) identifier_self (default_parameter (identifier_message) identifier_message (string_"Time is now: ") string_"Time is now: " )default_parameter (default_parameter (identifier_print_frame_info) identifier_print_frame_info (True) True )default_parameter )parameters (block (if_statement (identifier_print_frame_info) identifier_print_frame_info (block (expression_statement (assignment (identifier_frame_info) identifier_frame_info (subscript (call (attribute (identifier_inspect) identifier_inspect (identifier_getouterframes) identifier_getouterframes )attribute (argument_list (call (attribute (identifier_inspect) identifier_inspect (identifier_currentframe) identifier_currentframe )attribute (argument_list )argument_list )call )argument_list )call (integer_1) integer_1 )subscript )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (identifier_message) identifier_message (parenthesized_expression (binary_operator (call (attribute (identifier_datetime) identifier_datetime (identifier_now) identifier_now )attribute (argument_list )argument_list )call (attribute (identifier_self) identifier_self (identifier_start_time) identifier_start_time )attribute )binary_operator )parenthesized_expression (identifier_frame_info) identifier_frame_info )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (identifier_print) identifier_print (argument_list (identifier_message) identifier_message (parenthesized_expression (binary_operator (call (attribute (identifier_datetime) identifier_datetime (identifier_now) identifier_now )attribute (argument_list )argument_list )call (attribute (identifier_self) identifier_self (identifier_start_time) identifier_start_time )attribute )binary_operator )parenthesized_expression )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Print the current elapsed time. Kwargs: message (str) : Message to prefix the time stamp. print_frame_info (bool) : Add frame info to the print message.
(module (function_definition (function_name_create_event) function_name_create_event (parameters (default_parameter (identifier_service_key) identifier_service_key (None) None )default_parameter (default_parameter (identifier_description) identifier_description (None) None )default_parameter (default_parameter (identifier_details) identifier_details (None) None )default_parameter (default_parameter (identifier_incident_key) identifier_incident_key (None) None )default_parameter (default_parameter (identifier_profile) identifier_profile (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_trigger_url) identifier_trigger_url (string_'https://events.pagerduty.com/generic/2010-04-15/create_event.json') string_'https://events.pagerduty.com/generic/2010-04-15/create_event.json' )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_details) identifier_details (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call (block (expression_statement (assignment (identifier_details) identifier_details (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_yaml) identifier_yaml )attribute (identifier_safe_load) identifier_safe_load )attribute (argument_list (identifier_details) identifier_details )argument_list )call )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_details) identifier_details (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call (block (expression_statement (assignment (identifier_details) identifier_details (dictionary (pair (string_'details') string_'details' (identifier_details) identifier_details )pair )dictionary )assignment )expression_statement )block )if_statement )block )if_statement (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_json) identifier_json )attribute (identifier_loads) identifier_loads )attribute (argument_list (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_pagerduty) identifier_pagerduty )attribute (identifier_query) identifier_query )attribute (argument_list (keyword_argument (identifier_method) identifier_method (string_'POST') string_'POST' )keyword_argument (keyword_argument (identifier_profile_dict) identifier_profile_dict (call (subscript (identifier___salt__) identifier___salt__ (string_'config.option') string_'config.option' )subscript (argument_list (identifier_profile) identifier_profile )argument_list )call )keyword_argument (keyword_argument (identifier_api_key) identifier_api_key (identifier_service_key) identifier_service_key )keyword_argument (keyword_argument (identifier_data) identifier_data (dictionary (pair (string_'service_key') string_'service_key' (identifier_service_key) identifier_service_key )pair (pair (string_'incident_key') string_'incident_key' (identifier_incident_key) identifier_incident_key )pair (pair (string_'event_type') string_'event_type' (string_'trigger') string_'trigger' )pair (pair (string_'description') string_'description' (identifier_description) identifier_description )pair (pair (string_'details') string_'details' (identifier_details) identifier_details )pair )dictionary )keyword_argument (keyword_argument (identifier_url) identifier_url (identifier_trigger_url) identifier_trigger_url )keyword_argument (keyword_argument (identifier_opts) identifier_opts (identifier___opts__) identifier___opts__ )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Create an event in PagerDuty. Designed for use in states. CLI Example: .. code-block:: yaml salt myminion pagerduty.create_event <service_key> <description> <details> \ profile=my-pagerduty-account The following parameters are required: service_key This key can be found by using pagerduty.list_services. description This is a short description of the event. details This can be a more detailed description of the event. profile This refers to the configuration profile to use to connect to the PagerDuty service.
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_error) identifier_error )parameters (block (if_statement (not_operator (call (attribute (identifier_self) identifier_self (identifier__path_of_) identifier__path_of_ )attribute (argument_list (identifier_error) identifier_error )argument_list )call )not_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_errors) identifier_errors )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_error) identifier_error )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_errors) identifier_errors )attribute (identifier_sort) identifier_sort )attribute (argument_list )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_ErrorTree) identifier_ErrorTree (identifier_self) identifier_self )argument_list )call (identifier_add) identifier_add )attribute (argument_list (identifier_error) identifier_error )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Add an error to the tree. :param error: :class:`~cerberus.errors.ValidationError`
(module (function_definition (function_name_command_load) function_name_command_load (parameters (identifier_ctx) identifier_ctx (identifier_config) identifier_config (identifier_socket_name) identifier_socket_name (identifier_socket_path) identifier_socket_path (identifier_answer_yes) identifier_answer_yes (identifier_detached) identifier_detached (identifier_colors) identifier_colors )parameters (block (expression_statement (call (attribute (identifier_util) identifier_util (identifier_oh_my_zsh_auto_title) identifier_oh_my_zsh_auto_title )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_tmux_options) identifier_tmux_options (dictionary (pair (string_'socket_name') string_'socket_name' (identifier_socket_name) identifier_socket_name )pair (pair (string_'socket_path') string_'socket_path' (identifier_socket_path) identifier_socket_path )pair (pair (string_'answer_yes') string_'answer_yes' (identifier_answer_yes) identifier_answer_yes )pair (pair (string_'colors') string_'colors' (identifier_colors) identifier_colors )pair (pair (string_'detached') string_'detached' (identifier_detached) identifier_detached )pair )dictionary )assignment )expression_statement (if_statement (not_operator (identifier_config) identifier_config )not_operator (block (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (string_"Enter at least one CONFIG") string_"Enter at least one CONFIG" )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (call (attribute (identifier_ctx) identifier_ctx (identifier_get_help) identifier_get_help )attribute (argument_list )argument_list )call (keyword_argument (identifier_color) identifier_color (attribute (identifier_ctx) identifier_ctx (identifier_color) identifier_color )attribute )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_ctx) identifier_ctx (identifier_exit) identifier_exit )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_config) identifier_config (identifier_string_types) identifier_string_types )argument_list )call (block (expression_statement (call (identifier_load_workspace) identifier_load_workspace (argument_list (identifier_config) identifier_config (dictionary_splat (identifier_tmux_options) identifier_tmux_options )dictionary_splat )argument_list )call )expression_statement )block (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_config) identifier_config (identifier_tuple) identifier_tuple )argument_list )call (block (expression_statement (assignment (identifier_config) identifier_config (call (identifier_list) identifier_list (argument_list (identifier_config) identifier_config )argument_list )call )assignment )expression_statement (for_statement (identifier_cfg) identifier_cfg (subscript (identifier_config) identifier_config (slice (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript (block (expression_statement (assignment (identifier_opt) identifier_opt (call (attribute (identifier_tmux_options) identifier_tmux_options (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_opt) identifier_opt (identifier_update) identifier_update )attribute (argument_list (dictionary (pair (string_'detached') string_'detached' (True) True )pair )dictionary )argument_list )call )expression_statement (expression_statement (call (identifier_load_workspace) identifier_load_workspace (argument_list (identifier_cfg) identifier_cfg (dictionary_splat (identifier_opt) identifier_opt )dictionary_splat )argument_list )call )expression_statement )block )for_statement (expression_statement (call (identifier_load_workspace) identifier_load_workspace (argument_list (subscript (identifier_config) identifier_config (unary_operator (integer_1) integer_1 )unary_operator )subscript (dictionary_splat (identifier_tmux_options) identifier_tmux_options )dictionary_splat )argument_list )call )expression_statement )block )elif_clause )if_statement )block )function_definition )module
Load a tmux workspace from each CONFIG. CONFIG is a specifier for a configuration file. If CONFIG is a path to a directory, tmuxp will search it for ".tmuxp.{yaml,yml,json}". If CONFIG is has no directory component and only a filename, e.g. "myconfig.yaml", tmuxp will search the users's config directory for that file. If CONFIG has no directory component, and only a name with no extension, e.g. "myconfig", tmuxp will search the users's config directory for any file with the extension ".yaml", ".yml", or ".json" that matches that name. If multiple configuration files that match a given CONFIG are found, tmuxp will warn and pick the first one found. If multiple CONFIGs are provided, workspaces will be created for all of them. The last one provided will be attached. The others will be created in detached mode.
(module (function_definition (function_name_make_dataset) function_name_make_dataset (parameters (identifier_self) identifier_self (identifier_dataset) identifier_dataset (default_parameter (identifier_raise_if_exists) identifier_raise_if_exists (False) False )default_parameter (default_parameter (identifier_body) identifier_body (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_body) identifier_body (None) None )comparison_operator (block (expression_statement (assignment (identifier_body) identifier_body (dictionary )dictionary )assignment )expression_statement )block )if_statement (try_statement (block (expression_statement (assignment (subscript (identifier_body) identifier_body (string_'datasetReference') string_'datasetReference' )subscript (dictionary (pair (string_'projectId') string_'projectId' (attribute (identifier_dataset) identifier_dataset (identifier_project_id) identifier_project_id )attribute )pair (pair (string_'datasetId') string_'datasetId' (attribute (identifier_dataset) identifier_dataset (identifier_dataset_id) identifier_dataset_id )attribute )pair )dictionary )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_dataset) identifier_dataset (identifier_location) identifier_location )attribute (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_body) identifier_body (string_'location') string_'location' )subscript (attribute (identifier_dataset) identifier_dataset (identifier_location) identifier_location )attribute )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_datasets) identifier_datasets )attribute (argument_list )argument_list )call (identifier_insert) identifier_insert )attribute (argument_list (keyword_argument (identifier_projectId) identifier_projectId (attribute (identifier_dataset) identifier_dataset (identifier_project_id) identifier_project_id )attribute )keyword_argument (keyword_argument (identifier_body) identifier_body (identifier_body) identifier_body )keyword_argument )argument_list )call (identifier_execute) identifier_execute )attribute (argument_list )argument_list )call )expression_statement )block (except_clause (as_pattern (attribute (identifier_http) identifier_http (identifier_HttpError) identifier_HttpError )attribute (as_pattern_target (identifier_ex) identifier_ex )as_pattern_target )as_pattern (block (if_statement (comparison_operator (attribute (attribute (identifier_ex) identifier_ex (identifier_resp) identifier_resp )attribute (identifier_status) identifier_status )attribute (integer_409) integer_409 )comparison_operator (block (if_statement (identifier_raise_if_exists) identifier_raise_if_exists (block (raise_statement (call (attribute (attribute (identifier_luigi) identifier_luigi (identifier_target) identifier_target )attribute (identifier_FileAlreadyExists) identifier_FileAlreadyExists )attribute (argument_list )argument_list )call )raise_statement )block )if_statement )block (else_clause (block (raise_statement )raise_statement )block )else_clause )if_statement )block )except_clause )try_statement )block )function_definition )module
Creates a new dataset with the default permissions. :param dataset: :type dataset: BQDataset :param raise_if_exists: whether to raise an exception if the dataset already exists. :raises luigi.target.FileAlreadyExists: if raise_if_exists=True and the dataset exists
(module (function_definition (function_name_legal_edge_coords) function_name_legal_edge_coords (parameters )parameters (block (expression_statement (assignment (identifier_edges) identifier_edges (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_tile_id) identifier_tile_id (call (identifier_legal_tile_ids) identifier_legal_tile_ids (argument_list )argument_list )call (block (for_statement (identifier_edge) identifier_edge (call (identifier_edges_touching_tile) identifier_edges_touching_tile (argument_list (identifier_tile_id) identifier_tile_id )argument_list )call (block (expression_statement (call (attribute (identifier_edges) identifier_edges (identifier_add) identifier_add )attribute (argument_list (identifier_edge) identifier_edge )argument_list )call )expression_statement )block )for_statement )block )for_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'Legal edge coords({})={}') string_'Legal edge coords({})={}' (identifier_format) identifier_format )attribute (argument_list (call (identifier_len) identifier_len (argument_list (identifier_edges) identifier_edges )argument_list )call (identifier_edges) identifier_edges )argument_list )call )argument_list )call )expression_statement (return_statement (identifier_edges) identifier_edges )return_statement )block )function_definition )module
Return all legal edge coordinates on the grid.
(module (function_definition (function_name_get_data) function_name_get_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (string_"Get SNMP values from host") string_"Get SNMP values from host" )expression_statement (expression_statement (assignment (identifier_alarm_oids) identifier_alarm_oids (list_comprehension (call (attribute (identifier_netsnmp) identifier_netsnmp (identifier_Varbind) identifier_Varbind )attribute (argument_list (subscript (subscript (identifier_alarms) identifier_alarms (identifier_alarm_id) identifier_alarm_id )subscript (string_'oid') string_'oid' )subscript )argument_list )call (for_in_clause (identifier_alarm_id) identifier_alarm_id (subscript (subscript (attribute (identifier_self) identifier_self (identifier_models) identifier_models )attribute (attribute (identifier_self) identifier_self (identifier_modem_type) identifier_modem_type )attribute )subscript (string_'alarms') string_'alarms' )subscript )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_metric_oids) identifier_metric_oids (list_comprehension (call (attribute (identifier_netsnmp) identifier_netsnmp (identifier_Varbind) identifier_Varbind )attribute (argument_list (subscript (subscript (identifier_metrics) identifier_metrics (identifier_metric_id) identifier_metric_id )subscript (string_'oid') string_'oid' )subscript )argument_list )call (for_in_clause (identifier_metric_id) identifier_metric_id (subscript (subscript (attribute (identifier_self) identifier_self (identifier_models) identifier_models )attribute (attribute (identifier_self) identifier_self (identifier_modem_type) identifier_modem_type )attribute )subscript (string_'metrics') string_'metrics' )subscript )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (attribute (identifier_self) identifier_self (identifier_snmp_session) identifier_snmp_session )attribute (identifier_get) identifier_get )attribute (argument_list (call (attribute (identifier_netsnmp) identifier_netsnmp (identifier_VarList) identifier_VarList )attribute (argument_list (list_splat (binary_operator (identifier_alarm_oids) identifier_alarm_oids (identifier_metric_oids) identifier_metric_oids )binary_operator )list_splat )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (tuple (subscript (identifier_response) identifier_response (slice (integer_0) integer_0 (colon) colon (call (identifier_len) identifier_len (argument_list (identifier_alarm_oids) identifier_alarm_oids )argument_list )call )slice )subscript (subscript (identifier_response) identifier_response (slice (call (identifier_len) identifier_len (argument_list (identifier_alarm_oids) identifier_alarm_oids )argument_list )call (colon) colon )slice )subscript )tuple )return_statement )block )function_definition )module
Get SNMP values from host
(module (function_definition (function_name_run_per_switch_cmds) function_name_run_per_switch_cmds (parameters (identifier_self) identifier_self (identifier_switch_cmds) identifier_switch_cmds )parameters (block (for_statement (pattern_list (identifier_switch_ip) identifier_switch_ip (identifier_cmds) identifier_cmds )pattern_list (call (attribute (identifier_switch_cmds) identifier_switch_cmds (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_switch) identifier_switch (call (attribute (attribute (identifier_self) identifier_self (identifier__switches) identifier__switches )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_switch_ip) identifier_switch_ip )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_run_openstack_sg_cmds) identifier_run_openstack_sg_cmds )attribute (argument_list (identifier_cmds) identifier_cmds (identifier_switch) identifier_switch )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Applies cmds to appropriate switches This takes in a switch->cmds mapping and runs only the set of cmds specified for a switch on that switch. This helper is used for applying/removing ACLs to/from interfaces as this config will vary from switch to switch.
(module (function_definition (function_name_recover_all_handler) function_name_recover_all_handler (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_handler) identifier_handler (attribute (identifier_self) identifier_self (identifier__handler_cache) identifier__handler_cache )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_logger) identifier_logger )attribute (identifier_addHandler) identifier_addHandler )attribute (argument_list (identifier_handler) identifier_handler )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__handler_cache) identifier__handler_cache )attribute (call (identifier_list) identifier_list (argument_list )argument_list )call )assignment )expression_statement )block )function_definition )module
Relink the file handler association you just removed.
(module (function_definition (function_name_location) function_name_location (parameters (identifier_hexgrid_type) identifier_hexgrid_type (identifier_coord) identifier_coord )parameters (block (if_statement (comparison_operator (identifier_hexgrid_type) identifier_hexgrid_type (identifier_TILE) identifier_TILE )comparison_operator (block (return_statement (call (identifier_str) identifier_str (argument_list (identifier_coord) identifier_coord )argument_list )call )return_statement )block (elif_clause (comparison_operator (identifier_hexgrid_type) identifier_hexgrid_type (identifier_NODE) identifier_NODE )comparison_operator (block (expression_statement (assignment (identifier_tile_id) identifier_tile_id (call (identifier_nearest_tile_to_node) identifier_nearest_tile_to_node (argument_list (identifier_coord) identifier_coord )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_dirn) identifier_dirn (call (identifier_tile_node_offset_to_direction) identifier_tile_node_offset_to_direction (argument_list (binary_operator (identifier_coord) identifier_coord (call (identifier_tile_id_to_coord) identifier_tile_id_to_coord (argument_list (identifier_tile_id) identifier_tile_id )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (return_statement (call (attribute (string_'({} {})') string_'({} {})' (identifier_format) identifier_format )attribute (argument_list (identifier_tile_id) identifier_tile_id (identifier_dirn) identifier_dirn )argument_list )call )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_hexgrid_type) identifier_hexgrid_type (identifier_EDGE) identifier_EDGE )comparison_operator (block (expression_statement (assignment (identifier_tile_id) identifier_tile_id (call (identifier_nearest_tile_to_edge) identifier_nearest_tile_to_edge (argument_list (identifier_coord) identifier_coord )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_dirn) identifier_dirn (call (identifier_tile_edge_offset_to_direction) identifier_tile_edge_offset_to_direction (argument_list (binary_operator (identifier_coord) identifier_coord (call (identifier_tile_id_to_coord) identifier_tile_id_to_coord (argument_list (identifier_tile_id) identifier_tile_id )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (return_statement (call (attribute (string_'({} {})') string_'({} {})' (identifier_format) identifier_format )attribute (argument_list (identifier_tile_id) identifier_tile_id (identifier_dirn) identifier_dirn )argument_list )call )return_statement )block )elif_clause (else_clause (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_warning) identifier_warning )attribute (argument_list (call (attribute (string_'unsupported hexgrid_type={}') string_'unsupported hexgrid_type={}' (identifier_format) identifier_format )attribute (argument_list (identifier_hexgrid_type) identifier_hexgrid_type )argument_list )call )argument_list )call )expression_statement (return_statement (None) None )return_statement )block )else_clause )if_statement )block )function_definition )module
Returns a formatted string representing the coordinate. The format depends on the coordinate type. Tiles look like: 1, 12 Nodes look like: (1 NW), (12 S) Edges look like: (1 NW), (12 SE) :param hexgrid_type: hexgrid.TILE, hexgrid.NODE, hexgrid.EDGE :param coord: integer coordinate in this module's hexadecimal coordinate system :return: formatted string for display
(module (function_definition (function_name_GetArtifactParserDependencies) function_name_GetArtifactParserDependencies (parameters (identifier_rdf_artifact) identifier_rdf_artifact )parameters (block (expression_statement (assignment (identifier_deps) identifier_deps (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_processors) identifier_processors (call (attribute (attribute (identifier_parser) identifier_parser (identifier_Parser) identifier_Parser )attribute (identifier_GetClassesByArtifact) identifier_GetClassesByArtifact )attribute (argument_list (attribute (identifier_rdf_artifact) identifier_rdf_artifact (identifier_name) identifier_name )attribute )argument_list )call )assignment )expression_statement (for_statement (identifier_p) identifier_p (identifier_processors) identifier_processors (block (expression_statement (call (attribute (identifier_deps) identifier_deps (identifier_update) identifier_update )attribute (argument_list (attribute (identifier_p) identifier_p (identifier_knowledgebase_dependencies) identifier_knowledgebase_dependencies )attribute )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_deps) identifier_deps )return_statement )block )function_definition )module
Return the set of knowledgebase path dependencies required by the parser. Args: rdf_artifact: RDF artifact object. Returns: A set of strings for the required kb objects e.g. ["users.appdata", "systemroot"]
(module (function_definition (function_name_get_scenenode) function_name_get_scenenode (parameters (identifier_self) identifier_self (identifier_nodes) identifier_nodes )parameters (block (expression_statement (assignment (identifier_scenenodes) identifier_scenenodes (call (attribute (identifier_cmds) identifier_cmds (identifier_ls) identifier_ls )attribute (argument_list (identifier_nodes) identifier_nodes (keyword_argument (identifier_type) identifier_type (string_'jb_sceneNode') string_'jb_sceneNode' )keyword_argument )argument_list )call )assignment )expression_statement (assert_statement (identifier_scenenodes) identifier_scenenodes (string_"Found no scene nodes!") string_"Found no scene nodes!" )assert_statement (return_statement (subscript (call (identifier_sorted) identifier_sorted (argument_list (identifier_scenenodes) identifier_scenenodes )argument_list )call (integer_0) integer_0 )subscript )return_statement )block )function_definition )module
Get the scenenode in the given nodes There should only be one scenenode in nodes! :param nodes: :type nodes: :returns: None :rtype: None :raises: AssertionError
(module (function_definition (function_name__can_connect) function_name__can_connect (parameters (identifier_ip) identifier_ip (identifier_port) identifier_port )parameters (block (expression_statement (assignment (identifier_cs) identifier_cs (call (attribute (identifier_socket) identifier_socket (identifier_socket) identifier_socket )attribute (argument_list )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_cs) identifier_cs (identifier_connect) identifier_connect )attribute (argument_list (tuple (identifier_ip) identifier_ip (identifier_port) identifier_port )tuple )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_cs) identifier_cs (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement (return_statement (True) True )return_statement )block (except_clause (attribute (identifier_socket) identifier_socket (identifier_error) identifier_error )attribute (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
Checks if a TCP port at IP address is possible to connect to
(module (function_definition (function_name_raise_figure_window) function_name_raise_figure_window (parameters (default_parameter (identifier_f) identifier_f (integer_0) integer_0 )default_parameter )parameters (block (if_statement (call (attribute (identifier__fun) identifier__fun (identifier_is_a_number) identifier_is_a_number )attribute (argument_list (identifier_f) identifier_f )argument_list )call (block (expression_statement (assignment (identifier_f) identifier_f (call (attribute (identifier__pylab) identifier__pylab (identifier_figure) identifier_figure )attribute (argument_list (identifier_f) identifier_f )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (attribute (attribute (attribute (identifier_f) identifier_f (identifier_canvas) identifier_canvas )attribute (identifier_manager) identifier_manager )attribute (identifier_window) identifier_window )attribute (identifier_raise_) identifier_raise_ )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Raises the supplied figure number or figure window.
(module (function_definition (function_name_experiments_predictions_update_state_success) function_name_experiments_predictions_update_state_success (parameters (identifier_self) identifier_self (identifier_experiment_id) identifier_experiment_id (identifier_run_id) identifier_run_id (identifier_result_file) identifier_result_file )parameters (block (expression_statement (assignment (identifier_model_run) identifier_model_run (call (attribute (identifier_self) identifier_self (identifier_experiments_predictions_get) identifier_experiments_predictions_get )attribute (argument_list (identifier_experiment_id) identifier_experiment_id (identifier_run_id) identifier_run_id )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_model_run) identifier_model_run (None) None )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (identifier_funcdata) identifier_funcdata (call (attribute (attribute (identifier_self) identifier_self (identifier_funcdata) identifier_funcdata )attribute (identifier_create_object) identifier_create_object )attribute (argument_list (identifier_result_file) identifier_result_file )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_predictions) identifier_predictions )attribute (identifier_update_state) identifier_update_state )attribute (argument_list (identifier_run_id) identifier_run_id (call (attribute (identifier_modelrun) identifier_modelrun (identifier_ModelRunSuccess) identifier_ModelRunSuccess )attribute (argument_list (attribute (identifier_funcdata) identifier_funcdata (identifier_identifier) identifier_identifier )attribute )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Update state of given prediction to success. Create a function data resource for the given result file and associate it with the model run. Parameters ---------- experiment_id : string Unique experiment identifier run_id : string Unique model run identifier result_file : string Path to model run result file Returns ------- ModelRunHandle Handle for updated model run or None is prediction is undefined
(module (function_definition (function_name__build_deployments_object) function_name__build_deployments_object (parameters (typed_parameter (identifier_contract_type) identifier_contract_type (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier_deployment_bytecode) identifier_deployment_bytecode (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )typed_parameter (typed_parameter (identifier_runtime_bytecode) identifier_runtime_bytecode (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )typed_parameter (typed_parameter (identifier_compiler) identifier_compiler (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )typed_parameter (typed_parameter (identifier_address) identifier_address (type (identifier_HexStr) identifier_HexStr )type )typed_parameter (typed_parameter (identifier_tx) identifier_tx (type (identifier_HexStr) identifier_HexStr )type )typed_parameter (typed_parameter (identifier_block) identifier_block (type (identifier_HexStr) identifier_HexStr )type )typed_parameter (typed_parameter (identifier_manifest) identifier_manifest (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )typed_parameter )parameters (type (generic_type (identifier_Iterable) identifier_Iterable (type_parameter (type (generic_type (identifier_Tuple) identifier_Tuple (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )type_parameter )generic_type )type (block (expression_statement (yield (expression_list (string_"contract_type") string_"contract_type" (identifier_contract_type) identifier_contract_type )expression_list )yield )expression_statement (expression_statement (yield (expression_list (string_"address") string_"address" (call (identifier_to_hex) identifier_to_hex (argument_list (identifier_address) identifier_address )argument_list )call )expression_list )yield )expression_statement (if_statement (identifier_deployment_bytecode) identifier_deployment_bytecode (block (expression_statement (yield (expression_list (string_"deployment_bytecode") string_"deployment_bytecode" (identifier_deployment_bytecode) identifier_deployment_bytecode )expression_list )yield )expression_statement )block )if_statement (if_statement (identifier_compiler) identifier_compiler (block (expression_statement (yield (expression_list (string_"compiler") string_"compiler" (identifier_compiler) identifier_compiler )expression_list )yield )expression_statement )block )if_statement (if_statement (identifier_tx) identifier_tx (block (expression_statement (yield (expression_list (string_"transaction") string_"transaction" (identifier_tx) identifier_tx )expression_list )yield )expression_statement )block )if_statement (if_statement (identifier_block) identifier_block (block (expression_statement (yield (expression_list (string_"block") string_"block" (identifier_block) identifier_block )expression_list )yield )expression_statement )block )if_statement (if_statement (identifier_runtime_bytecode) identifier_runtime_bytecode (block (expression_statement (yield (expression_list (string_"runtime_bytecode") string_"runtime_bytecode" (identifier_runtime_bytecode) identifier_runtime_bytecode )expression_list )yield )expression_statement )block )if_statement )block )function_definition )module
Returns a dict with properly formatted deployment data.
(module (function_definition (function_name_serialize) function_name_serialize (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_expects) identifier_expects (list_comprehension (call (attribute (identifier_exp) identifier_exp (identifier_serialize) identifier_serialize )attribute (argument_list )argument_list )call (for_in_clause (identifier_exp) identifier_exp (attribute (identifier_self) identifier_self (identifier_expects) identifier_expects )attribute )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_converted_dict) identifier_converted_dict (dictionary (pair (string_'id') string_'id' (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute )pair (pair (string_'name') string_'name' (attribute (identifier_self) identifier_self (identifier_pretty_name) identifier_pretty_name )attribute )pair (pair (string_'raw_name') string_'raw_name' (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute )pair (pair (string_'doc') string_'doc' (attribute (identifier_self) identifier_self (identifier_doc) identifier_doc )attribute )pair (pair (string_'error') string_'error' (attribute (identifier_self) identifier_self (identifier_error) identifier_error )attribute )pair (pair (string_'skipped') string_'skipped' (attribute (identifier_self) identifier_self (identifier_skipped) identifier_skipped )attribute )pair (pair (string_'skip_reason') string_'skip_reason' (attribute (identifier_self) identifier_self (identifier_skip_reason) identifier_skip_reason )attribute )pair (pair (string_'execute_kwargs') string_'execute_kwargs' (attribute (identifier_self) identifier_self (identifier_safe_execute_kwargs) identifier_safe_execute_kwargs )attribute )pair (pair (string_'metadata') string_'metadata' (attribute (identifier_self) identifier_self (identifier_metadata) identifier_metadata )attribute )pair (pair (string_'start') string_'start' (attribute (identifier_self) identifier_self (identifier_start_time) identifier_start_time )attribute )pair (pair (string_'end') string_'end' (attribute (identifier_self) identifier_self (identifier_end_time) identifier_end_time )attribute )pair (pair (string_'expects') string_'expects' (identifier_expects) identifier_expects )pair (pair (string_'success') string_'success' (attribute (identifier_self) identifier_self (identifier_success) identifier_success )attribute )pair )dictionary )assignment )expression_statement (return_statement (call (identifier_remove_empty_entries_from_dict) identifier_remove_empty_entries_from_dict (argument_list (identifier_converted_dict) identifier_converted_dict )argument_list )call )return_statement )block )function_definition )module
Serializes the CaseWrapper object for collection. Warning, this will only grab the available information. It is strongly that you only call this once all specs and tests have completed.
(module (function_definition (function_name_docker) function_name_docker (parameters (identifier_gandi) identifier_gandi (identifier_vm) identifier_vm (identifier_args) identifier_args )parameters (block (if_statement (not_operator (list_comprehension (identifier_basedir) identifier_basedir (for_in_clause (identifier_basedir) identifier_basedir (call (attribute (call (attribute (identifier_os) identifier_os (identifier_getenv) identifier_getenv )attribute (argument_list (string_'PATH') string_'PATH' (string_'.:/usr/bin') string_'.:/usr/bin' )argument_list )call (identifier_split) identifier_split )attribute (argument_list (string_':') string_':' )argument_list )call )for_in_clause (if_clause (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (binary_operator (string_'%s/docker') string_'%s/docker' (identifier_basedir) identifier_basedir )binary_operator )argument_list )call )if_clause )list_comprehension )not_operator (block (expression_statement (call (attribute (identifier_gandi) identifier_gandi (identifier_echo) identifier_echo )attribute (argument_list )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (if_statement (identifier_vm) identifier_vm (block (expression_statement (call (attribute (identifier_gandi) identifier_gandi (identifier_configure) identifier_configure )attribute (argument_list (True) True (string_'dockervm') string_'dockervm' (identifier_vm) identifier_vm )argument_list )call )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_vm) identifier_vm (call (attribute (identifier_gandi) identifier_gandi (identifier_get) identifier_get )attribute (argument_list (string_'dockervm') string_'dockervm' )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (not_operator (identifier_vm) identifier_vm )not_operator (block (expression_statement (call (attribute (identifier_gandi) identifier_gandi (identifier_echo) identifier_echo )attribute (argument_list )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (return_statement (call (attribute (attribute (identifier_gandi) identifier_gandi (identifier_docker) identifier_docker )attribute (identifier_handle) identifier_handle )attribute (argument_list (identifier_vm) identifier_vm (identifier_args) identifier_args )argument_list )call )return_statement )block )function_definition )module
Manage docker instance
(module (function_definition (function_name_set_element_dt) function_name_set_element_dt (parameters (identifier_self) identifier_self (identifier_el_name) identifier_el_name (identifier_dt) identifier_dt (default_parameter (identifier_tz) identifier_tz (None) None )default_parameter (default_parameter (identifier_el_idx) identifier_el_idx (integer_0) integer_0 )default_parameter )parameters (block (expression_statement (assignment (identifier_dt) identifier_dt (call (attribute (attribute (identifier_d1_common) identifier_d1_common (identifier_date_time) identifier_date_time )attribute (identifier_cast_naive_datetime_to_tz) identifier_cast_naive_datetime_to_tz )attribute (argument_list (identifier_dt) identifier_dt (identifier_tz) identifier_tz )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (call (attribute (identifier_self) identifier_self (identifier_get_element_by_name) identifier_get_element_by_name )attribute (argument_list (identifier_el_name) identifier_el_name (identifier_el_idx) identifier_el_idx )argument_list )call (identifier_text) identifier_text )attribute (call (attribute (identifier_dt) identifier_dt (identifier_isoformat) identifier_isoformat )attribute (argument_list )argument_list )call )assignment )expression_statement )block )function_definition )module
Set the text of the selected element to an ISO8601 formatted datetime. Args: el_name : str Name of element to update. dt : datetime.datetime Date and time to set tz : datetime.tzinfo Timezone to set - Without a timezone, other contextual information is required in order to determine the exact represented time. - If dt has timezone: The ``tz`` parameter is ignored. - If dt is naive (without timezone): The timezone is set to ``tz``. - ``tz=None``: Prevent naive dt from being set to a timezone. Without a timezone, other contextual information is required in order to determine the exact represented time. - ``tz=d1_common.date_time.UTC()``: Set naive dt to UTC. el_idx : int Index of element to use in the event that there are multiple sibling elements with the same name.
(module (function_definition (function_name_generate_age) function_name_generate_age (parameters (identifier_issue_time) identifier_issue_time )parameters (block (expression_statement (assignment (identifier_td) identifier_td (binary_operator (call (attribute (attribute (identifier_datetime) identifier_datetime (identifier_datetime) identifier_datetime )attribute (identifier_now) identifier_now )attribute (argument_list )argument_list )call (identifier_issue_time) identifier_issue_time )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_age) identifier_age (binary_operator (parenthesized_expression (binary_operator (attribute (identifier_td) identifier_td (identifier_microseconds) identifier_microseconds )attribute (binary_operator (parenthesized_expression (binary_operator (attribute (identifier_td) identifier_td (identifier_seconds) identifier_seconds )attribute (binary_operator (binary_operator (attribute (identifier_td) identifier_td (identifier_days) identifier_days )attribute (integer_24) integer_24 )binary_operator (integer_3600) integer_3600 )binary_operator )binary_operator )parenthesized_expression (binary_operator (integer_10) integer_10 (integer_6) integer_6 )binary_operator )binary_operator )binary_operator )parenthesized_expression (binary_operator (integer_10) integer_10 (integer_6) integer_6 )binary_operator )binary_operator )assignment )expression_statement (return_statement (call (identifier_unicode_type) identifier_unicode_type (argument_list (identifier_age) identifier_age )argument_list )call )return_statement )block )function_definition )module
Generate a age parameter for MAC authentication draft 00.
(module (function_definition (function_name_generate) function_name_generate (parameters (identifier_basename) identifier_basename (identifier_xml_list) identifier_xml_list )parameters (block (expression_statement (call (identifier_generate_shared) identifier_generate_shared (argument_list (identifier_basename) identifier_basename (identifier_xml_list) identifier_xml_list )argument_list )call )expression_statement (for_statement (identifier_xml) identifier_xml (identifier_xml_list) identifier_xml_list (block (expression_statement (call (identifier_generate_message_definitions) identifier_generate_message_definitions (argument_list (identifier_basename) identifier_basename (identifier_xml) identifier_xml )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
generate complete MAVLink Objective-C implemenation
(module (function_definition (function_name___CheckAndUnifyQueryFormat) function_name___CheckAndUnifyQueryFormat (parameters (identifier_self) identifier_self (identifier_query_body) identifier_query_body )parameters (block (if_statement (parenthesized_expression (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__query_compatibility_mode) identifier__query_compatibility_mode )attribute (attribute (attribute (identifier_CosmosClient) identifier_CosmosClient (identifier__QueryCompatibilityMode) identifier__QueryCompatibilityMode )attribute (identifier_Default) identifier_Default )attribute )comparison_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__query_compatibility_mode) identifier__query_compatibility_mode )attribute (attribute (attribute (identifier_CosmosClient) identifier_CosmosClient (identifier__QueryCompatibilityMode) identifier__QueryCompatibilityMode )attribute (identifier_Query) identifier_Query )attribute )comparison_operator )boolean_operator )parenthesized_expression (block (if_statement (boolean_operator (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_query_body) identifier_query_body (identifier_dict) identifier_dict )argument_list )call )not_operator (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_query_body) identifier_query_body (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call )not_operator )boolean_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_'query body must be a dict or string.') string_'query body must be a dict or string.' )argument_list )call )raise_statement )block )if_statement (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_query_body) identifier_query_body (identifier_dict) identifier_dict )argument_list )call (not_operator (call (attribute (identifier_query_body) identifier_query_body (identifier_get) identifier_get )attribute (argument_list (string_'query') string_'query' )argument_list )call )not_operator )boolean_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'query body must have valid query text with key "query".') string_'query body must have valid query text with key "query".' )argument_list )call )raise_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_query_body) identifier_query_body (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call (block (return_statement (dictionary (pair (string_'query') string_'query' (identifier_query_body) identifier_query_body )pair )dictionary )return_statement )block )if_statement )block (elif_clause (parenthesized_expression (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__query_compatibility_mode) identifier__query_compatibility_mode )attribute (attribute (attribute (identifier_CosmosClient) identifier_CosmosClient (identifier__QueryCompatibilityMode) identifier__QueryCompatibilityMode )attribute (identifier_SqlQuery) identifier_SqlQuery )attribute )comparison_operator (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_query_body) identifier_query_body (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call )not_operator )boolean_operator )parenthesized_expression (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_'query body must be a string.') string_'query body must be a string.' )argument_list )call )raise_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_SystemError) identifier_SystemError (argument_list (string_'Unexpected query compatibility mode.') string_'Unexpected query compatibility mode.' )argument_list )call )raise_statement )block )else_clause )if_statement (return_statement (identifier_query_body) identifier_query_body )return_statement )block )function_definition )module
Checks and unifies the format of the query body. :raises TypeError: If query_body is not of expected type (depending on the query compatibility mode). :raises ValueError: If query_body is a dict but doesn\'t have valid query text. :raises SystemError: If the query compatibility mode is undefined. :param (str or dict) query_body: :return: The formatted query body. :rtype: dict or string
(module (function_definition (function_name__fracRoiSparse) function_name__fracRoiSparse (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_frac_roi_sparse) identifier_frac_roi_sparse )attribute (call (attribute (identifier_np) identifier_np (identifier_min) identifier_min )attribute (argument_list (list (attribute (attribute (identifier_self) identifier_self (identifier_mask_1) identifier_mask_1 )attribute (identifier_frac_roi_sparse) identifier_frac_roi_sparse )attribute (attribute (attribute (identifier_self) identifier_self (identifier_mask_2) identifier_mask_2 )attribute (identifier_frac_roi_sparse) identifier_frac_roi_sparse )attribute )list (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_frac_roi_sparse) identifier_frac_roi_sparse )attribute )return_statement )block )function_definition )module
Calculate an approximate pixel coverage fraction from the two masks. We have no way to know a priori how much the coverage of the two masks overlap in a give pixel. For example, masks that each have frac = 0.5 could have a combined frac = [0.0 to 0.5]. The limits will be: max: min(frac1,frac2) min: max((frac1+frac2)-1, 0.0) Sometimes we are lucky and our fracdet is actually already calculated for the two masks combined, so that the max condition is satisfied. That is what we will assume...
(module (function_definition (function_name_solve) function_name_solve (parameters (identifier_graph) identifier_graph (default_parameter (identifier_debug) identifier_debug (False) False )default_parameter (default_parameter (identifier_anim) identifier_anim (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_specs) identifier_specs (call (identifier_ding0_graph_to_routing_specs) identifier_ding0_graph_to_routing_specs (argument_list (identifier_graph) identifier_graph )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_RoutingGraph) identifier_RoutingGraph (call (identifier_Graph) identifier_Graph (argument_list (identifier_specs) identifier_specs )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_timeout) identifier_timeout (integer_30000) integer_30000 )assignment )expression_statement (expression_statement (assignment (identifier_savings_solver) identifier_savings_solver (call (attribute (identifier_savings) identifier_savings (identifier_ClarkeWrightSolver) identifier_ClarkeWrightSolver )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_local_search_solver) identifier_local_search_solver (call (attribute (identifier_local_search) identifier_local_search (identifier_LocalSearchSolver) identifier_LocalSearchSolver )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_start) identifier_start (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_savings_solution) identifier_savings_solution (call (attribute (identifier_savings_solver) identifier_savings_solver (identifier_solve) identifier_solve )attribute (argument_list (identifier_RoutingGraph) identifier_RoutingGraph (identifier_timeout) identifier_timeout (identifier_debug) identifier_debug (identifier_anim) identifier_anim )argument_list )call )assignment )expression_statement (if_statement (identifier_debug) identifier_debug (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_'ClarkeWrightSolver solution:') string_'ClarkeWrightSolver solution:' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_util) identifier_util (identifier_print_solution) identifier_print_solution )attribute (argument_list (identifier_savings_solution) identifier_savings_solution )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'Elapsed time (seconds): {}') string_'Elapsed time (seconds): {}' (identifier_format) identifier_format )attribute (argument_list (binary_operator (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call (identifier_start) identifier_start )binary_operator )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_local_search_solution) identifier_local_search_solution (call (attribute (identifier_local_search_solver) identifier_local_search_solver (identifier_solve) identifier_solve )attribute (argument_list (identifier_RoutingGraph) identifier_RoutingGraph (identifier_savings_solution) identifier_savings_solution (identifier_timeout) identifier_timeout (identifier_debug) identifier_debug (identifier_anim) identifier_anim )argument_list )call )assignment )expression_statement (if_statement (identifier_debug) identifier_debug (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_'Local Search solution:') string_'Local Search solution:' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_util) identifier_util (identifier_print_solution) identifier_print_solution )attribute (argument_list (identifier_local_search_solution) identifier_local_search_solution )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'Elapsed time (seconds): {}') string_'Elapsed time (seconds): {}' (identifier_format) identifier_format )attribute (argument_list (binary_operator (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call (identifier_start) identifier_start )binary_operator )argument_list )call )argument_list )call )expression_statement )block )if_statement (return_statement (call (identifier_routing_solution_to_ding0_graph) identifier_routing_solution_to_ding0_graph (argument_list (identifier_graph) identifier_graph (identifier_local_search_solution) identifier_local_search_solution )argument_list )call )return_statement )block )function_definition )module
Do MV routing for given nodes in `graph`. Translate data from node objects to appropriate format before. Args ---- graph: :networkx:`NetworkX Graph Obj< >` NetworkX graph object with nodes debug: bool, defaults to False If True, information is printed while routing anim: AnimationDing0 AnimationDing0 object Returns ------- :networkx:`NetworkX Graph Obj< >` NetworkX graph object with nodes and edges See Also -------- ding0.tools.animation.AnimationDing0 : for a more detailed description on anim parameter.
(module (function_definition (function_name_softmax_cross_entropy_one_hot) function_name_softmax_cross_entropy_one_hot (parameters (identifier_logits) identifier_logits (identifier_labels) identifier_labels (default_parameter (identifier_weights_fn) identifier_weights_fn (None) None )default_parameter )parameters (block (with_statement (with_clause (with_item (call (attribute (identifier_tf) identifier_tf (identifier_variable_scope) identifier_variable_scope )attribute (argument_list (string_"softmax_cross_entropy_one_hot") string_"softmax_cross_entropy_one_hot" (keyword_argument (identifier_values) identifier_values (list (identifier_logits) identifier_logits (identifier_labels) identifier_labels )list )keyword_argument )argument_list )call )with_item )with_clause (block (delete_statement (identifier_weights_fn) identifier_weights_fn )delete_statement (expression_statement (assignment (identifier_cross_entropy) identifier_cross_entropy (call (attribute (attribute (identifier_tf) identifier_tf (identifier_losses) identifier_losses )attribute (identifier_softmax_cross_entropy) identifier_softmax_cross_entropy )attribute (argument_list (keyword_argument (identifier_onehot_labels) identifier_onehot_labels (identifier_labels) identifier_labels )keyword_argument (keyword_argument (identifier_logits) identifier_logits (identifier_logits) identifier_logits )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (expression_list (identifier_cross_entropy) identifier_cross_entropy (call (attribute (identifier_tf) identifier_tf (identifier_constant) identifier_constant )attribute (argument_list (float_1.0) float_1.0 )argument_list )call )expression_list )return_statement )block )with_statement )block )function_definition )module
Calculate softmax cross entropy given one-hot labels and logits. Args: logits: Tensor of size [batch-size, o=1, p=1, num-classes] labels: Tensor of size [batch-size, o=1, p=1, num-classes] weights_fn: Function that takes in labels and weighs examples (unused) Returns: cross-entropy (scalar), weights
(module (function_definition (function_name_cleanup) function_name_cleanup (parameters (identifier_first_I) identifier_first_I (identifier_first_Z) identifier_first_Z )parameters (block (expression_statement (assignment (identifier_cont) identifier_cont (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (identifier_Nmin) identifier_Nmin (call (identifier_len) identifier_len (argument_list (identifier_first_I) identifier_first_I )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_first_Z) identifier_first_Z )argument_list )call (identifier_Nmin) identifier_Nmin )comparison_operator (block (expression_statement (assignment (identifier_Nmin) identifier_Nmin (call (identifier_len) identifier_len (argument_list (identifier_first_Z) identifier_first_Z )argument_list )call )assignment )expression_statement )block )if_statement (for_statement (identifier_kk) identifier_kk (call (identifier_range) identifier_range (argument_list (identifier_Nmin) identifier_Nmin )argument_list )call (block (if_statement (comparison_operator (subscript (subscript (identifier_first_I) identifier_first_I (identifier_kk) identifier_kk )subscript (integer_0) integer_0 )subscript (subscript (subscript (identifier_first_Z) identifier_first_Z (identifier_kk) identifier_kk )subscript (integer_0) integer_0 )subscript )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"\n WARNING: ") string_"\n WARNING: " )argument_list )call )expression_statement (if_statement (comparison_operator (subscript (identifier_first_I) identifier_first_I (identifier_kk) identifier_kk )subscript (subscript (identifier_first_Z) identifier_first_Z (identifier_kk) identifier_kk )subscript )comparison_operator (block (delete_statement (subscript (identifier_first_I) identifier_first_I (identifier_kk) identifier_kk )subscript )delete_statement )block (else_clause (block (delete_statement (subscript (identifier_first_Z) identifier_first_Z (identifier_kk) identifier_kk )subscript )delete_statement )block )else_clause )if_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Unmatched step number: ") string_"Unmatched step number: " (binary_operator (identifier_kk) identifier_kk (integer_1) integer_1 )binary_operator (string_' ignored') string_' ignored' )argument_list )call )expression_statement (expression_statement (assignment (identifier_cont) identifier_cont (integer_1) integer_1 )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_cont) identifier_cont (integer_1) integer_1 )comparison_operator (block (return_statement (expression_list (identifier_first_I) identifier_first_I (identifier_first_Z) identifier_first_Z (identifier_cont) identifier_cont )expression_list )return_statement )block )if_statement )block )for_statement (return_statement (expression_list (identifier_first_I) identifier_first_I (identifier_first_Z) identifier_first_Z (identifier_cont) identifier_cont )expression_list )return_statement )block )function_definition )module
cleans up unbalanced steps failure can be from unbalanced final step, or from missing steps, this takes care of missing steps
(module (function_definition (function_name_coerce_to_list) function_name_coerce_to_list (parameters (identifier_val) identifier_val )parameters (block (if_statement (identifier_val) identifier_val (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_val) identifier_val (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call )not_operator (block (expression_statement (assignment (identifier_val) identifier_val (list (identifier_val) identifier_val )list )assignment )expression_statement )block )if_statement )block (else_clause (block (expression_statement (assignment (identifier_val) identifier_val (list )list )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_val) identifier_val )return_statement )block )function_definition )module
For parameters that can take either a single string or a list of strings, this function will ensure that the result is a list containing the passed values.
(module (function_definition (function_name_deletegitlabciservice) function_name_deletegitlabciservice (parameters (identifier_self) identifier_self (identifier_project_id) identifier_project_id (identifier_token) identifier_token (identifier_project_url) identifier_project_url )parameters (block (expression_statement (assignment (identifier_request) identifier_request (call (attribute (identifier_requests) identifier_requests (identifier_delete) identifier_delete )attribute (argument_list (call (attribute (string_'{0}/{1}/services/gitlab-ci') string_'{0}/{1}/services/gitlab-ci' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_projects_url) identifier_projects_url )attribute (identifier_project_id) identifier_project_id )argument_list )call (keyword_argument (identifier_headers) identifier_headers (attribute (identifier_self) identifier_self (identifier_headers) identifier_headers )attribute )keyword_argument (keyword_argument (identifier_verify) identifier_verify (attribute (identifier_self) identifier_self (identifier_verify_ssl) identifier_verify_ssl )attribute )keyword_argument (keyword_argument (identifier_auth) identifier_auth (attribute (identifier_self) identifier_self (identifier_auth) identifier_auth )attribute )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (attribute (identifier_self) identifier_self (identifier_timeout) identifier_timeout )attribute )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (comparison_operator (attribute (identifier_request) identifier_request (identifier_status_code) identifier_status_code )attribute (integer_200) integer_200 )comparison_operator )return_statement )block )function_definition )module
Delete GitLab CI service settings :param project_id: Project ID :param token: Token :param project_url: Project URL :return: true if success, false if not
(module (function_definition (function_name__get_socket) function_name__get_socket (parameters (identifier_self) identifier_self (identifier_sid) identifier_sid )parameters (block (try_statement (block (expression_statement (assignment (identifier_s) identifier_s (subscript (attribute (identifier_self) identifier_self (identifier_sockets) identifier_sockets )attribute (identifier_sid) identifier_sid )subscript )assignment )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (raise_statement (call (identifier_KeyError) identifier_KeyError (argument_list (string_'Session not found') string_'Session not found' )argument_list )call )raise_statement )block )except_clause )try_statement (if_statement (attribute (identifier_s) identifier_s (identifier_closed) identifier_closed )attribute (block (delete_statement (subscript (attribute (identifier_self) identifier_self (identifier_sockets) identifier_sockets )attribute (identifier_sid) identifier_sid )subscript )delete_statement (raise_statement (call (identifier_KeyError) identifier_KeyError (argument_list (string_'Session is disconnected') string_'Session is disconnected' )argument_list )call )raise_statement )block )if_statement (return_statement (identifier_s) identifier_s )return_statement )block )function_definition )module
Return the socket object for a given session.
(module (function_definition (function_name_get_class) function_name_get_class (parameters (identifier_classname) identifier_classname )parameters (block (expression_statement (assignment (identifier_parts) identifier_parts (call (attribute (identifier_classname) identifier_classname (identifier_split) identifier_split )attribute (argument_list (string_'.') string_'.' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_module) identifier_module (call (attribute (string_".") string_"." (identifier_join) identifier_join )attribute (argument_list (subscript (identifier_parts) identifier_parts (slice (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_m) identifier_m (call (identifier___import__) identifier___import__ (argument_list (identifier_module) identifier_module )argument_list )call )assignment )expression_statement (for_statement (identifier_comp) identifier_comp (subscript (identifier_parts) identifier_parts (slice (integer_1) integer_1 (colon) colon )slice )subscript (block (expression_statement (assignment (identifier_m) identifier_m (call (identifier_getattr) identifier_getattr (argument_list (identifier_m) identifier_m (identifier_comp) identifier_comp )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_m) identifier_m )return_statement )block )function_definition )module
Returns the class object associated with the dot-notation classname. Taken from here: http://stackoverflow.com/a/452981 :param classname: the classname :type classname: str :return: the class object :rtype: object
(module (function_definition (function_name_from_soup) function_name_from_soup (parameters (identifier_self) identifier_self (identifier_soup) identifier_soup )parameters (block (if_statement (boolean_operator (comparison_operator (identifier_soup) identifier_soup (None) None )comparison_operator (comparison_operator (identifier_soup) identifier_soup (string_'') string_'' )comparison_operator )boolean_operator (block (return_statement (None) None )return_statement )block (else_clause (block (expression_statement (assignment (identifier_author_name) identifier_author_name (conditional_expression (call (attribute (subscript (attribute (call (attribute (identifier_soup) identifier_soup (identifier_find) identifier_find )attribute (argument_list (string_'em') string_'em' )argument_list )call (identifier_contents) identifier_contents )attribute (integer_0) integer_0 )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (call (attribute (identifier_soup) identifier_soup (identifier_find) identifier_find )attribute (argument_list (string_'em') string_'em' )argument_list )call (string_'') string_'' )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_author_image) identifier_author_image (conditional_expression (call (attribute (call (attribute (identifier_soup) identifier_soup (identifier_find) identifier_find )attribute (argument_list (string_'img') string_'img' )argument_list )call (identifier_get) identifier_get )attribute (argument_list (string_'src') string_'src' )argument_list )call (call (attribute (identifier_soup) identifier_soup (identifier_find) identifier_find )attribute (argument_list (string_'img') string_'img' )argument_list )call (string_'') string_'' )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_author_contact) identifier_author_contact (call (attribute (identifier_Contact) identifier_Contact (identifier_from_soup) identifier_from_soup )attribute (argument_list (identifier_self) identifier_self (identifier_soup) identifier_soup )argument_list )call )assignment )expression_statement (return_statement (call (identifier_Author) identifier_Author (argument_list (identifier_author_name) identifier_author_name (identifier_author_image) identifier_author_image (identifier_author_contact) identifier_author_contact )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Factory Pattern. Fetches author data from given soup and builds the object
(module (function_definition (function_name_minimum) function_name_minimum (parameters (identifier_attrs) identifier_attrs (identifier_inputs) identifier_inputs (identifier_proto_obj) identifier_proto_obj )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_inputs) identifier_inputs )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_mxnet_op) identifier_mxnet_op (call (attribute (identifier_symbol) identifier_symbol (identifier_minimum) identifier_minimum )attribute (argument_list (subscript (identifier_inputs) identifier_inputs (integer_0) integer_0 )subscript (subscript (identifier_inputs) identifier_inputs (integer_1) integer_1 )subscript )argument_list )call )assignment )expression_statement (for_statement (identifier_op_input) identifier_op_input (subscript (identifier_inputs) identifier_inputs (slice (integer_2) integer_2 (colon) colon )slice )subscript (block (expression_statement (assignment (identifier_mxnet_op) identifier_mxnet_op (call (attribute (identifier_symbol) identifier_symbol (identifier_minimum) identifier_minimum )attribute (argument_list (identifier_mxnet_op) identifier_mxnet_op (identifier_op_input) identifier_op_input )argument_list )call )assignment )expression_statement )block )for_statement )block (else_clause (block (expression_statement (assignment (identifier_mxnet_op) identifier_mxnet_op (call (attribute (identifier_symbol) identifier_symbol (identifier_minimum) identifier_minimum )attribute (argument_list (subscript (identifier_inputs) identifier_inputs (integer_0) integer_0 )subscript (subscript (identifier_inputs) identifier_inputs (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (return_statement (expression_list (identifier_mxnet_op) identifier_mxnet_op (identifier_attrs) identifier_attrs (identifier_inputs) identifier_inputs )expression_list )return_statement )block )function_definition )module
Elementwise minimum of arrays.
(module (function_definition (function_name_cliques) function_name_cliques (parameters (identifier_self) identifier_self (default_parameter (identifier_reordered) identifier_reordered (True) True )default_parameter )parameters (block (if_statement (identifier_reordered) identifier_reordered (block (return_statement (list_comprehension (call (identifier_list) identifier_list (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_snrowidx) identifier_snrowidx )attribute (slice (subscript (attribute (identifier_self) identifier_self (identifier_sncolptr) identifier_sncolptr )attribute (identifier_k) identifier_k )subscript (colon) colon (subscript (attribute (identifier_self) identifier_self (identifier_sncolptr) identifier_sncolptr )attribute (binary_operator (identifier_k) identifier_k (integer_1) integer_1 )binary_operator )subscript )slice )subscript )argument_list )call (for_in_clause (identifier_k) identifier_k (call (identifier_range) identifier_range (argument_list (attribute (identifier_self) identifier_self (identifier_Nsn) identifier_Nsn )attribute )argument_list )call )for_in_clause )list_comprehension )return_statement )block (else_clause (block (return_statement (list_comprehension (call (identifier_list) identifier_list (argument_list (subscript (attribute (identifier_self) identifier_self (identifier___p) identifier___p )attribute (subscript (attribute (identifier_self) identifier_self (identifier_snrowidx) identifier_snrowidx )attribute (slice (subscript (attribute (identifier_self) identifier_self (identifier_sncolptr) identifier_sncolptr )attribute (identifier_k) identifier_k )subscript (colon) colon (subscript (attribute (identifier_self) identifier_self (identifier_sncolptr) identifier_sncolptr )attribute (binary_operator (identifier_k) identifier_k (integer_1) integer_1 )binary_operator )subscript )slice )subscript )subscript )argument_list )call (for_in_clause (identifier_k) identifier_k (call (identifier_range) identifier_range (argument_list (attribute (identifier_self) identifier_self (identifier_Nsn) identifier_Nsn )attribute )argument_list )call )for_in_clause )list_comprehension )return_statement )block )else_clause )if_statement )block )function_definition )module
Returns a list of cliques
(module (function_definition (function_name_overlap) function_name_overlap (parameters (identifier_listA) identifier_listA (identifier_listB) identifier_listB )parameters (block (if_statement (boolean_operator (parenthesized_expression (comparison_operator (identifier_listA) identifier_listA (None) None )comparison_operator )parenthesized_expression (parenthesized_expression (comparison_operator (identifier_listB) identifier_listB (None) None )comparison_operator )parenthesized_expression )boolean_operator (block (return_statement (list )list )return_statement )block (else_clause (block (return_statement (call (identifier_list) identifier_list (argument_list (binary_operator (call (identifier_set) identifier_set (argument_list (identifier_listA) identifier_listA )argument_list )call (call (identifier_set) identifier_set (argument_list (identifier_listB) identifier_listB )argument_list )call )binary_operator )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Return list of objects shared by listA, listB.
(module (function_definition (function_name_cursor_to_line) function_name_cursor_to_line (parameters (identifier_self) identifier_self (default_parameter (identifier_line) identifier_line (None) None )default_parameter )parameters (block (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier_cursor) identifier_cursor )attribute (identifier_y) identifier_y )attribute (binary_operator (parenthesized_expression (boolean_operator (identifier_line) identifier_line (integer_1) integer_1 )boolean_operator )parenthesized_expression (integer_1) integer_1 )binary_operator )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_mo) identifier_mo (identifier_DECOM) identifier_DECOM )attribute (attribute (identifier_self) identifier_self (identifier_mode) identifier_mode )attribute )comparison_operator (block (expression_statement (augmented_assignment (attribute (attribute (identifier_self) identifier_self (identifier_cursor) identifier_cursor )attribute (identifier_y) identifier_y )attribute (attribute (attribute (identifier_self) identifier_self (identifier_margins) identifier_margins )attribute (identifier_top) identifier_top )attribute )augmented_assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_ensure_vbounds) identifier_ensure_vbounds )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Move cursor to a specific line in the current column. :param int line: line number to move the cursor to.
(module (function_definition (function_name_create_notification_channel) function_name_create_notification_channel (parameters (identifier_self) identifier_self (identifier_callback_url) identifier_callback_url (default_parameter (identifier_calendar_ids) identifier_calendar_ids (tuple )tuple )default_parameter )parameters (block (expression_statement (assignment (identifier_data) identifier_data (dictionary (pair (string_'callback_url') string_'callback_url' (identifier_callback_url) identifier_callback_url )pair )dictionary )assignment )expression_statement (if_statement (identifier_calendar_ids) identifier_calendar_ids (block (expression_statement (assignment (subscript (identifier_data) identifier_data (string_'filters') string_'filters' )subscript (dictionary (pair (string_'calendar_ids') string_'calendar_ids' (identifier_calendar_ids) identifier_calendar_ids )pair )dictionary )assignment )expression_statement )block )if_statement (return_statement (subscript (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_request_handler) identifier_request_handler )attribute (identifier_post) identifier_post )attribute (argument_list (string_'channels') string_'channels' (keyword_argument (identifier_data) identifier_data (identifier_data) identifier_data )keyword_argument )argument_list )call (identifier_json) identifier_json )attribute (argument_list )argument_list )call (string_'channel') string_'channel' )subscript )return_statement )block )function_definition )module
Create a new channel for receiving push notifications. :param string callback_url: The url that will receive push notifications. Must not be longer than 128 characters and should be HTTPS. :param tuple calendar_ids: List of calendar ids to create notification channels for. (Optional. Default empty tuple) :return: Channel id and channel callback :rtype: ``dict``
(module (function_definition (function_name_execute_r) function_name_execute_r (parameters (identifier_prog) identifier_prog (identifier_quiet) identifier_quiet )parameters (block (expression_statement (assignment (identifier_FNULL) identifier_FNULL (conditional_expression (call (identifier_open) identifier_open (argument_list (attribute (identifier_os) identifier_os (identifier_devnull) identifier_devnull )attribute (string_'w') string_'w' )argument_list )call (identifier_quiet) identifier_quiet (None) None )conditional_expression )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_input_proc) identifier_input_proc (call (attribute (identifier_subprocess) identifier_subprocess (identifier_Popen) identifier_Popen )attribute (argument_list (list (string_"echo") string_"echo" (identifier_prog) identifier_prog )list (keyword_argument (identifier_stdout) identifier_stdout (attribute (identifier_subprocess) identifier_subprocess (identifier_PIPE) identifier_PIPE )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_status) identifier_status (call (attribute (identifier_subprocess) identifier_subprocess (identifier_call) identifier_call )attribute (argument_list (string_"R --no-save --quiet") string_"R --no-save --quiet" (keyword_argument (identifier_stdin) identifier_stdin (attribute (identifier_input_proc) identifier_input_proc (identifier_stdout) identifier_stdout )attribute )keyword_argument (keyword_argument (identifier_stdout) identifier_stdout (identifier_FNULL) identifier_FNULL )keyword_argument (keyword_argument (identifier_stderr) identifier_stderr (attribute (identifier_subprocess) identifier_subprocess (identifier_STDOUT) identifier_STDOUT )attribute )keyword_argument (keyword_argument (identifier_shell) identifier_shell (True) True )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_status) identifier_status (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (concatenated_string (string_"ggplot2 bridge failed for program: {}.") string_"ggplot2 bridge failed for program: {}." (string_" Check for an error") string_" Check for an error" )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_prog) identifier_prog )argument_list )call )argument_list )call )raise_statement )block )if_statement )block (finally_clause (block (if_statement (comparison_operator (identifier_FNULL) identifier_FNULL (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_FNULL) identifier_FNULL (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement )block )if_statement )block )finally_clause )try_statement )block )function_definition )module
Run the R code prog an R subprocess @raises ValueError if the subprocess exits with non-zero status
(module (function_definition (function_name_bin_number) function_name_bin_number (parameters (identifier_datapoint) identifier_datapoint (identifier_intervals) identifier_intervals )parameters (block (expression_statement (assignment (identifier_index) identifier_index (call (attribute (identifier_numpy) identifier_numpy (identifier_searchsorted) identifier_searchsorted )attribute (argument_list (identifier_intervals) identifier_intervals (identifier_datapoint) identifier_datapoint )argument_list )call )assignment )expression_statement (return_statement (list_comprehension (conditional_expression (integer_0) integer_0 (comparison_operator (identifier_index) identifier_index (identifier_i) identifier_i )comparison_operator (integer_1) integer_1 )conditional_expression (for_in_clause (identifier_i) identifier_i (call (identifier_range) identifier_range (argument_list (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_intervals) identifier_intervals )argument_list )call (integer_1) integer_1 )binary_operator )argument_list )call )for_in_clause )list_comprehension )return_statement )block )function_definition )module
Given a datapoint and intervals representing bins, returns the number represented in binned form, where the bin including the value is set to 1 and all others are 0.
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (attribute (identifier_self) identifier_self (identifier_configuration_file) identifier_configuration_file )attribute (string_'w') string_'w' )argument_list )call (as_pattern_target (identifier_file_h) identifier_file_h )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_file_h) identifier_file_h (identifier_write) identifier_write )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier__serializer) identifier__serializer )attribute (argument_list (string_'dumps') string_'dumps' (attribute (identifier_self) identifier_self (identifier__storage) identifier__storage )attribute )argument_list )call )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Save the current configuration to disk.
(module (function_definition (function_name_get_intercom_data) function_name_get_intercom_data (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary (pair (string_"user_id") string_"user_id" (attribute (identifier_self) identifier_self (identifier_intercom_id) identifier_intercom_id )attribute )pair (pair (string_"email") string_"email" (attribute (identifier_self) identifier_self (identifier_email) identifier_email )attribute )pair (pair (string_"name") string_"name" (call (attribute (identifier_self) identifier_self (identifier_get_full_name) identifier_get_full_name )attribute (argument_list )argument_list )call )pair (pair (string_"last_request_at") string_"last_request_at" (conditional_expression (call (attribute (attribute (identifier_self) identifier_self (identifier_last_login) identifier_last_login )attribute (identifier_strftime) identifier_strftime )attribute (argument_list (string_"%s") string_"%s" )argument_list )call (attribute (identifier_self) identifier_self (identifier_last_login) identifier_last_login )attribute (string_"") string_"" )conditional_expression )pair (pair (string_"created_at") string_"created_at" (call (attribute (attribute (identifier_self) identifier_self (identifier_date_joined) identifier_date_joined )attribute (identifier_strftime) identifier_strftime )attribute (argument_list (string_"%s") string_"%s" )argument_list )call )pair (pair (string_"custom_attributes") string_"custom_attributes" (dictionary (pair (string_"is_admin") string_"is_admin" (attribute (identifier_self) identifier_self (identifier_is_superuser) identifier_is_superuser )attribute )pair )dictionary )pair )dictionary )return_statement )block )function_definition )module
Specify the user data sent to Intercom API
(module (function_definition (function_name_search_phenotype) function_name_search_phenotype (parameters (identifier_self) identifier_self (default_parameter (identifier_phenotype_association_set_id) identifier_phenotype_association_set_id (None) None )default_parameter (default_parameter (identifier_phenotype_id) identifier_phenotype_id (None) None )default_parameter (default_parameter (identifier_description) identifier_description (None) None )default_parameter (default_parameter (identifier_type_) identifier_type_ (None) None )default_parameter (default_parameter (identifier_age_of_onset) identifier_age_of_onset (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_request) identifier_request (call (attribute (identifier_protocol) identifier_protocol (identifier_SearchPhenotypesRequest) identifier_SearchPhenotypesRequest )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_phenotype_association_set_id) identifier_phenotype_association_set_id )attribute (identifier_phenotype_association_set_id) identifier_phenotype_association_set_id )assignment )expression_statement (if_statement (identifier_phenotype_id) identifier_phenotype_id (block (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_id) identifier_id )attribute (identifier_phenotype_id) identifier_phenotype_id )assignment )expression_statement )block )if_statement (if_statement (identifier_description) identifier_description (block (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_description) identifier_description )attribute (identifier_description) identifier_description )assignment )expression_statement )block )if_statement (if_statement (identifier_type_) identifier_type_ (block (expression_statement (call (attribute (attribute (identifier_request) identifier_request (identifier_type) identifier_type )attribute (identifier_mergeFrom) identifier_mergeFrom )attribute (argument_list (identifier_type_) identifier_type_ )argument_list )call )expression_statement )block )if_statement (if_statement (identifier_age_of_onset) identifier_age_of_onset (block (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_age_of_onset) identifier_age_of_onset )attribute (identifier_age_of_onset) identifier_age_of_onset )assignment )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_page_size) identifier_page_size )attribute (call (attribute (identifier_pb) identifier_pb (identifier_int) identifier_int )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__page_size) identifier__page_size )attribute )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__run_search_request) identifier__run_search_request )attribute (argument_list (identifier_request) identifier_request (string_"phenotypes") string_"phenotypes" (attribute (identifier_protocol) identifier_protocol (identifier_SearchPhenotypesResponse) identifier_SearchPhenotypesResponse )attribute )argument_list )call )return_statement )block )function_definition )module
Returns an iterator over the Phenotypes from the server
(module (function_definition (function_name_texture_map_to_plane) function_name_texture_map_to_plane (parameters (identifier_dataset) identifier_dataset (default_parameter (identifier_origin) identifier_origin (None) None )default_parameter (default_parameter (identifier_point_u) identifier_point_u (None) None )default_parameter (default_parameter (identifier_point_v) identifier_point_v (None) None )default_parameter (default_parameter (identifier_inplace) identifier_inplace (False) False )default_parameter (default_parameter (identifier_name) identifier_name (string_'Texture Coordinates') string_'Texture Coordinates' )default_parameter )parameters (block (expression_statement (assignment (identifier_alg) identifier_alg (call (attribute (identifier_vtk) identifier_vtk (identifier_vtkTextureMapToPlane) identifier_vtkTextureMapToPlane )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (boolean_operator (comparison_operator (identifier_origin) identifier_origin (None) None )comparison_operator (comparison_operator (identifier_point_u) identifier_point_u (None) None )comparison_operator )boolean_operator (comparison_operator (identifier_point_v) identifier_point_v (None) None )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_alg) identifier_alg (identifier_SetAutomaticPlaneGeneration) identifier_SetAutomaticPlaneGeneration )attribute (argument_list (True) True )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_alg) identifier_alg (identifier_SetOrigin) identifier_SetOrigin )attribute (argument_list (identifier_origin) identifier_origin )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_alg) identifier_alg (identifier_SetPoint1) identifier_SetPoint1 )attribute (argument_list (identifier_point_u) identifier_point_u )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_alg) identifier_alg (identifier_SetPoint2) identifier_SetPoint2 )attribute (argument_list (identifier_point_v) identifier_point_v )argument_list )call )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_alg) identifier_alg (identifier_SetInputDataObject) identifier_SetInputDataObject )attribute (argument_list (identifier_dataset) identifier_dataset )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_alg) identifier_alg (identifier_Update) identifier_Update )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_output) identifier_output (call (identifier__get_output) identifier__get_output (argument_list (identifier_alg) identifier_alg )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_inplace) identifier_inplace )not_operator (block (return_statement (identifier_output) identifier_output )return_statement )block )if_statement (expression_statement (assignment (identifier_t_coords) identifier_t_coords (call (attribute (call (attribute (identifier_output) identifier_output (identifier_GetPointData) identifier_GetPointData )attribute (argument_list )argument_list )call (identifier_GetTCoords) identifier_GetTCoords )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_t_coords) identifier_t_coords (identifier_SetName) identifier_SetName )attribute (argument_list (identifier_name) identifier_name )argument_list )call )expression_statement (expression_statement (assignment (identifier_otc) identifier_otc (call (attribute (call (attribute (identifier_dataset) identifier_dataset (identifier_GetPointData) identifier_GetPointData )attribute (argument_list )argument_list )call (identifier_GetTCoords) identifier_GetTCoords )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (call (attribute (identifier_dataset) identifier_dataset (identifier_GetPointData) identifier_GetPointData )attribute (argument_list )argument_list )call (identifier_SetTCoords) identifier_SetTCoords )attribute (argument_list (identifier_t_coords) identifier_t_coords )argument_list )call )expression_statement (expression_statement (call (attribute (call (attribute (identifier_dataset) identifier_dataset (identifier_GetPointData) identifier_GetPointData )attribute (argument_list )argument_list )call (identifier_AddArray) identifier_AddArray )attribute (argument_list (identifier_t_coords) identifier_t_coords )argument_list )call )expression_statement (expression_statement (call (attribute (call (attribute (identifier_dataset) identifier_dataset (identifier_GetPointData) identifier_GetPointData )attribute (argument_list )argument_list )call (identifier_AddArray) identifier_AddArray )attribute (argument_list (identifier_otc) identifier_otc )argument_list )call )expression_statement (return_statement )return_statement )block )function_definition )module
Texture map this dataset to a user defined plane. This is often used to define a plane to texture map an image to this dataset. The plane defines the spatial reference and extent of that image. Parameters ---------- origin : tuple(float) Length 3 iterable of floats defining the XYZ coordinates of the BOTTOM LEFT CORNER of the plane point_u : tuple(float) Length 3 iterable of floats defining the XYZ coordinates of the BOTTOM RIGHT CORNER of the plane point_v : tuple(float) Length 3 iterable of floats defining the XYZ coordinates of the TOP LEFT CORNER of the plane inplace : bool, optional If True, the new texture coordinates will be added to the dataset inplace. If False (default), a new dataset is returned with the textures coordinates name : str, optional The string name to give the new texture coordinates if applying the filter inplace.
(module (function_definition (function_name_construct_parameter_pattern) function_name_construct_parameter_pattern (parameters (identifier_parameter) identifier_parameter )parameters (block (expression_statement (assignment (identifier_name) identifier_name (subscript (identifier_parameter) identifier_parameter (string_'name') string_'name' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_type) identifier_type (subscript (identifier_parameter) identifier_parameter (string_'type') string_'type' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_repeated) identifier_repeated (string_'[^/]') string_'[^/]' )assignment )expression_statement (if_statement (comparison_operator (identifier_type) identifier_type (string_'integer') string_'integer' )comparison_operator (block (expression_statement (assignment (identifier_repeated) identifier_repeated (string_'\d') string_'\d' )assignment )expression_statement )block )if_statement (return_statement (call (attribute (string_"(?P<{name}>{repeated}+)") string_"(?P<{name}>{repeated}+)" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument (keyword_argument (identifier_repeated) identifier_repeated (identifier_repeated) identifier_repeated )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Given a parameter definition returns a regex pattern that will match that part of the path.
(module (function_definition (function_name_moothedata) function_name_moothedata (parameters (identifier_data) identifier_data (default_parameter (identifier_key) identifier_key (None) None )default_parameter )parameters (block (if_statement (not_operator (identifier_key) identifier_key )not_operator (block (expression_statement (assignment (identifier_key) identifier_key (call (identifier_choice) identifier_choice (argument_list (call (identifier_list) identifier_list (argument_list (call (attribute (identifier_data) identifier_data (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"Using randomly chosen key: %s") string_"Using randomly chosen key: %s" (identifier_key) identifier_key )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_msg) identifier_msg (call (attribute (call (attribute (identifier_cow) identifier_cow (identifier_Moose) identifier_Moose )attribute (argument_list )argument_list )call (identifier_milk) identifier_milk )attribute (argument_list (call (attribute (string_"{0}: {1}") string_"{0}: {1}" (identifier_format) identifier_format )attribute (argument_list (call (attribute (identifier_key) identifier_key (identifier_capitalize) identifier_capitalize )attribute (argument_list )argument_list )call (subscript (identifier_data) identifier_data (identifier_key) identifier_key )subscript )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_msg) identifier_msg )return_statement )block )function_definition )module
Return an amusing picture containing an item from a dict. Parameters ---------- data: mapping A mapping, such as a raster dataset's ``meta`` or ``profile`` property. key: A key of the ``data`` mapping.
(module (function_definition (function_name_get_logging_tensor_hook) function_name_get_logging_tensor_hook (parameters (default_parameter (identifier_every_n_iter) identifier_every_n_iter (integer_100) integer_100 )default_parameter (default_parameter (identifier_tensors_to_log) identifier_tensors_to_log (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (identifier_tensors_to_log) identifier_tensors_to_log (None) None )comparison_operator (block (expression_statement (assignment (identifier_tensors_to_log) identifier_tensors_to_log (identifier__TENSORS_TO_LOG) identifier__TENSORS_TO_LOG )assignment )expression_statement )block )if_statement (return_statement (call (attribute (attribute (identifier_tf) identifier_tf (identifier_train) identifier_train )attribute (identifier_LoggingTensorHook) identifier_LoggingTensorHook )attribute (argument_list (keyword_argument (identifier_tensors) identifier_tensors (identifier_tensors_to_log) identifier_tensors_to_log )keyword_argument (keyword_argument (identifier_every_n_iter) identifier_every_n_iter (identifier_every_n_iter) identifier_every_n_iter )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Function to get LoggingTensorHook. Args: every_n_iter: `int`, print the values of `tensors` once every N local steps taken on the current worker. tensors_to_log: List of tensor names or dictionary mapping labels to tensor names. If not set, log _TENSORS_TO_LOG by default. **kwargs: a dictionary of arguments to LoggingTensorHook. Returns: Returns a LoggingTensorHook with a standard set of tensors that will be printed to stdout.
(module (function_definition (function_name_textContent) function_name_textContent (parameters (identifier_self) identifier_self (typed_parameter (identifier_text) identifier_text (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (None) None )type (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__set_text_content) identifier__set_text_content )attribute (argument_list (identifier_text) identifier_text )argument_list )call )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier_connected) identifier_connected )attribute (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__set_text_content_web) identifier__set_text_content_web )attribute (argument_list (identifier_text) identifier_text )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Set textContent both on this node and related browser node.
(module (function_definition (function_name_update_module_file) function_name_update_module_file (parameters (identifier_redbaron_tree) identifier_redbaron_tree (identifier_module_path) identifier_module_path (default_parameter (identifier_show_diff) identifier_show_diff (False) False )default_parameter (default_parameter (identifier_dry_run) identifier_dry_run (False) False )default_parameter )parameters (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_tempfile) identifier_tempfile (identifier_NamedTemporaryFile) identifier_NamedTemporaryFile )attribute (argument_list )argument_list )call (as_pattern_target (identifier_tmp_file) identifier_tmp_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_tmp_file) identifier_tmp_file (identifier_write) identifier_write )attribute (argument_list (call (identifier_redbaron_tree_to_module_str) identifier_redbaron_tree_to_module_str (argument_list (identifier_redbaron_tree) identifier_redbaron_tree )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_tmp_file) identifier_tmp_file (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (if_statement (call (identifier_are_files_equal) identifier_are_files_equal (argument_list (identifier_module_path) identifier_module_path (attribute (identifier_tmp_file) identifier_tmp_file (identifier_name) identifier_name )attribute )argument_list )call (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (string_'Source unchanged') string_'Source unchanged' )argument_list )call )expression_statement (return_statement (False) False )return_statement )block )if_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (string_'Source modified') string_'Source modified' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_tmp_file) identifier_tmp_file (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (call (identifier_diff_update_file) identifier_diff_update_file (argument_list (identifier_module_path) identifier_module_path (call (attribute (identifier_tmp_file) identifier_tmp_file (identifier_read) identifier_read )attribute (argument_list )argument_list )call (identifier_show_diff) identifier_show_diff (identifier_dry_run) identifier_dry_run )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Set show_diff to False to overwrite module_path with a new file generated from ``redbaron_tree``. Returns True if tree is different from source.
(module (function_definition (function_name_intervals_to_samples) function_name_intervals_to_samples (parameters (identifier_intervals) identifier_intervals (identifier_labels) identifier_labels (default_parameter (identifier_offset) identifier_offset (integer_0) integer_0 )default_parameter (default_parameter (identifier_sample_size) identifier_sample_size (float_0.1) float_0.1 )default_parameter (default_parameter (identifier_fill_value) identifier_fill_value (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_num_samples) identifier_num_samples (call (identifier_int) identifier_int (argument_list (call (attribute (identifier_np) identifier_np (identifier_floor) identifier_floor )attribute (argument_list (binary_operator (call (attribute (identifier_intervals) identifier_intervals (identifier_max) identifier_max )attribute (argument_list )argument_list )call (identifier_sample_size) identifier_sample_size )binary_operator )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_sample_indices) identifier_sample_indices (call (attribute (identifier_np) identifier_np (identifier_arange) identifier_arange )attribute (argument_list (identifier_num_samples) identifier_num_samples (keyword_argument (identifier_dtype) identifier_dtype (attribute (identifier_np) identifier_np (identifier_float32) identifier_float32 )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_sample_times) identifier_sample_times (call (attribute (parenthesized_expression (binary_operator (binary_operator (identifier_sample_indices) identifier_sample_indices (identifier_sample_size) identifier_sample_size )binary_operator (identifier_offset) identifier_offset )binary_operator )parenthesized_expression (identifier_tolist) identifier_tolist )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_sampled_labels) identifier_sampled_labels (call (identifier_interpolate_intervals) identifier_interpolate_intervals (argument_list (identifier_intervals) identifier_intervals (identifier_labels) identifier_labels (identifier_sample_times) identifier_sample_times (identifier_fill_value) identifier_fill_value )argument_list )call )assignment )expression_statement (return_statement (expression_list (identifier_sample_times) identifier_sample_times (identifier_sampled_labels) identifier_sampled_labels )expression_list )return_statement )block )function_definition )module
Convert an array of labeled time intervals to annotated samples. Parameters ---------- intervals : np.ndarray, shape=(n, d) An array of time intervals, as returned by :func:`mir_eval.io.load_intervals()` or :func:`mir_eval.io.load_labeled_intervals()`. The ``i`` th interval spans time ``intervals[i, 0]`` to ``intervals[i, 1]``. labels : list, shape=(n,) The annotation for each interval offset : float > 0 Phase offset of the sampled time grid (in seconds) (Default value = 0) sample_size : float > 0 duration of each sample to be generated (in seconds) (Default value = 0.1) fill_value : type(labels[0]) Object to use for the label with out-of-range time points. (Default value = None) Returns ------- sample_times : list list of sample times sample_labels : list array of labels for each generated sample Notes ----- Intervals will be rounded down to the nearest multiple of ``sample_size``.
(module (function_definition (function_name_option) function_name_option (parameters (identifier_self) identifier_self (identifier_opt) identifier_opt )parameters (block (if_statement (comparison_operator (string_'config.merge') string_'config.merge' (attribute (identifier_self) identifier_self (identifier_functions) identifier_functions )attribute )comparison_operator (block (return_statement (call (subscript (attribute (identifier_self) identifier_self (identifier_functions) identifier_functions )attribute (string_'config.merge') string_'config.merge' )subscript (argument_list (identifier_opt) identifier_opt (dictionary )dictionary (keyword_argument (identifier_omit_master) identifier_omit_master (True) True )keyword_argument )argument_list )call )return_statement )block )if_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_opt) identifier_opt (dictionary )dictionary )argument_list )call )return_statement )block )function_definition )module
Return options merged from config and pillar
(module (function_definition (function_name_extensionResponse) function_name_extensionResponse (parameters (identifier_self) identifier_self (identifier_namespace_uri) identifier_namespace_uri (identifier_require_signed) identifier_require_signed )parameters (block (if_statement (identifier_require_signed) identifier_require_signed (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_getSignedNS) identifier_getSignedNS )attribute (argument_list (identifier_namespace_uri) identifier_namespace_uri )argument_list )call )return_statement )block (else_clause (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_message) identifier_message )attribute (identifier_getArgs) identifier_getArgs )attribute (argument_list (identifier_namespace_uri) identifier_namespace_uri )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Return response arguments in the specified namespace. @param namespace_uri: The namespace URI of the arguments to be returned. @param require_signed: True if the arguments should be among those signed in the response, False if you don't care. If require_signed is True and the arguments are not signed, return None.
(module (function_definition (function_name__render_with_context) function_name__render_with_context (parameters (identifier_self) identifier_self (identifier_parsed_node) identifier_parsed_node (identifier_config) identifier_config )parameters (block (expression_statement (assignment (identifier_context) identifier_context (call (attribute (attribute (attribute (identifier_dbt) identifier_dbt (identifier_context) identifier_context )attribute (identifier_parser) identifier_parser )attribute (identifier_generate) identifier_generate )attribute (argument_list (identifier_parsed_node) identifier_parsed_node (attribute (identifier_self) identifier_self (identifier_root_project_config) identifier_root_project_config )attribute (attribute (identifier_self) identifier_self (identifier_macro_manifest) identifier_macro_manifest )attribute (identifier_config) identifier_config )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_dbt) identifier_dbt (identifier_clients) identifier_clients )attribute (identifier_jinja) identifier_jinja )attribute (identifier_get_rendered) identifier_get_rendered )attribute (argument_list (attribute (identifier_parsed_node) identifier_parsed_node (identifier_raw_sql) identifier_raw_sql )attribute (identifier_context) identifier_context (call (attribute (identifier_parsed_node) identifier_parsed_node (identifier_to_shallow_dict) identifier_to_shallow_dict )attribute (argument_list )argument_list )call (keyword_argument (identifier_capture_macros) identifier_capture_macros (True) True )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Given the parsed node and a SourceConfig to use during parsing, render the node's sql wtih macro capture enabled. Note: this mutates the config object when config() calls are rendered.
(module (function_definition (function_name_submit) function_name_submit (parameters (identifier_cls) identifier_cls (identifier_job_config) identifier_job_config (default_parameter (identifier_in_xg_transaction) identifier_in_xg_transaction (False) False )default_parameter )parameters (block (expression_statement (call (attribute (identifier_cls) identifier_cls (identifier___validate_job_config) identifier___validate_job_config )attribute (argument_list (identifier_job_config) identifier_job_config )argument_list )call )expression_statement (expression_statement (assignment (identifier_mapper_spec) identifier_mapper_spec (call (attribute (identifier_job_config) identifier_job_config (identifier__get_mapper_spec) identifier__get_mapper_spec )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_mapreduce_params) identifier_mapreduce_params (call (attribute (identifier_job_config) identifier_job_config (identifier__get_mr_params) identifier__get_mr_params )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_mapreduce_spec) identifier_mapreduce_spec (call (attribute (identifier_model) identifier_model (identifier_MapreduceSpec) identifier_MapreduceSpec )attribute (argument_list (attribute (identifier_job_config) identifier_job_config (identifier_job_name) identifier_job_name )attribute (attribute (identifier_job_config) identifier_job_config (identifier_job_id) identifier_job_id )attribute (call (attribute (identifier_mapper_spec) identifier_mapper_spec (identifier_to_json) identifier_to_json )attribute (argument_list )argument_list )call (identifier_mapreduce_params) identifier_mapreduce_params (call (attribute (identifier_util) identifier_util (identifier__obj_to_path) identifier__obj_to_path )attribute (argument_list (attribute (identifier_job_config) identifier_job_config (identifier__hooks_cls) identifier__hooks_cls )attribute )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (identifier_in_xg_transaction) identifier_in_xg_transaction (block (expression_statement (assignment (identifier_propagation) identifier_propagation (attribute (identifier_db) identifier_db (identifier_MANDATORY) identifier_MANDATORY )attribute )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_propagation) identifier_propagation (attribute (identifier_db) identifier_db (identifier_INDEPENDENT) identifier_INDEPENDENT )attribute )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_state) identifier_state (None) None )assignment )expression_statement (decorated_definition (decorator (call (attribute (identifier_db) identifier_db (identifier_transactional) identifier_transactional )attribute (argument_list (keyword_argument (identifier_propagation) identifier_propagation (identifier_propagation) identifier_propagation )keyword_argument )argument_list )call )decorator (function_definition (function_name__txn) function_name__txn (parameters )parameters (block (expression_statement (assignment (identifier_state) identifier_state (call (attribute (identifier_cls) identifier_cls (identifier___create_and_save_state) identifier___create_and_save_state )attribute (argument_list (identifier_job_config) identifier_job_config (identifier_mapreduce_spec) identifier_mapreduce_spec )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_cls) identifier_cls (identifier___add_kickoff_task) identifier___add_kickoff_task )attribute (argument_list (identifier_job_config) identifier_job_config (identifier_mapreduce_spec) identifier_mapreduce_spec )argument_list )call )expression_statement (return_statement (identifier_state) identifier_state )return_statement )block )function_definition )decorated_definition (expression_statement (assignment (identifier_state) identifier_state (call (identifier__txn) identifier__txn (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (identifier_cls) identifier_cls (argument_list (identifier_state) identifier_state )argument_list )call )return_statement )block )function_definition )module
Submit the job to run. Args: job_config: an instance of map_job.MapJobConfig. in_xg_transaction: controls what transaction scope to use to start this MR job. If True, there has to be an already opened cross-group transaction scope. MR will use one entity group from it. If False, MR will create an independent transaction to start the job regardless of any existing transaction scopes. Returns: a Job instance representing the submitted job.
(module (function_definition (function_name_reverse_reference) function_name_reverse_reference (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_ref_start) identifier_ref_start )attribute (binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_ref_length) identifier_ref_length )attribute (attribute (identifier_self) identifier_self (identifier_ref_start) identifier_ref_start )attribute )binary_operator (integer_1) integer_1 )binary_operator )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_ref_end) identifier_ref_end )attribute (binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_ref_length) identifier_ref_length )attribute (attribute (identifier_self) identifier_self (identifier_ref_end) identifier_ref_end )attribute )binary_operator (integer_1) integer_1 )binary_operator )assignment )expression_statement )block )function_definition )module
Changes the coordinates as if the reference sequence has been reverse complemented
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_name) identifier_name (default_parameter (identifier_arcname) identifier_arcname (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (identifier_name) identifier_name )argument_list )call (block (expression_statement (assignment (identifier_exclusions) identifier_exclusions (call (identifier_get_exclusions) identifier_get_exclusions (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (if_statement (identifier_exclusions) identifier_exclusions (block (expression_statement (assignment (identifier_target_prefix) identifier_target_prefix (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (boolean_operator (identifier_arcname) identifier_arcname (identifier_name) identifier_name )boolean_operator )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_kwargs) identifier_kwargs (identifier_setdefault) identifier_setdefault )attribute (argument_list (string_'filter') string_'filter' (call (identifier_get_filter_func) identifier_get_filter_func (argument_list (identifier_exclusions) identifier_exclusions (identifier_target_prefix) identifier_target_prefix )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_tarfile) identifier_tarfile )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_name) identifier_name (keyword_argument (identifier_arcname) identifier_arcname (identifier_arcname) identifier_arcname )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )expression_statement )block )function_definition )module
Add a file or directory to the context tarball. :param name: File or directory path. :type name: unicode | str :param args: Additional args for :meth:`tarfile.TarFile.add`. :param kwargs: Additional kwargs for :meth:`tarfile.TarFile.add`.
(module (function_definition (function_name_CallMethod) function_name_CallMethod (parameters (identifier_self) identifier_self (identifier_method) identifier_method (identifier_controller) identifier_controller (identifier_request) identifier_request (identifier_response_class) identifier_response_class (identifier_done) identifier_done )parameters (block (try_statement (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_validate_request) identifier_validate_request )attribute (argument_list (identifier_request) identifier_request )argument_list )call )expression_statement (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_sock) identifier_sock )attribute )not_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_get_connection) identifier_get_connection )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_host) identifier_host )attribute (attribute (identifier_self) identifier_self (identifier_port) identifier_port )attribute )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_send_rpc_message) identifier_send_rpc_message )attribute (argument_list (identifier_method) identifier_method (identifier_request) identifier_request )argument_list )call )expression_statement (expression_statement (assignment (identifier_byte_stream) identifier_byte_stream (call (attribute (identifier_self) identifier_self (identifier_recv_rpc_message) identifier_recv_rpc_message )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_parse_response) identifier_parse_response )attribute (argument_list (identifier_byte_stream) identifier_byte_stream (identifier_response_class) identifier_response_class )argument_list )call )return_statement )block (except_clause (identifier_RequestError) identifier_RequestError (block (raise_statement )raise_statement )block )except_clause (except_clause (identifier_Exception) identifier_Exception (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_close_socket) identifier_close_socket )attribute (argument_list )argument_list )call )expression_statement (raise_statement )raise_statement )block )except_clause )try_statement )block )function_definition )module
Call the RPC method. The naming doesn't confirm PEP8, since it's a method called by protobuf
(module (function_definition (function_name_apply_to) function_name_apply_to (parameters (identifier_self) identifier_self (identifier_A) identifier_A )parameters (block (if_statement (comparison_operator (attribute (identifier_A) identifier_A (identifier_ndim) identifier_ndim )attribute (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_A) identifier_A (call (attribute (identifier_np) identifier_np (identifier_expand_dims) identifier_expand_dims )attribute (argument_list (identifier_A) identifier_A (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_rows) identifier_rows (identifier_cols) identifier_cols )pattern_list (attribute (identifier_A) identifier_A (identifier_shape) identifier_shape )attribute )assignment )expression_statement (expression_statement (assignment (identifier_A_new) identifier_A_new (call (attribute (identifier_np) identifier_np (identifier_hstack) identifier_hstack )attribute (argument_list (list (identifier_A) identifier_A (call (attribute (identifier_np) identifier_np (identifier_ones) identifier_ones )attribute (argument_list (tuple (identifier_rows) identifier_rows (integer_1) integer_1 )tuple )argument_list )call )list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_A_new) identifier_A_new (call (attribute (identifier_np) identifier_np (identifier_transpose) identifier_transpose )attribute (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_T) identifier_T )attribute (identifier_dot) identifier_dot )attribute (argument_list (call (attribute (identifier_np) identifier_np (identifier_transpose) identifier_transpose )attribute (argument_list (identifier_A_new) identifier_A_new )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (subscript (identifier_A_new) identifier_A_new (slice (colon) colon )slice (slice (integer_0) integer_0 (colon) colon (identifier_cols) identifier_cols )slice )subscript )return_statement )block )function_definition )module
Apply the coordinate transformation to points in A.
(module (function_definition (function_name_unlock_area) function_name_unlock_area (parameters (identifier_self) identifier_self (identifier_code) identifier_code (identifier_index) identifier_index )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (binary_operator (string_"unlocking area code %s index %s") string_"unlocking area code %s index %s" (tuple (identifier_code) identifier_code (identifier_index) identifier_index )tuple )binary_operator )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_library) identifier_library )attribute (identifier_Srv_UnlockArea) identifier_Srv_UnlockArea )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_pointer) identifier_pointer )attribute (identifier_code) identifier_code (identifier_index) identifier_index )argument_list )call )return_statement )block )function_definition )module
Unlocks a previously locked shared memory area.
(module (function_definition (function_name_get_authors) function_name_get_authors (parameters (identifier_repo_path) identifier_repo_path (identifier_from_commit) identifier_from_commit )parameters (block (expression_statement (assignment (identifier_repo) identifier_repo (call (attribute (attribute (identifier_dulwich) identifier_dulwich (identifier_repo) identifier_repo )attribute (identifier_Repo) identifier_Repo )attribute (argument_list (identifier_repo_path) identifier_repo_path )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_refs) identifier_refs (call (identifier_get_refs) identifier_get_refs (argument_list (identifier_repo) identifier_repo )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_start_including) identifier_start_including (False) False )assignment )expression_statement (expression_statement (assignment (identifier_authors) identifier_authors (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_from_commit) identifier_from_commit (None) None )comparison_operator (block (expression_statement (assignment (identifier_start_including) identifier_start_including (True) True )assignment )expression_statement )block )if_statement (for_statement (pattern_list (identifier_commit_sha) identifier_commit_sha (identifier_children) identifier_children )pattern_list (call (identifier_reversed) identifier_reversed (argument_list (call (attribute (call (identifier_get_children_per_first_parent) identifier_get_children_per_first_parent (argument_list (identifier_repo_path) identifier_repo_path )argument_list )call (identifier_items) identifier_items )attribute (argument_list )argument_list )call )argument_list )call (block (expression_statement (assignment (identifier_commit) identifier_commit (call (identifier_get_repo_object) identifier_get_repo_object (argument_list (identifier_repo) identifier_repo (identifier_commit_sha) identifier_commit_sha )argument_list )call )assignment )expression_statement (if_statement (parenthesized_expression (boolean_operator (boolean_operator (identifier_start_including) identifier_start_including (call (attribute (identifier_commit_sha) identifier_commit_sha (identifier_startswith) identifier_startswith )attribute (argument_list (identifier_from_commit) identifier_from_commit )argument_list )call )boolean_operator (call (identifier_fuzzy_matches_refs) identifier_fuzzy_matches_refs (argument_list (identifier_from_commit) identifier_from_commit (call (attribute (identifier_refs) identifier_refs (identifier_get) identifier_get )attribute (argument_list (identifier_commit_sha) identifier_commit_sha (list )list )argument_list )call )argument_list )call )boolean_operator )parenthesized_expression (block (expression_statement (call (attribute (identifier_authors) identifier_authors (identifier_add) identifier_add )attribute (argument_list (call (attribute (attribute (identifier_commit) identifier_commit (identifier_author) identifier_author )attribute (identifier_decode) identifier_decode )attribute (argument_list )argument_list )call )argument_list )call )expression_statement (for_statement (identifier_child) identifier_child (identifier_children) identifier_children (block (expression_statement (call (attribute (identifier_authors) identifier_authors (identifier_add) identifier_add )attribute (argument_list (call (attribute (attribute (identifier_child) identifier_child (identifier_author) identifier_author )attribute (identifier_decode) identifier_decode )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (identifier_start_including) identifier_start_including (True) True )assignment )expression_statement )block )if_statement )block )for_statement (return_statement (call (attribute (string_'\n') string_'\n' (identifier_join) identifier_join )attribute (argument_list (call (identifier_sorted) identifier_sorted (argument_list (identifier_authors) identifier_authors )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Given a repo and optionally a base revision to start from, will return the list of authors.
(module (function_definition (function_name_identify) function_name_identify (parameters (identifier_self) identifier_self (typed_default_parameter (identifier_duration_s) identifier_duration_s (type (identifier_int) identifier_int )type (integer_5) integer_5 )typed_default_parameter )parameters (block (expression_statement (assignment (identifier_count) identifier_count (binary_operator (identifier_duration_s) identifier_duration_s (integer_4) integer_4 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_on) identifier_on (False) False )assignment )expression_statement (for_statement (identifier_sec) identifier_sec (call (identifier_range) identifier_range (argument_list (identifier_count) identifier_count )argument_list )call (block (expression_statement (assignment (identifier_then) identifier_then (call (attribute (attribute (identifier_self) identifier_self (identifier__loop) identifier__loop )attribute (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_set_lights) identifier_set_lights )attribute (argument_list (keyword_argument (identifier_button) identifier_button (identifier_on) identifier_on )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_on) identifier_on (not_operator (identifier_on) identifier_on )not_operator )assignment )expression_statement (expression_statement (assignment (identifier_now) identifier_now (call (attribute (attribute (identifier_self) identifier_self (identifier__loop) identifier__loop )attribute (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (await (call (attribute (identifier_asyncio) identifier_asyncio (identifier_sleep) identifier_sleep )attribute (argument_list (call (identifier_max) identifier_max (argument_list (integer_0) integer_0 (binary_operator (float_0.25) float_0.25 (parenthesized_expression (binary_operator (identifier_now) identifier_now (identifier_then) identifier_then )binary_operator )parenthesized_expression )binary_operator )argument_list )call )argument_list )call )await )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_set_lights) identifier_set_lights )attribute (argument_list (keyword_argument (identifier_button) identifier_button (True) True )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Blink the button light to identify the robot. :param int duration_s: The duration to blink for, in seconds.
(module (function_definition (function_name__needs_base64_encoding) function_name__needs_base64_encoding (parameters (identifier_self) identifier_self (identifier_attr_type) identifier_attr_type (identifier_attr_value) identifier_attr_value )parameters (block (return_statement (boolean_operator (boolean_operator (comparison_operator (call (attribute (identifier_attr_type) identifier_attr_type (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (attribute (identifier_self) identifier_self (identifier__base64_attrs) identifier__base64_attrs )attribute )comparison_operator (line_continuation_\) line_continuation_\ (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_attr_value) identifier_attr_value (identifier_bytes) identifier_bytes )argument_list )call )boolean_operator (line_continuation_\) line_continuation_\ (comparison_operator (call (attribute (identifier_UNSAFE_STRING_RE) identifier_UNSAFE_STRING_RE (identifier_search) identifier_search )attribute (argument_list (identifier_attr_value) identifier_attr_value )argument_list )call (None) None )comparison_operator )boolean_operator )return_statement )block )function_definition )module
Return True if attr_value has to be base-64 encoded. This is the case because of special chars or because attr_type is in self._base64_attrs
(module (function_definition (function_name_zeroed_observation) function_name_zeroed_observation (parameters (identifier_observation) identifier_observation )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_observation) identifier_observation (string_'shape') string_'shape' )argument_list )call (block (return_statement (call (attribute (identifier_np) identifier_np (identifier_zeros) identifier_zeros )attribute (argument_list (attribute (identifier_observation) identifier_observation (identifier_shape) identifier_shape )attribute )argument_list )call )return_statement )block (elif_clause (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_observation) identifier_observation (string_'__iter__') string_'__iter__' )argument_list )call (block (expression_statement (assignment (identifier_out) identifier_out (list )list )assignment )expression_statement (for_statement (identifier_x) identifier_x (identifier_observation) identifier_observation (block (expression_statement (call (attribute (identifier_out) identifier_out (identifier_append) identifier_append )attribute (argument_list (call (identifier_zeroed_observation) identifier_zeroed_observation (argument_list (identifier_x) identifier_x )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_out) identifier_out )return_statement )block )elif_clause (else_clause (block (return_statement (float_0.) float_0. )return_statement )block )else_clause )if_statement )block )function_definition )module
Return an array of zeros with same shape as given observation # Argument observation (list): List of observation # Return A np.ndarray of zeros with observation.shape
(module (function_definition (function_name_EXTRA_LOGGING) function_name_EXTRA_LOGGING (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_input_text) identifier_input_text (call (identifier_get) identifier_get (argument_list (string_'EXTRA_LOGGING') string_'EXTRA_LOGGING' (string_'') string_'' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_modules) identifier_modules (call (attribute (identifier_input_text) identifier_input_text (identifier_split) identifier_split )attribute (argument_list (string_',') string_',' )argument_list )call )assignment )expression_statement (if_statement (identifier_input_text) identifier_input_text (block (expression_statement (assignment (identifier_modules) identifier_modules (call (attribute (identifier_input_text) identifier_input_text (identifier_split) identifier_split )attribute (argument_list (string_',') string_',' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_modules) identifier_modules (list_comprehension (call (attribute (identifier_x) identifier_x (identifier_split) identifier_split )attribute (argument_list (string_':') string_':' )argument_list )call (for_in_clause (identifier_x) identifier_x (identifier_modules) identifier_modules )for_in_clause )list_comprehension )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_modules) identifier_modules (list )list )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_modules) identifier_modules )return_statement )block )function_definition )module
lista modulos con los distintos niveles a logear y su nivel de debug Por ejemplo: [Logs] EXTRA_LOGGING = oscar.paypal:DEBUG, django.db:INFO
(module (function_definition (function_name__add_single_session_to_to_ordered_dict) function_name__add_single_session_to_to_ordered_dict (parameters (identifier_self) identifier_self (identifier_d) identifier_d (identifier_dataset_index) identifier_dataset_index (identifier_recommended_only) identifier_recommended_only )parameters (block (for_statement (pattern_list (identifier_model_index) identifier_model_index (identifier_model) identifier_model )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (attribute (identifier_self) identifier_self (identifier_models) identifier_models )attribute )argument_list )call (block (expression_statement (assignment (identifier_show_null) identifier_show_null (False) False )assignment )expression_statement (if_statement (identifier_recommended_only) identifier_recommended_only (block (if_statement (attribute (identifier_self) identifier_self (identifier_recommendation_enabled) identifier_recommendation_enabled )attribute (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_recommended_model) identifier_recommended_model )attribute (None) None )comparison_operator (block (if_statement (comparison_operator (identifier_model_index) identifier_model_index (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_show_null) identifier_show_null (True) True )assignment )expression_statement )block (else_clause (block (continue_statement )continue_statement )block )else_clause )if_statement )block (elif_clause (comparison_operator (attribute (identifier_self) identifier_self (identifier_recommended_model) identifier_recommended_model )attribute (identifier_model) identifier_model )comparison_operator (block (pass_statement )pass_statement )block )elif_clause (else_clause (block (continue_statement )continue_statement )block )else_clause )if_statement )block (else_clause (block (if_statement (comparison_operator (identifier_model_index) identifier_model_index (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_show_null) identifier_show_null (True) True )assignment )expression_statement )block (else_clause (block (continue_statement )continue_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )if_statement (expression_statement (call (attribute (subscript (identifier_d) identifier_d (string_"dataset_index") string_"dataset_index" )subscript (identifier_append) identifier_append )attribute (argument_list (identifier_dataset_index) identifier_dataset_index )argument_list )call )expression_statement (expression_statement (call (attribute (subscript (identifier_d) identifier_d (string_"doses_dropped") string_"doses_dropped" )subscript (identifier_append) identifier_append )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_doses_dropped) identifier_doses_dropped )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_model) identifier_model (identifier__to_df) identifier__to_df )attribute (argument_list (identifier_d) identifier_d (identifier_model_index) identifier_model_index (identifier_show_null) identifier_show_null )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Save a single session to an ordered dictionary.
(module (function_definition (function_name_merge) function_name_merge (parameters (identifier_file) identifier_file (identifier_feature_layers) identifier_feature_layers )parameters (block (expression_statement (assignment (identifier_tile) identifier_tile (call (identifier_VectorTile) identifier_VectorTile (argument_list (identifier_extents) identifier_extents )argument_list )call )assignment )expression_statement (for_statement (identifier_layer) identifier_layer (identifier_feature_layers) identifier_feature_layers (block (expression_statement (call (attribute (identifier_tile) identifier_tile (identifier_addFeatures) identifier_addFeatures )attribute (argument_list (subscript (identifier_layer) identifier_layer (string_'features') string_'features' )subscript (subscript (identifier_layer) identifier_layer (string_'name') string_'name' )subscript )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_tile) identifier_tile (identifier_complete) identifier_complete )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (attribute (attribute (identifier_tile) identifier_tile (identifier_out) identifier_out )attribute (identifier_SerializeToString) identifier_SerializeToString )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_file) identifier_file (identifier_write) identifier_write )attribute (argument_list (call (attribute (identifier_struct) identifier_struct (identifier_pack) identifier_pack )attribute (argument_list (string_">I") string_">I" (call (identifier_len) identifier_len (argument_list (identifier_data) identifier_data )argument_list )call )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_file) identifier_file (identifier_write) identifier_write )attribute (argument_list (identifier_data) identifier_data )argument_list )call )expression_statement )block )function_definition )module
Retrieve a list of OSciMap4 tile responses and merge them into one. get_tiles() retrieves data and performs basic integrity checks.
(module (function_definition (function_name_format_name) function_name_format_name (parameters (identifier_subject) identifier_subject )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_subject) identifier_subject (attribute (identifier_x509) identifier_x509 (identifier_Name) identifier_Name )attribute )argument_list )call (block (expression_statement (assignment (identifier_subject) identifier_subject (list_comprehension (tuple (subscript (identifier_OID_NAME_MAPPINGS) identifier_OID_NAME_MAPPINGS (attribute (identifier_s) identifier_s (identifier_oid) identifier_oid )attribute )subscript (attribute (identifier_s) identifier_s (identifier_value) identifier_value )attribute )tuple (for_in_clause (identifier_s) identifier_s (identifier_subject) identifier_subject )for_in_clause )list_comprehension )assignment )expression_statement )block )if_statement (return_statement (binary_operator (string_'/%s') string_'/%s' (parenthesized_expression (call (attribute (string_'/') string_'/' (identifier_join) identifier_join )attribute (argument_list (list_comprehension (binary_operator (string_'%s=%s') string_'%s=%s' (tuple (call (identifier_force_text) identifier_force_text (argument_list (identifier_k) identifier_k )argument_list )call (call (identifier_force_text) identifier_force_text (argument_list (identifier_v) identifier_v )argument_list )call )tuple )binary_operator (for_in_clause (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (identifier_subject) identifier_subject )for_in_clause )list_comprehension )argument_list )call )parenthesized_expression )binary_operator )return_statement )block )function_definition )module
Convert a subject into the canonical form for distinguished names. This function does not take care of sorting the subject in any meaningful order. Examples:: >>> format_name([('CN', 'example.com'), ]) '/CN=example.com' >>> format_name([('CN', 'example.com'), ('O', "My Organization"), ]) '/CN=example.com/O=My Organization'
(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 (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_textImage) identifier_textImage )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block )function_definition )module
Draws the current text in the window
(module (function_definition (function_name__parse_args) function_name__parse_args (parameters (identifier_func) identifier_func (identifier_variables) identifier_variables (default_parameter (identifier_annotations) identifier_annotations (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_arg_read_var) identifier_arg_read_var (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_arg_name) identifier_arg_name (identifier_anno) identifier_anno )pattern_list (call (attribute (parenthesized_expression (boolean_operator (identifier_annotations) identifier_annotations (attribute (identifier_func) identifier_func (identifier___annotations__) identifier___annotations__ )attribute )boolean_operator )parenthesized_expression (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (comparison_operator (identifier_arg_name) identifier_arg_name (string_'return') string_'return' )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_var) identifier_var (identifier_read) identifier_read )pattern_list (call (identifier__parse_arg) identifier__parse_arg (argument_list (identifier_func) identifier_func (identifier_variables) identifier_variables (identifier_arg_name) identifier_arg_name (identifier_anno) identifier_anno )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_arg) identifier_arg (call (identifier_Argument) identifier_Argument (argument_list (keyword_argument (identifier_name) identifier_name (identifier_arg_name) identifier_arg_name )keyword_argument (keyword_argument (identifier_read) identifier_read (identifier_read) identifier_read )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_arg_read_var) identifier_arg_read_var (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_arg) identifier_arg (identifier_var) identifier_var )tuple )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_arg_read_var) identifier_arg_read_var )return_statement )block )function_definition )module
Return a list of arguments with the variable it reads. NOTE: Multiple arguments may read the same variable.
(module (function_definition (function_name_fix_reference_url) function_name_fix_reference_url (parameters (identifier_url) identifier_url )parameters (block (expression_statement (assignment (identifier_new_url) identifier_new_url (identifier_url) identifier_url )assignment )expression_statement (expression_statement (assignment (identifier_new_url) identifier_new_url (call (identifier_fix_url_bars_instead_of_slashes) identifier_fix_url_bars_instead_of_slashes (argument_list (identifier_new_url) identifier_new_url )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_new_url) identifier_new_url (call (identifier_fix_url_add_http_if_missing) identifier_fix_url_add_http_if_missing (argument_list (identifier_new_url) identifier_new_url )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_new_url) identifier_new_url (call (identifier_fix_url_replace_tilde) identifier_fix_url_replace_tilde (argument_list (identifier_new_url) identifier_new_url )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_rfc3987) identifier_rfc3987 (identifier_parse) identifier_parse )attribute (argument_list (identifier_new_url) identifier_new_url (keyword_argument (identifier_rule) identifier_rule (string_"URI") string_"URI" )keyword_argument )argument_list )call )expression_statement (return_statement (identifier_new_url) identifier_new_url )return_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (return_statement (identifier_url) identifier_url )return_statement )block )except_clause )try_statement )block )function_definition )module
Used to parse an incorect url to try to fix it with the most common ocurrences for errors. If the fixed url is still incorrect, it returns ``None``. Returns: String containing the fixed url or the original one if it could not be fixed.
(module (function_definition (function_name_proxy) function_name_proxy (parameters (identifier_self) identifier_self (identifier_request) identifier_request (identifier_original_target_route) identifier_original_target_route (identifier_presenter_name) identifier_presenter_name (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_action_kwargs) identifier_action_kwargs (call (attribute (identifier_kwargs) identifier_kwargs (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_action_name) identifier_action_name (string_'index') string_'index' )assignment )expression_statement (if_statement (comparison_operator (string_'action') string_'action' (identifier_action_kwargs) identifier_action_kwargs )comparison_operator (block (expression_statement (assignment (identifier_action_name) identifier_action_name (subscript (identifier_action_kwargs) identifier_action_kwargs (string_'action') string_'action' )subscript )assignment )expression_statement (expression_statement (call (attribute (identifier_action_kwargs) identifier_action_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_'action') string_'action' )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_original_route) identifier_original_route (call (attribute (identifier_original_target_route) identifier_original_target_route (identifier_route) identifier_route )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_original_route_map) identifier_original_route_map (call (attribute (identifier_original_target_route) identifier_original_target_route (identifier_route_map) identifier_route_map )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_target_route) identifier_target_route (call (identifier_WWebTargetRoute) identifier_WWebTargetRoute (argument_list (identifier_presenter_name) identifier_presenter_name (identifier_action_name) identifier_action_name (identifier_original_route) identifier_original_route (identifier_original_route_map) identifier_original_route_map (dictionary_splat (identifier_action_kwargs) identifier_action_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_execute) identifier_execute )attribute (argument_list (identifier_request) identifier_request (identifier_target_route) identifier_target_route )argument_list )call )return_statement )block )function_definition )module
Execute the given presenter as a target for the given client request :param request: original client request :param original_target_route: previous target route :param presenter_name: target presenter name :param kwargs: presenter arguments :return: WWebResponseProto
(module (function_definition (function_name_get_list_columns) function_name_get_list_columns (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (identifier_self) identifier_self (identifier_build_url) identifier_build_url )attribute (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier__endpoints) identifier__endpoints )attribute (identifier_get) identifier_get )attribute (argument_list (string_'get_list_columns') string_'get_list_columns' )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (attribute (identifier_self) identifier_self (identifier_con) identifier_con )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_url) identifier_url )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_response) identifier_response )not_operator (block (return_statement (list )list )return_statement )block )if_statement (expression_statement (assignment (identifier_data) identifier_data (call (attribute (identifier_response) identifier_response (identifier_json) identifier_json )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (list_comprehension (call (attribute (identifier_self) identifier_self (identifier_list_column_constructor) identifier_list_column_constructor )attribute (argument_list (keyword_argument (identifier_parent) identifier_parent (identifier_self) identifier_self )keyword_argument (dictionary_splat (dictionary (pair (attribute (identifier_self) identifier_self (identifier__cloud_data_key) identifier__cloud_data_key )attribute (identifier_column) identifier_column )pair )dictionary )dictionary_splat )argument_list )call (for_in_clause (identifier_column) identifier_column (call (attribute (identifier_data) identifier_data (identifier_get) identifier_get )attribute (argument_list (string_'value') string_'value' (list )list )argument_list )call )for_in_clause )list_comprehension )return_statement )block )function_definition )module
Returns the sharepoint list columns