sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_order_by) function_name_order_by (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_order_bys) identifier_order_bys )list_splat_pattern )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__order_bys) identifier__order_bys )attribute (list )list )assignment )expression_statement (for_statement (identifier_ingr) identifier_ingr (identifier_order_bys) identifier_order_bys (block (expression_statement (assignment (identifier_order_by) identifier_order_by (call (attribute (attribute (identifier_self) identifier_self (identifier__shelf) identifier__shelf )attribute (identifier_find) identifier_find )attribute (argument_list (identifier_ingr) identifier_ingr (tuple (identifier_Dimension) identifier_Dimension (identifier_Metric) identifier_Metric )tuple )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__order_bys) identifier__order_bys )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_order_by) identifier_order_by )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_dirty) identifier_dirty )attribute (True) True )assignment )expression_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Add a list of ingredients to order by to the query. These can either be Dimension or Metric objects or strings representing order_bys on the shelf. The Order_by expression will be added to the query's order_by statement :param order_bys: Order_bys to add to the recipe. Order_bys can either be keys on the ``shelf`` or Dimension or Metric objects. If the key is prefixed by "-" the ordering will be descending. :type order_bys: list
(module (function_definition (function_name_filter_by) function_name_filter_by (parameters (identifier_self) identifier_self (default_parameter (identifier_types) identifier_types (tuple )tuple )default_parameter (default_parameter (identifier_units) identifier_units (tuple )tuple )default_parameter )parameters (block (if_statement (not_operator (parenthesized_expression (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_types) identifier_types (identifier_Sequence) identifier_Sequence )argument_list )call (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_units) identifier_units (identifier_Sequence) identifier_Sequence )argument_list )call )boolean_operator )parenthesized_expression )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_'types/units must be a sequence') string_'types/units must be a sequence' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_empty) identifier_empty (call (identifier_frozenset) identifier_frozenset (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_types) identifier_types (block (expression_statement (assignment (identifier_type_names) identifier_type_names (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_type_) identifier_type_ (identifier_types) identifier_types (block (expression_statement (augmented_assignment (identifier_type_names) identifier_type_names (call (attribute (attribute (identifier_self) identifier_self (identifier_by_type) identifier_by_type )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_type_) identifier_type_ (identifier_empty) identifier_empty )argument_list )call )augmented_assignment )expression_statement )block )for_statement (if_statement (not_operator (identifier_units) identifier_units )not_operator (block (return_statement (identifier_type_names) identifier_type_names )return_statement )block )if_statement )block )if_statement (if_statement (identifier_units) identifier_units (block (expression_statement (assignment (identifier_unit_names) identifier_unit_names (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_unit) identifier_unit (identifier_units) identifier_units (block (expression_statement (augmented_assignment (identifier_unit_names) identifier_unit_names (call (attribute (attribute (identifier_self) identifier_self (identifier_by_unit) identifier_by_unit )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_unit) identifier_unit (identifier_empty) identifier_empty )argument_list )call )augmented_assignment )expression_statement )block )for_statement (if_statement (not_operator (identifier_types) identifier_types )not_operator (block (return_statement (identifier_unit_names) identifier_unit_names )return_statement )block )if_statement )block )if_statement (return_statement (conditional_expression (parenthesized_expression (binary_operator (identifier_type_names) identifier_type_names (identifier_unit_names) identifier_unit_names )binary_operator )parenthesized_expression (parenthesized_expression (boolean_operator (identifier_types) identifier_types (identifier_units) identifier_units )boolean_operator )parenthesized_expression (identifier_empty) identifier_empty )conditional_expression )return_statement )block )function_definition )module
Return list of value labels, filtered by either or both type and unit. An empty sequence for either argument will match as long as the other argument matches any values.
(module (function_definition (function_name_move_mouse_relative_to_window) function_name_move_mouse_relative_to_window (parameters (identifier_self) identifier_self (identifier_window) identifier_window (identifier_x) identifier_x (identifier_y) identifier_y )parameters (block (expression_statement (call (attribute (identifier__libxdo) identifier__libxdo (identifier_xdo_move_mouse_relative_to_window) identifier_xdo_move_mouse_relative_to_window )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__xdo) identifier__xdo )attribute (call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_ulong) identifier_c_ulong )attribute (argument_list (identifier_window) identifier_window )argument_list )call (identifier_x) identifier_x (identifier_y) identifier_y )argument_list )call )expression_statement )block )function_definition )module
Move the mouse to a specific location relative to the top-left corner of a window. :param x: the target X coordinate on the screen in pixels. :param y: the target Y coordinate on the screen in pixels.
(module (function_definition (function_name_get_doc_comments) function_name_get_doc_comments (parameters (identifier_text) identifier_text )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (function_definition (function_name_make_pair) function_name_make_pair (parameters (identifier_match) identifier_match )parameters (block (expression_statement (assignment (identifier_comment) identifier_comment (call (attribute (identifier_match) identifier_match (identifier_group) identifier_group )attribute (argument_list )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_end) identifier_end (binary_operator (call (attribute (identifier_text) identifier_text (identifier_find) identifier_find )attribute (argument_list (string_'\n') string_'\n' (call (attribute (identifier_match) identifier_match (identifier_end) identifier_end )attribute (argument_list (integer_0) integer_0 )argument_list )call )argument_list )call (integer_1) integer_1 )binary_operator )assignment )expression_statement (if_statement (comparison_operator (string_'@class') string_'@class' (identifier_comment) identifier_comment )comparison_operator (block (expression_statement (assignment (identifier_next_line) identifier_next_line (call (identifier_next) identifier_next (argument_list (call (identifier_split_delimited) identifier_split_delimited (argument_list (string_'()') string_'()' (string_'\n') string_'\n' (subscript (identifier_text) identifier_text (slice (identifier_end) identifier_end (colon) colon )slice )subscript )argument_list )call )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_next_line) identifier_next_line (subscript (identifier_text) identifier_text (slice (identifier_end) identifier_end (colon) colon (call (attribute (identifier_text) identifier_text (identifier_find) identifier_find )attribute (argument_list (string_'\n') string_'\n' (identifier_end) identifier_end )argument_list )call )slice )subscript )assignment )expression_statement )block )else_clause )if_statement )block (except_clause (identifier_StopIteration) identifier_StopIteration (block (expression_statement (assignment (identifier_next_line) identifier_next_line (string_'') string_'' )assignment )expression_statement )block )except_clause )try_statement (return_statement (tuple (identifier_comment) identifier_comment (identifier_next_line) identifier_next_line )tuple )return_statement )block )function_definition (return_statement (list_comprehension (call (identifier_make_pair) identifier_make_pair (argument_list (identifier_match) identifier_match )argument_list )call (for_in_clause (identifier_match) identifier_match (call (attribute (identifier_re) identifier_re (identifier_finditer) identifier_finditer )attribute (argument_list (string_'/\*\*(.*?)\*/') string_'/\*\*(.*?)\*/' (identifier_text) identifier_text (attribute (identifier_re) identifier_re (identifier_DOTALL) identifier_DOTALL )attribute )argument_list )call )for_in_clause )list_comprehension )return_statement )block )function_definition )module
r""" Return a list of all documentation comments in the file text. Each comment is a pair, with the first element being the comment text and the second element being the line after it, which may be needed to guess function & arguments. >>> get_doc_comments(read_file('examples/module.js'))[0][0][:40] '/**\n * This is the module documentation.' >>> get_doc_comments(read_file('examples/module.js'))[1][0][7:50] 'This is documentation for the first method.' >>> get_doc_comments(read_file('examples/module.js'))[1][1] 'function the_first_function(arg1, arg2) ' >>> get_doc_comments(read_file('examples/module.js'))[2][0] '/** This is the documentation for the second function. */'
(module (function_definition (function_name_parse_media_type) function_name_parse_media_type (parameters (identifier_media_type) identifier_media_type )parameters (block (expression_statement (assignment (pattern_list (identifier_media_type) identifier_media_type (identifier_sep) identifier_sep (identifier_parameter) identifier_parameter )pattern_list (call (attribute (call (identifier_str) identifier_str (argument_list (identifier_media_type) identifier_media_type )argument_list )call (identifier_partition) identifier_partition )attribute (argument_list (string_';') string_';' )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_media_type) identifier_media_type (identifier_sep) identifier_sep (identifier_subtype) identifier_subtype )pattern_list (call (attribute (identifier_media_type) identifier_media_type (identifier_partition) identifier_partition )attribute (argument_list (string_'/') string_'/' )argument_list )call )assignment )expression_statement (return_statement (call (identifier_tuple) identifier_tuple (generator_expression (boolean_operator (call (attribute (identifier_x) identifier_x (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (None) None )boolean_operator (for_in_clause (identifier_x) identifier_x (tuple (identifier_media_type) identifier_media_type (identifier_subtype) identifier_subtype (identifier_parameter) identifier_parameter )tuple )for_in_clause )generator_expression )call )return_statement )block )function_definition )module
Returns type, subtype, parameter tuple from an http media_type. Can be applied to the 'Accept' or 'Content-Type' http header fields.
(module (function_definition (function_name___get_keys) function_name___get_keys (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_keys) identifier_keys (call (identifier_list) identifier_list (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_tree_node) identifier_tree_node (identifier_self) identifier_self )assignment )expression_statement (while_statement (boolean_operator (comparison_operator (identifier_tree_node) identifier_tree_node (None) None )comparison_operator (comparison_operator (attribute (identifier_tree_node) identifier_tree_node (identifier_key) identifier_key )attribute (None) None )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_keys) identifier_keys (identifier_insert) identifier_insert )attribute (argument_list (integer_0) integer_0 (attribute (identifier_tree_node) identifier_tree_node (identifier_key) identifier_key )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_tree_node) identifier_tree_node (attribute (identifier_tree_node) identifier_tree_node (identifier_parent) identifier_parent )attribute )assignment )expression_statement )block )while_statement (return_statement (identifier_keys) identifier_keys )return_statement )block )function_definition )module
Return the keys associated with this node by adding its key and then adding parent keys recursively.
(module (function_definition (function_name__bind_socket) function_name__bind_socket (parameters (identifier_self) identifier_self (identifier_bindaddr) identifier_bindaddr )parameters (block (expression_statement (assignment (identifier_sock) identifier_sock (call (attribute (identifier_socket) identifier_socket (identifier_socket) identifier_socket )attribute (argument_list (attribute (identifier_socket) identifier_socket (identifier_AF_INET) identifier_AF_INET )attribute (attribute (identifier_socket) identifier_socket (identifier_SOCK_STREAM) identifier_SOCK_STREAM )attribute )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_sock) identifier_sock (identifier_setsockopt) identifier_setsockopt )attribute (argument_list (attribute (identifier_socket) identifier_socket (identifier_SOL_SOCKET) identifier_SOL_SOCKET )attribute (attribute (identifier_socket) identifier_socket (identifier_SO_REUSEADDR) identifier_SO_REUSEADDR )attribute (integer_1) integer_1 )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_sock) identifier_sock (identifier_setblocking) identifier_setblocking )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_sock) identifier_sock (identifier_bind) identifier_bind )attribute (argument_list (identifier_bindaddr) identifier_bindaddr )argument_list )call )expression_statement )block (except_clause (identifier_Exception) identifier_Exception (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__logger) identifier__logger )attribute (identifier_exception) identifier_exception )attribute (argument_list (binary_operator (string_"Unable to bind to %s") string_"Unable to bind to %s" (call (identifier_str) identifier_str (argument_list (identifier_bindaddr) identifier_bindaddr )argument_list )call )binary_operator )argument_list )call )expression_statement (raise_statement )raise_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_sock) identifier_sock (identifier_listen) identifier_listen )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_BACKLOG) identifier_BACKLOG )attribute )argument_list )call )expression_statement (return_statement (identifier_sock) identifier_sock )return_statement )block )function_definition )module
Create a listening server socket.
(module (function_definition (function_name_experiments_predictions_download) function_name_experiments_predictions_download (parameters (identifier_self) identifier_self (identifier_experiment_id) identifier_experiment_id (identifier_run_id) identifier_run_id )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 (if_statement (not_operator (attribute (attribute (identifier_model_run) identifier_model_run (identifier_state) identifier_state )attribute (identifier_is_success) identifier_is_success )attribute )not_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_get_object) identifier_get_object )attribute (argument_list (attribute (attribute (identifier_model_run) identifier_model_run (identifier_state) identifier_state )attribute (identifier_model_output) identifier_model_output )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_funcdata) identifier_funcdata (None) None )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (return_statement (call (identifier_FileInfo) identifier_FileInfo (argument_list (attribute (identifier_funcdata) identifier_funcdata (identifier_upload_file) identifier_upload_file )attribute (subscript (attribute (identifier_funcdata) identifier_funcdata (identifier_properties) identifier_properties )attribute (attribute (identifier_datastore) identifier_datastore (identifier_PROPERTY_MIMETYPE) identifier_PROPERTY_MIMETYPE )attribute )subscript (subscript (attribute (identifier_funcdata) identifier_funcdata (identifier_properties) identifier_properties )attribute (attribute (identifier_datastore) identifier_datastore (identifier_PROPERTY_FILENAME) identifier_PROPERTY_FILENAME )attribute )subscript )argument_list )call )return_statement )block )function_definition )module
Donwload the results of a prediction for a given experiment. Parameters ---------- experiment_id : string Unique experiment identifier run_id : string Unique model run identifier Returns ------- FileInfo Information about prediction result file on disk or None if prediction is unknown or has no result
(module (function_definition (function_name_branchpoints) function_name_branchpoints (parameters (identifier_image) identifier_image (default_parameter (identifier_mask) identifier_mask (None) None )default_parameter )parameters (block (global_statement (identifier_branchpoints_table) identifier_branchpoints_table )global_statement (if_statement (comparison_operator (identifier_mask) identifier_mask (None) None )comparison_operator (block (expression_statement (assignment (identifier_masked_image) identifier_masked_image (identifier_image) identifier_image )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_masked_image) identifier_masked_image (call (attribute (call (attribute (identifier_image) identifier_image (identifier_astype) identifier_astype )attribute (argument_list (identifier_bool) identifier_bool )argument_list )call (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_masked_image) identifier_masked_image (unary_operator (identifier_mask) identifier_mask )unary_operator )subscript (False) False )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_table_lookup) identifier_table_lookup (argument_list (identifier_masked_image) identifier_masked_image (identifier_branchpoints_table) identifier_branchpoints_table (False) False (integer_1) integer_1 )argument_list )call )assignment )expression_statement (if_statement (not_operator (comparison_operator (identifier_mask) identifier_mask (None) None )comparison_operator )not_operator (block (expression_statement (assignment (subscript (identifier_result) identifier_result (unary_operator (identifier_mask) identifier_mask )unary_operator )subscript (subscript (identifier_image) identifier_image (unary_operator (identifier_mask) identifier_mask )unary_operator )subscript )assignment )expression_statement )block )if_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Remove all pixels from an image except for branchpoints image - a skeletonized image mask - a mask of pixels excluded from consideration 1 0 1 ? 0 ? 0 1 0 -> 0 1 0 0 1 0 0 ? 0
(module (function_definition (function_name_get_write_fields) function_name_get_write_fields (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_rec_write_fields) identifier_rec_write_fields (call (attribute (identifier_self) identifier_self (identifier_get_write_subset) identifier_get_write_subset )attribute (argument_list (string_'record') string_'record' )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_comments) identifier_comments )attribute (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_rec_write_fields) identifier_rec_write_fields (identifier_append) identifier_append )attribute (argument_list (string_'comments') string_'comments' )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_check_field) identifier_check_field )attribute (argument_list (string_'n_sig') string_'n_sig' )argument_list )call )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_n_sig) identifier_n_sig )attribute (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_sig_write_fields) identifier_sig_write_fields (call (attribute (identifier_self) identifier_self (identifier_get_write_subset) identifier_get_write_subset )attribute (argument_list (string_'signal') string_'signal' )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_sig_write_fields) identifier_sig_write_fields (None) None )assignment )expression_statement )block )else_clause )if_statement (return_statement (expression_list (identifier_rec_write_fields) identifier_rec_write_fields (identifier_sig_write_fields) identifier_sig_write_fields )expression_list )return_statement )block )function_definition )module
Get the list of fields used to write the header, separating record and signal specification fields. Returns the default required fields, the user defined fields, and their dependencies. Does NOT include `d_signal` or `e_d_signal`. Returns ------- rec_write_fields : list Record specification fields to be written. Includes 'comment' if present. sig_write_fields : dict Dictionary of signal specification fields to be written, with values equal to the channels that need to be present for each field.
(module (function_definition (function_name__step_begin) function_name__step_begin (parameters (identifier_self) identifier_self (identifier_label) identifier_label (default_parameter (identifier_log) identifier_log (True) True )default_parameter )parameters (block (if_statement (identifier_log) identifier_log (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_step_label) identifier_step_label )attribute (identifier_label) identifier_label )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_step_begin_time) identifier_step_begin_time )attribute (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (binary_operator (string_u"STEP %d BEGIN (%s)") string_u"STEP %d BEGIN (%s)" (tuple (attribute (identifier_self) identifier_self (identifier_step_index) identifier_step_index )attribute (identifier_label) identifier_label )tuple )binary_operator )argument_list )call )assignment )expression_statement )block )if_statement )block )function_definition )module
Log begin of a step
(module (function_definition (function_name_integer_ceil) function_name_integer_ceil (parameters (identifier_a) identifier_a (identifier_b) identifier_b )parameters (block (expression_statement (assignment (pattern_list (identifier_quanta) identifier_quanta (identifier_mod) identifier_mod )pattern_list (call (identifier_divmod) identifier_divmod (argument_list (identifier_a) identifier_a (identifier_b) identifier_b )argument_list )call )assignment )expression_statement (if_statement (identifier_mod) identifier_mod (block (expression_statement (augmented_assignment (identifier_quanta) identifier_quanta (integer_1) integer_1 )augmented_assignment )expression_statement )block )if_statement (return_statement (identifier_quanta) identifier_quanta )return_statement )block )function_definition )module
Return the ceil integer of a div b.
(module (function_definition (function_name_quantile) function_name_quantile (parameters (identifier_expr) identifier_expr (default_parameter (identifier_prob) identifier_prob (None) None )default_parameter (dictionary_splat_pattern (identifier_kw) identifier_kw )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_prob) identifier_prob (call (attribute (identifier_kw) identifier_kw (identifier_get) identifier_get )attribute (argument_list (string_'_prob') string_'_prob' (identifier_prob) identifier_prob )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_output_type) identifier_output_type (call (identifier__stats_type) identifier__stats_type (argument_list (identifier_expr) identifier_expr )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_prob) identifier_prob (tuple (identifier_list) identifier_list (identifier_set) identifier_set )tuple )argument_list )call (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_expr) identifier_expr (identifier_GroupBy) identifier_GroupBy )argument_list )call )not_operator )boolean_operator (block (expression_statement (assignment (identifier_output_type) identifier_output_type (call (attribute (identifier_types) identifier_types (identifier_List) identifier_List )attribute (argument_list (identifier_output_type) identifier_output_type )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (identifier__reduction) identifier__reduction (argument_list (identifier_expr) identifier_expr (identifier_Quantile) identifier_Quantile (identifier_output_type) identifier_output_type (keyword_argument (identifier__prob) identifier__prob (identifier_prob) identifier_prob )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Percentile value. :param expr: :param prob: probability or list of probabilities, in [0, 1] :return:
(module (function_definition (function_name_update_highlights) function_name_update_highlights (parameters (identifier_self) identifier_self (identifier_old_highlight_set) identifier_old_highlight_set (identifier_new_highlight_set) identifier_new_highlight_set )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_gui_up) identifier_gui_up )attribute )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_un_hilite_set) identifier_un_hilite_set (binary_operator (identifier_old_highlight_set) identifier_old_highlight_set (identifier_new_highlight_set) identifier_new_highlight_set )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_re_hilite_set) identifier_re_hilite_set (binary_operator (identifier_new_highlight_set) identifier_new_highlight_set (identifier_old_highlight_set) identifier_old_highlight_set )binary_operator )assignment )expression_statement (for_statement (identifier_key) identifier_key (identifier_un_hilite_set) identifier_un_hilite_set (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__highlight_path) identifier__highlight_path )attribute (argument_list (identifier_key) identifier_key (False) False )argument_list )call )expression_statement )block )for_statement (for_statement (identifier_key) identifier_key (identifier_re_hilite_set) identifier_re_hilite_set (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__highlight_path) identifier__highlight_path )attribute (argument_list (identifier_key) identifier_key (True) True )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Unhighlight the entries represented by ``old_highlight_set`` and highlight the ones represented by ``new_highlight_set``. Both are sets of keys.
(module (function_definition (function_name_list_ipsec_site_connections) function_name_list_ipsec_site_connections (parameters (identifier_self) identifier_self (default_parameter (identifier_retrieve_all) identifier_retrieve_all (True) True )default_parameter (dictionary_splat_pattern (identifier__params) identifier__params )dictionary_splat_pattern )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_list) identifier_list )attribute (argument_list (string_'ipsec_site_connections') string_'ipsec_site_connections' (attribute (identifier_self) identifier_self (identifier_ipsec_site_connections_path) identifier_ipsec_site_connections_path )attribute (identifier_retrieve_all) identifier_retrieve_all (dictionary_splat (identifier__params) identifier__params )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Fetches all configured IPsecSiteConnections for a project.
(module (function_definition (function_name__tree_to_string) function_name__tree_to_string (parameters (identifier_cls) identifier_cls (identifier_root_element) identifier_root_element (default_parameter (identifier_xml_declaration) identifier_xml_declaration (True) True )default_parameter (default_parameter (identifier_pretty_print) identifier_pretty_print (True) True )default_parameter )parameters (block (import_from_statement (dotted_name (identifier_lxml) identifier_lxml )dotted_name (dotted_name (identifier_etree) identifier_etree )dotted_name )import_from_statement (return_statement (call (attribute (identifier_gf) identifier_gf (identifier_safe_unicode) identifier_safe_unicode )attribute (argument_list (call (attribute (identifier_etree) identifier_etree (identifier_tostring) identifier_tostring )attribute (argument_list (identifier_root_element) identifier_root_element (keyword_argument (identifier_encoding) identifier_encoding (string_"UTF-8") string_"UTF-8" )keyword_argument (keyword_argument (identifier_method) identifier_method (string_"xml") string_"xml" )keyword_argument (keyword_argument (identifier_xml_declaration) identifier_xml_declaration (identifier_xml_declaration) identifier_xml_declaration )keyword_argument (keyword_argument (identifier_pretty_print) identifier_pretty_print (identifier_pretty_print) identifier_pretty_print )keyword_argument )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Return an ``lxml`` tree as a Unicode string.
(module (function_definition (function_name_inflate_bbox) function_name_inflate_bbox (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_left) identifier_left (identifier_top) identifier_top (identifier_right) identifier_right (identifier_bottom) identifier_bottom )pattern_list (attribute (identifier_self) identifier_self (identifier_bounding_box) identifier_bounding_box )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_bounding_box) identifier_bounding_box )attribute (tuple (binary_operator (identifier_left) identifier_left (integer_0xFFFC) integer_0xFFFC )binary_operator (identifier_top) identifier_top (conditional_expression (identifier_right) identifier_right (comparison_operator (binary_operator (identifier_right) identifier_right (integer_4) integer_4 )binary_operator (integer_0) integer_0 )comparison_operator (binary_operator (parenthesized_expression (binary_operator (identifier_right) identifier_right (integer_0xFFFC) integer_0xFFFC )binary_operator )parenthesized_expression (integer_0x04) integer_0x04 )binary_operator )conditional_expression (identifier_bottom) identifier_bottom )tuple )assignment )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_bounding_box) identifier_bounding_box )attribute )return_statement )block )function_definition )module
Realign the left and right edges of the bounding box such that they are inflated to align modulo 4. This method is optional, and used mainly to accommodate devices with COM/SEG GDDRAM structures that store pixels in 4-bit nibbles.
(module (function_definition (function_name_handle_length) function_name_handle_length (parameters (identifier_schema) identifier_schema (identifier_field) identifier_field (identifier_validator) identifier_validator (identifier_parent_schema) identifier_parent_schema )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_field) identifier_field (attribute (identifier_fields) identifier_fields (identifier_String) identifier_String )attribute )argument_list )call (block (expression_statement (assignment (identifier_minKey) identifier_minKey (string_'minLength') string_'minLength' )assignment )expression_statement (expression_statement (assignment (identifier_maxKey) identifier_maxKey (string_'maxLength') string_'maxLength' )assignment )expression_statement )block (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_field) identifier_field (tuple (attribute (identifier_fields) identifier_fields (identifier_List) identifier_List )attribute (attribute (identifier_fields) identifier_fields (identifier_Nested) identifier_Nested )attribute )tuple )argument_list )call (block (expression_statement (assignment (identifier_minKey) identifier_minKey (string_'minItems') string_'minItems' )assignment )expression_statement (expression_statement (assignment (identifier_maxKey) identifier_maxKey (string_'maxItems') string_'maxItems' )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (concatenated_string (string_"In order to set the Length validator for JSON ") string_"In order to set the Length validator for JSON " (string_"schema, the field must be either a List or a String") string_"schema, the field must be either a List or a String" )concatenated_string )argument_list )call )raise_statement )block )else_clause )if_statement (if_statement (attribute (identifier_validator) identifier_validator (identifier_min) identifier_min )attribute (block (expression_statement (assignment (subscript (identifier_schema) identifier_schema (identifier_minKey) identifier_minKey )subscript (attribute (identifier_validator) identifier_validator (identifier_min) identifier_min )attribute )assignment )expression_statement )block )if_statement (if_statement (attribute (identifier_validator) identifier_validator (identifier_max) identifier_max )attribute (block (expression_statement (assignment (subscript (identifier_schema) identifier_schema (identifier_maxKey) identifier_maxKey )subscript (attribute (identifier_validator) identifier_validator (identifier_max) identifier_max )attribute )assignment )expression_statement )block )if_statement (if_statement (attribute (identifier_validator) identifier_validator (identifier_equal) identifier_equal )attribute (block (expression_statement (assignment (subscript (identifier_schema) identifier_schema (identifier_minKey) identifier_minKey )subscript (attribute (identifier_validator) identifier_validator (identifier_equal) identifier_equal )attribute )assignment )expression_statement (expression_statement (assignment (subscript (identifier_schema) identifier_schema (identifier_maxKey) identifier_maxKey )subscript (attribute (identifier_validator) identifier_validator (identifier_equal) identifier_equal )attribute )assignment )expression_statement )block )if_statement (return_statement (identifier_schema) identifier_schema )return_statement )block )function_definition )module
Adds validation logic for ``marshmallow.validate.Length``, setting the values appropriately for ``fields.List``, ``fields.Nested``, and ``fields.String``. Args: schema (dict): The original JSON schema we generated. This is what we want to post-process. field (fields.Field): The field that generated the original schema and who this post-processor belongs to. validator (marshmallow.validate.Length): The validator attached to the passed in field. parent_schema (marshmallow.Schema): The Schema instance that the field belongs to. Returns: dict: A, possibly, new JSON Schema that has been post processed and altered. Raises: ValueError: Raised if the `field` is something other than `fields.List`, `fields.Nested`, or `fields.String`
(module (function_definition (function_name_update_port_monitor) function_name_update_port_monitor (parameters (identifier_self) identifier_self (identifier_resource) identifier_resource (default_parameter (identifier_timeout) identifier_timeout (unary_operator (integer_1) integer_1 )unary_operator )default_parameter )parameters (block (expression_statement (assignment (identifier_data) identifier_data (call (attribute (identifier_resource) identifier_resource (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (string_'type') string_'type' (identifier_data) identifier_data )comparison_operator (block (expression_statement (assignment (subscript (identifier_data) identifier_data (string_'type') string_'type' )subscript (string_'port-monitor') string_'port-monitor' )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_uri) identifier_uri (call (attribute (string_"{}{}") string_"{}{}" (identifier_format) identifier_format )attribute (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (string_"uri") string_"uri" )subscript (attribute (identifier_self) identifier_self (identifier_PORT_MONITOR_PATH) identifier_PORT_MONITOR_PATH )attribute )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__helper) identifier__helper )attribute (identifier_update) identifier_update )attribute (argument_list (identifier_data) identifier_data (keyword_argument (identifier_uri) identifier_uri (identifier_uri) identifier_uri )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (identifier_timeout) identifier_timeout )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Updates the port monitor configuration of a logical interconnect. Args: resource: Port monitor configuration. Returns: dict: Port monitor configuration.
(module (function_definition (function_name_get) function_name_get (parameters (typed_default_parameter (identifier_token) identifier_token (type (generic_type (identifier_Union) identifier_Union (type_parameter (type (identifier_str) identifier_str )type (type (identifier_int) identifier_int )type )type_parameter )generic_type )type (None) None )typed_default_parameter )parameters (type (string_'Role') string_'Role' )type (block (if_statement (comparison_operator (identifier_token) identifier_token (None) None )comparison_operator (block (return_statement (attribute (identifier_Role) identifier_Role (identifier_USER) identifier_USER )attribute )return_statement )block )if_statement (for_statement (identifier_role) identifier_role (identifier_Role) identifier_Role (block (if_statement (comparison_operator (identifier_role) identifier_role (attribute (identifier_Role) identifier_Role (identifier_ROLE_REMOVE) identifier_ROLE_REMOVE )attribute )comparison_operator (block (continue_statement )continue_statement )block )if_statement (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_token) identifier_token (identifier_int) identifier_int )argument_list )call (comparison_operator (identifier_token) identifier_token (attribute (identifier_role) identifier_role (identifier_value) identifier_value )attribute )comparison_operator )boolean_operator (block (return_statement (identifier_role) identifier_role )return_statement )block )if_statement (if_statement (boolean_operator (comparison_operator (call (attribute (call (identifier_str) identifier_str (argument_list (identifier_token) identifier_token )argument_list )call (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call (attribute (identifier_role) identifier_role (identifier_name) identifier_name )attribute )comparison_operator (comparison_operator (identifier_token) identifier_token (generator_expression (call (identifier_str) identifier_str (argument_list (identifier_v) identifier_v )argument_list )call (for_in_clause (identifier_v) identifier_v (attribute (identifier_role) identifier_role (identifier_value) identifier_value )attribute )for_in_clause )generator_expression )comparison_operator )boolean_operator (block (return_statement (identifier_role) identifier_role )return_statement )block )if_statement )block )for_statement (return_statement (None) None )return_statement )block )function_definition )module
Return enum instance corresponding to input token. :param token: token identifying role to indy-sdk: 'STEWARD', 'TRUSTEE', 'TRUST_ANCHOR', '' or None :return: enum instance corresponding to input token
(module (function_definition (function_name__parse_snapshot_restore_command) function_name__parse_snapshot_restore_command (parameters (identifier_cls) identifier_cls (identifier_args) identifier_args (identifier_action) identifier_action )parameters (block (expression_statement (assignment (identifier_argparser) identifier_argparser (call (identifier_ArgumentParser) identifier_ArgumentParser (argument_list (keyword_argument (identifier_prog) identifier_prog (binary_operator (string_"cluster %s") string_"cluster %s" (identifier_action) identifier_action )binary_operator )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_group) identifier_group (call (attribute (identifier_argparser) identifier_argparser (identifier_add_mutually_exclusive_group) identifier_add_mutually_exclusive_group )attribute (argument_list (keyword_argument (identifier_required) identifier_required (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_group) identifier_group (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--id") string_"--id" (keyword_argument (identifier_dest) identifier_dest (string_"cluster_id") string_"cluster_id" )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"execute on cluster with this id") string_"execute on cluster with this id" )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_group) identifier_group (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--label") string_"--label" (keyword_argument (identifier_dest) identifier_dest (string_"label") string_"label" )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"execute on cluster with this label") string_"execute on cluster with this label" )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_argparser) identifier_argparser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--s3_location") string_"--s3_location" (keyword_argument (identifier_help) identifier_help (string_"s3_location where backup is stored") string_"s3_location where backup is stored" )keyword_argument (keyword_argument (identifier_required) identifier_required (True) True )keyword_argument )argument_list )call )expression_statement (if_statement (comparison_operator (identifier_action) identifier_action (string_"snapshot") string_"snapshot" )comparison_operator (block (expression_statement (call (attribute (identifier_argparser) identifier_argparser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--backup_type") string_"--backup_type" (keyword_argument (identifier_help) identifier_help (string_"backup_type: full/incremental, default is full") string_"backup_type: full/incremental, default is full" )keyword_argument )argument_list )call )expression_statement )block (elif_clause (comparison_operator (identifier_action) identifier_action (string_"restore_point") string_"restore_point" )comparison_operator (block (expression_statement (call (attribute (identifier_argparser) identifier_argparser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--backup_id") string_"--backup_id" (keyword_argument (identifier_help) identifier_help (string_"back_id from which restoration will be done") string_"back_id from which restoration will be done" )keyword_argument (keyword_argument (identifier_required) identifier_required (True) True )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_argparser) identifier_argparser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--table_names") string_"--table_names" (keyword_argument (identifier_help) identifier_help (string_"table(s) which are to be restored") string_"table(s) which are to be restored" )keyword_argument (keyword_argument (identifier_required) identifier_required (True) True )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_argparser) identifier_argparser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--no-overwrite") string_"--no-overwrite" (keyword_argument (identifier_action) identifier_action (string_"store_false") string_"store_false" )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"With this option, restore overwrites to the existing table if theres any in restore target") string_"With this option, restore overwrites to the existing table if theres any in restore target" )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_argparser) identifier_argparser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"--no-automatic") string_"--no-automatic" (keyword_argument (identifier_action) identifier_action (string_"store_false") string_"store_false" )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"With this option, all the dependencies are automatically restored together with this backup image following the correct order") string_"With this option, all the dependencies are automatically restored together with this backup image following the correct order" )keyword_argument )argument_list )call )expression_statement )block )elif_clause )if_statement (expression_statement (assignment (identifier_arguments) identifier_arguments (call (attribute (identifier_argparser) identifier_argparser (identifier_parse_args) identifier_parse_args )attribute (argument_list (identifier_args) identifier_args )argument_list )call )assignment )expression_statement (return_statement (identifier_arguments) identifier_arguments )return_statement )block )function_definition )module
Parse command line arguments for snapshot command.
(module (function_definition (function_name_mangleNec) function_name_mangleNec (parameters (identifier_code) identifier_code (default_parameter (identifier_freq) identifier_freq (integer_40) integer_40 )default_parameter )parameters (block (expression_statement (assignment (identifier_timings) identifier_timings (list )list )assignment )expression_statement (for_statement (identifier_octet) identifier_octet (call (attribute (identifier_binascii) identifier_binascii (identifier_unhexlify) identifier_unhexlify )attribute (argument_list (call (attribute (identifier_code) identifier_code (identifier_replace) identifier_replace )attribute (argument_list (string_" ") string_" " (string_"") string_"" )argument_list )call )argument_list )call (block (expression_statement (assignment (identifier_burst) identifier_burst (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (boolean_operator (boolean_operator (identifier_x) identifier_x (string_"0226 06AD") string_"0226 06AD" )boolean_operator (string_"0226 0258") string_"0226 0258" )boolean_operator )lambda )assignment )expression_statement (for_statement (identifier_bit) identifier_bit (call (identifier_reversed) identifier_reversed (argument_list (binary_operator (string_"%08d") string_"%08d" (call (identifier_int) identifier_int (argument_list (subscript (call (identifier_bin) identifier_bin (argument_list (call (identifier_ord) identifier_ord (argument_list (identifier_octet) identifier_octet )argument_list )call )argument_list )call (slice (integer_2) integer_2 (colon) colon )slice )subscript )argument_list )call )binary_operator )argument_list )call (block (expression_statement (assignment (identifier_bit) identifier_bit (call (identifier_int) identifier_int (argument_list (identifier_bit) identifier_bit )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_timings) identifier_timings (identifier_append) identifier_append )attribute (argument_list (call (identifier_burst) identifier_burst (argument_list (identifier_bit) identifier_bit )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )for_statement (return_statement (call (identifier_mangleIR) identifier_mangleIR (argument_list (binary_operator (binary_operator (binary_operator (string_"K %0X22 214d 10b3 ") string_"K %0X22 214d 10b3 " (identifier_freq) identifier_freq )binary_operator (call (attribute (string_" ") string_" " (identifier_join) identifier_join )attribute (argument_list (identifier_timings) identifier_timings )argument_list )call )binary_operator (string_" 0226 2000") string_" 0226 2000" )binary_operator )argument_list )call )return_statement )block )function_definition )module
Convert NEC code to shorthand notation
(module (function_definition (function_name_config_flag) function_name_config_flag (parameters (identifier_option) identifier_option (identifier_value) identifier_value (default_parameter (identifier_default) identifier_default (False) False )default_parameter (default_parameter (identifier_section) identifier_section (attribute (identifier_cli) identifier_cli (identifier_name) identifier_name )attribute )default_parameter )parameters (block (class_definition (identifier_x) identifier_x (argument_list (identifier_object) identifier_object )argument_list (block (function_definition (function_name___bool__) function_name___bool__ (parameters (identifier_self) identifier_self (default_parameter (identifier_option) identifier_option (identifier_option) identifier_option )default_parameter (default_parameter (identifier_value) identifier_value (identifier_value) identifier_value )default_parameter (default_parameter (identifier_default) identifier_default (identifier_default) identifier_default )default_parameter (default_parameter (identifier_section) identifier_section (identifier_section) identifier_section )default_parameter )parameters (block (expression_statement (assignment (identifier_config) identifier_config (call (identifier_read_config) identifier_read_config (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_type) identifier_type (call (attribute (identifier_builtins) identifier_builtins (identifier_type) identifier_type )attribute (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_get_option) identifier_get_option (call (identifier_option_getter) identifier_option_getter (argument_list (identifier_type) identifier_type )argument_list )call )assignment )expression_statement (try_statement (block (return_statement (comparison_operator (call (identifier_get_option) identifier_get_option (argument_list (identifier_config) identifier_config (identifier_section) identifier_section (identifier_option) identifier_option )argument_list )call (identifier_value) identifier_value )comparison_operator )return_statement )block (except_clause (tuple (identifier_NoOptionError) identifier_NoOptionError (identifier_NoSectionError) identifier_NoSectionError )tuple (block (return_statement (identifier_default) identifier_default )return_statement )block )except_clause )try_statement )block )function_definition (expression_statement (assignment (identifier___nonzero__) identifier___nonzero__ (identifier___bool__) identifier___bool__ )assignment )expression_statement )block )class_definition (return_statement (call (identifier_x) identifier_x (argument_list )argument_list )call )return_statement )block )function_definition )module
Guesses whether a CLI flag should be turned on or off from the configuration. If the configuration option value is same with the given value, it returns ``True``. :: @click.option('--ko-kr', 'locale', is_flag=True, default=config_flag('locale', 'ko_KR'))
(module (function_definition (function_name_accel_increase_height) function_name_accel_increase_height (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (assignment (identifier_height) identifier_height (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_settings) identifier_settings )attribute (identifier_general) identifier_general )attribute (identifier_get_int) identifier_get_int )attribute (argument_list (string_'window-height') string_'window-height' )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_settings) identifier_settings )attribute (identifier_general) identifier_general )attribute (identifier_set_int) identifier_set_int )attribute (argument_list (string_'window-height') string_'window-height' (call (identifier_min) identifier_min (argument_list (binary_operator (identifier_height) identifier_height (integer_2) integer_2 )binary_operator (integer_100) integer_100 )argument_list )call )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )function_definition )module
Callback to increase height.
(module (function_definition (function_name_parse) function_name_parse (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_path) identifier_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )assignment )expression_statement (if_statement (call (attribute (identifier_filename) identifier_filename (identifier_endswith) identifier_endswith )attribute (argument_list (string_".xml") string_".xml" )argument_list )call (block (return_statement (call (identifier_PawXmlSetup) identifier_PawXmlSetup (argument_list (identifier_path) identifier_path )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_ppdesc) identifier_ppdesc (call (attribute (identifier_self) identifier_self (identifier_read_ppdesc) identifier_read_ppdesc )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_ppdesc) identifier_ppdesc (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_critical) identifier_critical )attribute (argument_list (binary_operator (string_"Cannot find ppdesc in %s") string_"Cannot find ppdesc in %s" (identifier_path) identifier_path )binary_operator )argument_list )call )expression_statement (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (identifier_psp_type) identifier_psp_type (attribute (identifier_ppdesc) identifier_ppdesc (identifier_psp_type) identifier_psp_type )attribute )assignment )expression_statement (expression_statement (assignment (identifier_parsers) identifier_parsers (dictionary (pair (string_"FHI") string_"FHI" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_fhi_header) identifier_fhi_header )attribute )pair (pair (string_"GTH") string_"GTH" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_gth_header) identifier_gth_header )attribute )pair (pair (string_"TM") string_"TM" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_tm_header) identifier_tm_header )attribute )pair (pair (string_"Teter") string_"Teter" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_tm_header) identifier_tm_header )attribute )pair (pair (string_"HGH") string_"HGH" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_hgh_header) identifier_hgh_header )attribute )pair (pair (string_"HGHK") string_"HGHK" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_hgh_header) identifier_hgh_header )attribute )pair (pair (string_"ONCVPSP") string_"ONCVPSP" (attribute (identifier_NcAbinitHeader) identifier_NcAbinitHeader (identifier_oncvpsp_header) identifier_oncvpsp_header )attribute )pair (pair (string_"PAW_abinit_text") string_"PAW_abinit_text" (attribute (identifier_PawAbinitHeader) identifier_PawAbinitHeader (identifier_paw_header) identifier_paw_header )attribute )pair )dictionary )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_header) identifier_header (call (subscript (identifier_parsers) identifier_parsers (attribute (identifier_ppdesc) identifier_ppdesc (identifier_name) identifier_name )attribute )subscript (argument_list (identifier_path) identifier_path (identifier_ppdesc) identifier_ppdesc )argument_list )call )assignment )expression_statement )block (except_clause (identifier_Exception) identifier_Exception (block (raise_statement (call (attribute (identifier_self) identifier_self (identifier_Error) identifier_Error )attribute (argument_list (binary_operator (binary_operator (identifier_path) identifier_path (string_":\n") string_":\n" )binary_operator (call (identifier_straceback) identifier_straceback (argument_list )argument_list )call )binary_operator )argument_list )call )raise_statement )block )except_clause )try_statement (if_statement (comparison_operator (identifier_psp_type) identifier_psp_type (string_"NC") string_"NC" )comparison_operator (block (expression_statement (assignment (identifier_pseudo) identifier_pseudo (call (identifier_NcAbinitPseudo) identifier_NcAbinitPseudo (argument_list (identifier_path) identifier_path (identifier_header) identifier_header )argument_list )call )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_psp_type) identifier_psp_type (string_"PAW") string_"PAW" )comparison_operator (block (expression_statement (assignment (identifier_pseudo) identifier_pseudo (call (identifier_PawAbinitPseudo) identifier_PawAbinitPseudo (argument_list (identifier_path) identifier_path (identifier_header) identifier_header )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_NotImplementedError) identifier_NotImplementedError (argument_list (string_"psp_type not in [NC, PAW]") string_"psp_type not in [NC, PAW]" )argument_list )call )raise_statement )block )else_clause )if_statement (return_statement (identifier_pseudo) identifier_pseudo )return_statement )block )function_definition )module
Read and parse a pseudopotential file. Main entry point for client code. Returns: pseudopotential object or None if filename is not a valid pseudopotential file.
(module (function_definition (function_name_root) function_name_root (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_sector) identifier_sector (attribute (attribute (identifier_self) identifier_self (identifier_header) identifier_header )attribute (identifier_directory_sector_start) identifier_directory_sector_start )attribute )assignment )expression_statement (expression_statement (assignment (identifier_position) identifier_position (binary_operator (parenthesized_expression (binary_operator (identifier_sector) identifier_sector (integer_1) integer_1 )binary_operator )parenthesized_expression (attribute (attribute (identifier_self) identifier_self (identifier_header) identifier_header )attribute (identifier_sector_shift) identifier_sector_shift )attribute )binary_operator )assignment )expression_statement (return_statement (call (identifier_RootEntry) identifier_RootEntry (argument_list (identifier_self) identifier_self (identifier_position) identifier_position )argument_list )call )return_statement )block )function_definition )module
Property provides access to root object in CFB.
(module (function_definition (function_name_resampled) function_name_resampled (parameters (default_parameter (identifier_chunksize_bytes) identifier_chunksize_bytes (identifier_DEFAULT_CHUNK_SIZE) identifier_DEFAULT_CHUNK_SIZE )default_parameter (default_parameter (identifier_resample_to) identifier_resample_to (call (identifier_SR44100) identifier_SR44100 (argument_list )argument_list )call )default_parameter (default_parameter (identifier_store_resampled) identifier_store_resampled (False) False )default_parameter )parameters (block (class_definition (identifier_Resampled) identifier_Resampled (argument_list (identifier_BaseModel) identifier_BaseModel )argument_list (block (expression_statement (assignment (identifier_meta) identifier_meta (call (identifier_JSONFeature) identifier_JSONFeature (argument_list (identifier_MetaData) identifier_MetaData (keyword_argument (identifier_store) identifier_store (True) True )keyword_argument (keyword_argument (identifier_encoder) identifier_encoder (identifier_AudioMetaDataEncoder) identifier_AudioMetaDataEncoder )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_raw) identifier_raw (call (identifier_ByteStreamFeature) identifier_ByteStreamFeature (argument_list (identifier_ByteStream) identifier_ByteStream (keyword_argument (identifier_chunksize) identifier_chunksize (identifier_chunksize_bytes) identifier_chunksize_bytes )keyword_argument (keyword_argument (identifier_needs) identifier_needs (identifier_meta) identifier_meta )keyword_argument (keyword_argument (identifier_store) identifier_store (False) False )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ogg) identifier_ogg (call (identifier_OggVorbisFeature) identifier_OggVorbisFeature (argument_list (identifier_OggVorbis) identifier_OggVorbis (keyword_argument (identifier_needs) identifier_needs (identifier_raw) identifier_raw )keyword_argument (keyword_argument (identifier_store) identifier_store (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_pcm) identifier_pcm (call (identifier_AudioSamplesFeature) identifier_AudioSamplesFeature (argument_list (identifier_AudioStream) identifier_AudioStream (keyword_argument (identifier_needs) identifier_needs (identifier_raw) identifier_raw )keyword_argument (keyword_argument (identifier_store) identifier_store (False) False )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_resampled) identifier_resampled (call (identifier_AudioSamplesFeature) identifier_AudioSamplesFeature (argument_list (identifier_Resampler) identifier_Resampler (keyword_argument (identifier_needs) identifier_needs (identifier_pcm) identifier_pcm )keyword_argument (keyword_argument (identifier_samplerate) identifier_samplerate (identifier_resample_to) identifier_resample_to )keyword_argument (keyword_argument (identifier_store) identifier_store (identifier_store_resampled) identifier_store_resampled )keyword_argument )argument_list )call )assignment )expression_statement )block )class_definition (return_statement (identifier_Resampled) identifier_Resampled )return_statement )block )function_definition )module
Create a basic processing pipeline that can resample all incoming audio to a normalized sampling rate for downstream processing, and store a convenient, compressed version for playback :param chunksize_bytes: The number of bytes from the raw stream to process at once :param resample_to: The new, normalized sampling rate :return: A simple processing pipeline
(module (function_definition (function_name_update_domain_name) function_name_update_domain_name (parameters (identifier_self) identifier_self (identifier_domain_name) identifier_domain_name (default_parameter (identifier_certificate_name) identifier_certificate_name (None) None )default_parameter (default_parameter (identifier_certificate_body) identifier_certificate_body (None) None )default_parameter (default_parameter (identifier_certificate_private_key) identifier_certificate_private_key (None) None )default_parameter (default_parameter (identifier_certificate_chain) identifier_certificate_chain (None) None )default_parameter (default_parameter (identifier_certificate_arn) identifier_certificate_arn (None) None )default_parameter (default_parameter (identifier_lambda_name) identifier_lambda_name (None) None )default_parameter (default_parameter (identifier_stage) identifier_stage (None) None )default_parameter (default_parameter (identifier_route53) identifier_route53 (True) True )default_parameter (default_parameter (identifier_base_path) identifier_base_path (None) None )default_parameter )parameters (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Updating domain name!") string_"Updating domain name!" )argument_list )call )expression_statement (expression_statement (assignment (identifier_certificate_name) identifier_certificate_name (binary_operator (identifier_certificate_name) identifier_certificate_name (call (identifier_str) identifier_str (argument_list (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_api_gateway_domain) identifier_api_gateway_domain (call (attribute (attribute (identifier_self) identifier_self (identifier_apigateway_client) identifier_apigateway_client )attribute (identifier_get_domain_name) identifier_get_domain_name )attribute (argument_list (keyword_argument (identifier_domainName) identifier_domainName (identifier_domain_name) identifier_domain_name )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (boolean_operator (boolean_operator (not_operator (identifier_certificate_arn) identifier_certificate_arn )not_operator (line_continuation_\) line_continuation_\ (identifier_certificate_body) identifier_certificate_body )boolean_operator (identifier_certificate_private_key) identifier_certificate_private_key )boolean_operator (identifier_certificate_chain) identifier_certificate_chain )boolean_operator (block (expression_statement (assignment (identifier_acm_certificate) identifier_acm_certificate (call (attribute (attribute (identifier_self) identifier_self (identifier_acm_client) identifier_acm_client )attribute (identifier_import_certificate) identifier_import_certificate )attribute (argument_list (keyword_argument (identifier_Certificate) identifier_Certificate (identifier_certificate_body) identifier_certificate_body )keyword_argument (keyword_argument (identifier_PrivateKey) identifier_PrivateKey (identifier_certificate_private_key) identifier_certificate_private_key )keyword_argument (keyword_argument (identifier_CertificateChain) identifier_CertificateChain (identifier_certificate_chain) identifier_certificate_chain )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_certificate_arn) identifier_certificate_arn (subscript (identifier_acm_certificate) identifier_acm_certificate (string_'CertificateArn') string_'CertificateArn' )subscript )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_update_domain_base_path_mapping) identifier_update_domain_base_path_mapping )attribute (argument_list (identifier_domain_name) identifier_domain_name (identifier_lambda_name) identifier_lambda_name (identifier_stage) identifier_stage (identifier_base_path) identifier_base_path )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_apigateway_client) identifier_apigateway_client )attribute (identifier_update_domain_name) identifier_update_domain_name )attribute (argument_list (keyword_argument (identifier_domainName) identifier_domainName (identifier_domain_name) identifier_domain_name )keyword_argument (keyword_argument (identifier_patchOperations) identifier_patchOperations (list (dictionary (pair (string_"op") string_"op" (string_"replace") string_"replace" )pair (pair (string_"path") string_"path" (string_"/certificateName") string_"/certificateName" )pair (pair (string_"value") string_"value" (identifier_certificate_name) identifier_certificate_name )pair )dictionary (dictionary (pair (string_"op") string_"op" (string_"replace") string_"replace" )pair (pair (string_"path") string_"path" (string_"/certificateArn") string_"/certificateArn" )pair (pair (string_"value") string_"value" (identifier_certificate_arn) identifier_certificate_arn )pair )dictionary )list )keyword_argument )argument_list )call )return_statement )block )function_definition )module
This updates your certificate information for an existing domain, with similar arguments to boto's update_domain_name API Gateway api. It returns the resulting new domain information including the new certificate's ARN if created during this process. Previously, this method involved downtime that could take up to 40 minutes because the API Gateway api only allowed this by deleting, and then creating it. Related issues: https://github.com/Miserlou/Zappa/issues/590 https://github.com/Miserlou/Zappa/issues/588 https://github.com/Miserlou/Zappa/pull/458 https://github.com/Miserlou/Zappa/issues/882 https://github.com/Miserlou/Zappa/pull/883
(module (function_definition (function_name_is_path_like) function_name_is_path_like (parameters (identifier_obj) identifier_obj (default_parameter (identifier_attr) identifier_attr (tuple (string_'name') string_'name' (string_'is_file') string_'is_file' (string_'is_dir') string_'is_dir' (string_'iterdir') string_'iterdir' )tuple )default_parameter )parameters (block (for_statement (identifier_a) identifier_a (identifier_attr) identifier_attr (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_obj) identifier_obj (identifier_a) identifier_a )argument_list )call )not_operator (block (return_statement (False) False )return_statement )block )if_statement )block )for_statement (return_statement (True) True )return_statement )block )function_definition )module
test if object is pathlib.Path like
(module (function_definition (function_name_wait_for_any_log) function_name_wait_for_any_log (parameters (identifier_nodes) identifier_nodes (identifier_pattern) identifier_pattern (identifier_timeout) identifier_timeout (default_parameter (identifier_filename) identifier_filename (string_'system.log') string_'system.log' )default_parameter (default_parameter (identifier_marks) identifier_marks (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_marks) identifier_marks (None) None )comparison_operator (block (expression_statement (assignment (identifier_marks) identifier_marks (dictionary )dictionary )assignment )expression_statement )block )if_statement (for_statement (identifier__) identifier__ (call (identifier_range) identifier_range (argument_list (identifier_timeout) identifier_timeout )argument_list )call (block (for_statement (identifier_node) identifier_node (identifier_nodes) identifier_nodes (block (expression_statement (assignment (identifier_found) identifier_found (call (attribute (identifier_node) identifier_node (identifier_grep_log) identifier_grep_log )attribute (argument_list (identifier_pattern) identifier_pattern (keyword_argument (identifier_filename) identifier_filename (identifier_filename) identifier_filename )keyword_argument (keyword_argument (identifier_from_mark) identifier_from_mark (call (attribute (identifier_marks) identifier_marks (identifier_get) identifier_get )attribute (argument_list (identifier_node) identifier_node (None) None )argument_list )call )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (identifier_found) identifier_found (block (return_statement (identifier_node) identifier_node )return_statement )block )if_statement )block )for_statement (expression_statement (call (attribute (identifier_time) identifier_time (identifier_sleep) identifier_sleep )attribute (argument_list (integer_1) integer_1 )argument_list )call )expression_statement )block )for_statement (raise_statement (call (identifier_TimeoutError) identifier_TimeoutError (argument_list (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (call (attribute (identifier_time) identifier_time (identifier_strftime) identifier_strftime )attribute (argument_list (string_"%d %b %Y %H:%M:%S") string_"%d %b %Y %H:%M:%S" (call (attribute (identifier_time) identifier_time (identifier_gmtime) identifier_gmtime )attribute (argument_list )argument_list )call )argument_list )call (string_" Unable to find: ") string_" Unable to find: " )binary_operator (call (identifier_repr) identifier_repr (argument_list (identifier_pattern) identifier_pattern )argument_list )call )binary_operator (string_" in any node log within ") string_" in any node log within " )binary_operator (call (identifier_str) identifier_str (argument_list (identifier_timeout) identifier_timeout )argument_list )call )binary_operator (string_"s") string_"s" )binary_operator )argument_list )call )raise_statement )block )function_definition )module
Look for a pattern in the system.log of any in a given list of nodes. @param nodes The list of nodes whose logs to scan @param pattern The target pattern @param timeout How long to wait for the pattern. Note that strictly speaking, timeout is not really a timeout, but a maximum number of attempts. This implies that the all the grepping takes no time at all, so it is somewhat inaccurate, but probably close enough. @param marks A dict of nodes to marks in the file. Keys must match the first param list. @return The first node in whose log the pattern was found
(module (function_definition (function_name__parse_phone) function_name__parse_phone (parameters (identifier_self) identifier_self (identifier_val) identifier_val )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (dictionary (pair (string_'type') string_'type' (None) None )pair (pair (string_'value') string_'value' (None) None )pair )dictionary )assignment )expression_statement (try_statement (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'type') string_'type' )subscript (subscript (subscript (identifier_val) identifier_val (integer_1) integer_1 )subscript (string_'type') string_'type' )subscript )assignment )expression_statement )block (except_clause (tuple (identifier_IndexError) identifier_IndexError (identifier_KeyError) identifier_KeyError (identifier_ValueError) identifier_ValueError (identifier_TypeError) identifier_TypeError )tuple (block (pass_statement )pass_statement )block )except_clause )try_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'value') string_'value' )subscript (call (attribute (subscript (identifier_val) identifier_val (integer_3) integer_3 )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute (string_'phone') string_'phone' )subscript (identifier_append) identifier_append )attribute (argument_list (identifier_ret) identifier_ret )argument_list )call )expression_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute (string_'phone') string_'phone' )subscript (list )list )assignment )expression_statement (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_vars) identifier_vars )attribute (string_'phone') string_'phone' )subscript (identifier_append) identifier_append )attribute (argument_list (identifier_ret) identifier_ret )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
The function for parsing the vcard phone numbers. Args: val (:obj:`list`): The value to parse.
(module (function_definition (function_name_dump_database_as_insert_sql) function_name_dump_database_as_insert_sql (parameters (typed_parameter (identifier_engine) identifier_engine (type (identifier_Engine) identifier_Engine )type )typed_parameter (typed_default_parameter (identifier_fileobj) identifier_fileobj (type (identifier_TextIO) identifier_TextIO )type (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute )typed_default_parameter (typed_default_parameter (identifier_include_ddl) identifier_include_ddl (type (identifier_bool) identifier_bool )type (False) False )typed_default_parameter (typed_default_parameter (identifier_multirow) identifier_multirow (type (identifier_bool) identifier_bool )type (False) False )typed_default_parameter )parameters (type (None) None )type (block (for_statement (identifier_tablename) identifier_tablename (call (identifier_get_table_names) identifier_get_table_names (argument_list (identifier_engine) identifier_engine )argument_list )call (block (expression_statement (call (identifier_dump_table_as_insert_sql) identifier_dump_table_as_insert_sql (argument_list (keyword_argument (identifier_engine) identifier_engine (identifier_engine) identifier_engine )keyword_argument (keyword_argument (identifier_table_name) identifier_table_name (identifier_tablename) identifier_tablename )keyword_argument (keyword_argument (identifier_fileobj) identifier_fileobj (identifier_fileobj) identifier_fileobj )keyword_argument (keyword_argument (identifier_include_ddl) identifier_include_ddl (identifier_include_ddl) identifier_include_ddl )keyword_argument (keyword_argument (identifier_multirow) identifier_multirow (identifier_multirow) identifier_multirow )keyword_argument )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Reads an entire database and writes SQL to replicate it to the output file-like object. Args: engine: SQLAlchemy :class:`Engine` fileobj: file-like object to write to include_ddl: if ``True``, include the DDL to create the table as well multirow: write multi-row ``INSERT`` statements
(module (function_definition (function_name_filter_req_paths) function_name_filter_req_paths (parameters (identifier_paths) identifier_paths (identifier_func) identifier_func )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_paths) identifier_paths (identifier_list) identifier_list )argument_list )call )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"Paths must be a list of paths.") string_"Paths must be a list of paths." )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_libs) identifier_libs (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_junk) identifier_junk (call (identifier_set) identifier_set (argument_list (list (string_'\n') string_'\n' )list )argument_list )call )assignment )expression_statement (for_statement (identifier_p) identifier_p (identifier_paths) identifier_paths (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_p) identifier_p (identifier_open) identifier_open )attribute (argument_list (keyword_argument (identifier_mode) identifier_mode (string_'r') string_'r' )keyword_argument )argument_list )call (as_pattern_target (identifier_reqs) identifier_reqs )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_lines) identifier_lines (call (identifier_set) identifier_set (argument_list (list_comprehension (identifier_line) identifier_line (for_in_clause (identifier_line) identifier_line (identifier_reqs) identifier_reqs )for_in_clause (if_clause (call (identifier_func) identifier_func (argument_list (identifier_line) identifier_line )argument_list )call )if_clause )list_comprehension )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_libs) identifier_libs (identifier_update) identifier_update )attribute (argument_list (identifier_lines) identifier_lines )argument_list )call )expression_statement )block )with_statement )block )for_statement (return_statement (call (identifier_list) identifier_list (argument_list (binary_operator (identifier_libs) identifier_libs (identifier_junk) identifier_junk )binary_operator )argument_list )call )return_statement )block )function_definition )module
Return list of filtered libs.
(module (function_definition (function_name__register_service) function_name__register_service (parameters (identifier_self) identifier_self )parameters (block (if_statement (parenthesized_expression (boolean_operator (boolean_operator (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__registration) identifier__registration )attribute (None) None )comparison_operator (attribute (identifier_self) identifier_self (identifier_specifications) identifier_specifications )attribute )boolean_operator (attribute (identifier_self) identifier_self (identifier___validated) identifier___validated )attribute )boolean_operator (attribute (identifier_self) identifier_self (identifier___controller_on) identifier___controller_on )attribute )boolean_operator )parenthesized_expression (block (expression_statement (assignment (identifier_properties) identifier_properties (call (attribute (attribute (attribute (attribute (identifier_self) identifier_self (identifier__ipopo_instance) identifier__ipopo_instance )attribute (identifier_context) identifier_context )attribute (identifier_properties) identifier_properties )attribute (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_bundle_context) identifier_bundle_context (attribute (attribute (identifier_self) identifier_self (identifier__ipopo_instance) identifier__ipopo_instance )attribute (identifier_bundle_context) identifier_bundle_context )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__registration) identifier__registration )attribute (call (attribute (identifier_bundle_context) identifier_bundle_context (identifier_register_service) identifier_register_service )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_specifications) identifier_specifications )attribute (attribute (attribute (identifier_self) identifier_self (identifier__ipopo_instance) identifier__ipopo_instance )attribute (identifier_instance) identifier_instance )attribute (identifier_properties) identifier_properties (keyword_argument (identifier_factory) identifier_factory (attribute (identifier_self) identifier_self (identifier___is_factory) identifier___is_factory )attribute )keyword_argument (keyword_argument (identifier_prototype) identifier_prototype (attribute (identifier_self) identifier_self (identifier___is_prototype) identifier___is_prototype )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__svc_reference) identifier__svc_reference )attribute (call (attribute (attribute (identifier_self) identifier_self (identifier__registration) identifier__registration )attribute (identifier_get_reference) identifier_get_reference )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__ipopo_instance) identifier__ipopo_instance )attribute (identifier_safe_callback) identifier_safe_callback )attribute (argument_list (attribute (identifier_ipopo_constants) identifier_ipopo_constants (identifier_IPOPO_CALLBACK_POST_REGISTRATION) identifier_IPOPO_CALLBACK_POST_REGISTRATION )attribute (attribute (identifier_self) identifier_self (identifier__svc_reference) identifier__svc_reference )attribute )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Registers the provided service, if possible
(module (function_definition (function_name_plot_probability_alive_matrix) function_name_plot_probability_alive_matrix (parameters (identifier_model) identifier_model (default_parameter (identifier_max_frequency) identifier_max_frequency (None) None )default_parameter (default_parameter (identifier_max_recency) identifier_max_recency (None) None )default_parameter (default_parameter (identifier_title) identifier_title (string_"Probability Customer is Alive,\nby Frequency and Recency of a Customer") string_"Probability Customer is Alive,\nby Frequency and Recency of a Customer" )default_parameter (default_parameter (identifier_xlabel) identifier_xlabel (string_"Customer's Historical Frequency") string_"Customer's Historical Frequency" )default_parameter (default_parameter (identifier_ylabel) identifier_ylabel (string_"Customer's Recency") string_"Customer's Recency" )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (import_from_statement (dotted_name (identifier_matplotlib) identifier_matplotlib )dotted_name (aliased_import (dotted_name (identifier_pyplot) identifier_pyplot )dotted_name (identifier_plt) identifier_plt )aliased_import )import_from_statement (expression_statement (assignment (identifier_z) identifier_z (call (attribute (identifier_model) identifier_model (identifier_conditional_probability_alive_matrix) identifier_conditional_probability_alive_matrix )attribute (argument_list (identifier_max_frequency) identifier_max_frequency (identifier_max_recency) identifier_max_recency )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_interpolation) identifier_interpolation (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_"interpolation") string_"interpolation" (string_"none") string_"none" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ax) identifier_ax (call (attribute (identifier_plt) identifier_plt (identifier_subplot) identifier_subplot )attribute (argument_list (integer_111) integer_111 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_pcm) identifier_pcm (call (attribute (identifier_ax) identifier_ax (identifier_imshow) identifier_imshow )attribute (argument_list (identifier_z) identifier_z (keyword_argument (identifier_interpolation) identifier_interpolation (identifier_interpolation) identifier_interpolation )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_xlabel) identifier_xlabel )attribute (argument_list (identifier_xlabel) identifier_xlabel )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_ylabel) identifier_ylabel )attribute (argument_list (identifier_ylabel) identifier_ylabel )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_title) identifier_title )attribute (argument_list (identifier_title) identifier_title )argument_list )call )expression_statement (expression_statement (call (identifier_forceAspect) identifier_forceAspect (argument_list (identifier_ax) identifier_ax )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_plt) identifier_plt (identifier_colorbar) identifier_colorbar )attribute (argument_list (identifier_pcm) identifier_pcm (keyword_argument (identifier_ax) identifier_ax (identifier_ax) identifier_ax )keyword_argument )argument_list )call )expression_statement (return_statement (identifier_ax) identifier_ax )return_statement )block )function_definition )module
Plot probability alive matrix as heatmap. Plot a figure of the probability a customer is alive based on their frequency and recency. Parameters ---------- model: lifetimes model A fitted lifetimes model. max_frequency: int, optional The maximum frequency to plot. Default is max observed frequency. max_recency: int, optional The maximum recency to plot. This also determines the age of the customer. Default to max observed age. title: str, optional Figure title xlabel: str, optional Figure xlabel ylabel: str, optional Figure ylabel kwargs Passed into the matplotlib.imshow command. Returns ------- axes: matplotlib.AxesSubplot
(module (function_definition (function_name___reset_unique_identities) function_name___reset_unique_identities (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (string_"Reseting unique identities...") string_"Reseting unique identities..." )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (string_"Clearing identities relationships") string_"Clearing identities relationships" )argument_list )call )expression_statement (expression_statement (assignment (identifier_nids) identifier_nids (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (identifier_uidentities) identifier_uidentities (call (attribute (identifier_api) identifier_api (identifier_unique_identities) identifier_unique_identities )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute )argument_list )call )assignment )expression_statement (for_statement (identifier_uidentity) identifier_uidentity (identifier_uidentities) identifier_uidentities (block (for_statement (identifier_identity) identifier_identity (attribute (identifier_uidentity) identifier_uidentity (identifier_identities) identifier_identities )attribute (block (expression_statement (call (attribute (identifier_api) identifier_api (identifier_move_identity) identifier_move_identity )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute (attribute (identifier_identity) identifier_identity (identifier_id) identifier_id )attribute (attribute (identifier_identity) identifier_identity (identifier_id) identifier_id )attribute )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_nids) identifier_nids (integer_1) integer_1 )augmented_assignment )expression_statement )block )for_statement )block )for_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (binary_operator (string_"Relationships cleared for %s identities") string_"Relationships cleared for %s identities" (identifier_nids) identifier_nids )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (string_"Clearing enrollments") string_"Clearing enrollments" )argument_list )call )expression_statement (with_statement (with_clause (with_item (as_pattern (call (attribute (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute (identifier_connect) identifier_connect )attribute (argument_list )argument_list )call (as_pattern_target (identifier_session) identifier_session )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_enrollments) identifier_enrollments (call (attribute (call (attribute (identifier_session) identifier_session (identifier_query) identifier_query )attribute (argument_list (identifier_Enrollment) identifier_Enrollment )argument_list )call (identifier_all) identifier_all )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_enr) identifier_enr (identifier_enrollments) identifier_enrollments (block (expression_statement (call (attribute (identifier_session) identifier_session (identifier_delete) identifier_delete )attribute (argument_list (identifier_enr) identifier_enr )argument_list )call )expression_statement )block )for_statement )block )with_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (string_"Enrollments cleared") string_"Enrollments cleared" )argument_list )call )expression_statement )block )function_definition )module
Clear identities relationships and enrollments data
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_javabridge) identifier_javabridge (identifier_call) identifier_call )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_jobject) identifier_jobject )attribute (string_"reset") string_"reset" (string_"()V") string_"()V" )argument_list )call )expression_statement (return_statement (call (identifier_Instances) identifier_Instances (argument_list (call (attribute (identifier_javabridge) identifier_javabridge (identifier_call) identifier_call )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_jobject) identifier_jobject )attribute (string_"getDataSet") string_"getDataSet" (string_"()Lweka/core/Instances;") string_"()Lweka/core/Instances;" )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Loads the text files from the specified directory and returns the Instances object. In case of incremental loading, only the structure. :return: the full dataset or the header (if incremental) :rtype: Instances
(module (function_definition (function_name_in_app) function_name_in_app (parameters )parameters (type (identifier_bool) identifier_bool )type (block (try_statement (block (expression_statement (call (attribute (identifier_MirageEnvironment) identifier_MirageEnvironment (identifier_set_import_root) identifier_set_import_root )attribute (argument_list )argument_list )call )expression_statement (import_statement (dotted_name (identifier_apps) identifier_apps )dotted_name )import_statement (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (string_"apps.py") string_"apps.py" )argument_list )call (block (return_statement (True) True )return_statement )block (else_clause (block (return_statement (False) False )return_statement )block )else_clause )if_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (return_statement (False) False )return_statement )block )except_clause (except_clause (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
Judge where current working directory is in Django application or not. returns: - (Bool) cwd is in app dir returns True
(module (function_definition (function_name_delete_tmp_dir) function_name_delete_tmp_dir (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (binary_operator (string_"Deleting: ") string_"Deleting: " (attribute (identifier_self) identifier_self (identifier_tmp_dir) identifier_tmp_dir )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_shutil) identifier_shutil (identifier_rmtree) identifier_rmtree )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_tmp_dir) identifier_tmp_dir )attribute (True) True )argument_list )call )expression_statement )block )function_definition )module
Delete the entire tmp dir
(module (function_definition (function_name___ordering_deprecated) function_name___ordering_deprecated (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_msg) identifier_msg (call (identifier__format) identifier__format (argument_list (concatenated_string (string_"Ordering comparisons involving {0} objects are ") string_"Ordering comparisons involving {0} objects are " (string_"deprecated.") string_"deprecated." )concatenated_string (attribute (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (identifier___name__) identifier___name__ )attribute )argument_list )call )assignment )expression_statement (if_statement (identifier_DEBUG_WARNING_ORIGIN) identifier_DEBUG_WARNING_ORIGIN (block (expression_statement (augmented_assignment (identifier_msg) identifier_msg (binary_operator (string_"\nTraceback:\n") string_"\nTraceback:\n" (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (argument_list (call (attribute (identifier_traceback) identifier_traceback (identifier_format_stack) identifier_format_stack )attribute (argument_list )argument_list )call )argument_list )call )binary_operator )augmented_assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (identifier_msg) identifier_msg (identifier_DeprecationWarning) identifier_DeprecationWarning (keyword_argument (identifier_stacklevel) identifier_stacklevel (integer_3) integer_3 )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Deprecated warning for pywbem CIM Objects
(module (function_definition (function_name_authenticate) function_name_authenticate (parameters (identifier_self) identifier_self (default_parameter (identifier_reauth) identifier_reauth (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_auth_url) identifier_auth_url (binary_operator (identifier_BASE_URL) identifier_BASE_URL (string_"/rest/user") string_"/rest/user" )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_payload) identifier_payload (dictionary (pair (string_'email') string_'email' (attribute (identifier_self) identifier_self (identifier_email) identifier_email )attribute )pair (pair (string_'password') string_'password' (attribute (identifier_self) identifier_self (identifier_password) identifier_password )attribute )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_arequest) identifier_arequest (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (identifier_auth_url) identifier_auth_url (keyword_argument (identifier_params) identifier_params (identifier_payload) identifier_payload )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_status) identifier_status (attribute (identifier_arequest) identifier_arequest (identifier_status_code) identifier_status_code )attribute )assignment )expression_statement (if_statement (comparison_operator (identifier_status) identifier_status (integer_200) integer_200 )comparison_operator (block (if_statement (identifier_reauth) identifier_reauth (block (expression_statement (call (attribute (identifier__LOGGER) identifier__LOGGER (identifier_error) identifier_error )attribute (argument_list (binary_operator (string_"Reauthentication request failed. ") string_"Reauthentication request failed. " (identifier_status) identifier_status )binary_operator )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier__LOGGER) identifier__LOGGER (identifier_error) identifier_error )attribute (argument_list (binary_operator (string_"Authentication request failed, please check credintials. ") string_"Authentication request failed, please check credintials. " (identifier_status) identifier_status )binary_operator )argument_list )call )expression_statement )block )else_clause )if_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_token) identifier_token )attribute (call (attribute (call (attribute (identifier_arequest) identifier_arequest (identifier_json) identifier_json )attribute (argument_list )argument_list )call (identifier_get) identifier_get )attribute (argument_list (string_'usertoken') string_'usertoken' )argument_list )call )assignment )expression_statement (if_statement (identifier_reauth) identifier_reauth (block (expression_statement (call (attribute (identifier__LOGGER) identifier__LOGGER (identifier_info) identifier_info )attribute (argument_list (string_"Reauthentication was successful, token updated.") string_"Reauthentication was successful, token updated." )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier__LOGGER) identifier__LOGGER (identifier_info) identifier_info )attribute (argument_list (string_"Authentication was successful, token set.") string_"Authentication was successful, token set." )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Authenticate with the API and return an authentication token.
(module (function_definition (function_name_rotate) function_name_rotate (parameters (identifier_self) identifier_self (identifier_angle) identifier_angle (identifier_axis) identifier_axis (default_parameter (identifier_point) identifier_point (None) None )default_parameter (default_parameter (identifier_radians) identifier_radians (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_q) identifier_q (call (attribute (identifier_Quaternion) identifier_Quaternion (identifier_angle_and_axis) identifier_angle_and_axis )attribute (argument_list (keyword_argument (identifier_angle) identifier_angle (identifier_angle) identifier_angle )keyword_argument (keyword_argument (identifier_axis) identifier_axis (identifier_axis) identifier_axis )keyword_argument (keyword_argument (identifier_radians) identifier_radians (identifier_radians) identifier_radians )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__vector) identifier__vector )attribute (call (attribute (identifier_q) identifier_q (identifier_rotate_vector) identifier_rotate_vector )attribute (argument_list (keyword_argument (identifier_v) identifier_v (attribute (identifier_self) identifier_self (identifier__vector) identifier__vector )attribute )keyword_argument (keyword_argument (identifier_point) identifier_point (identifier_point) identifier_point )keyword_argument )argument_list )call )assignment )expression_statement (return_statement )return_statement )block )function_definition )module
Rotates `Atom` by `angle`. Parameters ---------- angle : float Angle that `Atom` will be rotated. axis : 3D Vector (tuple, list, numpy.array) Axis about which the `Atom` will be rotated. point : 3D Vector (tuple, list, numpy.array), optional Point that the `axis` lies upon. If `None` then the origin is used. radians : bool, optional True is `angle` is define in radians, False is degrees.
(module (function_definition (function_name_model_setup) function_name_model_setup (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_device) identifier_device (attribute (attribute (identifier_self) identifier_self (identifier_devman) identifier_devman )attribute (identifier_devices) identifier_devices )attribute (block (if_statement (attribute (subscript (attribute (identifier_self) identifier_self (identifier___dict__) identifier___dict__ )attribute (identifier_device) identifier_device )subscript (identifier_n) identifier_n )attribute (block (try_statement (block (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier___dict__) identifier___dict__ )attribute (identifier_device) identifier_device )subscript (identifier_setup) identifier_setup )attribute (argument_list )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (raise_statement (identifier_e) identifier_e )raise_statement )block )except_clause )try_statement )block )if_statement )block )for_statement )block )function_definition )module
Call the ``setup`` function of the loaded models. This function is to be called after parsing all the data files during the system set up. Returns ------- None
(module (function_definition (function_name_status) function_name_status (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary_comprehension (pair (call (attribute (identifier_self) identifier_self (identifier__acronym_status) identifier__acronym_status )attribute (argument_list (identifier_l) identifier_l )argument_list )call (identifier_l) identifier_l )pair (for_in_clause (identifier_l) identifier_l (call (attribute (attribute (identifier_self) identifier_self (identifier_resp_text) identifier_resp_text )attribute (identifier_split) identifier_split )attribute (argument_list (string_'\n') string_'\n' )argument_list )call )for_in_clause (if_clause (call (attribute (identifier_l) identifier_l (identifier_startswith) identifier_startswith )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_prefix_status) identifier_prefix_status )attribute )argument_list )call )if_clause )dictionary_comprehension )return_statement )block )function_definition )module
Development status.
(module (function_definition (function_name_get_volumes) function_name_get_volumes (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_vols) identifier_vols (list_comprehension (call (attribute (identifier_self) identifier_self (identifier_find_volume) identifier_find_volume )attribute (argument_list (identifier_name) identifier_name )argument_list )call (for_in_clause (identifier_name) identifier_name (call (attribute (attribute (identifier_self) identifier_self (identifier_virsp) identifier_virsp )attribute (identifier_listVolumes) identifier_listVolumes )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (identifier_vols) identifier_vols )return_statement )block )function_definition )module
Return a list of all Volumes in this Storage Pool
(module (function_definition (function_name_add_static_path) function_name_add_static_path (parameters (identifier_self) identifier_self (typed_parameter (identifier_prefix) identifier_prefix (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier_path) identifier_path (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (None) None )type (block (expression_statement (assignment (identifier_pattern) identifier_pattern (identifier_prefix) identifier_prefix )assignment )expression_statement (if_statement (not_operator (call (attribute (identifier_pattern) identifier_pattern (identifier_startswith) identifier_startswith )attribute (argument_list (string_'/') string_'/' )argument_list )call )not_operator (block (expression_statement (assignment (identifier_pattern) identifier_pattern (binary_operator (string_'/') string_'/' (identifier_pattern) identifier_pattern )binary_operator )assignment )expression_statement )block )if_statement (if_statement (not_operator (call (attribute (identifier_pattern) identifier_pattern (identifier_endswith) identifier_endswith )attribute (argument_list (string_'/(.*)') string_'/(.*)' )argument_list )call )not_operator (block (expression_statement (assignment (identifier_pattern) identifier_pattern (binary_operator (identifier_pattern) identifier_pattern (string_'/(.*)') string_'/(.*)' )binary_operator )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_add_handlers) identifier_add_handlers )attribute (argument_list (string_r'.*') string_r'.*' (list (tuple (identifier_pattern) identifier_pattern (identifier_StaticFileHandler) identifier_StaticFileHandler (call (identifier_dict) identifier_dict (argument_list (keyword_argument (identifier_path) identifier_path (identifier_path) identifier_path )keyword_argument )argument_list )call )tuple )list )argument_list )call )expression_statement )block )function_definition )module
Add path to serve static files. ``prefix`` is used for url prefix to serve static files and ``path`` is a path to the static file directory. ``prefix = '/_static'`` is reserved for the server, so do not use it for your app.
(module (function_definition (function_name_clear) function_name_clear (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_country_code) identifier_country_code )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_national_number) identifier_national_number )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_extension) identifier_extension )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_italian_leading_zero) identifier_italian_leading_zero )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_number_of_leading_zeros) identifier_number_of_leading_zeros )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_raw_input) identifier_raw_input )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_country_code_source) identifier_country_code_source )attribute (attribute (identifier_CountryCodeSource) identifier_CountryCodeSource (identifier_UNSPECIFIED) identifier_UNSPECIFIED )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_preferred_domestic_carrier_code) identifier_preferred_domestic_carrier_code )attribute (None) None )assignment )expression_statement )block )function_definition )module
Erase the contents of the object
(module (function_definition (function_name_switch) function_name_switch (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_base_block) identifier_base_block (boolean_operator (attribute (identifier_self) identifier_self (identifier_base_block) identifier_base_block )attribute (identifier_self) identifier_self )boolean_operator )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_next_block) identifier_next_block )attribute (call (identifier_Block) identifier_Block (argument_list (attribute (identifier_self) identifier_self (identifier_parent) identifier_parent )attribute (keyword_argument (identifier_base_block) identifier_base_block (identifier_base_block) identifier_base_block )keyword_argument (keyword_argument (identifier_py3_wrapper) identifier_py3_wrapper (attribute (identifier_self) identifier_self (identifier_py3_wrapper) identifier_py3_wrapper )attribute )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_next_block) identifier_next_block )attribute )return_statement )block )function_definition )module
block has been split via | so we need to start a new block for that option and return it to the user.
(module (function_definition (function_name_get_point) function_name_get_point (parameters (identifier_cls) identifier_cls (identifier_idx) identifier_idx (identifier_size) identifier_size )parameters (block (expression_statement (assignment (pattern_list (identifier_x) identifier_x (identifier_y) identifier_y )pattern_list (subscript (attribute (identifier_cls) identifier_cls (identifier_POSITION) identifier_POSITION )attribute (binary_operator (identifier_idx) identifier_idx (integer_4) integer_4 )binary_operator )subscript )assignment )expression_statement (expression_statement (augmented_assignment (identifier_idx) identifier_idx (integer_4) integer_4 )augmented_assignment )expression_statement (expression_statement (assignment (identifier_block_size) identifier_block_size (integer_2) integer_2 )assignment )expression_statement (while_statement (comparison_operator (identifier_block_size) identifier_block_size (identifier_size) identifier_size )comparison_operator (block (expression_statement (assignment (identifier_block_idx) identifier_block_idx (binary_operator (identifier_idx) identifier_idx (integer_4) integer_4 )binary_operator )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_x) identifier_x (identifier_y) identifier_y )pattern_list (call (attribute (identifier_cls) identifier_cls (identifier_get_point_in_block) identifier_get_point_in_block )attribute (argument_list (identifier_x) identifier_x (identifier_y) identifier_y (identifier_block_idx) identifier_block_idx (identifier_block_size) identifier_block_size )argument_list )call )assignment )expression_statement (expression_statement (augmented_assignment (identifier_idx) identifier_idx (integer_4) integer_4 )augmented_assignment )expression_statement (expression_statement (augmented_assignment (identifier_block_size) identifier_block_size (integer_2) integer_2 )augmented_assignment )expression_statement )block )while_statement (return_statement (expression_list (identifier_x) identifier_x (identifier_y) identifier_y )expression_list )return_statement )block )function_definition )module
Get curve point coordinates by index. Parameters ---------- idx : `int` Point index. size : `int` Curve size. Returns ------- (`int`, `int`) Point coordinates.
(module (function_definition (function_name_create_nouns) function_name_create_nouns (parameters (default_parameter (identifier_max) identifier_max (integer_2) integer_2 )default_parameter )parameters (block (expression_statement (assignment (identifier_nouns) identifier_nouns (list )list )assignment )expression_statement (for_statement (identifier_noun) identifier_noun (call (identifier_range) identifier_range (argument_list (integer_0) integer_0 (identifier_max) identifier_max )argument_list )call (block (expression_statement (call (attribute (identifier_nouns) identifier_nouns (identifier_append) identifier_append )attribute (argument_list (call (attribute (identifier_random) identifier_random (identifier_choice) identifier_choice )attribute (argument_list (identifier_noun_list) identifier_noun_list )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (call (attribute (string_" ") string_" " (identifier_join) identifier_join )attribute (argument_list (identifier_nouns) identifier_nouns )argument_list )call )return_statement )block )function_definition )module
Return a string of random nouns up to max number
(module (function_definition (function_name__update_events) function_name__update_events (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_events) identifier_events (boolean_operator (call (attribute (attribute (identifier_self) identifier_self (identifier__skybell) identifier__skybell )attribute (identifier_dev_cache) identifier_dev_cache )attribute (argument_list (identifier_self) identifier_self (attribute (identifier_CONST) identifier_CONST (identifier_EVENT) identifier_EVENT )attribute )argument_list )call (dictionary )dictionary )boolean_operator )assignment )expression_statement (for_statement (identifier_activity) identifier_activity (attribute (identifier_self) identifier_self (identifier__activities) identifier__activities )attribute (block (expression_statement (assignment (identifier_event) identifier_event (call (attribute (identifier_activity) identifier_activity (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_CONST) identifier_CONST (identifier_EVENT) identifier_EVENT )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_created_at) identifier_created_at (call (attribute (identifier_activity) identifier_activity (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_CONST) identifier_CONST (identifier_CREATED_AT) identifier_CREATED_AT )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_old_event) identifier_old_event (call (attribute (identifier_events) identifier_events (identifier_get) identifier_get )attribute (argument_list (identifier_event) identifier_event )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (identifier_old_event) identifier_old_event (comparison_operator (identifier_created_at) identifier_created_at (call (attribute (identifier_old_event) identifier_old_event (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_CONST) identifier_CONST (identifier_CREATED_AT) identifier_CREATED_AT )attribute )argument_list )call )comparison_operator )boolean_operator (block (continue_statement )continue_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_events) identifier_events (identifier_event) identifier_event )subscript (identifier_activity) identifier_activity )assignment )expression_statement )block )else_clause )if_statement )block )for_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__skybell) identifier__skybell )attribute (identifier_update_dev_cache) identifier_update_dev_cache )attribute (argument_list (identifier_self) identifier_self (dictionary (pair (attribute (identifier_CONST) identifier_CONST (identifier_EVENT) identifier_EVENT )attribute (identifier_events) identifier_events )pair )dictionary )argument_list )call )expression_statement )block )function_definition )module
Update our cached list of latest activity events.
(module (function_definition (function_name_import_family) function_name_import_family (parameters (identifier_self) identifier_self (identifier_rfa_file) identifier_rfa_file )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__add_entry) identifier__add_entry )attribute (argument_list (call (attribute (attribute (identifier_templates) identifier_templates (identifier_IMPORT_FAMILY) identifier_IMPORT_FAMILY )attribute (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_family_file) identifier_family_file (identifier_rfa_file) identifier_rfa_file )keyword_argument )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Append a import family entry to the journal. This instructs Revit to import a family into the opened model. Args: rfa_file (str): full path of the family file
(module (function_definition (function_name_remove_labels) function_name_remove_labels (parameters (identifier_self) identifier_self (identifier_test) identifier_test )parameters (block (expression_statement (assignment (identifier_ii) identifier_ii (integer_0) integer_0 )assignment )expression_statement (while_statement (comparison_operator (identifier_ii) identifier_ii (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_labels) identifier_labels )attribute )argument_list )call )comparison_operator (block (if_statement (call (identifier_test) identifier_test (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_labels) identifier_labels )attribute (identifier_ii) identifier_ii )subscript )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_labels) identifier_labels )attribute (identifier_pop) identifier_pop )attribute (argument_list (identifier_ii) identifier_ii )argument_list )call )expression_statement )block (else_clause (block (expression_statement (augmented_assignment (identifier_ii) identifier_ii (integer_1) integer_1 )augmented_assignment )expression_statement )block )else_clause )if_statement )block )while_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Remove labels from this cell. The function or callable ``test`` is called for each label in the cell. If its return value evaluates to ``True``, the corresponding label is removed from the cell. Parameters ---------- test : callable Test function to query whether a label should be removed. The function is called with the label as the only argument. Returns ------- out : ``Cell`` This cell. Examples -------- Remove labels in layer 1: >>> cell.remove_labels(lambda lbl: lbl.layer == 1)
(module (function_definition (function_name_timeout) function_name_timeout (parameters (identifier_duration) identifier_duration )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_duration) identifier_duration (identifier_int) identifier_int )argument_list )call )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_"timeout duration should be a positive integer") string_"timeout duration should be a positive integer" )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (identifier_duration) identifier_duration (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"timeoutDuration should be a positive integer") string_"timeoutDuration should be a positive integer" )argument_list )call )raise_statement )block )if_statement (function_definition (function_name_decorator) function_name_decorator (parameters (identifier_func) identifier_func )parameters (block (function_definition (function_name_wrapped_func) function_name_wrapped_func (parameters (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (try_statement (block (function_definition (function_name_alarm_handler) function_name_alarm_handler (parameters (identifier_signum) identifier_signum (identifier_stack) identifier_stack )parameters (block (raise_statement (call (identifier_TimeoutError) identifier_TimeoutError (argument_list )argument_list )call )raise_statement )block )function_definition (expression_statement (call (attribute (identifier_signal) identifier_signal (identifier_signal) identifier_signal )attribute (argument_list (attribute (identifier_signal) identifier_signal (identifier_SIGALRM) identifier_SIGALRM )attribute (identifier_alarm_handler) identifier_alarm_handler )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_signal) identifier_signal (identifier_alarm) identifier_alarm )attribute (argument_list (identifier_duration) identifier_duration )argument_list )call )expression_statement (expression_statement (assignment (identifier_reply) identifier_reply (call (identifier_func) identifier_func (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_TimeoutError) identifier_TimeoutError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (raise_statement (identifier_e) identifier_e )raise_statement )block )except_clause )try_statement (return_statement (identifier_reply) identifier_reply )return_statement )block )function_definition (return_statement (identifier_wrapped_func) identifier_wrapped_func )return_statement )block )function_definition (return_statement (identifier_decorator) identifier_decorator )return_statement )block )function_definition )module
A decorator to force a time limit on the execution of an external function. :param int duration: the timeout duration :raises: TypeError, if duration is anything other than integer :raises: ValueError, if duration is a negative integer :raises TimeoutError, if the external function execution crosses 'duration' time
(module (function_definition (function_name_encode_offset_fetch_request) function_name_encode_offset_fetch_request (parameters (identifier_cls) identifier_cls (identifier_group) identifier_group (identifier_payloads) identifier_payloads (default_parameter (identifier_from_kafka) identifier_from_kafka (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_version) identifier_version (conditional_expression (integer_1) integer_1 (identifier_from_kafka) identifier_from_kafka (integer_0) integer_0 )conditional_expression )assignment )expression_statement (return_statement (call (subscript (attribute (attribute (attribute (identifier_kafka) identifier_kafka (identifier_protocol) identifier_protocol )attribute (identifier_commit) identifier_commit )attribute (identifier_OffsetFetchRequest) identifier_OffsetFetchRequest )attribute (identifier_version) identifier_version )subscript (argument_list (keyword_argument (identifier_consumer_group) identifier_consumer_group (identifier_group) identifier_group )keyword_argument (keyword_argument (identifier_topics) identifier_topics (list_comprehension (tuple (identifier_topic) identifier_topic (call (identifier_list) identifier_list (argument_list (call (attribute (identifier_topic_payloads) identifier_topic_payloads (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )argument_list )call )tuple (for_in_clause (pattern_list (identifier_topic) identifier_topic (identifier_topic_payloads) identifier_topic_payloads )pattern_list (call (attribute (identifier_six) identifier_six (identifier_iteritems) identifier_iteritems )attribute (argument_list (call (identifier_group_by_topic_and_partition) identifier_group_by_topic_and_partition (argument_list (identifier_payloads) identifier_payloads )argument_list )call )argument_list )call )for_in_clause )list_comprehension )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Encode an OffsetFetchRequest struct. The request is encoded using version 0 if from_kafka is false, indicating a request for Zookeeper offsets. It is encoded using version 1 otherwise, indicating a request for Kafka offsets. Arguments: group: string, the consumer group you are fetching offsets for payloads: list of OffsetFetchRequestPayload from_kafka: bool, default False, set True for Kafka-committed offsets
(module (function_definition (function_name_write_job) function_name_write_job (parameters (identifier_self) identifier_self (identifier_fh) identifier_fh )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (call (attribute (identifier_self) identifier_self (identifier_job) identifier_job )attribute (argument_list )argument_list )call (identifier_CondorDAGManJob) identifier_CondorDAGManJob )argument_list )call (block (expression_statement (call (attribute (identifier_fh) identifier_fh (identifier_write) identifier_write )attribute (argument_list (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (list (string_'SUBDAG EXTERNAL') string_'SUBDAG EXTERNAL' (attribute (identifier_self) identifier_self (identifier___name) identifier___name )attribute (call (attribute (attribute (identifier_self) identifier_self (identifier___job) identifier___job )attribute (identifier_get_sub_file) identifier_get_sub_file )attribute (argument_list )argument_list )call )list )argument_list )call )argument_list )call )expression_statement (if_statement (call (attribute (call (attribute (identifier_self) identifier_self (identifier_job) identifier_job )attribute (argument_list )argument_list )call (identifier_get_dag_directory) identifier_get_dag_directory )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (identifier_fh) identifier_fh (identifier_write) identifier_write )attribute (argument_list (binary_operator (string_' DIR ') string_' DIR ' (call (attribute (call (attribute (identifier_self) identifier_self (identifier_job) identifier_job )attribute (argument_list )argument_list )call (identifier_get_dag_directory) identifier_get_dag_directory )attribute (argument_list )argument_list )call )binary_operator )argument_list )call )expression_statement )block )if_statement )block (else_clause (block (expression_statement (call (attribute (identifier_fh) identifier_fh (identifier_write) identifier_write )attribute (argument_list (binary_operator (binary_operator (binary_operator (string_'JOB ') string_'JOB ' (attribute (identifier_self) identifier_self (identifier___name) identifier___name )attribute )binary_operator (string_' ') string_' ' )binary_operator (call (attribute (attribute (identifier_self) identifier_self (identifier___job) identifier___job )attribute (identifier_get_sub_file) identifier_get_sub_file )attribute (argument_list )argument_list )call )binary_operator )argument_list )call )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_fh) identifier_fh (identifier_write) identifier_write )attribute (argument_list (string_'\n') string_'\n' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_fh) identifier_fh (identifier_write) identifier_write )attribute (argument_list (binary_operator (binary_operator (binary_operator (binary_operator (string_'RETRY ') string_'RETRY ' (attribute (identifier_self) identifier_self (identifier___name) identifier___name )attribute )binary_operator (string_' ') string_' ' )binary_operator (call (identifier_str) identifier_str (argument_list (attribute (identifier_self) identifier_self (identifier___retry) identifier___retry )attribute )argument_list )call )binary_operator (string_'\n') string_'\n' )binary_operator )argument_list )call )expression_statement )block )function_definition )module
Write the DAG entry for this node's job to the DAG file descriptor. @param fh: descriptor of open DAG file.
(module (function_definition (function_name_is_available) function_name_is_available (parameters (identifier_self) identifier_self )parameters (type (identifier_bool) identifier_bool )type (block (expression_statement (assignment (identifier_status_response) identifier_status_response (call (attribute (attribute (identifier_self) identifier_self (identifier__client) identifier__client )attribute (identifier_get_state) identifier_get_state )attribute (argument_list (call (attribute (string_'api/monitors/daemonStatus/id:{}/daemon:zmc.json') string_'api/monitors/daemonStatus/id:{}/daemon:zmc.json' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__monitor_id) identifier__monitor_id )attribute )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_status_response) identifier_status_response )not_operator (block (expression_statement (call (attribute (identifier__LOGGER) identifier__LOGGER (identifier_warning) identifier_warning )attribute (argument_list (call (attribute (string_'Could not get availability for monitor {}') string_'Could not get availability for monitor {}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__monitor_id) identifier__monitor_id )attribute )argument_list )call )argument_list )call )expression_statement (return_statement (False) False )return_statement )block )if_statement (expression_statement (assignment (identifier_monitor_status) identifier_monitor_status (call (attribute (attribute (identifier_self) identifier_self (identifier__raw_result) identifier__raw_result )attribute (identifier_get) identifier_get )attribute (argument_list (string_'Monitor_Status') string_'Monitor_Status' (None) None )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_capture_fps) identifier_capture_fps (boolean_operator (identifier_monitor_status) identifier_monitor_status (subscript (identifier_monitor_status) identifier_monitor_status (string_'CaptureFPS') string_'CaptureFPS' )subscript )boolean_operator )assignment )expression_statement (return_statement (boolean_operator (call (attribute (identifier_status_response) identifier_status_response (identifier_get) identifier_get )attribute (argument_list (string_'status') string_'status' (False) False )argument_list )call (comparison_operator (identifier_capture_fps) identifier_capture_fps (string_"0.00") string_"0.00" )comparison_operator )boolean_operator )return_statement )block )function_definition )module
Indicate if this Monitor is currently available.
(module (function_definition (function_name_import_variables) function_name_import_variables (parameters (identifier_self) identifier_self (identifier_container) identifier_container (default_parameter (identifier_varnames) identifier_varnames (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_varnames) identifier_varnames (None) None )comparison_operator (block (for_statement (identifier_keyword) identifier_keyword (attribute (identifier_self) identifier_self (identifier_tkvariables) identifier_tkvariables )attribute (block (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_container) identifier_container (identifier_keyword) identifier_keyword (subscript (attribute (identifier_self) identifier_self (identifier_tkvariables) identifier_tkvariables )attribute (identifier_keyword) identifier_keyword )subscript )argument_list )call )expression_statement )block )for_statement )block (else_clause (block (for_statement (identifier_keyword) identifier_keyword (identifier_varnames) identifier_varnames (block (if_statement (comparison_operator (identifier_keyword) identifier_keyword (attribute (identifier_self) identifier_self (identifier_tkvariables) identifier_tkvariables )attribute )comparison_operator (block (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_container) identifier_container (identifier_keyword) identifier_keyword (subscript (attribute (identifier_self) identifier_self (identifier_tkvariables) identifier_tkvariables )attribute (identifier_keyword) identifier_keyword )subscript )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )else_clause )if_statement )block )function_definition )module
Helper method to avoid call get_variable for every variable.
(module (function_definition (function_name__coulomb) function_name__coulomb (parameters (identifier_n1) identifier_n1 (identifier_n2) identifier_n2 (identifier_k) identifier_k (identifier_r) identifier_r )parameters (block (expression_statement (assignment (identifier_delta) identifier_delta (list_comprehension (binary_operator (identifier_x2) identifier_x2 (identifier_x1) identifier_x1 )binary_operator (for_in_clause (pattern_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 )pattern_list (call (identifier_zip) identifier_zip (argument_list (subscript (identifier_n1) identifier_n1 (string_'velocity') string_'velocity' )subscript (subscript (identifier_n2) identifier_n2 (string_'velocity') string_'velocity' )subscript )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_distance) identifier_distance (call (identifier_sqrt) identifier_sqrt (argument_list (call (identifier_sum) identifier_sum (generator_expression (binary_operator (identifier_d) identifier_d (integer_2) integer_2 )binary_operator (for_in_clause (identifier_d) identifier_d (identifier_delta) identifier_delta )for_in_clause )generator_expression )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_distance) identifier_distance (float_0.1) float_0.1 )comparison_operator (block (expression_statement (assignment (identifier_delta) identifier_delta (list_comprehension (call (identifier_uniform) identifier_uniform (argument_list (float_0.1) float_0.1 (float_0.2) float_0.2 )argument_list )call (for_in_clause (identifier__) identifier__ (call (identifier_repeat) identifier_repeat (argument_list (None) None (integer_3) integer_3 )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_distance) identifier_distance (call (identifier_sqrt) identifier_sqrt (argument_list (call (identifier_sum) identifier_sum (generator_expression (binary_operator (identifier_d) identifier_d (integer_2) integer_2 )binary_operator (for_in_clause (identifier_d) identifier_d (identifier_delta) identifier_delta )for_in_clause )generator_expression )call )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_distance) identifier_distance (identifier_r) identifier_r )comparison_operator (block (expression_statement (assignment (identifier_force) identifier_force (binary_operator (parenthesized_expression (binary_operator (identifier_k) identifier_k (identifier_distance) identifier_distance )binary_operator )parenthesized_expression (integer_2) integer_2 )binary_operator )assignment )expression_statement (expression_statement (assignment (subscript (identifier_n1) identifier_n1 (string_'force') string_'force' )subscript (list_comprehension (binary_operator (identifier_f) identifier_f (binary_operator (identifier_force) identifier_force (identifier_d) identifier_d )binary_operator )binary_operator (for_in_clause (pattern_list (identifier_f) identifier_f (identifier_d) identifier_d )pattern_list (call (identifier_zip) identifier_zip (argument_list (subscript (identifier_n1) identifier_n1 (string_'force') string_'force' )subscript (identifier_delta) identifier_delta )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (subscript (identifier_n2) identifier_n2 (string_'force') string_'force' )subscript (list_comprehension (binary_operator (identifier_f) identifier_f (binary_operator (identifier_force) identifier_force (identifier_d) identifier_d )binary_operator )binary_operator (for_in_clause (pattern_list (identifier_f) identifier_f (identifier_d) identifier_d )pattern_list (call (identifier_zip) identifier_zip (argument_list (subscript (identifier_n2) identifier_n2 (string_'force') string_'force' )subscript (identifier_delta) identifier_delta )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement )block )if_statement )block )function_definition )module
Calculates Coulomb forces and updates node data.
(module (function_definition (function_name_partition) function_name_partition (parameters (identifier_self) identifier_self (identifier_dimension) identifier_dimension )parameters (block (for_statement (pattern_list (identifier_i) identifier_i (identifier_channel) identifier_channel )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (attribute (identifier_self) identifier_self (identifier_u) identifier_u )attribute )argument_list )call (block (if_statement (comparison_operator (subscript (attribute (subscript (attribute (identifier_self) identifier_self (identifier_v) identifier_v )attribute (identifier_i) identifier_i )subscript (identifier_shape) identifier_shape )attribute (integer_1) integer_1 )subscript (identifier_dimension) identifier_dimension )comparison_operator (block (raise_statement (call (identifier_IndexError) identifier_IndexError (argument_list (binary_operator (string_'Channel is max dimension %s') string_'Channel is max dimension %s' (subscript (attribute (subscript (attribute (identifier_self) identifier_self (identifier_v) identifier_v )attribute (identifier_i) identifier_i )subscript (identifier_shape) identifier_shape )attribute (integer_1) integer_1 )subscript )binary_operator )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (identifier_i) identifier_i )subscript (subscript (identifier_channel) identifier_channel (slice (colon) colon )slice (slice (integer_0) integer_0 (colon) colon (identifier_dimension) identifier_dimension )slice )subscript )assignment )expression_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_dimension) identifier_dimension )attribute (identifier_dimension) identifier_dimension )assignment )expression_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Partition subspace into desired dimension. :type dimension: int :param dimension: Maximum dimension to use.
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self (identifier_spec) identifier_spec )parameters (block (if_statement (comparison_operator (attribute (identifier_spec) identifier_spec (identifier_template) identifier_template )attribute (None) None )comparison_operator (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_loader) identifier_loader )attribute (identifier_unicode) identifier_unicode )attribute (argument_list (attribute (identifier_spec) identifier_spec (identifier_template) identifier_template )attribute (attribute (identifier_spec) identifier_spec (identifier_template_encoding) identifier_template_encoding )attribute )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_path) identifier_path (call (attribute (identifier_self) identifier_self (identifier__find) identifier__find )attribute (argument_list (identifier_spec) identifier_spec )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_loader) identifier_loader )attribute (identifier_read) identifier_read )attribute (argument_list (identifier_path) identifier_path (attribute (identifier_spec) identifier_spec (identifier_template_encoding) identifier_template_encoding )attribute )argument_list )call )return_statement )block )function_definition )module
Find and return the template associated to a TemplateSpec instance. Returns the template as a unicode string. Arguments: spec: a TemplateSpec instance.
(module (function_definition (function_name_randomize) function_name_randomize (parameters (identifier_self) identifier_self (default_parameter (identifier_device) identifier_device (None) None )default_parameter (default_parameter (identifier_percent) identifier_percent (integer_100) integer_100 )default_parameter (default_parameter (identifier_silent) identifier_silent (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_volume) identifier_volume (call (attribute (identifier_self) identifier_self (identifier_get_volume) identifier_get_volume )attribute (argument_list (identifier_device) identifier_device )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_blocks) identifier_blocks (call (identifier_int) identifier_int (argument_list (binary_operator (subscript (identifier_volume) identifier_volume (string_'size') string_'size' )subscript (identifier_BLOCK_SIZE) identifier_BLOCK_SIZE )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_num_writes) identifier_num_writes (call (identifier_int) identifier_int (argument_list (binary_operator (binary_operator (identifier_blocks) identifier_blocks (identifier_percent) identifier_percent )binary_operator (float_0.01) float_0.01 )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_offsets) identifier_offsets (call (identifier_sorted) identifier_sorted (argument_list (call (attribute (identifier_random) identifier_random (identifier_sample) identifier_sample )attribute (argument_list (call (identifier_range) identifier_range (argument_list (identifier_blocks) identifier_blocks )argument_list )call (identifier_num_writes) identifier_num_writes )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_total) identifier_total (integer_0) integer_0 )assignment )expression_statement (if_statement (not_operator (identifier_silent) identifier_silent )not_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_'Writing urandom to %s bytes in %s') string_'Writing urandom to %s bytes in %s' (tuple (subscript (identifier_volume) identifier_volume (string_'size') string_'size' )subscript (subscript (identifier_volume) identifier_volume (string_'path') string_'path' )subscript )tuple )binary_operator )argument_list )call )expression_statement )block )if_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (subscript (identifier_volume) identifier_volume (string_'path') string_'path' )subscript (string_'w') string_'w' )argument_list )call (as_pattern_target (identifier_file) identifier_file )as_pattern_target )as_pattern )with_item )with_clause (block (for_statement (identifier_offset) identifier_offset (identifier_offsets) identifier_offsets (block (if_statement (not_operator (identifier_silent) identifier_silent )not_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_dot) identifier_dot )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_file) identifier_file (identifier_seek) identifier_seek )attribute (argument_list (binary_operator (identifier_offset) identifier_offset (identifier_BLOCK_SIZE) identifier_BLOCK_SIZE )binary_operator )argument_list )call )expression_statement (expression_statement (assignment (identifier_data) identifier_data (binary_operator (call (attribute (identifier_os) identifier_os (identifier_urandom) identifier_urandom )attribute (argument_list (integer_32768) integer_32768 )argument_list )call (integer_128) integer_128 )binary_operator )assignment )expression_statement (expression_statement (augmented_assignment (identifier_total) identifier_total (call (identifier_len) identifier_len (argument_list (identifier_data) identifier_data )argument_list )call )augmented_assignment )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 )for_statement )block )with_statement (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_"\nWrote: %s") string_"\nWrote: %s" (identifier_total) identifier_total )binary_operator )argument_list )call )expression_statement )block )function_definition )module
Writes random data to the beginning of each 4MB block on a block device this is useful when performance testing the backup process (Without any optional arguments will randomize the first 32k of each 4MB block on 100 percent of the device)
(module (function_definition (function_name_parse_nem_file) function_name_parse_nem_file (parameters (identifier_nem_file) identifier_nem_file )parameters (type (identifier_NEMFile) identifier_NEMFile )type (block (expression_statement (assignment (identifier_reader) identifier_reader (call (attribute (identifier_csv) identifier_csv (identifier_reader) identifier_reader )attribute (argument_list (identifier_nem_file) identifier_nem_file (keyword_argument (identifier_delimiter) identifier_delimiter (string_',') string_',' )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (identifier_parse_nem_rows) identifier_parse_nem_rows (argument_list (identifier_reader) identifier_reader (keyword_argument (identifier_file_name) identifier_file_name (identifier_nem_file) identifier_nem_file )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Parse NEM file and return meter readings named tuple
(module (function_definition (function_name_scan) function_name_scan (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_implicit) identifier_implicit )attribute (None) None )comparison_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_implicit) identifier_implicit )attribute (list )list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_implicit_set) identifier_implicit_set )attribute (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__children_reset) identifier__children_reset )attribute (argument_list )argument_list )call )expression_statement (if_statement (not_operator (call (attribute (identifier_self) identifier_self (identifier_has_builder) identifier_has_builder )attribute (argument_list )argument_list )call )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_build_env) identifier_build_env (call (attribute (identifier_self) identifier_self (identifier_get_build_env) identifier_get_build_env )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_executor) identifier_executor (call (attribute (identifier_self) identifier_self (identifier_get_executor) identifier_get_executor )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (identifier_implicit_cache) identifier_implicit_cache (not_operator (identifier_implicit_deps_changed) identifier_implicit_deps_changed )not_operator )boolean_operator (block (expression_statement (assignment (identifier_implicit) identifier_implicit (call (attribute (identifier_self) identifier_self (identifier_get_stored_implicit) identifier_get_stored_implicit )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_implicit) identifier_implicit (None) None )comparison_operator (block (for_statement (identifier_tgt) identifier_tgt (call (attribute (identifier_executor) identifier_executor (identifier_get_all_targets) identifier_get_all_targets )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (identifier_tgt) identifier_tgt (identifier_add_to_implicit) identifier_add_to_implicit )attribute (argument_list (identifier_implicit) identifier_implicit )argument_list )call )expression_statement )block )for_statement (if_statement (boolean_operator (identifier_implicit_deps_unchanged) identifier_implicit_deps_unchanged (call (attribute (identifier_self) identifier_self (identifier_is_up_to_date) identifier_is_up_to_date )attribute (argument_list )argument_list )call )boolean_operator (block (return_statement )return_statement )block )if_statement (for_statement (identifier_tgt) identifier_tgt (call (attribute (identifier_executor) identifier_executor (identifier_get_all_targets) identifier_get_all_targets )attribute (argument_list )argument_list )call (block (expression_statement (assignment (attribute (identifier_tgt) identifier_tgt (identifier_implicit) identifier_implicit )attribute (list )list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_tgt) identifier_tgt (identifier_implicit_set) identifier_implicit_set )attribute (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement )block )for_statement )block )if_statement )block )if_statement (expression_statement (call (attribute (identifier_executor) identifier_executor (identifier_scan_sources) identifier_scan_sources )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_builder) identifier_builder )attribute (identifier_source_scanner) identifier_source_scanner )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_scanner) identifier_scanner (call (attribute (identifier_self) identifier_self (identifier_get_target_scanner) identifier_get_target_scanner )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_scanner) identifier_scanner (block (expression_statement (call (attribute (identifier_executor) identifier_executor (identifier_scan_targets) identifier_scan_targets )attribute (argument_list (identifier_scanner) identifier_scanner )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Scan this node's dependents for implicit dependencies.
(module (function_definition (function_name_try_friends) function_name_try_friends (parameters (identifier_self) identifier_self (identifier_others) identifier_others )parameters (block (expression_statement (assignment (identifier_befriended) identifier_befriended (False) False )assignment )expression_statement (expression_statement (assignment (identifier_k) identifier_k (call (identifier_int) identifier_int (argument_list (binary_operator (integer_10) integer_10 (subscript (identifier_self) identifier_self (string_'openness') string_'openness' )subscript )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_shuffle) identifier_shuffle (argument_list (identifier_others) identifier_others )argument_list )call )expression_statement (for_statement (identifier_friend) identifier_friend (call (identifier_islice) identifier_islice (argument_list (identifier_others) identifier_others (identifier_k) identifier_k )argument_list )call (block (if_statement (comparison_operator (identifier_friend) identifier_friend (identifier_self) identifier_self )comparison_operator (block (continue_statement )continue_statement )block )if_statement (if_statement (call (attribute (identifier_friend) identifier_friend (identifier_befriend) identifier_befriend )attribute (argument_list (identifier_self) identifier_self )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_befriend) identifier_befriend )attribute (argument_list (identifier_friend) identifier_friend (keyword_argument (identifier_force) identifier_force (True) True )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'Hooray! new friend: {}') string_'Hooray! new friend: {}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_friend) identifier_friend (identifier_id) identifier_id )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_befriended) identifier_befriended (True) True )assignment )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'{} does not want to be friends') string_'{} does not want to be friends' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_friend) identifier_friend (identifier_id) identifier_id )attribute )argument_list )call )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_befriended) identifier_befriended )return_statement )block )function_definition )module
Look for random agents around me and try to befriend them
(module (function_definition (function_name_canceled_plan_summary_for) function_name_canceled_plan_summary_for (parameters (identifier_self) identifier_self (identifier_year) identifier_year (identifier_month) identifier_month )parameters (block (return_statement (parenthesized_expression (call (attribute (call (attribute (call (attribute (call (attribute (identifier_self) identifier_self (identifier_canceled_during) identifier_canceled_during )attribute (argument_list (identifier_year) identifier_year (identifier_month) identifier_month )argument_list )call (identifier_values) identifier_values )attribute (argument_list (string_"plan") string_"plan" )argument_list )call (identifier_order_by) identifier_order_by )attribute (argument_list )argument_list )call (identifier_annotate) identifier_annotate )attribute (argument_list (keyword_argument (identifier_count) identifier_count (call (attribute (identifier_models) identifier_models (identifier_Count) identifier_Count )attribute (argument_list (string_"plan") string_"plan" )argument_list )call )keyword_argument )argument_list )call )parenthesized_expression )return_statement )block )function_definition )module
Return Subscriptions canceled within a time range with plan counts annotated.
(module (function_definition (function_name_callback) function_name_callback (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (return_statement (call (attribute (identifier_self) identifier_self (identifier__callback) identifier__callback )attribute (argument_list )argument_list )call )return_statement )block (except_clause (block (expression_statement (assignment (identifier_s) identifier_s (call (identifier_straceback) identifier_straceback (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_exceptions) identifier_exceptions )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_s) identifier_s )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_shutdown) identifier_shutdown )attribute (argument_list (keyword_argument (identifier_msg) identifier_msg (binary_operator (string_"Exception raised in callback!\n") string_"Exception raised in callback!\n" (identifier_s) identifier_s )binary_operator )keyword_argument )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
The function that will be executed by the scheduler.
(module (function_definition (function_name_find_trigger_value) function_name_find_trigger_value (parameters (identifier_psd_var) identifier_psd_var (identifier_idx) identifier_idx (identifier_start) identifier_start (identifier_sample_rate) identifier_sample_rate )parameters (block (expression_statement (assignment (identifier_time) identifier_time (binary_operator (identifier_start) identifier_start (binary_operator (identifier_idx) identifier_idx (identifier_sample_rate) identifier_sample_rate )binary_operator )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_ind) identifier_ind (call (attribute (identifier_numpy) identifier_numpy (identifier_digitize) identifier_digitize )attribute (argument_list (identifier_time) identifier_time (attribute (identifier_psd_var) identifier_psd_var (identifier_sample_times) identifier_sample_times )attribute )argument_list )call )assignment )expression_statement (expression_statement (augmented_assignment (identifier_ind) identifier_ind (integer_1) integer_1 )augmented_assignment )expression_statement (expression_statement (assignment (identifier_vals) identifier_vals (subscript (identifier_psd_var) identifier_psd_var (identifier_ind) identifier_ind )subscript )assignment )expression_statement (return_statement (identifier_vals) identifier_vals )return_statement )block )function_definition )module
Find the PSD variation value at a particular time Parameters ---------- psd_var : TimeSeries Time series of the varaibility in the PSD estimation idx : numpy.ndarray Time indices of the triggers start : float GPS start time sample_rate : float Sample rate defined in ini file Returns ------- vals : Array PSD variation value at a particular time
(module (function_definition (function_name_submit_if_ready) function_name_submit_if_ready (parameters (identifier_args) identifier_args (identifier_submit_args) identifier_submit_args (identifier_config) identifier_config )parameters (block (expression_statement (assignment (pattern_list (identifier___) identifier___ (identifier_ext) identifier_ext )pattern_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_splitext) identifier_splitext )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_input_file) identifier_input_file )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (attribute (identifier_ext) identifier_ext (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_".xml") string_".xml" )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_io) identifier_io (identifier_open) identifier_open )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_input_file) identifier_input_file )attribute (keyword_argument (identifier_encoding) identifier_encoding (string_"utf-8") string_"utf-8" )keyword_argument )argument_list )call (as_pattern_target (identifier_input_file) identifier_input_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_xml) identifier_xml (call (attribute (identifier_input_file) identifier_input_file (identifier_read) identifier_read )attribute (argument_list (integer_1024) integer_1024 )argument_list )call )assignment )expression_statement )block )with_statement (if_statement (not_operator (parenthesized_expression (boolean_operator (boolean_operator (comparison_operator (string_"<testsuites") string_"<testsuites" (identifier_xml) identifier_xml )comparison_operator (comparison_operator (string_"<testcases") string_"<testcases" (identifier_xml) identifier_xml )comparison_operator )boolean_operator (comparison_operator (string_"<requirements") string_"<requirements" (identifier_xml) identifier_xml )comparison_operator )boolean_operator )parenthesized_expression )not_operator (block (return_statement (None) None )return_statement )block )if_statement (if_statement (attribute (identifier_args) identifier_args (identifier_no_submit) identifier_no_submit )attribute (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_"Nothing to do") string_"Nothing to do" )argument_list )call )expression_statement (return_statement (integer_0) integer_0 )return_statement )block )if_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_dump2polarion) identifier_dump2polarion (identifier_submit_and_verify) identifier_submit_and_verify )attribute (argument_list (keyword_argument (identifier_xml_file) identifier_xml_file (attribute (identifier_args) identifier_args (identifier_input_file) identifier_input_file )attribute )keyword_argument (keyword_argument (identifier_config) identifier_config (identifier_config) identifier_config )keyword_argument (dictionary_splat (identifier_submit_args) identifier_submit_args )dictionary_splat )argument_list )call )assignment )expression_statement (return_statement (conditional_expression (integer_0) integer_0 (identifier_response) identifier_response (integer_2) integer_2 )conditional_expression )return_statement )block )function_definition )module
Submits the input XML file if it's already in the expected format.
(module (function_definition (function_name_make_string) function_name_make_string (parameters (identifier_seq) identifier_seq )parameters (block (expression_statement (assignment (identifier_string) identifier_string (string_'') string_'' )assignment )expression_statement (for_statement (identifier_c) identifier_c (identifier_seq) identifier_seq (block (try_statement (block (if_statement (boolean_operator (comparison_operator (integer_32) integer_32 (identifier_c) identifier_c )comparison_operator (comparison_operator (identifier_c) identifier_c (integer_256) integer_256 )comparison_operator )boolean_operator (block (expression_statement (augmented_assignment (identifier_string) identifier_string (call (identifier_chr) identifier_chr (argument_list (identifier_c) identifier_c )argument_list )call )augmented_assignment )expression_statement )block )if_statement )block (except_clause (identifier_TypeError) identifier_TypeError (block (pass_statement )pass_statement )block )except_clause )try_statement )block )for_statement (if_statement (not_operator (identifier_string) identifier_string )not_operator (block (return_statement (call (identifier_str) identifier_str (argument_list (identifier_seq) identifier_seq )argument_list )call )return_statement )block )if_statement (return_statement (identifier_string) identifier_string )return_statement )block )function_definition )module
Don't throw an exception when given an out of range character.
(module (function_definition (function_name_has_obsgroup_id) function_name_has_obsgroup_id (parameters (identifier_self) identifier_self (identifier_group_id) identifier_group_id )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_con) identifier_con )attribute (identifier_execute) identifier_execute )attribute (argument_list (string_'SELECT 1 FROM archive_obs_groups WHERE publicId = %s') string_'SELECT 1 FROM archive_obs_groups WHERE publicId = %s' (tuple (identifier_group_id) identifier_group_id )tuple )argument_list )call )expression_statement (return_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_con) identifier_con )attribute (identifier_fetchall) identifier_fetchall )attribute (argument_list )argument_list )call )argument_list )call (integer_0) integer_0 )comparison_operator )return_statement )block )function_definition )module
Check for the presence of the given group_id :param string group_id: The group ID :return: True if we have a :class:`meteorpi_model.ObservationGroup` with this Id, False otherwise
(module (function_definition (function_name__process_blacklist) function_name__process_blacklist (parameters (identifier_self) identifier_self (identifier_blacklist) identifier_blacklist )parameters (block (expression_statement (assignment (identifier_blacklist_cache) identifier_blacklist_cache (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_blacklist_cache_old) identifier_blacklist_cache_old (call (attribute (attribute (identifier_self) identifier_self (identifier__cache) identifier__cache )attribute (identifier_get) identifier_get )attribute (argument_list (string_'blacklist') string_'blacklist' (dictionary )dictionary )argument_list )call )assignment )expression_statement (for_statement (identifier_entry) identifier_entry (identifier_blacklist) identifier_blacklist (block (expression_statement (assignment (identifier_blackkey) identifier_blackkey (tuple (attribute (identifier_entry) identifier_entry (identifier_version) identifier_version )attribute (attribute (identifier_entry) identifier_entry (identifier_operator) identifier_operator )attribute )tuple )assignment )expression_statement (if_statement (comparison_operator (identifier_blackkey) identifier_blackkey (identifier_blacklist_cache) identifier_blacklist_cache )comparison_operator (block (continue_statement )continue_statement )block (elif_clause (comparison_operator (identifier_blackkey) identifier_blackkey (identifier_blacklist_cache_old) identifier_blacklist_cache_old )comparison_operator (block (expression_statement (assignment (subscript (identifier_blacklist_cache) identifier_blacklist_cache (identifier_blackkey) identifier_blackkey )subscript (subscript (identifier_blacklist_cache_old) identifier_blacklist_cache_old (identifier_blackkey) identifier_blackkey )subscript )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_entry_cache) identifier_entry_cache (assignment (subscript (identifier_blacklist_cache) identifier_blacklist_cache (identifier_blackkey) identifier_blackkey )subscript (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )assignment )expression_statement (expression_statement (assignment (identifier_blackversion) identifier_blackversion (call (identifier_parse_version) identifier_parse_version (argument_list (boolean_operator (attribute (identifier_entry) identifier_entry (identifier_version) identifier_version )attribute (string_'0') string_'0' )boolean_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_blackop) identifier_blackop (subscript (identifier_OPERATORS) identifier_OPERATORS (attribute (identifier_entry) identifier_entry (identifier_operator) identifier_operator )attribute )subscript )assignment )expression_statement (for_statement (identifier_key) identifier_key (identifier_self) identifier_self (block (if_statement (call (identifier_blackop) identifier_blackop (argument_list (call (identifier_parse_version) identifier_parse_version (argument_list (identifier_key) identifier_key )argument_list )call (identifier_blackversion) identifier_blackversion )argument_list )call (block (expression_statement (call (attribute (identifier_entry_cache) identifier_entry_cache (identifier_add) identifier_add )attribute (argument_list (identifier_key) identifier_key )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )else_clause )if_statement )block )for_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__cache) identifier__cache )attribute (string_'blacklist') string_'blacklist' )subscript (identifier_blacklist_cache) identifier_blacklist_cache )assignment )expression_statement (return_statement (call (attribute (call (identifier_set) identifier_set (argument_list )argument_list )call (identifier_union) identifier_union )attribute (argument_list (list_splat (call (attribute (identifier_blacklist_cache) identifier_blacklist_cache (identifier_values) identifier_values )attribute (argument_list )argument_list )call )list_splat )argument_list )call )return_statement )block )function_definition )module
Process blacklist into set of excluded versions
(module (function_definition (function_name_csep_periodic) function_name_csep_periodic (parameters (identifier_ra) identifier_ra (identifier_rb) identifier_rb (identifier_L) identifier_L )parameters (block (expression_statement (assignment (identifier_seps) identifier_seps (binary_operator (subscript (identifier_ra) identifier_ra (slice (colon) colon )slice (attribute (identifier_np) identifier_np (identifier_newaxis) identifier_newaxis )attribute (slice (colon) colon )slice )subscript (subscript (identifier_rb) identifier_rb (attribute (identifier_np) identifier_np (identifier_newaxis) identifier_newaxis )attribute (slice (colon) colon )slice (slice (colon) colon )slice )subscript )binary_operator )assignment )expression_statement (for_statement (identifier_i_dim) identifier_i_dim (call (identifier_range) identifier_range (argument_list (subscript (attribute (identifier_ra) identifier_ra (identifier_shape) identifier_shape )attribute (integer_1) integer_1 )subscript )argument_list )call (block (expression_statement (assignment (identifier_seps_dim) identifier_seps_dim (subscript (identifier_seps) identifier_seps (slice (colon) colon )slice (slice (colon) colon )slice (identifier_i_dim) identifier_i_dim )subscript )assignment )expression_statement (expression_statement (augmented_assignment (subscript (identifier_seps_dim) identifier_seps_dim (comparison_operator (identifier_seps_dim) identifier_seps_dim (binary_operator (subscript (identifier_L) identifier_L (identifier_i_dim) identifier_i_dim )subscript (float_2.0) float_2.0 )binary_operator )comparison_operator )subscript (subscript (identifier_L) identifier_L (identifier_i_dim) identifier_i_dim )subscript )augmented_assignment )expression_statement (expression_statement (augmented_assignment (subscript (identifier_seps_dim) identifier_seps_dim (comparison_operator (identifier_seps_dim) identifier_seps_dim (binary_operator (unary_operator (subscript (identifier_L) identifier_L (identifier_i_dim) identifier_i_dim )subscript )unary_operator (float_2.0) float_2.0 )binary_operator )comparison_operator )subscript (subscript (identifier_L) identifier_L (identifier_i_dim) identifier_i_dim )subscript )augmented_assignment )expression_statement )block )for_statement (return_statement (identifier_seps) identifier_seps )return_statement )block )function_definition )module
Return separation vectors between each pair of the two sets of points. Parameters ---------- ra, rb: float array-like, shape (n, d) and (m, d) in d dimensions. Two sets of points. L: float array, shape (d,) System lengths. Returns ------- csep: float array-like, shape (n, m, d) csep[i, j] is the separation vector from point j to point i. Note the un-intuitive vector direction.
(module (function_definition (function_name_min_sequence_length) function_name_min_sequence_length (parameters (identifier_self) identifier_self (identifier_dataset_split) identifier_dataset_split )parameters (block (return_statement (subscript (dictionary (pair (attribute (attribute (identifier_problem) identifier_problem (identifier_DatasetSplit) identifier_DatasetSplit )attribute (identifier_TRAIN) identifier_TRAIN )attribute (integer_8) integer_8 )pair (pair (attribute (attribute (identifier_problem) identifier_problem (identifier_DatasetSplit) identifier_DatasetSplit )attribute (identifier_EVAL) identifier_EVAL )attribute (integer_65) integer_65 )pair (pair (attribute (attribute (identifier_problem) identifier_problem (identifier_DatasetSplit) identifier_DatasetSplit )attribute (identifier_TEST) identifier_TEST )attribute (integer_65) integer_65 )pair )dictionary (identifier_dataset_split) identifier_dataset_split )subscript )return_statement )block )function_definition )module
Determine the minimum sequence length given a dataset_split. Args: dataset_split: A problem.DatasetSplit. Returns: The minimum length that a sequence can be for this dataset_split.
(module (function_definition (function_name_get_base_input) function_name_get_base_input (parameters (default_parameter (identifier_test) identifier_test (False) False )default_parameter )parameters (block (import_from_statement (dotted_name (identifier_django) identifier_django (identifier_forms) identifier_forms (identifier_widgets) identifier_widgets )dotted_name (dotted_name (identifier_DateTimeBaseInput) identifier_DateTimeBaseInput )dotted_name )import_from_statement (if_statement (boolean_operator (comparison_operator (string_'get_context') string_'get_context' (call (identifier_dir) identifier_dir (argument_list (identifier_DateTimeBaseInput) identifier_DateTimeBaseInput )argument_list )call )comparison_operator (not_operator (identifier_test) identifier_test )not_operator )boolean_operator (block (expression_statement (assignment (identifier_base_input) identifier_base_input (identifier_DateTimeBaseInput) identifier_DateTimeBaseInput )assignment )expression_statement )block (else_clause (block (import_from_statement (dotted_name (identifier_bootstrap_datepicker_plus) identifier_bootstrap_datepicker_plus (identifier__compatibility) identifier__compatibility )dotted_name (dotted_name (identifier_CompatibleDateTimeBaseInput) identifier_CompatibleDateTimeBaseInput )dotted_name )import_from_statement (expression_statement (assignment (identifier_base_input) identifier_base_input (identifier_CompatibleDateTimeBaseInput) identifier_CompatibleDateTimeBaseInput )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_base_input) identifier_base_input )return_statement )block )function_definition )module
Return DateTimeBaseInput class from django.forms.widgets module Return _compatibility.DateTimeBaseInput class for older django versions.
(module (function_definition (function_name_addNode) function_name_addNode (parameters (identifier_self) identifier_self (identifier_node) identifier_node )parameters (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_mybldgbuids) identifier_mybldgbuids )attribute (attribute (identifier_node) identifier_node (identifier_buid) identifier_buid )attribute )subscript (identifier_node) identifier_node )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_allbldgbuids) identifier_allbldgbuids )attribute (attribute (identifier_node) identifier_node (identifier_buid) identifier_buid )attribute )subscript (tuple (identifier_node) identifier_node (attribute (identifier_self) identifier_self (identifier_doneevent) identifier_doneevent )attribute )tuple )assignment )expression_statement )block )function_definition )module
Update the shared map with my in-construction node
(module (function_definition (function_name__encode_image) function_name__encode_image (parameters (identifier_self) identifier_self (identifier_np_image) identifier_np_image )parameters (block (if_statement (comparison_operator (attribute (identifier_np_image) identifier_np_image (identifier_dtype) identifier_dtype )attribute (attribute (identifier_np) identifier_np (identifier_uint8) identifier_uint8 )attribute )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_'Image should be uint8. Detected: %s.') string_'Image should be uint8. Detected: %s.' (attribute (identifier_np_image) identifier_np_image (identifier_dtype) identifier_dtype )attribute )binary_operator )argument_list )call )raise_statement )block )if_statement (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_assert_shape_match) identifier_assert_shape_match )attribute (argument_list (attribute (identifier_np_image) identifier_np_image (identifier_shape) identifier_shape )attribute (attribute (identifier_self) identifier_self (identifier__shape) identifier__shape )attribute )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__runner) identifier__runner )attribute (identifier_run) identifier_run )attribute (argument_list (subscript (identifier_ENCODE_FN) identifier_ENCODE_FN (attribute (identifier_self) identifier_self (identifier__encoding_format) identifier__encoding_format )attribute )subscript (identifier_np_image) identifier_np_image )argument_list )call )return_statement )block )function_definition )module
Returns np_image encoded as jpeg or png.
(module (function_definition (function_name_create_bokeh_server) function_name_create_bokeh_server (parameters (identifier_io_loop) identifier_io_loop (identifier_files) identifier_files (identifier_argvs) identifier_argvs (identifier_host) identifier_host (identifier_port) identifier_port )parameters (block (import_from_statement (dotted_name (identifier_bokeh) identifier_bokeh (identifier_server) identifier_server (identifier_server) identifier_server )dotted_name (dotted_name (identifier_Server) identifier_Server )dotted_name )import_from_statement (import_from_statement (dotted_name (identifier_bokeh) identifier_bokeh (identifier_command) identifier_command (identifier_util) identifier_util )dotted_name (dotted_name (identifier_build_single_handler_applications) identifier_build_single_handler_applications )dotted_name )import_from_statement (expression_statement (assignment (identifier_apps) identifier_apps (call (identifier_build_single_handler_applications) identifier_build_single_handler_applications (argument_list (identifier_files) identifier_files (identifier_argvs) identifier_argvs )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_kwargs) identifier_kwargs (dictionary (pair (string_'io_loop') string_'io_loop' (identifier_io_loop) identifier_io_loop )pair (pair (string_'generate_session_ids') string_'generate_session_ids' (True) True )pair (pair (string_'redirect_root') string_'redirect_root' (True) True )pair (pair (string_'use_x_headers') string_'use_x_headers' (False) False )pair (pair (string_'secret_key') string_'secret_key' (None) None )pair (pair (string_'num_procs') string_'num_procs' (integer_1) integer_1 )pair (pair (string_'host') string_'host' (identifier_host) identifier_host )pair (pair (string_'sign_sessions') string_'sign_sessions' (False) False )pair (pair (string_'develop') string_'develop' (False) False )pair (pair (string_'port') string_'port' (identifier_port) identifier_port )pair (pair (string_'use_index') string_'use_index' (True) True )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_server) identifier_server (call (identifier_Server) identifier_Server (argument_list (identifier_apps) identifier_apps (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (return_statement (identifier_server) identifier_server )return_statement )block )function_definition )module
Start bokeh server with applications paths
(module (function_definition (function_name_secure) function_name_secure (parameters (identifier_func_or_obj) identifier_func_or_obj (default_parameter (identifier_check_permissions_for_obj) identifier_check_permissions_for_obj (None) None )default_parameter )parameters (block (if_statement (call (identifier__allowed_check_permissions_types) identifier__allowed_check_permissions_types (argument_list (identifier_func_or_obj) identifier_func_or_obj )argument_list )call (block (return_statement (call (identifier__secure_method) identifier__secure_method (argument_list (identifier_func_or_obj) identifier_func_or_obj )argument_list )call )return_statement )block (else_clause (block (if_statement (not_operator (call (identifier__allowed_check_permissions_types) identifier__allowed_check_permissions_types (argument_list (identifier_check_permissions_for_obj) identifier_check_permissions_for_obj )argument_list )call )not_operator (block (expression_statement (assignment (identifier_msg) identifier_msg (binary_operator (string_"When securing an object, secure() requires the ") string_"When securing an object, secure() requires the " (string_"second argument to be method") string_"second argument to be method" )binary_operator )assignment )expression_statement (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )if_statement (return_statement (call (identifier__SecuredAttribute) identifier__SecuredAttribute (argument_list (identifier_func_or_obj) identifier_func_or_obj (identifier_check_permissions_for_obj) identifier_check_permissions_for_obj )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
This method secures a method or class depending on invocation. To decorate a method use one argument: @secure(<check_permissions_method>) To secure a class, invoke with two arguments: secure(<obj instance>, <check_permissions_method>)
(module (function_definition (function_name_search) function_name_search (parameters (identifier_self) identifier_self (identifier_index_name) identifier_index_name (identifier_query) identifier_query )parameters (block (try_statement (block (expression_statement (assignment (identifier_results) identifier_results (call (attribute (attribute (identifier_self) identifier_self (identifier_els_search) identifier_els_search )attribute (identifier_search) identifier_search )attribute (argument_list (keyword_argument (identifier_index) identifier_index (identifier_index_name) identifier_index_name )keyword_argument (keyword_argument (identifier_body) identifier_body (identifier_query) identifier_query )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_results) identifier_results )return_statement )block (except_clause (identifier_Exception) identifier_Exception (identifier_error) identifier_error (block (expression_statement (assignment (identifier_error_str) identifier_error_str (binary_operator (string_'Query failed: %s\n') string_'Query failed: %s\n' (call (identifier_str) identifier_str (argument_list (identifier_error) identifier_error )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (augmented_assignment (identifier_error_str) identifier_error_str (string_'\nIs there a dynamic script in the query?, see www.elasticsearch.org') string_'\nIs there a dynamic script in the query?, see www.elasticsearch.org' )augmented_assignment )expression_statement (print_statement (identifier_error_str) identifier_error_str )print_statement (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (identifier_error_str) identifier_error_str )argument_list )call )raise_statement )block )except_clause )try_statement )block )function_definition )module
Search the given index_name with the given ELS query. Args: index_name: Name of the Index query: The string to be searched. Returns: List of results. Raises: RuntimeError: When the search query fails.
(module (function_definition (function_name__get_openstack_release) function_name__get_openstack_release (parameters (identifier_self) identifier_self )parameters (block (for_statement (pattern_list (identifier_i) identifier_i (identifier_os_pair) identifier_os_pair )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_OPENSTACK_RELEASES_PAIRS) identifier_OPENSTACK_RELEASES_PAIRS )argument_list )call (block (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_self) identifier_self (identifier_os_pair) identifier_os_pair (identifier_i) identifier_i )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (identifier_releases) identifier_releases (dictionary (pair (tuple (string_'trusty') string_'trusty' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_trusty_icehouse) identifier_trusty_icehouse )attribute )pair (pair (tuple (string_'trusty') string_'trusty' (string_'cloud:trusty-kilo') string_'cloud:trusty-kilo' )tuple (attribute (identifier_self) identifier_self (identifier_trusty_kilo) identifier_trusty_kilo )attribute )pair (pair (tuple (string_'trusty') string_'trusty' (string_'cloud:trusty-liberty') string_'cloud:trusty-liberty' )tuple (attribute (identifier_self) identifier_self (identifier_trusty_liberty) identifier_trusty_liberty )attribute )pair (pair (tuple (string_'trusty') string_'trusty' (string_'cloud:trusty-mitaka') string_'cloud:trusty-mitaka' )tuple (attribute (identifier_self) identifier_self (identifier_trusty_mitaka) identifier_trusty_mitaka )attribute )pair (pair (tuple (string_'xenial') string_'xenial' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_xenial_mitaka) identifier_xenial_mitaka )attribute )pair (pair (tuple (string_'xenial') string_'xenial' (string_'cloud:xenial-newton') string_'cloud:xenial-newton' )tuple (attribute (identifier_self) identifier_self (identifier_xenial_newton) identifier_xenial_newton )attribute )pair (pair (tuple (string_'xenial') string_'xenial' (string_'cloud:xenial-ocata') string_'cloud:xenial-ocata' )tuple (attribute (identifier_self) identifier_self (identifier_xenial_ocata) identifier_xenial_ocata )attribute )pair (pair (tuple (string_'xenial') string_'xenial' (string_'cloud:xenial-pike') string_'cloud:xenial-pike' )tuple (attribute (identifier_self) identifier_self (identifier_xenial_pike) identifier_xenial_pike )attribute )pair (pair (tuple (string_'xenial') string_'xenial' (string_'cloud:xenial-queens') string_'cloud:xenial-queens' )tuple (attribute (identifier_self) identifier_self (identifier_xenial_queens) identifier_xenial_queens )attribute )pair (pair (tuple (string_'yakkety') string_'yakkety' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_yakkety_newton) identifier_yakkety_newton )attribute )pair (pair (tuple (string_'zesty') string_'zesty' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_zesty_ocata) identifier_zesty_ocata )attribute )pair (pair (tuple (string_'artful') string_'artful' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_artful_pike) identifier_artful_pike )attribute )pair (pair (tuple (string_'bionic') string_'bionic' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_bionic_queens) identifier_bionic_queens )attribute )pair (pair (tuple (string_'bionic') string_'bionic' (string_'cloud:bionic-rocky') string_'cloud:bionic-rocky' )tuple (attribute (identifier_self) identifier_self (identifier_bionic_rocky) identifier_bionic_rocky )attribute )pair (pair (tuple (string_'bionic') string_'bionic' (string_'cloud:bionic-stein') string_'cloud:bionic-stein' )tuple (attribute (identifier_self) identifier_self (identifier_bionic_stein) identifier_bionic_stein )attribute )pair (pair (tuple (string_'cosmic') string_'cosmic' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_cosmic_rocky) identifier_cosmic_rocky )attribute )pair (pair (tuple (string_'disco') string_'disco' (None) None )tuple (attribute (identifier_self) identifier_self (identifier_disco_stein) identifier_disco_stein )attribute )pair )dictionary )assignment )expression_statement (return_statement (subscript (identifier_releases) identifier_releases (tuple (attribute (identifier_self) identifier_self (identifier_series) identifier_series )attribute (attribute (identifier_self) identifier_self (identifier_openstack) identifier_openstack )attribute )tuple )subscript )return_statement )block )function_definition )module
Get openstack release. Return an integer representing the enum value of the openstack release.
(module (function_definition (function_name_header) function_name_header (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_chunk_size) identifier_chunk_size (call (identifier_a2b_hex) identifier_a2b_hex (argument_list (binary_operator (string_'%08x') string_'%08x' (parenthesized_expression (binary_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_track_data) identifier_track_data )attribute )argument_list )call (call (identifier_len) identifier_len (argument_list (call (attribute (identifier_self) identifier_self (identifier_end_of_track) identifier_end_of_track )attribute (argument_list )argument_list )call )argument_list )call )binary_operator )parenthesized_expression )binary_operator )argument_list )call )assignment )expression_statement (return_statement (binary_operator (identifier_TRACK_HEADER) identifier_TRACK_HEADER (identifier_chunk_size) identifier_chunk_size )binary_operator )return_statement )block )function_definition )module
Return the bytes for the header of track. The header contains the length of the track_data, so you'll have to call this function when you're done adding data (when you're not using get_midi_data).
(module (function_definition (function_name_render_app_name) function_name_render_app_name (parameters (identifier_context) identifier_context (identifier_app) identifier_app (default_parameter (identifier_template) identifier_template (string_"/admin_app_name.html") string_"/admin_app_name.html" )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_template) identifier_template (binary_operator (subscript (identifier_app) identifier_app (string_'app_label') string_'app_label' )subscript (identifier_template) identifier_template )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_text) identifier_text (call (identifier_render_to_string) identifier_render_to_string (argument_list (identifier_template) identifier_template (identifier_context) identifier_context )argument_list )call )assignment )expression_statement )block (except_clause (block (expression_statement (assignment (identifier_text) identifier_text (subscript (identifier_app) identifier_app (string_'name') string_'name' )subscript )assignment )expression_statement )block )except_clause )try_statement (return_statement (identifier_text) identifier_text )return_statement )block )function_definition )module
Render the application name using the default template name. If it cannot find a template matching the given path, fallback to the application name.
(module (function_definition (function_name_on_step_end) function_name_on_step_end (parameters (identifier_self) identifier_self (identifier_step) identifier_step (default_parameter (identifier_logs) identifier_logs (dictionary )dictionary )default_parameter )parameters (block (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier_total_steps) identifier_total_steps )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (if_statement (comparison_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_total_steps) identifier_total_steps )attribute (attribute (identifier_self) identifier_self (identifier_interval) identifier_interval )attribute )binary_operator (integer_0) integer_0 )comparison_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_filepath) identifier_filepath (call (attribute (attribute (identifier_self) identifier_self (identifier_filepath) identifier_filepath )attribute (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_step) identifier_step (attribute (identifier_self) identifier_self (identifier_total_steps) identifier_total_steps )attribute )keyword_argument (dictionary_splat (identifier_logs) identifier_logs )dictionary_splat )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_verbose) identifier_verbose )attribute (integer_0) integer_0 )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_'Step {}: saving model to {}') string_'Step {}: saving model to {}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_total_steps) identifier_total_steps )attribute (identifier_filepath) identifier_filepath )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_model) identifier_model )attribute (identifier_save_weights) identifier_save_weights )attribute (argument_list (identifier_filepath) identifier_filepath (keyword_argument (identifier_overwrite) identifier_overwrite (True) True )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Save weights at interval steps during training
(module (function_definition (function_name_fill_window) function_name_fill_window (parameters (identifier_self) identifier_self (identifier_seqNum) identifier_seqNum )parameters (block (if_statement (identifier__debug) identifier__debug (block (expression_statement (call (attribute (identifier_SSM) identifier_SSM (identifier__debug) identifier__debug )attribute (argument_list (string_"fill_window %r") string_"fill_window %r" (identifier_seqNum) identifier_seqNum )argument_list )call )expression_statement )block )if_statement (if_statement (identifier__debug) identifier__debug (block (expression_statement (call (attribute (identifier_SSM) identifier_SSM (identifier__debug) identifier__debug )attribute (argument_list (string_" - actualWindowSize: %r") string_" - actualWindowSize: %r" (attribute (identifier_self) identifier_self (identifier_actualWindowSize) identifier_actualWindowSize )attribute )argument_list )call )expression_statement )block )if_statement (for_statement (identifier_ix) identifier_ix (call (identifier_range) identifier_range (argument_list (attribute (identifier_self) identifier_self (identifier_actualWindowSize) identifier_actualWindowSize )attribute )argument_list )call (block (expression_statement (assignment (identifier_apdu) identifier_apdu (call (attribute (identifier_self) identifier_self (identifier_get_segment) identifier_get_segment )attribute (argument_list (binary_operator (identifier_seqNum) identifier_seqNum (identifier_ix) identifier_ix )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_ssmSAP) identifier_ssmSAP )attribute (identifier_request) identifier_request )attribute (argument_list (identifier_apdu) identifier_apdu )argument_list )call )expression_statement (if_statement (not_operator (attribute (identifier_apdu) identifier_apdu (identifier_apduMor) identifier_apduMor )attribute )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_sentAllSegments) identifier_sentAllSegments )attribute (True) True )assignment )expression_statement (break_statement )break_statement )block )if_statement )block )for_statement )block )function_definition )module
This function sends all of the packets necessary to fill out the segmentation window.
(module (function_definition (function_name_vacuum) function_name_vacuum (parameters (identifier_self) identifier_self (default_parameter (identifier_threshold) identifier_threshold (float_0.3) float_0.3 )default_parameter )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (parenthesized_expression (concatenated_string (string_"http://{master_addr}:{master_port}/") string_"http://{master_addr}:{master_port}/" (string_"vol/vacuum?garbageThreshold={threshold}") string_"vol/vacuum?garbageThreshold={threshold}" )concatenated_string )parenthesized_expression (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_master_addr) identifier_master_addr (attribute (identifier_self) identifier_self (identifier_master_addr) identifier_master_addr )attribute )keyword_argument (keyword_argument (identifier_master_port) identifier_master_port (attribute (identifier_self) identifier_self (identifier_master_port) identifier_master_port )attribute )keyword_argument (keyword_argument (identifier_threshold) identifier_threshold (identifier_threshold) identifier_threshold )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (call (attribute (attribute (identifier_self) identifier_self (identifier_conn) identifier_conn )attribute (identifier_get_data) identifier_get_data )attribute (argument_list (identifier_url) identifier_url )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_res) identifier_res (None) None )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement (return_statement (False) False )return_statement )block )function_definition )module
Force garbage collection :param float threshold (optional): The threshold is optional, and will not change the default threshold. :rtype: boolean
(module (function_definition (function_name_handleHeader) function_name_handleHeader (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (identifier_key) identifier_key (string_'CIMError') string_'CIMError' )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_CIMError) identifier_CIMError )attribute (call (attribute (attribute (identifier_urllib) identifier_urllib (identifier_parse) identifier_parse )attribute (identifier_unquote) identifier_unquote )attribute (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_key) identifier_key (string_'PGErrorDetail') string_'PGErrorDetail' )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_PGErrorDetail) identifier_PGErrorDetail )attribute (call (attribute (attribute (identifier_urllib) identifier_urllib (identifier_parse) identifier_parse )attribute (identifier_unquote) identifier_unquote )attribute (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement )block )if_statement )block )function_definition )module
Handle header values.
(module (function_definition (function_name_preLoad) function_name_preLoad (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (call (attribute (identifier_logging) identifier_logging (identifier_getLogger) identifier_getLogger )attribute (argument_list )argument_list )call (identifier_debug) identifier_debug )attribute (argument_list (binary_operator (string_"Preloading segment '%s'") string_"Preloading segment '%s'" (parenthesized_expression (identifier_self) identifier_self )parenthesized_expression )binary_operator )argument_list )call )expression_statement (expression_statement (assignment (identifier_real_url) identifier_real_url (call (attribute (identifier_self) identifier_self (identifier_buildUrl) identifier_buildUrl )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cache_url) identifier_cache_url (call (attribute (identifier_self) identifier_self (identifier_buildUrl) identifier_buildUrl )attribute (argument_list (keyword_argument (identifier_cache_friendly) identifier_cache_friendly (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_audio_data) identifier_audio_data (call (attribute (identifier_self) identifier_self (identifier_download) identifier_download )attribute (argument_list (identifier_real_url) identifier_real_url )argument_list )call )assignment )expression_statement (assert_statement (parenthesized_expression (identifier_audio_data) identifier_audio_data )parenthesized_expression )assert_statement (expression_statement (assignment (subscript (attribute (identifier___class__) identifier___class__ (identifier_cache) identifier_cache )attribute (identifier_cache_url) identifier_cache_url )subscript (identifier_audio_data) identifier_audio_data )assignment )expression_statement )block )function_definition )module
Store audio data in cache for fast playback.
(module (function_definition (function_name__to_number) function_name__to_number (parameters (identifier_cls) identifier_cls (identifier_string) identifier_string )parameters (block (try_statement (block (if_statement (comparison_operator (binary_operator (call (identifier_float) identifier_float (argument_list (identifier_string) identifier_string )argument_list )call (call (identifier_int) identifier_int (argument_list (identifier_string) identifier_string )argument_list )call )binary_operator (integer_0) integer_0 )comparison_operator (block (return_statement (call (identifier_int) identifier_int (argument_list (identifier_string) identifier_string )argument_list )call )return_statement )block )if_statement (return_statement (call (identifier_float) identifier_float (argument_list (identifier_string) identifier_string )argument_list )call )return_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (try_statement (block (return_statement (call (identifier_float) identifier_float (argument_list (identifier_string) identifier_string )argument_list )call )return_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (return_statement (identifier_string) identifier_string )return_statement )block )except_clause )try_statement )block )except_clause )try_statement )block )function_definition )module
Convert string to int or float.
(module (function_definition (function_name_make_symlink) function_name_make_symlink (parameters (identifier_source) identifier_source (identifier_link_path) identifier_link_path )parameters (block (if_statement (not_operator (call (identifier_supports_symlinks) identifier_supports_symlinks (argument_list )argument_list )call )not_operator (block (expression_statement (call (attribute (attribute (identifier_dbt) identifier_dbt (identifier_exceptions) identifier_exceptions )attribute (identifier_system_error) identifier_system_error )attribute (argument_list (string_'create a symbolic link') string_'create a symbolic link' )argument_list )call )expression_statement )block )if_statement (return_statement (call (attribute (identifier_os) identifier_os (identifier_symlink) identifier_symlink )attribute (argument_list (identifier_source) identifier_source (identifier_link_path) identifier_link_path )argument_list )call )return_statement )block )function_definition )module
Create a symlink at `link_path` referring to `source`.
(module (function_definition (function_name_plot_color_map_bars) function_name_plot_color_map_bars (parameters (identifier_values) identifier_values (default_parameter (identifier_vmin) identifier_vmin (None) None )default_parameter (default_parameter (identifier_vmax) identifier_vmax (None) None )default_parameter (default_parameter (identifier_color_map) identifier_color_map (None) None )default_parameter (default_parameter (identifier_axis) identifier_axis (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (identifier_axis) identifier_axis (None) None )comparison_operator (block (expression_statement (assignment (pattern_list (identifier_fig) identifier_fig (identifier_axis) identifier_axis )pattern_list (call (attribute (identifier_plt) identifier_plt (identifier_subplots) identifier_subplots )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_norm) identifier_norm (call (attribute (attribute (identifier_mpl) identifier_mpl (identifier_colors) identifier_colors )attribute (identifier_Normalize) identifier_Normalize )attribute (argument_list (keyword_argument (identifier_vmin) identifier_vmin (boolean_operator (identifier_vmin) identifier_vmin (call (identifier_min) identifier_min (argument_list (identifier_values) identifier_values )argument_list )call )boolean_operator )keyword_argument (keyword_argument (identifier_vmax) identifier_vmax (boolean_operator (identifier_vmax) identifier_vmax (call (identifier_max) identifier_max (argument_list (identifier_values) identifier_values )argument_list )call )boolean_operator )keyword_argument (keyword_argument (identifier_clip) identifier_clip (True) True )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_color_map) identifier_color_map (None) None )comparison_operator (block (expression_statement (assignment (identifier_color_map) identifier_color_map (subscript (attribute (identifier_mpl) identifier_mpl (identifier_rcParams) identifier_rcParams )attribute (string_'image.cmap') string_'image.cmap' )subscript )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_colors) identifier_colors (call (identifier_color_map) identifier_color_map (argument_list (call (attribute (call (identifier_norm) identifier_norm (argument_list (attribute (identifier_values) identifier_values (identifier_values) identifier_values )attribute )argument_list )call (identifier_filled) identifier_filled )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_values) identifier_values (identifier_plot) identifier_plot )attribute (argument_list (keyword_argument (identifier_kind) identifier_kind (string_'bar') string_'bar' )keyword_argument (keyword_argument (identifier_ax) identifier_ax (identifier_axis) identifier_axis )keyword_argument (keyword_argument (identifier_color) identifier_color (identifier_colors) identifier_colors )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )expression_statement (return_statement (identifier_axis) identifier_axis )return_statement )block )function_definition )module
Plot bar for each value in `values`, colored based on values mapped onto the specified color map. Args ---- values (pandas.Series) : Numeric values to plot one bar per value. axis : A matplotlib axis. If `None`, an axis is created. vmin : Minimum value to clip values at. vmax : Maximum value to clip values at. color_map : A matplotlib color map (see `matplotlib.cm`). **kwargs : Extra keyword arguments to pass to `values.plot`. Returns ------- (axis) : Bar plot axis.
(module (function_definition (function_name_schoice) function_name_schoice (parameters (identifier_self) identifier_self (typed_parameter (identifier_seq) identifier_seq (type (identifier_str) identifier_str )type )typed_parameter (typed_default_parameter (identifier_end) identifier_end (type (identifier_int) identifier_int )type (integer_10) integer_10 )typed_default_parameter )parameters (type (identifier_str) identifier_str )type (block (return_statement (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (generator_expression (call (attribute (identifier_self) identifier_self (identifier_choice) identifier_choice )attribute (argument_list (call (identifier_list) identifier_list (argument_list (identifier_seq) identifier_seq )argument_list )call )argument_list )call (for_in_clause (identifier__) identifier__ (call (identifier_range) identifier_range (argument_list (identifier_end) identifier_end )argument_list )call )for_in_clause )generator_expression )call )return_statement )block )function_definition )module
Choice function which returns string created from sequence. :param seq: Sequence of letters or digits. :type seq: tuple or list :param end: Max value. :return: Single string.
(module (function_definition (function_name_serialize_me) function_name_serialize_me (parameters (identifier_self) identifier_self (identifier_arn) identifier_arn (identifier_event_time) identifier_event_time (identifier_tech) identifier_tech (default_parameter (identifier_item) identifier_item (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_payload) identifier_payload (dictionary (pair (string_'arn') string_'arn' (identifier_arn) identifier_arn )pair (pair (string_'event_time') string_'event_time' (identifier_event_time) identifier_event_time )pair (pair (string_'tech') string_'tech' (identifier_tech) identifier_tech )pair )dictionary )assignment )expression_statement (if_statement (identifier_item) identifier_item (block (expression_statement (assignment (subscript (identifier_payload) identifier_payload (string_'item') string_'item' )subscript (identifier_item) identifier_item )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_payload) identifier_payload (string_'event_too_big') string_'event_too_big' )subscript (True) True )assignment )expression_statement )block )else_clause )if_statement (return_statement (call (attribute (attribute (call (attribute (identifier_self) identifier_self (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_payload) identifier_payload )argument_list )call (identifier_data) identifier_data )attribute (identifier_replace) identifier_replace )attribute (argument_list (string_'<empty>') string_'<empty>' (string_'') string_'' )argument_list )call )return_statement )block )function_definition )module
Dumps the proper JSON for the schema. If the event is too big, then don't include the item. :param arn: :param event_time: :param tech: :param item: :return:
(module (function_definition (function_name_run) function_name_run (parameters (identifier_quiet) identifier_quiet (identifier_args) identifier_args )parameters (block (if_statement (not_operator (identifier_args) identifier_args )not_operator (block (raise_statement (call (identifier_ClickException) identifier_ClickException (argument_list (string_'pass a command to run') string_'pass a command to run' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (identifier_args) identifier_args )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_application) identifier_application (call (identifier_get_current_application) identifier_get_current_application (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_name) identifier_name (attribute (identifier_application) identifier_application (identifier_name) identifier_name )attribute )assignment )expression_statement (expression_statement (assignment (identifier_settings) identifier_settings (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_get) identifier_get )attribute (argument_list (string_'DJANGO_SETTINGS_MODULE') string_'DJANGO_SETTINGS_MODULE' (binary_operator (string_'%s.settings') string_'%s.settings' (identifier_name) identifier_name )binary_operator )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_application) identifier_application (identifier_run) identifier_run )attribute (argument_list (identifier_cmd) identifier_cmd (keyword_argument (identifier_verbose) identifier_verbose (not_operator (identifier_quiet) identifier_quiet )not_operator )keyword_argument (keyword_argument (identifier_abort) identifier_abort (False) False )keyword_argument (keyword_argument (identifier_capture) identifier_capture (True) True )keyword_argument (keyword_argument (identifier_env) identifier_env (dictionary (pair (string_'DJANGO_SETTINGS_MODULE') string_'DJANGO_SETTINGS_MODULE' (identifier_settings) identifier_settings )pair )dictionary )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Run a local command. Examples: $ django run manage.py runserver ...
(module (function_definition (function_name_append) function_name_append (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_t) identifier_t (call (attribute (identifier_self) identifier_self (identifier_tell) identifier_tell )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 (integer_2) integer_2 )argument_list )call )expression_statement (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_data) identifier_data (string_'getvalue') string_'getvalue' )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_write_utf8_string) identifier_write_utf8_string )attribute (argument_list (call (attribute (identifier_data) identifier_data (identifier_getvalue) identifier_getvalue )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_write_utf8_string) identifier_write_utf8_string )attribute (argument_list (identifier_data) identifier_data )argument_list )call )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_seek) identifier_seek )attribute (argument_list (identifier_t) identifier_t )argument_list )call )expression_statement )block )function_definition )module
Append data to the end of the stream. The pointer will not move if this operation is successful. @param data: The data to append to the stream. @type data: C{str} or C{unicode} @raise TypeError: data is not C{str} or C{unicode}
(module (function_definition (function_name_cancel) function_name_cancel (parameters (identifier_self) identifier_self (identifier_invoice_id) identifier_invoice_id (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (string_"{}/{}/cancel") string_"{}/{}/cancel" (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_base_url) identifier_base_url )attribute (identifier_invoice_id) identifier_invoice_id )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_post_url) identifier_post_url )attribute (argument_list (identifier_url) identifier_url (dictionary )dictionary (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Cancel an unpaid Invoice with given ID via API It can only be called on an invoice that is not in the paid state. Args: invoice_id : Id for cancel the invoice Returns: The response for the API will be the invoice entity, similar to create/update API response, with status attribute's value as cancelled
(module (function_definition (function_name_merge) function_name_merge (parameters (identifier_self) identifier_self (identifier_other) identifier_other (default_parameter (identifier_inplace) identifier_inplace (None) None )default_parameter (default_parameter (identifier_overwrite_vars) identifier_overwrite_vars (call (identifier_frozenset) identifier_frozenset (argument_list )argument_list )call )default_parameter (default_parameter (identifier_compat) identifier_compat (string_'no_conflicts') string_'no_conflicts' )default_parameter (default_parameter (identifier_join) identifier_join (string_'outer') string_'outer' )default_parameter )parameters (block (expression_statement (assignment (identifier_inplace) identifier_inplace (call (identifier__check_inplace) identifier__check_inplace (argument_list (identifier_inplace) identifier_inplace )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_variables) identifier_variables (identifier_coord_names) identifier_coord_names (identifier_dims) identifier_dims )pattern_list (call (identifier_dataset_merge_method) identifier_dataset_merge_method (argument_list (identifier_self) identifier_self (identifier_other) identifier_other (keyword_argument (identifier_overwrite_vars) identifier_overwrite_vars (identifier_overwrite_vars) identifier_overwrite_vars )keyword_argument (keyword_argument (identifier_compat) identifier_compat (identifier_compat) identifier_compat )keyword_argument (keyword_argument (identifier_join) identifier_join (identifier_join) identifier_join )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__replace_vars_and_dims) identifier__replace_vars_and_dims )attribute (argument_list (identifier_variables) identifier_variables (identifier_coord_names) identifier_coord_names (identifier_dims) identifier_dims (keyword_argument (identifier_inplace) identifier_inplace (identifier_inplace) identifier_inplace )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Merge the arrays of two datasets into a single dataset. This method generally not allow for overriding data, with the exception of attributes, which are ignored on the second dataset. Variables with the same name are checked for conflicts via the equals or identical methods. Parameters ---------- other : Dataset or castable to Dataset Dataset or variables to merge with this dataset. inplace : bool, optional If True, merge the other dataset into this dataset in-place. Otherwise, return a new dataset object. overwrite_vars : str or sequence, optional If provided, update variables of these name(s) without checking for conflicts in this dataset. compat : {'broadcast_equals', 'equals', 'identical', 'no_conflicts'}, optional String indicating how to compare variables of the same name for potential conflicts: - 'broadcast_equals': all values must be equal when variables are broadcast against each other to ensure common dimensions. - 'equals': all values and dimensions must be the same. - 'identical': all values, dimensions and attributes must be the same. - 'no_conflicts': only values which are not null in both datasets must be equal. The returned dataset then contains the combination of all non-null values. join : {'outer', 'inner', 'left', 'right', 'exact'}, optional Method for joining ``self`` and ``other`` along shared dimensions: - 'outer': use the union of the indexes - 'inner': use the intersection of the indexes - 'left': use indexes from ``self`` - 'right': use indexes from ``other`` - 'exact': error instead of aligning non-equal indexes Returns ------- merged : Dataset Merged dataset. Raises ------ MergeError If any variables conflict (see ``compat``).
(module (function_definition (function_name_ReplaceAttachment) function_name_ReplaceAttachment (parameters (identifier_self) identifier_self (identifier_attachment_link) identifier_attachment_link (identifier_attachment) identifier_attachment (default_parameter (identifier_options) identifier_options (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_options) identifier_options (None) None )comparison_operator (block (expression_statement (assignment (identifier_options) identifier_options (dictionary )dictionary )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_CosmosClient) identifier_CosmosClient (identifier___ValidateResource) identifier___ValidateResource )attribute (argument_list (identifier_attachment) identifier_attachment )argument_list )call )expression_statement (expression_statement (assignment (identifier_path) identifier_path (call (attribute (identifier_base) identifier_base (identifier_GetPathFromLink) identifier_GetPathFromLink )attribute (argument_list (identifier_attachment_link) identifier_attachment_link )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_attachment_id) identifier_attachment_id (call (attribute (identifier_base) identifier_base (identifier_GetResourceIdOrFullNameFromLink) identifier_GetResourceIdOrFullNameFromLink )attribute (argument_list (identifier_attachment_link) identifier_attachment_link )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_Replace) identifier_Replace )attribute (argument_list (identifier_attachment) identifier_attachment (identifier_path) identifier_path (string_'attachments') string_'attachments' (identifier_attachment_id) identifier_attachment_id (None) None (identifier_options) identifier_options )argument_list )call )return_statement )block )function_definition )module
Replaces an attachment and returns it. :param str attachment_link: The link to the attachment. :param dict attachment: :param dict options: The request options for the request. :return: The replaced Attachment :rtype: dict
(module (function_definition (function_name_add_nodes) function_name_add_nodes (parameters (identifier_self) identifier_self (identifier_lb) identifier_lb (identifier_nodes) identifier_nodes )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_nodes) identifier_nodes (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call )not_operator (block (expression_statement (assignment (identifier_nodes) identifier_nodes (list (identifier_nodes) identifier_nodes )list )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_node_dicts) identifier_node_dicts (list_comprehension (call (attribute (identifier_nd) identifier_nd (identifier_to_dict) identifier_to_dict )attribute (argument_list )argument_list )call (for_in_clause (identifier_nd) identifier_nd (identifier_nodes) identifier_nodes )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_resp) identifier_resp (identifier_body) identifier_body )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_api) identifier_api )attribute (identifier_method_post) identifier_method_post )attribute (argument_list (binary_operator (string_"/loadbalancers/%s/nodes") string_"/loadbalancers/%s/nodes" (attribute (identifier_lb) identifier_lb (identifier_id) identifier_id )attribute )binary_operator (keyword_argument (identifier_body) identifier_body (dictionary (pair (string_"nodes") string_"nodes" (identifier_node_dicts) identifier_node_dicts )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (expression_list (identifier_resp) identifier_resp (identifier_body) identifier_body )expression_list )return_statement )block )function_definition )module
Adds the list of nodes to the specified load balancer.
(module (function_definition (function_name_flat_unity) function_name_flat_unity (parameters (identifier_length) identifier_length (identifier_delta_f) identifier_delta_f (identifier_low_freq_cutoff) identifier_low_freq_cutoff )parameters (block (expression_statement (assignment (identifier_fseries) identifier_fseries (call (identifier_FrequencySeries) identifier_FrequencySeries (argument_list (call (attribute (identifier_numpy) identifier_numpy (identifier_ones) identifier_ones )attribute (argument_list (identifier_length) identifier_length )argument_list )call (keyword_argument (identifier_delta_f) identifier_delta_f (identifier_delta_f) identifier_delta_f )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_kmin) identifier_kmin (call (identifier_int) identifier_int (argument_list (binary_operator (identifier_low_freq_cutoff) identifier_low_freq_cutoff (attribute (identifier_fseries) identifier_fseries (identifier_delta_f) identifier_delta_f )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_fseries) identifier_fseries (identifier_data) identifier_data )attribute (slice (colon) colon (identifier_kmin) identifier_kmin )slice )subscript (integer_0) integer_0 )assignment )expression_statement (return_statement (identifier_fseries) identifier_fseries )return_statement )block )function_definition )module
Returns a FrequencySeries of ones above the low_frequency_cutoff. Parameters ---------- length : int Length of output Frequencyseries. delta_f : float Frequency step for output FrequencySeries. low_freq_cutoff : int Low-frequency cutoff for output FrequencySeries. Returns ------- FrequencySeries Returns a FrequencySeries containing the unity PSD model.