sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_row_to_dict) function_name_row_to_dict (parameters (identifier_row) identifier_row )parameters (block (expression_statement (assignment (identifier_o) identifier_o (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_colname) identifier_colname (attribute (identifier_row) identifier_row (identifier_colnames) identifier_colnames )attribute (block (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (subscript (identifier_row) identifier_row (identifier_colname) identifier_colname )subscript (attribute (identifier_np) identifier_np (identifier_string_) identifier_string_ )attribute )argument_list )call (comparison_operator (attribute (attribute (subscript (identifier_row) identifier_row (identifier_colname) identifier_colname )subscript (identifier_dtype) identifier_dtype )attribute (identifier_kind) identifier_kind )attribute (list (string_'S') string_'S' (string_'U') string_'U' )list )comparison_operator )boolean_operator (block (expression_statement (assignment (subscript (identifier_o) identifier_o (identifier_colname) identifier_colname )subscript (call (identifier_str) identifier_str (argument_list (subscript (identifier_row) identifier_row (identifier_colname) identifier_colname )subscript )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_o) identifier_o (identifier_colname) identifier_colname )subscript (subscript (identifier_row) identifier_row (identifier_colname) identifier_colname )subscript )assignment )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_o) identifier_o )return_statement )block )function_definition )module
Convert a table row to a dictionary.
(module (function_definition (function_name_get_compression_extension) function_name_get_compression_extension (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_build_request) identifier_build_request (call (identifier_BuildRequest) identifier_BuildRequest (argument_list (keyword_argument (identifier_build_json_store) identifier_build_json_store (call (attribute (attribute (identifier_self) identifier_self (identifier_os_conf) identifier_os_conf )attribute (identifier_get_build_json_store) identifier_get_build_json_store )attribute (argument_list )argument_list )call )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_inner) identifier_inner (attribute (identifier_build_request) identifier_build_request (identifier_inner_template) identifier_inner_template )attribute )assignment )expression_statement (expression_statement (assignment (identifier_postbuild_plugins) identifier_postbuild_plugins (call (attribute (identifier_inner) identifier_inner (identifier_get) identifier_get )attribute (argument_list (string_'postbuild_plugins') string_'postbuild_plugins' (list )list )argument_list )call )assignment )expression_statement (for_statement (identifier_plugin) identifier_plugin (identifier_postbuild_plugins) identifier_postbuild_plugins (block (if_statement (comparison_operator (call (attribute (identifier_plugin) identifier_plugin (identifier_get) identifier_get )attribute (argument_list (string_'name') string_'name' )argument_list )call (string_'compress') string_'compress' )comparison_operator (block (expression_statement (assignment (identifier_args) identifier_args (call (attribute (identifier_plugin) identifier_plugin (identifier_get) identifier_get )attribute (argument_list (string_'args') string_'args' (dictionary )dictionary )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_method) identifier_method (call (attribute (identifier_args) identifier_args (identifier_get) identifier_get )attribute (argument_list (string_'method') string_'method' (string_'gzip') string_'gzip' )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_method) identifier_method (string_'gzip') string_'gzip' )comparison_operator (block (return_statement (string_'.gz') string_'.gz' )return_statement )block (elif_clause (comparison_operator (identifier_method) identifier_method (string_'lzma') string_'lzma' )comparison_operator (block (return_statement (string_'.xz') string_'.xz' )return_statement )block )elif_clause )if_statement (raise_statement (call (identifier_OsbsValidationException) identifier_OsbsValidationException (argument_list (binary_operator (string_"unknown compression method '%s'") string_"unknown compression method '%s'" (identifier_method) identifier_method )binary_operator )argument_list )call )raise_statement )block )if_statement )block )for_statement (return_statement (None) None )return_statement )block )function_definition )module
Find the filename extension for the 'docker save' output, which may or may not be compressed. Raises OsbsValidationException if the extension cannot be determined due to a configuration error. :returns: str including leading dot, or else None if no compression
(module (function_definition (function_name_add_argument_to) function_name_add_argument_to (parameters (identifier_self) identifier_self (identifier_parser) identifier_parser )parameters (block (import_from_statement (dotted_name (identifier_devassistant) identifier_devassistant (identifier_cli) identifier_cli (identifier_devassistant_argparse) identifier_devassistant_argparse )dotted_name (dotted_name (identifier_DefaultIffUsedActionFactory) identifier_DefaultIffUsedActionFactory )dotted_name )import_from_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute (identifier_get) identifier_get )attribute (argument_list (string_'action') string_'action' (string_'') string_'' )argument_list )call (identifier_list) identifier_list )argument_list )call (block (if_statement (comparison_operator (subscript (subscript (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute (string_'action') string_'action' )subscript (integer_0) integer_0 )subscript (string_'default_iff_used') string_'default_iff_used' )comparison_operator (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute (string_'action') string_'action' )subscript (call (attribute (identifier_DefaultIffUsedActionFactory) identifier_DefaultIffUsedActionFactory (identifier_generate_action) identifier_generate_action )attribute (argument_list (subscript (subscript (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute (string_'action') string_'action' )subscript (integer_1) integer_1 )subscript )argument_list )call )assignment )expression_statement )block )if_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute (identifier_pop) identifier_pop )attribute (argument_list (string_'preserved') string_'preserved' (None) None )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (list_splat (attribute (identifier_self) identifier_self (identifier_flags) identifier_flags )attribute )list_splat (dictionary_splat (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute )dictionary_splat )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_ex) identifier_ex )as_pattern_target )as_pattern (block (expression_statement (assignment (identifier_problem) identifier_problem (call (attribute (string_"Error while adding argument '{name}': {error}") string_"Error while adding argument '{name}': {error}" (line_continuation_\) line_continuation_\ (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_name) identifier_name (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute )keyword_argument (keyword_argument (identifier_error) identifier_error (call (identifier_repr) identifier_repr (argument_list (identifier_ex) identifier_ex )argument_list )call )keyword_argument )argument_list )call )assignment )expression_statement (raise_statement (call (attribute (identifier_exceptions) identifier_exceptions (identifier_ExecutionException) identifier_ExecutionException )attribute (argument_list (identifier_problem) identifier_problem )argument_list )call )raise_statement )block )except_clause )try_statement )block )function_definition )module
Used by cli to add this as an argument to argparse parser. Args: parser: parser to add this argument to
(module (function_definition (function_name_prepare_ec) function_name_prepare_ec (parameters (identifier_oo) identifier_oo (identifier_sizes) identifier_sizes (identifier_M) identifier_M )parameters (block (expression_statement (assignment (identifier_tour) identifier_tour (call (identifier_range) identifier_range (argument_list (call (identifier_len) identifier_len (argument_list (identifier_oo) identifier_oo )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_tour_sizes) identifier_tour_sizes (call (attribute (identifier_np) identifier_np (identifier_array) identifier_array )attribute (argument_list (list_comprehension (subscript (attribute (identifier_sizes) identifier_sizes (identifier_sizes) identifier_sizes )attribute (identifier_x) identifier_x )subscript (for_in_clause (identifier_x) identifier_x (identifier_oo) identifier_oo )for_in_clause )list_comprehension )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_tour_M) identifier_tour_M (subscript (subscript (identifier_M) identifier_M (identifier_oo) identifier_oo (slice (colon) colon )slice )subscript (slice (colon) colon )slice (identifier_oo) identifier_oo )subscript )assignment )expression_statement (return_statement (expression_list (identifier_tour) identifier_tour (identifier_tour_sizes) identifier_tour_sizes (identifier_tour_M) identifier_tour_M )expression_list )return_statement )block )function_definition )module
This prepares EC and converts from contig_id to an index.
(module (function_definition (function_name_operator_si) function_name_operator_si (parameters (identifier_u) identifier_u )parameters (block (global_statement (identifier__aux) identifier__aux )global_statement (if_statement (comparison_operator (call (attribute (identifier_np) identifier_np (identifier_ndim) identifier_ndim )attribute (argument_list (identifier_u) identifier_u )argument_list )call (integer_2) integer_2 )comparison_operator (block (expression_statement (assignment (identifier_P) identifier_P (identifier__P2) identifier__P2 )assignment )expression_statement )block (elif_clause (comparison_operator (call (attribute (identifier_np) identifier_np (identifier_ndim) identifier_ndim )attribute (argument_list (identifier_u) identifier_u )argument_list )call (integer_3) integer_3 )comparison_operator (block (expression_statement (assignment (identifier_P) identifier_P (identifier__P3) identifier__P3 )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (concatenated_string (string_"u has an invalid number of dimensions ") string_"u has an invalid number of dimensions " (string_"(should be 2 or 3)") string_"(should be 2 or 3)" )concatenated_string )argument_list )call )raise_statement )block )else_clause )if_statement (if_statement (comparison_operator (attribute (identifier_u) identifier_u (identifier_shape) identifier_shape )attribute (subscript (attribute (identifier__aux) identifier__aux (identifier_shape) identifier_shape )attribute (slice (integer_1) integer_1 (colon) colon )slice )subscript )comparison_operator (block (expression_statement (assignment (identifier__aux) identifier__aux (call (attribute (identifier_np) identifier_np (identifier_zeros) identifier_zeros )attribute (argument_list (binary_operator (tuple (call (identifier_len) identifier_len (argument_list (identifier_P) identifier_P )argument_list )call )tuple (attribute (identifier_u) identifier_u (identifier_shape) identifier_shape )attribute )binary_operator )argument_list )call )assignment )expression_statement )block )if_statement (for_statement (pattern_list (identifier__aux_i) identifier__aux_i (identifier_P_i) identifier_P_i )pattern_list (call (identifier_zip) identifier_zip (argument_list (identifier__aux) identifier__aux (identifier_P) identifier_P )argument_list )call (block (expression_statement (assignment (subscript (identifier__aux_i) identifier__aux_i (slice (colon) colon )slice )subscript (call (identifier_binary_erosion) identifier_binary_erosion (argument_list (identifier_u) identifier_u (identifier_P_i) identifier_P_i )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (call (attribute (identifier__aux) identifier__aux (identifier_max) identifier_max )attribute (argument_list (integer_0) integer_0 )argument_list )call )return_statement )block )function_definition )module
operator_si operator.
(module (function_definition (function_name_do_size) function_name_do_size (parameters (identifier_self) identifier_self (identifier_w) identifier_w (identifier_h) identifier_h )parameters (block (if_statement (parenthesized_expression (comparison_operator (identifier_w) identifier_w (None) None )comparison_operator )parenthesized_expression (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_sw) identifier_sw )attribute (attribute (identifier_self) identifier_self (identifier_rw) identifier_rw )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_sh) identifier_sh )attribute (attribute (identifier_self) identifier_self (identifier_rh) identifier_rh )attribute )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_sw) identifier_sw )attribute (identifier_w) identifier_w )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_sh) identifier_sh )attribute (identifier_h) identifier_h )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_image) identifier_image (call (attribute (identifier_Image) identifier_Image (identifier_new) identifier_new )attribute (argument_list (string_"RGB") string_"RGB" (tuple (attribute (identifier_self) identifier_self (identifier_sw) identifier_sw )attribute (attribute (identifier_self) identifier_self (identifier_sh) identifier_sh )attribute )tuple (attribute (attribute (identifier_self) identifier_self (identifier_gen) identifier_gen )attribute (identifier_background_color) identifier_background_color )attribute )argument_list )call )assignment )expression_statement (for_statement (identifier_y) identifier_y (call (identifier_range) identifier_range (argument_list (integer_0) integer_0 (attribute (identifier_self) identifier_self (identifier_sh) identifier_sh )attribute )argument_list )call (block (for_statement (identifier_x) identifier_x (call (identifier_range) identifier_range (argument_list (integer_0) integer_0 (attribute (identifier_self) identifier_self (identifier_sw) identifier_sw )attribute )argument_list )call (block (expression_statement (assignment (identifier_ix) identifier_ix (call (identifier_int) identifier_int (argument_list (binary_operator (binary_operator (parenthesized_expression (binary_operator (identifier_x) identifier_x (attribute (identifier_self) identifier_self (identifier_rw) identifier_rw )attribute )binary_operator )parenthesized_expression (attribute (identifier_self) identifier_self (identifier_sw) identifier_sw )attribute )binary_operator (attribute (identifier_self) identifier_self (identifier_rx) identifier_rx )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_iy) identifier_iy (call (identifier_int) identifier_int (argument_list (binary_operator (binary_operator (parenthesized_expression (binary_operator (identifier_y) identifier_y (attribute (identifier_self) identifier_self (identifier_rh) identifier_rh )attribute )binary_operator )parenthesized_expression (attribute (identifier_self) identifier_self (identifier_sh) identifier_sh )attribute )binary_operator (attribute (identifier_self) identifier_self (identifier_ry) identifier_ry )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_color) identifier_color (call (attribute (attribute (identifier_self) identifier_self (identifier_gen) identifier_gen )attribute (identifier_pixel) identifier_pixel )attribute (argument_list (identifier_ix) identifier_ix (identifier_iy) identifier_iy )argument_list )call )assignment )expression_statement (if_statement (parenthesized_expression (comparison_operator (identifier_color) identifier_color (None) None )comparison_operator )parenthesized_expression (block (expression_statement (call (attribute (identifier_image) identifier_image (identifier_putpixel) identifier_putpixel )attribute (argument_list (tuple (identifier_x) identifier_x (identifier_y) identifier_y )tuple (identifier_color) identifier_color )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_image) identifier_image )attribute (identifier_image) identifier_image )assignment )expression_statement )block )function_definition )module
Record size.
(module (function_definition (function_name_copyNamespace) function_name_copyNamespace (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (identifier_libxml2mod) identifier_libxml2mod (identifier_xmlCopyNamespace) identifier_xmlCopyNamespace )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__o) identifier__o )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_ret) identifier_ret (None) None )comparison_operator (block (raise_statement (call (identifier_treeError) identifier_treeError (argument_list (string_'xmlCopyNamespace() failed') string_'xmlCopyNamespace() failed' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier___tmp) identifier___tmp (call (identifier_xmlNs) identifier_xmlNs (argument_list (keyword_argument (identifier__obj) identifier__obj (identifier_ret) identifier_ret )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier___tmp) identifier___tmp )return_statement )block )function_definition )module
Do a copy of the namespace.
(module (function_definition (function_name_get_activity_ids_by_objective_banks) function_name_get_activity_ids_by_objective_banks (parameters (identifier_self) identifier_self (identifier_objective_bank_ids) identifier_objective_bank_ids )parameters (block (expression_statement (assignment (identifier_id_list) identifier_id_list (list )list )assignment )expression_statement (for_statement (identifier_activity) identifier_activity (call (attribute (identifier_self) identifier_self (identifier_get_activities_by_objective_banks) identifier_get_activities_by_objective_banks )attribute (argument_list (identifier_objective_bank_ids) identifier_objective_bank_ids )argument_list )call (block (expression_statement (call (attribute (identifier_id_list) identifier_id_list (identifier_append) identifier_append )attribute (argument_list (call (attribute (identifier_activity) identifier_activity (identifier_get_id) identifier_get_id )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (call (identifier_IdList) identifier_IdList (argument_list (identifier_id_list) identifier_id_list )argument_list )call )return_statement )block )function_definition )module
Gets the list of ``Activity Ids`` corresponding to a list of ``ObjectiveBanks``. arg: objective_bank_ids (osid.id.IdList): list of objective bank ``Ids`` return: (osid.id.IdList) - list of activity ``Ids`` raise: NullArgument - ``objective_bank_ids`` is ``null`` raise: OperationFailed - unable to complete request raise: PermissionDenied - authorization failure *compliance: mandatory -- This method must be implemented.*
(module (function_definition (function_name_dprintx) function_name_dprintx (parameters (identifier_passeditem) identifier_passeditem (default_parameter (identifier_special) identifier_special (False) False )default_parameter )parameters (block (if_statement (identifier_DEBUGALL) identifier_DEBUGALL (block (if_statement (identifier_special) identifier_special (block (import_from_statement (dotted_name (identifier_pprint) identifier_pprint )dotted_name (dotted_name (identifier_pprint) identifier_pprint )dotted_name )import_from_statement (expression_statement (call (identifier_pprint) identifier_pprint (argument_list (identifier_passeditem) identifier_passeditem )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_"%s%s%s") string_"%s%s%s" (tuple (identifier_C_TI) identifier_C_TI (identifier_passeditem) identifier_passeditem (identifier_C_NORM) identifier_C_NORM )tuple )binary_operator )argument_list )call )expression_statement )block )else_clause )if_statement )block )if_statement )block )function_definition )module
Print Text if DEBUGALL set, optionally with PrettyPrint. Args: passeditem (str): item to print special (bool): determines if item prints with PrettyPrint or regular print.
(module (function_definition (function_name_get_fake) function_name_get_fake (parameters (default_parameter (identifier_locale) identifier_locale (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_locale) identifier_locale (None) None )comparison_operator (block (expression_statement (assignment (identifier_locale) identifier_locale (attribute (identifier_Faker) identifier_Faker (identifier_default_locale) identifier_default_locale )attribute )assignment )expression_statement )block )if_statement (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_Maker) identifier_Maker (binary_operator (string_'_fake_') string_'_fake_' (identifier_locale) identifier_locale )binary_operator )argument_list )call )not_operator (block (expression_statement (assignment (attribute (identifier_Faker) identifier_Faker (identifier__fake) identifier__fake )attribute (call (attribute (attribute (identifier_faker) identifier_faker (identifier_Factory) identifier_Factory )attribute (identifier_create) identifier_create )attribute (argument_list (identifier_locale) identifier_locale )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (attribute (identifier_Faker) identifier_Faker (identifier__fake) identifier__fake )attribute )return_statement )block )function_definition )module
Return a shared faker factory used to generate fake data
(module (function_definition (function_name__kill_managed_threads) function_name__kill_managed_threads (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_num_threads) identifier_num_threads (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__managed_threads) identifier__managed_threads )attribute )argument_list )call )assignment )expression_statement (if_statement (identifier_num_threads) identifier_num_threads (block (expression_statement (call (attribute (identifier__log) identifier__log (identifier_warning) identifier_warning )attribute (argument_list (string_'killing %s managed thread(s)') string_'killing %s managed thread(s)' (identifier_num_threads) identifier_num_threads )argument_list )call )expression_statement (for_statement (pattern_list (identifier_gt) identifier_gt (identifier_identifier) identifier_identifier )pattern_list (call (identifier_list) identifier_list (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier__managed_threads) identifier__managed_threads )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call )argument_list )call (block (expression_statement (call (attribute (identifier__log) identifier__log (identifier_warning) identifier_warning )attribute (argument_list (string_'killing managed thread `%s`') string_'killing managed thread `%s`' (identifier_identifier) identifier_identifier )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_gt) identifier_gt (identifier_kill) identifier_kill )attribute (argument_list )argument_list )call )expression_statement )block )for_statement )block )if_statement )block )function_definition )module
Kill any currently executing managed threads. See :meth:`ServiceContainer.spawn_managed_thread`
(module (function_definition (function_name_run_dynamic_structure_factor) function_name_run_dynamic_structure_factor (parameters (identifier_self) identifier_self (identifier_Qpoints) identifier_Qpoints (identifier_T) identifier_T (default_parameter (identifier_atomic_form_factor_func) identifier_atomic_form_factor_func (None) None )default_parameter (default_parameter (identifier_scattering_lengths) identifier_scattering_lengths (None) None )default_parameter (default_parameter (identifier_freq_min) identifier_freq_min (None) None )default_parameter (default_parameter (identifier_freq_max) identifier_freq_max (None) None )default_parameter )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_init_dynamic_structure_factor) identifier_init_dynamic_structure_factor )attribute (argument_list (identifier_Qpoints) identifier_Qpoints (identifier_T) identifier_T (keyword_argument (identifier_atomic_form_factor_func) identifier_atomic_form_factor_func (identifier_atomic_form_factor_func) identifier_atomic_form_factor_func )keyword_argument (keyword_argument (identifier_scattering_lengths) identifier_scattering_lengths (identifier_scattering_lengths) identifier_scattering_lengths )keyword_argument (keyword_argument (identifier_freq_min) identifier_freq_min (identifier_freq_min) identifier_freq_min )keyword_argument (keyword_argument (identifier_freq_max) identifier_freq_max (identifier_freq_max) identifier_freq_max )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__dynamic_structure_factor) identifier__dynamic_structure_factor )attribute (identifier_run) identifier_run )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Run dynamic structure factor calculation See the detail of parameters at Phonopy.init_dynamic_structure_factor().
(module (function_definition (function_name_sam_list) function_name_sam_list (parameters (identifier_sam) identifier_sam )parameters (block (expression_statement (assignment (identifier_list) identifier_list (list )list )assignment )expression_statement (for_statement (identifier_file) identifier_file (identifier_sam) identifier_sam (block (for_statement (identifier_line) identifier_line (identifier_file) identifier_file (block (if_statement (comparison_operator (call (attribute (identifier_line) identifier_line (identifier_startswith) identifier_startswith )attribute (argument_list (string_'@') string_'@' )argument_list )call (False) False )comparison_operator (block (expression_statement (assignment (identifier_line) identifier_line (call (attribute (call (attribute (identifier_line) identifier_line (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (identifier_split) identifier_split )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_id) identifier_id (identifier_map) identifier_map )pattern_list (expression_list (subscript (identifier_line) identifier_line (integer_0) integer_0 )subscript (call (identifier_int) identifier_int (argument_list (subscript (identifier_line) identifier_line (integer_1) integer_1 )subscript )argument_list )call )expression_list )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_map) identifier_map (integer_4) integer_4 )comparison_operator (comparison_operator (identifier_map) identifier_map (integer_8) integer_8 )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_list) identifier_list (identifier_append) identifier_append )attribute (argument_list (identifier_id) identifier_id )argument_list )call )expression_statement )block )if_statement )block )if_statement )block )for_statement )block )for_statement (return_statement (call (identifier_set) identifier_set (argument_list (identifier_list) identifier_list )argument_list )call )return_statement )block )function_definition )module
get a list of mapped reads
(module (function_definition (function_name_fill_between) function_name_fill_between (parameters (identifier_self) identifier_self (identifier_canvas) identifier_canvas (identifier_X) identifier_X (identifier_lower) identifier_lower (identifier_upper) identifier_upper (default_parameter (identifier_color) identifier_color (None) None )default_parameter (default_parameter (identifier_label) identifier_label (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (raise_statement (call (identifier_NotImplementedError) identifier_NotImplementedError (argument_list (string_"Implement all plot functions in AbstractPlottingLibrary in order to use your own plotting library") string_"Implement all plot functions in AbstractPlottingLibrary in order to use your own plotting library" )argument_list )call )raise_statement )block )function_definition )module
Fill along the xaxis between lower and upper. the kwargs are plotting library specific kwargs!
(module (function_definition (function_name__generate_password) function_name__generate_password (parameters )parameters (block (expression_statement (assignment (identifier_uuid_str) identifier_uuid_str (call (attribute (call (attribute (identifier_six) identifier_six (identifier_text_type) identifier_text_type )attribute (argument_list (call (attribute (identifier_uuid) identifier_uuid (identifier_uuid4) identifier_uuid4 )attribute (argument_list )argument_list )call )argument_list )call (identifier_encode) identifier_encode )attribute (argument_list (string_"UTF-8") string_"UTF-8" )argument_list )call )assignment )expression_statement (return_statement (call (attribute (call (attribute (identifier_hashlib) identifier_hashlib (identifier_sha1) identifier_sha1 )attribute (argument_list (identifier_uuid_str) identifier_uuid_str )argument_list )call (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Create a random password The password is made by taking a uuid and passing it though sha1sum. We may change this in future to gain more entropy. This is based on the tripleo command os-make-password
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_find_new) identifier_find_new )attribute (argument_list )argument_list )call )expression_statement (for_statement (identifier_n) identifier_n (attribute (identifier_self) identifier_self (identifier_news) identifier_news )attribute (block (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_"{0}") string_"{0}" (identifier_format) identifier_format )attribute (argument_list (identifier_n) identifier_n )argument_list )call )argument_list )call )expression_statement )block )for_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"") string_"" )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_msg) identifier_msg )attribute (identifier_template) identifier_template )attribute (argument_list (integer_78) integer_78 )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_"| Installed {0} new configuration files:") string_"| Installed {0} new configuration files:" (identifier_format) identifier_format )attribute (argument_list (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_news) identifier_news )attribute )argument_list )call )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_msg) identifier_msg )attribute (identifier_template) identifier_template )attribute (argument_list (integer_78) integer_78 )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_choices) identifier_choices )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
print .new configuration files
(module (function_definition (function_name_scramble_date) function_name_scramble_date (parameters (identifier_self) identifier_self (identifier_value) identifier_value (default_parameter (identifier_format) identifier_format (string_'%d %b %Y') string_'%d %b %Y' )default_parameter )parameters (block (if_statement (comparison_operator (identifier_value) identifier_value (string_'') string_'' )comparison_operator (block (expression_statement (assignment (identifier_end_date) identifier_end_date (string_'now') string_'now' )assignment )expression_statement (expression_statement (assignment (identifier_start_date) identifier_start_date (string_'-1y') string_'-1y' )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_end_date) identifier_end_date (call (attribute (call (attribute (attribute (identifier_datetime) identifier_datetime (identifier_datetime) identifier_datetime )attribute (identifier_strptime) identifier_strptime )attribute (argument_list (identifier_value) identifier_value (identifier_format) identifier_format )argument_list )call (identifier_date) identifier_date )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_start_date) identifier_start_date (binary_operator (identifier_end_date) identifier_end_date (call (attribute (identifier_datetime) identifier_datetime (identifier_timedelta) identifier_timedelta )attribute (argument_list (keyword_argument (identifier_days) identifier_days (integer_365) integer_365 )keyword_argument )argument_list )call )binary_operator )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_fake_date) identifier_fake_date (call (attribute (call (attribute (call (attribute (identifier_fake) identifier_fake (identifier_date_time_between) identifier_date_time_between )attribute (argument_list (keyword_argument (identifier_start_date) identifier_start_date (identifier_start_date) identifier_start_date )keyword_argument (keyword_argument (identifier_end_date) identifier_end_date (identifier_end_date) identifier_end_date )keyword_argument )argument_list )call (identifier_strftime) identifier_strftime )attribute (argument_list (identifier_format) identifier_format )argument_list )call (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (identifier_fake_date) identifier_fake_date )return_statement )block )function_definition )module
Return random date
(module (function_definition (function_name_report_privilege_information) function_name_report_privilege_information (parameters )parameters (block (expression_statement (string_"Report all privilege information assigned to the current process.") string_"Report all privilege information assigned to the current process." )expression_statement (expression_statement (assignment (identifier_privileges) identifier_privileges (call (identifier_get_privilege_information) identifier_get_privilege_information (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_"found {0} privileges") string_"found {0} privileges" (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_privileges) identifier_privileges (identifier_count) identifier_count )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_tuple) identifier_tuple (argument_list (call (identifier_map) identifier_map (argument_list (identifier_print) identifier_print (identifier_privileges) identifier_privileges )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Report all privilege information assigned to the current process.
(module (function_definition (function_name_is_hidden) function_name_is_hidden (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_hidden) identifier_hidden (False) False )assignment )expression_statement (expression_statement (assignment (identifier_f) identifier_f (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_f) identifier_f (slice (colon) colon (integer_1) integer_1 )slice )subscript (tuple (string_'.') string_'.' (string_b'.') string_b'.' )tuple )comparison_operator (block (expression_statement (assignment (identifier_hidden) identifier_hidden (True) True )assignment )expression_statement )block (elif_clause (comparison_operator (identifier__PLATFORM) identifier__PLATFORM (string_'windows') string_'windows' )comparison_operator (block (expression_statement (assignment (identifier_FILE_ATTRIBUTE_HIDDEN) identifier_FILE_ATTRIBUTE_HIDDEN (integer_0x2) integer_0x2 )assignment )expression_statement (if_statement (identifier_PY35) identifier_PY35 (block (expression_statement (assignment (identifier_results) identifier_results (call (attribute (identifier_os) identifier_os (identifier_lstat) identifier_lstat )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_hidden) identifier_hidden (call (identifier_bool) identifier_bool (argument_list (binary_operator (attribute (identifier_results) identifier_results (identifier_st_file_attributes) identifier_st_file_attributes )attribute (identifier_FILE_ATTRIBUTE_HIDDEN) identifier_FILE_ATTRIBUTE_HIDDEN )binary_operator )argument_list )call )assignment )expression_statement )block (else_clause (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_path) identifier_path (identifier_bytes) identifier_bytes )argument_list )call (block (expression_statement (assignment (identifier_attrs) identifier_attrs (call (attribute (attribute (attribute (identifier_ctypes) identifier_ctypes (identifier_windll) identifier_windll )attribute (identifier_kernel32) identifier_kernel32 )attribute (identifier_GetFileAttributesA) identifier_GetFileAttributesA )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_attrs) identifier_attrs (call (attribute (attribute (attribute (identifier_ctypes) identifier_ctypes (identifier_windll) identifier_windll )attribute (identifier_kernel32) identifier_kernel32 )attribute (identifier_GetFileAttributesW) identifier_GetFileAttributesW )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_hidden) identifier_hidden (boolean_operator (comparison_operator (identifier_attrs) identifier_attrs (unary_operator (integer_1) integer_1 )unary_operator )comparison_operator (binary_operator (identifier_attrs) identifier_attrs (identifier_FILE_ATTRIBUTE_HIDDEN) identifier_FILE_ATTRIBUTE_HIDDEN )binary_operator )boolean_operator )assignment )expression_statement )block )else_clause )if_statement )block )elif_clause (elif_clause (comparison_operator (identifier__PLATFORM) identifier__PLATFORM (string_"osx") string_"osx" )comparison_operator (block (expression_statement (assignment (identifier_results) identifier_results (call (attribute (identifier_os) identifier_os (identifier_lstat) identifier_lstat )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_hidden) identifier_hidden (call (identifier_bool) identifier_bool (argument_list (binary_operator (attribute (identifier_results) identifier_results (identifier_st_flags) identifier_st_flags )attribute (attribute (identifier_stat) identifier_stat (identifier_UF_HIDDEN) identifier_UF_HIDDEN )attribute )binary_operator )argument_list )call )assignment )expression_statement )block )elif_clause )if_statement (return_statement (identifier_hidden) identifier_hidden )return_statement )block )function_definition )module
Check if file is hidden.
(module (function_definition (function_name_read) function_name_read (parameters (identifier_self) identifier_self (default_parameter (identifier_timeout) identifier_timeout (None) None )default_parameter )parameters (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_self) identifier_self (string_'_sock') string_'_sock' )argument_list )call )not_operator (block (return_statement (None) None )return_statement )block )if_statement (if_statement (identifier_timeout) identifier_timeout (block (if_statement (attribute (identifier_self) identifier_self (identifier__heartbeat_timeout) identifier__heartbeat_timeout )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__heartbeat_timeout) identifier__heartbeat_timeout )attribute (identifier_delete) identifier_delete )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__heartbeat_timeout) identifier__heartbeat_timeout )attribute (line_continuation_\) line_continuation_\ (call (attribute (identifier_event) identifier_event (identifier_timeout) identifier_timeout )attribute (argument_list (identifier_timeout) identifier_timeout (attribute (identifier_self) identifier_self (identifier__sock_read_cb) identifier__sock_read_cb )attribute (attribute (identifier_self) identifier_self (identifier__sock) identifier__sock )attribute )argument_list )call )assignment )expression_statement )block (elif_clause (attribute (identifier_self) identifier_self (identifier__heartbeat_timeout) identifier__heartbeat_timeout )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__heartbeat_timeout) identifier__heartbeat_timeout )attribute (identifier_delete) identifier_delete )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__heartbeat_timeout) identifier__heartbeat_timeout )attribute (None) None )assignment )expression_statement )block )elif_clause )if_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__sock) identifier__sock )attribute (identifier_read) identifier_read )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Read from the transport. If no data is available, should return None. The timeout is ignored as this returns only data that has already been buffered locally.
(module (function_definition (function_name_convert_context_to_csv) function_name_convert_context_to_csv (parameters (identifier_self) identifier_self (identifier_context) identifier_context )parameters (block (expression_statement (assignment (identifier_content) identifier_content (list )list )assignment )expression_statement (expression_statement (assignment (identifier_date_headers) identifier_date_headers (subscript (identifier_context) identifier_context (string_'date_headers') string_'date_headers' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_headers) identifier_headers (list (string_'Name') string_'Name' )list )assignment )expression_statement (expression_statement (call (attribute (identifier_headers) identifier_headers (identifier_extend) identifier_extend )attribute (argument_list (list_comprehension (call (attribute (identifier_date) identifier_date (identifier_strftime) identifier_strftime )attribute (argument_list (string_'%m/%d/%Y') string_'%m/%d/%Y' )argument_list )call (for_in_clause (identifier_date) identifier_date (identifier_date_headers) identifier_date_headers )for_in_clause )list_comprehension )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_headers) identifier_headers (identifier_append) identifier_append )attribute (argument_list (string_'Total') string_'Total' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_content) identifier_content (identifier_append) identifier_append )attribute (argument_list (identifier_headers) identifier_headers )argument_list )call )expression_statement (expression_statement (assignment (identifier_summaries) identifier_summaries (subscript (identifier_context) identifier_context (string_'summaries') string_'summaries' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_summary) identifier_summary (call (attribute (identifier_summaries) identifier_summaries (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_export) identifier_export )attribute (list )list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_rows) identifier_rows (identifier_totals) identifier_totals )pattern_list (identifier_summary) identifier_summary (block (for_statement (pattern_list (identifier_name) identifier_name (identifier_user_id) identifier_user_id (identifier_hours) identifier_hours )pattern_list (identifier_rows) identifier_rows (block (expression_statement (assignment (identifier_data) identifier_data (list (identifier_name) identifier_name )list )assignment )expression_statement (expression_statement (call (attribute (identifier_data) identifier_data (identifier_extend) identifier_extend )attribute (argument_list (identifier_hours) identifier_hours )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_content) identifier_content (identifier_append) identifier_append )attribute (argument_list (identifier_data) identifier_data )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (identifier_total) identifier_total (list (string_'Totals') string_'Totals' )list )assignment )expression_statement (expression_statement (call (attribute (identifier_total) identifier_total (identifier_extend) identifier_extend )attribute (argument_list (identifier_totals) identifier_totals )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_content) identifier_content (identifier_append) identifier_append )attribute (argument_list (identifier_total) identifier_total )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_content) identifier_content )return_statement )block )function_definition )module
Convert the context dictionary into a CSV file.
(module (function_definition (function_name_add_header) function_name_add_header (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value (dictionary_splat_pattern (identifier_params) identifier_params )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_key) identifier_key (call (attribute (identifier_self) identifier_self (identifier_escape) identifier_escape )attribute (argument_list (identifier_key) identifier_key )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ci_key) identifier_ci_key (call (attribute (identifier_key) identifier_key (identifier_casefold) identifier_casefold )attribute (argument_list )argument_list )call )assignment )expression_statement (function_definition (function_name_quoted_params) function_name_quoted_params (parameters (identifier_items) identifier_items )parameters (block (for_statement (identifier_p) identifier_p (identifier_items) identifier_items (block (expression_statement (assignment (identifier_param_name) identifier_param_name (call (attribute (identifier_self) identifier_self (identifier_escape) identifier_escape )attribute (argument_list (subscript (identifier_p) identifier_p (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_param_val) identifier_param_val (call (attribute (identifier_self) identifier_self (identifier_de_quote) identifier_de_quote )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier_escape) identifier_escape )attribute (argument_list (subscript (identifier_p) identifier_p (integer_1) integer_1 )subscript )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (yield (expression_list (identifier_param_name) identifier_param_name (identifier_param_val) identifier_param_val )expression_list )yield )expression_statement )block )for_statement )block )function_definition (expression_statement (assignment (identifier_sorted_items) identifier_sorted_items (call (identifier_sorted) identifier_sorted (argument_list (call (attribute (identifier_params) identifier_params (identifier_items) identifier_items )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_quoted_iter) identifier_quoted_iter (generator_expression (binary_operator (string_'%s="%s"') string_'%s="%s"' (identifier_p) identifier_p )binary_operator (for_in_clause (identifier_p) identifier_p (call (identifier_quoted_params) identifier_quoted_params (argument_list (identifier_sorted_items) identifier_sorted_items )argument_list )call )for_in_clause )generator_expression )assignment )expression_statement (expression_statement (assignment (identifier_param_str) identifier_param_str (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (identifier_quoted_iter) identifier_quoted_iter )argument_list )call )assignment )expression_statement (if_statement (identifier_param_str) identifier_param_str (block (expression_statement (assignment (identifier_value) identifier_value (binary_operator (string_"%s; %s") string_"%s; %s" (tuple (identifier_value) identifier_value (identifier_param_str) identifier_param_str )tuple )binary_operator )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__header_data) identifier__header_data )attribute (identifier_ci_key) identifier_ci_key )subscript (tuple (identifier_key) identifier_key (identifier_value) identifier_value )tuple )assignment )expression_statement )block )function_definition )module
Add a header to the collection, including potential parameters. Args: key (str): The name of the header value (str): The value to store under that key params: Option parameters to be appended to the value, automatically formatting them in a standard way
(module (function_definition (function_name_wrap_handler) function_name_wrap_handler (parameters (identifier_cls) identifier_cls (identifier_handler) identifier_handler (identifier_protocol) identifier_protocol (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (function_definition (function_name__wrapper) function_name__wrapper (parameters (identifier_request) identifier_request (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_instance) identifier_instance (call (identifier_cls) identifier_cls (argument_list (keyword_argument (identifier_request) identifier_request (identifier_request) identifier_request )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_protocol) identifier_protocol (attribute (attribute (identifier_Resource) identifier_Resource (identifier_Protocol) identifier_Protocol )attribute (identifier_http) identifier_http )attribute )comparison_operator (block (return_statement (call (attribute (identifier_instance) identifier_instance (identifier__wrap_http) identifier__wrap_http )attribute (argument_list (identifier_handler) identifier_handler (keyword_argument (identifier_request) identifier_request (identifier_request) identifier_request )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block (elif_clause (comparison_operator (identifier_protocol) identifier_protocol (attribute (attribute (identifier_Resource) identifier_Resource (identifier_Protocol) identifier_Protocol )attribute (identifier_websocket) identifier_websocket )attribute )comparison_operator (block (return_statement (call (attribute (identifier_instance) identifier_instance (identifier__wrap_ws) identifier__wrap_ws )attribute (argument_list (identifier_handler) identifier_handler (keyword_argument (identifier_request) identifier_request (identifier_request) identifier_request )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_protocol) identifier_protocol (attribute (attribute (identifier_Resource) identifier_Resource (identifier_Protocol) identifier_Protocol )attribute (identifier_amqp) identifier_amqp )attribute )comparison_operator (block (return_statement (call (attribute (identifier_instance) identifier_instance (identifier__wrap_amqp) identifier__wrap_amqp )attribute (argument_list (identifier_view_type) identifier_view_type (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (string_'Communication protocol not specified') string_'Communication protocol not specified' )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition (return_statement (identifier__wrapper) identifier__wrapper )return_statement )block )function_definition )module
Wrap a request handler with the matching protocol handler
(module (function_definition (function_name_node_is_subclass) function_name_node_is_subclass (parameters (identifier_cls) identifier_cls (list_splat_pattern (identifier_subclass_names) identifier_subclass_names )list_splat_pattern )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_cls) identifier_cls (tuple (identifier_ClassDef) identifier_ClassDef (identifier_Instance) identifier_Instance )tuple )argument_list )call )not_operator (block (return_statement (False) False )return_statement )block )if_statement (for_statement (identifier_base_cls) identifier_base_cls (attribute (identifier_cls) identifier_cls (identifier_bases) identifier_bases )attribute (block (try_statement (block (for_statement (identifier_inf) identifier_inf (call (attribute (identifier_base_cls) identifier_base_cls (identifier_inferred) identifier_inferred )attribute (argument_list )argument_list )call (block (if_statement (comparison_operator (call (attribute (identifier_inf) identifier_inf (identifier_qname) identifier_qname )attribute (argument_list )argument_list )call (identifier_subclass_names) identifier_subclass_names )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (boolean_operator (comparison_operator (identifier_inf) identifier_inf (identifier_cls) identifier_cls )comparison_operator (call (identifier_node_is_subclass) identifier_node_is_subclass (argument_list (identifier_inf) identifier_inf (list_splat (identifier_subclass_names) identifier_subclass_names )list_splat )argument_list )call )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement )block )for_statement )block (except_clause (identifier_InferenceError) identifier_InferenceError (block (continue_statement )continue_statement )block )except_clause )try_statement )block )for_statement (return_statement (False) False )return_statement )block )function_definition )module
Checks if cls node has parent with subclass_name.
(module (function_definition (function_name_create_partitions) function_name_create_partitions (parameters (identifier_self) identifier_self (identifier_topic_partitions) identifier_topic_partitions (default_parameter (identifier_timeout_ms) identifier_timeout_ms (None) None )default_parameter (default_parameter (identifier_validate_only) identifier_validate_only (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_version) identifier_version (call (attribute (identifier_self) identifier_self (identifier__matching_api_version) identifier__matching_api_version )attribute (argument_list (identifier_CreatePartitionsRequest) identifier_CreatePartitionsRequest )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_timeout_ms) identifier_timeout_ms (call (attribute (identifier_self) identifier_self (identifier__validate_timeout) identifier__validate_timeout )attribute (argument_list (identifier_timeout_ms) identifier_timeout_ms )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_version) identifier_version (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_request) identifier_request (call (subscript (identifier_CreatePartitionsRequest) identifier_CreatePartitionsRequest (identifier_version) identifier_version )subscript (argument_list (keyword_argument (identifier_topic_partitions) identifier_topic_partitions (list_comprehension (call (attribute (identifier_self) identifier_self (identifier__convert_create_partitions_request) identifier__convert_create_partitions_request )attribute (argument_list (identifier_topic_name) identifier_topic_name (identifier_new_partitions) identifier_new_partitions )argument_list )call (for_in_clause (pattern_list (identifier_topic_name) identifier_topic_name (identifier_new_partitions) identifier_new_partitions )pattern_list (call (attribute (identifier_topic_partitions) identifier_topic_partitions (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (identifier_timeout_ms) identifier_timeout_ms )keyword_argument (keyword_argument (identifier_validate_only) identifier_validate_only (identifier_validate_only) identifier_validate_only )keyword_argument )argument_list )call )assignment )expression_statement )block (else_clause (block (raise_statement (call (identifier_NotImplementedError) identifier_NotImplementedError (argument_list (call (attribute (string_"Support for CreatePartitions v{} has not yet been added to KafkaAdminClient.") string_"Support for CreatePartitions v{} has not yet been added to KafkaAdminClient." (identifier_format) identifier_format )attribute (argument_list (identifier_version) identifier_version )argument_list )call )argument_list )call )raise_statement )block )else_clause )if_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__send_request_to_controller) identifier__send_request_to_controller )attribute (argument_list (identifier_request) identifier_request )argument_list )call )return_statement )block )function_definition )module
Create additional partitions for an existing topic. :param topic_partitions: A map of topic name strings to NewPartition objects. :param timeout_ms: Milliseconds to wait for new partitions to be created before the broker returns. :param validate_only: If True, don't actually create new partitions. Default: False :return: Appropriate version of CreatePartitionsResponse class.
(module (function_definition (function_name_show_graph) function_name_show_graph (parameters (identifier_self) identifier_self (default_parameter (identifier_format) identifier_format (string_'svg') string_'svg' )default_parameter )parameters (block (expression_statement (assignment (identifier_g) identifier_g (call (attribute (identifier_self) identifier_self (identifier_to_simple_graph) identifier_to_simple_graph )attribute (argument_list (call (identifier_AssetExists) identifier_AssetExists (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_format) identifier_format (string_'svg') string_'svg' )comparison_operator (block (return_statement (attribute (identifier_g) identifier_g (identifier_svg) identifier_svg )attribute )return_statement )block (elif_clause (comparison_operator (identifier_format) identifier_format (string_'png') string_'png' )comparison_operator (block (return_statement (attribute (identifier_g) identifier_g (identifier_png) identifier_png )attribute )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_format) identifier_format (string_'jpeg') string_'jpeg' )comparison_operator (block (return_statement (attribute (identifier_g) identifier_g (identifier_jpeg) identifier_jpeg )attribute )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_AssertionError) identifier_AssertionError (argument_list (binary_operator (string_"Unknown graph format %r.") string_"Unknown graph format %r." (identifier_format) identifier_format )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Render this Pipeline as a DAG. Parameters ---------- format : {'svg', 'png', 'jpeg'} Image format to render with. Default is 'svg'.
(module (function_definition (function_name_run_init_tables) function_name_run_init_tables (parameters (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_'--') string_'--' )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabPost) identifier_TabPost )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabTag) identifier_TabTag )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabMember) identifier_TabMember )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabWiki) identifier_TabWiki )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabLink) identifier_TabLink )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabEntity) identifier_TabEntity )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabPostHist) identifier_TabPostHist )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabWikiHist) identifier_TabWikiHist )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabCollect) identifier_TabCollect )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabPost2Tag) identifier_TabPost2Tag )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabRel) identifier_TabRel )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabEvaluation) identifier_TabEvaluation )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabUsage) identifier_TabUsage )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabReply) identifier_TabReply )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabUser2Reply) identifier_TabUser2Reply )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabRating) identifier_TabRating )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabEntity2User) identifier_TabEntity2User )argument_list )call )expression_statement (expression_statement (call (identifier_create_table) identifier_create_table (argument_list (identifier_TabLog) identifier_TabLog )argument_list )call )expression_statement )block )function_definition )module
Run to init tables.
(module (function_definition (function_name_validate) function_name_validate (parameters (identifier_self) identifier_self (identifier_proxy_ip) identifier_proxy_ip (identifier_client_ip) identifier_client_ip )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_pseudo_proxy) identifier_pseudo_proxy )attribute (block (expression_statement (assignment (identifier_proxy) identifier_proxy (attribute (identifier_self) identifier_self (identifier_pseudo_proxy) identifier_pseudo_proxy )attribute )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_proxy_ip) identifier_proxy_ip (attribute (identifier_self) identifier_self (identifier_proxies) identifier_proxies )attribute )comparison_operator (block (return_statement (False) False )return_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_proxy) identifier_proxy (subscript (attribute (identifier_self) identifier_self (identifier_proxies) identifier_proxies )attribute (identifier_proxy_ip) identifier_proxy_ip )subscript )assignment )expression_statement )block )else_clause )if_statement (return_statement (comparison_operator (identifier_client_ip) identifier_client_ip (identifier_proxy) identifier_proxy )comparison_operator )return_statement )block )function_definition )module
Looks up the proxy identified by its IP, then verifies that the given client IP may be introduced by that proxy. :param proxy_ip: The IP address of the proxy. :param client_ip: The IP address of the supposed client. :returns: True if the proxy is permitted to introduce the client; False if the proxy doesn't exist or isn't permitted to introduce the client.
(module (function_definition (function_name_ifft) function_name_ifft (parameters (identifier_a) identifier_a (default_parameter (identifier_n) identifier_n (None) None )default_parameter (default_parameter (identifier_axis) identifier_axis (unary_operator (integer_1) integer_1 )unary_operator )default_parameter (default_parameter (identifier_norm) identifier_norm (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_unitary) identifier_unitary (call (identifier__unitary) identifier__unitary (argument_list (identifier_norm) identifier_norm )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_output) identifier_output (call (attribute (identifier_mkl_fft) identifier_mkl_fft (identifier_ifft) identifier_ifft )attribute (argument_list (identifier_a) identifier_a (identifier_n) identifier_n (identifier_axis) identifier_axis )argument_list )call )assignment )expression_statement (if_statement (identifier_unitary) identifier_unitary (block (expression_statement (augmented_assignment (identifier_output) identifier_output (call (identifier_sqrt) identifier_sqrt (argument_list (subscript (attribute (identifier_output) identifier_output (identifier_shape) identifier_shape )attribute (identifier_axis) identifier_axis )subscript )argument_list )call )augmented_assignment )expression_statement )block )if_statement (return_statement (identifier_output) identifier_output )return_statement )block )function_definition )module
Compute the one-dimensional inverse discrete Fourier Transform. This function computes the inverse of the one-dimensional *n*-point discrete Fourier transform computed by `fft`. In other words, ``ifft(fft(a)) == a`` to within numerical accuracy. For a general description of the algorithm and definitions, see `numpy.fft`. The input should be ordered in the same way as is returned by `fft`, i.e., * ``a[0]`` should contain the zero frequency term, * ``a[1:n//2]`` should contain the positive-frequency terms, * ``a[n//2 + 1:]`` should contain the negative-frequency terms, in increasing order starting from the most negative frequency. Parameters ---------- a : array_like Input array, can be complex. n : int, optional Length of the transformed axis of the output. If `n` is smaller than the length of the input, the input is cropped. If it is larger, the input is padded with zeros. If `n` is not given, the length of the input along the axis specified by `axis` is used. See notes about padding issues. axis : int, optional Axis over which to compute the inverse DFT. If not given, the last axis is used. norm : {None, "ortho"}, optional .. versionadded:: 1.10.0 Normalization mode (see `numpy.fft`). Default is None. Returns ------- out : complex ndarray The truncated or zero-padded input, transformed along the axis indicated by `axis`, or the last one if `axis` is not specified. Raises ------ IndexError If `axes` is larger than the last axis of `a`. See Also -------- numpy.fft : An introduction, with definitions and general explanations. fft : The one-dimensional (forward) FFT, of which `ifft` is the inverse ifft2 : The two-dimensional inverse FFT. ifftn : The n-dimensional inverse FFT. Notes ----- If the input parameter `n` is larger than the size of the input, the input is padded by appending zeros at the end. Even though this is the common approach, it might lead to surprising results. If a different padding is desired, it must be performed before calling `ifft`. Examples -------- >>> np.fft.ifft([0, 4, 0, 0]) array([ 1.+0.j, 0.+1.j, -1.+0.j, 0.-1.j]) Create and plot a band-limited signal with random phases: >>> import matplotlib.pyplot as plt >>> t = np.arange(400) >>> n = np.zeros((400,), dtype=complex) >>> n[40:60] = np.exp(1j*np.random.uniform(0, 2*np.pi, (20,))) >>> s = np.fft.ifft(n) >>> plt.plot(t, s.real, 'b-', t, s.imag, 'r--') ... >>> plt.legend(('real', 'imaginary')) ... >>> plt.show()
(module (function_definition (function_name_add_source) function_name_add_source (parameters (identifier_self) identifier_self (identifier_source) identifier_source )parameters (block (expression_statement (assignment (identifier_geocode_service) identifier_geocode_service (call (attribute (identifier_self) identifier_self (identifier__get_service_by_name) identifier__get_service_by_name )attribute (argument_list (subscript (identifier_source) identifier_source (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__sources) identifier__sources )attribute (identifier_append) identifier_append )attribute (argument_list (call (identifier_geocode_service) identifier_geocode_service (argument_list (dictionary_splat (subscript (identifier_source) identifier_source (integer_1) integer_1 )subscript )dictionary_splat )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Add a geocoding service to this instance.
(module (function_definition (function_name__get_specifications) function_name__get_specifications (parameters (identifier_specifications) identifier_specifications )parameters (block (if_statement (boolean_operator (not_operator (identifier_specifications) identifier_specifications )not_operator (comparison_operator (identifier_specifications) identifier_specifications (identifier_object) identifier_object )comparison_operator )boolean_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"No specifications given") string_"No specifications given" )argument_list )call )raise_statement )block (elif_clause (call (attribute (identifier_inspect) identifier_inspect (identifier_isclass) identifier_isclass )attribute (argument_list (identifier_specifications) identifier_specifications )argument_list )call (block (if_statement (attribute (identifier_Provides) identifier_Provides (identifier_USE_MODULE_QUALNAME) identifier_USE_MODULE_QUALNAME )attribute (block (if_statement (comparison_operator (attribute (identifier_sys) identifier_sys (identifier_version_info) identifier_version_info )attribute (tuple (integer_3) integer_3 (integer_3) integer_3 (integer_0) integer_0 )tuple )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"Qualified name capability requires Python 3.3+") string_"Qualified name capability requires Python 3.3+" )argument_list )call )raise_statement )block )if_statement (if_statement (not_operator (attribute (identifier_specifications) identifier_specifications (identifier___module__) identifier___module__ )attribute )not_operator (block (return_statement (list (attribute (identifier_specifications) identifier_specifications (identifier___qualname__) identifier___qualname__ )attribute )list )return_statement )block )if_statement (return_statement (list (call (attribute (string_"{0}.{1}") string_"{0}.{1}" (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_specifications) identifier_specifications (identifier___module__) identifier___module__ )attribute (attribute (identifier_specifications) identifier_specifications (identifier___qualname__) identifier___qualname__ )attribute )argument_list )call )list )return_statement )block (else_clause (block (return_statement (list (attribute (identifier_specifications) identifier_specifications (identifier___name__) identifier___name__ )attribute )list )return_statement )block )else_clause )if_statement )block )elif_clause (elif_clause (call (identifier_is_string) identifier_is_string (argument_list (identifier_specifications) identifier_specifications )argument_list )call (block (expression_statement (assignment (identifier_specifications) identifier_specifications (call (attribute (identifier_specifications) identifier_specifications (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_specifications) identifier_specifications )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"Empty specification given") string_"Empty specification given" )argument_list )call )raise_statement )block )if_statement (return_statement (list (identifier_specifications) identifier_specifications )list )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_specifications) identifier_specifications (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (block (expression_statement (assignment (identifier_results) identifier_results (list )list )assignment )expression_statement (for_statement (identifier_specification) identifier_specification (identifier_specifications) identifier_specifications (block (expression_statement (call (attribute (identifier_results) identifier_results (identifier_extend) identifier_extend )attribute (argument_list (call (identifier__get_specifications) identifier__get_specifications (argument_list (identifier_specification) identifier_specification )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_results) identifier_results )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_"Unhandled specifications type : {0}") string_"Unhandled specifications type : {0}" (identifier_format) identifier_format )attribute (argument_list (attribute (call (identifier_type) identifier_type (argument_list (identifier_specifications) identifier_specifications )argument_list )call (identifier___name__) identifier___name__ )attribute )argument_list )call )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Computes the list of strings corresponding to the given specifications :param specifications: A string, a class or a list of specifications :return: A list of strings :raise ValueError: Invalid specification found
(module (function_definition (function_name_filter_and_date) function_name_filter_and_date (parameters (identifier_local_root) identifier_local_root (identifier_conf_rel_paths) identifier_conf_rel_paths (identifier_commits) identifier_commits )parameters (block (expression_statement (assignment (identifier_dates_paths) identifier_dates_paths (call (identifier_dict) identifier_dict (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_commit) identifier_commit (identifier_commits) identifier_commits (block (if_statement (comparison_operator (identifier_commit) identifier_commit (identifier_dates_paths) identifier_dates_paths )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_command) identifier_command (binary_operator (list (string_'git') string_'git' (string_'ls-tree') string_'ls-tree' (string_'--name-only') string_'--name-only' (string_'-r') string_'-r' (identifier_commit) identifier_commit )list (identifier_conf_rel_paths) identifier_conf_rel_paths )binary_operator )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_output) identifier_output (call (identifier_run_command) identifier_run_command (argument_list (identifier_local_root) identifier_local_root (identifier_command) identifier_command )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_CalledProcessError) identifier_CalledProcessError (as_pattern_target (identifier_exc) identifier_exc )as_pattern_target )as_pattern (block (raise_statement (call (identifier_GitError) identifier_GitError (argument_list (call (attribute (string_'Git ls-tree failed on {0}') string_'Git ls-tree failed on {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_commit) identifier_commit )argument_list )call (attribute (identifier_exc) identifier_exc (identifier_output) identifier_output )attribute )argument_list )call )raise_statement )block )except_clause )try_statement (if_statement (identifier_output) identifier_output (block (expression_statement (assignment (subscript (identifier_dates_paths) identifier_dates_paths (identifier_commit) identifier_commit )subscript (list (None) None (call (attribute (subscript (call (attribute (identifier_output) identifier_output (identifier_splitlines) identifier_splitlines )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )list )assignment )expression_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_command_prefix) identifier_command_prefix (list (string_'git') string_'git' (string_'show') string_'show' (string_'--no-patch') string_'--no-patch' (string_'--pretty=format:%ct') string_'--pretty=format:%ct' )list )assignment )expression_statement (for_statement (identifier_commits_group) identifier_commits_group (call (identifier_chunk) identifier_chunk (argument_list (identifier_dates_paths) identifier_dates_paths (integer_50) integer_50 )argument_list )call (block (expression_statement (assignment (identifier_command) identifier_command (binary_operator (identifier_command_prefix) identifier_command_prefix (identifier_commits_group) identifier_commits_group )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_output) identifier_output (call (identifier_run_command) identifier_run_command (argument_list (identifier_local_root) identifier_local_root (identifier_command) identifier_command )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_timestamps) identifier_timestamps (list_comprehension (call (identifier_int) identifier_int (argument_list (identifier_i) identifier_i )argument_list )call (for_in_clause (identifier_i) identifier_i (call (attribute (identifier_RE_UNIX_TIME) identifier_RE_UNIX_TIME (identifier_findall) identifier_findall )attribute (argument_list (identifier_output) identifier_output )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_commit) identifier_commit )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_commits_group) identifier_commits_group )argument_list )call (block (expression_statement (assignment (subscript (subscript (identifier_dates_paths) identifier_dates_paths (identifier_commit) identifier_commit )subscript (integer_0) integer_0 )subscript (subscript (identifier_timestamps) identifier_timestamps (identifier_i) identifier_i )subscript )assignment )expression_statement )block )for_statement )block )for_statement (return_statement (identifier_dates_paths) identifier_dates_paths )return_statement )block )function_definition )module
Get commit Unix timestamps and first matching conf.py path. Exclude commits with no conf.py file. :raise CalledProcessError: Unhandled git command failure. :raise GitError: A commit SHA has not been fetched. :param str local_root: Local path to git root directory. :param iter conf_rel_paths: List of possible relative paths (to git root) of Sphinx conf.py (e.g. docs/conf.py). :param iter commits: List of commit SHAs. :return: Commit time (seconds since Unix epoch) for each commit and conf.py path. SHA keys and [int, str] values. :rtype: dict
(module (function_definition (function_name_ec2_table) function_name_ec2_table (parameters (identifier_instances) identifier_instances )parameters (block (expression_statement (assignment (identifier_t) identifier_t (call (attribute (identifier_prettytable) identifier_prettytable (identifier_PrettyTable) identifier_PrettyTable )attribute (argument_list (list (string_'ID') string_'ID' (string_'State') string_'State' (string_'Monitored') string_'Monitored' (string_'Image') string_'Image' (string_'Name') string_'Name' (string_'Type') string_'Type' (string_'SSH key') string_'SSH key' (string_'DNS') string_'DNS' )list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_t) identifier_t (identifier_align) identifier_align )attribute (string_'l') string_'l' )assignment )expression_statement (for_statement (identifier_i) identifier_i (identifier_instances) identifier_instances (block (expression_statement (assignment (identifier_name) identifier_name (call (attribute (attribute (identifier_i) identifier_i (identifier_tags) identifier_tags )attribute (identifier_get) identifier_get )attribute (argument_list (string_'Name') string_'Name' (string_'') string_'' )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_t) identifier_t (identifier_add_row) identifier_add_row )attribute (argument_list (list (attribute (identifier_i) identifier_i (identifier_id) identifier_id )attribute (attribute (identifier_i) identifier_i (identifier_state) identifier_state )attribute (attribute (identifier_i) identifier_i (identifier_monitored) identifier_monitored )attribute (attribute (identifier_i) identifier_i (identifier_image_id) identifier_image_id )attribute (identifier_name) identifier_name (attribute (identifier_i) identifier_i (identifier_instance_type) identifier_instance_type )attribute (attribute (identifier_i) identifier_i (identifier_key_name) identifier_key_name )attribute (attribute (identifier_i) identifier_i (identifier_dns_name) identifier_dns_name )attribute )list )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_t) identifier_t )return_statement )block )function_definition )module
Print nice looking table of information from list of instances
(module (function_definition (function_name_read_until_done) function_name_read_until_done (parameters (identifier_self) identifier_self (identifier_command) identifier_command (default_parameter (identifier_timeout) identifier_timeout (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_message) identifier_message (call (attribute (identifier_self) identifier_self (identifier_read_message) identifier_read_message )attribute (argument_list (identifier_timeout) identifier_timeout )argument_list )call )assignment )expression_statement (while_statement (comparison_operator (attribute (identifier_message) identifier_message (identifier_command) identifier_command )attribute (string_'DONE') string_'DONE' )comparison_operator (block (expression_statement (call (attribute (identifier_message) identifier_message (identifier_assert_command_is) identifier_assert_command_is )attribute (argument_list (identifier_command) identifier_command )argument_list )call )expression_statement (expression_statement (yield (identifier_message) identifier_message )yield )expression_statement (expression_statement (assignment (identifier_message) identifier_message (call (attribute (identifier_self) identifier_self (identifier_read_message) identifier_read_message )attribute (argument_list (identifier_timeout) identifier_timeout )argument_list )call )assignment )expression_statement )block )while_statement )block )function_definition )module
Yield messages read until we receive a 'DONE' command. Read messages of the given command until we receive a 'DONE' command. If a command different than the requested one is received, an AdbProtocolError is raised. Args: command: The command to expect, like 'DENT' or 'DATA'. timeout: The timeouts.PolledTimeout to use for this operation. Yields: Messages read, of type self.RECV_MSG_TYPE, see read_message(). Raises: AdbProtocolError: If an unexpected command is read. AdbRemoteError: If a 'FAIL' message is read.
(module (function_definition (function_name__pname_and_metadata) function_name__pname_and_metadata (parameters (identifier_in_file) identifier_in_file )parameters (block (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_in_file) identifier_in_file )argument_list )call (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_in_file) identifier_in_file )argument_list )call (as_pattern_target (identifier_in_handle) identifier_in_handle )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (pattern_list (identifier_md) identifier_md (identifier_global_vars) identifier_global_vars )pattern_list (call (identifier__parse_metadata) identifier__parse_metadata (argument_list (identifier_in_handle) identifier_in_handle )argument_list )call )assignment )expression_statement )block )with_statement (expression_statement (assignment (identifier_base) identifier_base (subscript (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_splitext) identifier_splitext )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_in_file) identifier_in_file )argument_list )call )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_md_file) identifier_md_file (identifier_in_file) identifier_in_file )assignment )expression_statement )block (elif_clause (call (attribute (identifier_objectstore) identifier_objectstore (identifier_is_remote) identifier_is_remote )attribute (argument_list (identifier_in_file) identifier_in_file )argument_list )call (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_objectstore) identifier_objectstore (identifier_open_file) identifier_open_file )attribute (argument_list (identifier_in_file) identifier_in_file )argument_list )call (as_pattern_target (identifier_in_handle) identifier_in_handle )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (pattern_list (identifier_md) identifier_md (identifier_global_vars) identifier_global_vars )pattern_list (call (identifier__parse_metadata) identifier__parse_metadata (argument_list (identifier_in_handle) identifier_in_handle )argument_list )call )assignment )expression_statement )block )with_statement (expression_statement (assignment (identifier_base) identifier_base (subscript (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_splitext) identifier_splitext )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_in_file) identifier_in_file )argument_list )call )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_md_file) identifier_md_file (None) None )assignment )expression_statement )block )elif_clause (else_clause (block (if_statement (call (attribute (identifier_in_file) identifier_in_file (identifier_endswith) identifier_endswith )attribute (argument_list (string_".csv") string_".csv" )argument_list )call (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"Did not find input metadata file: %s") string_"Did not find input metadata file: %s" (identifier_in_file) identifier_in_file )binary_operator )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_base) identifier_base (identifier_md) identifier_md (identifier_global_vars) identifier_global_vars )pattern_list (expression_list (call (identifier__safe_name) identifier__safe_name (argument_list (subscript (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_splitext) identifier_splitext )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_in_file) identifier_in_file )argument_list )call )argument_list )call (integer_0) integer_0 )subscript )argument_list )call (dictionary )dictionary (dictionary )dictionary )expression_list )assignment )expression_statement (expression_statement (assignment (identifier_md_file) identifier_md_file (None) None )assignment )expression_statement )block )else_clause )if_statement (return_statement (expression_list (call (identifier__safe_name) identifier__safe_name (argument_list (identifier_base) identifier_base )argument_list )call (identifier_md) identifier_md (identifier_global_vars) identifier_global_vars (identifier_md_file) identifier_md_file )expression_list )return_statement )block )function_definition )module
Retrieve metadata and project name from the input metadata CSV file. Uses the input file name for the project name and for back compatibility, accepts the project name as an input, providing no metadata.
(module (function_definition (function_name_get_current_user_info) function_name_get_current_user_info (parameters (identifier_anchore_auth) identifier_anchore_auth )parameters (block (expression_statement (assignment (identifier_user_url) identifier_user_url (binary_operator (binary_operator (subscript (identifier_anchore_auth) identifier_anchore_auth (string_'client_info_url') string_'client_info_url' )subscript (string_'/') string_'/' )binary_operator (subscript (identifier_anchore_auth) identifier_anchore_auth (string_'username') string_'username' )subscript )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_user_timeout) identifier_user_timeout (integer_60) integer_60 )assignment )expression_statement (expression_statement (assignment (identifier_retries) identifier_retries (integer_3) integer_3 )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (identifier_user_url) identifier_user_url (keyword_argument (identifier_headers) identifier_headers (dictionary (pair (string_'x-anchore-password') string_'x-anchore-password' (subscript (identifier_anchore_auth) identifier_anchore_auth (string_'password') string_'password' )subscript )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_result) identifier_result (identifier_status_code) identifier_status_code )attribute (integer_200) integer_200 )comparison_operator (block (expression_statement (assignment (identifier_user_data) identifier_user_data (call (attribute (identifier_json) identifier_json (identifier_loads) identifier_loads )attribute (argument_list (attribute (identifier_result) identifier_result (identifier_content) identifier_content )attribute )argument_list )call )assignment )expression_statement )block (else_clause (block (raise_statement (call (attribute (identifier_requests) identifier_requests (identifier_HTTPError) identifier_HTTPError )attribute (argument_list (call (attribute (string_'Error response from service: {}') string_'Error response from service: {}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_result) identifier_result (identifier_status_code) identifier_status_code )attribute )argument_list )call )argument_list )call )raise_statement )block )else_clause )if_statement (return_statement (identifier_user_data) identifier_user_data )return_statement )block )function_definition )module
Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access. :return: Dict of user metadata
(module (function_definition (function_name_Random) function_name_Random (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_d) identifier_d )attribute )argument_list )call (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Pmf contains no values.') string_'Pmf contains no values.' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_target) identifier_target (call (attribute (identifier_random) identifier_random (identifier_random) identifier_random )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_total) identifier_total (float_0.0) float_0.0 )assignment )expression_statement (for_statement (pattern_list (identifier_x) identifier_x (identifier_p) identifier_p )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_d) identifier_d )attribute (identifier_iteritems) identifier_iteritems )attribute (argument_list )argument_list )call (block (expression_statement (augmented_assignment (identifier_total) identifier_total (identifier_p) identifier_p )augmented_assignment )expression_statement (if_statement (comparison_operator (identifier_total) identifier_total (identifier_target) identifier_target )comparison_operator (block (return_statement (identifier_x) identifier_x )return_statement )block )if_statement )block )for_statement (assert_statement (False) False )assert_statement )block )function_definition )module
Chooses a random element from this PMF. Returns: float value from the Pmf
(module (function_definition (function_name_inv) function_name_inv (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (attribute (identifier_self) identifier_self (identifier_x) identifier_x )attribute (attribute (identifier_self) identifier_self (identifier_y) identifier_y )attribute )pattern_list (expression_list (attribute (identifier_self) identifier_self (identifier_y) identifier_y )attribute (attribute (identifier_self) identifier_self (identifier_x) identifier_x )attribute )expression_list )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_self) identifier_self (identifier__x_) identifier__x_ )attribute (attribute (identifier_self) identifier_self (identifier__y_) identifier__y_ )attribute )pattern_list (expression_list (attribute (identifier_self) identifier_self (identifier__y_) identifier__y_ )attribute (attribute (identifier_self) identifier_self (identifier__x_) identifier__x_ )attribute )expression_list )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_self) identifier_self (identifier_xfac) identifier_xfac )attribute (attribute (identifier_self) identifier_self (identifier_yfac) identifier_yfac )attribute )pattern_list (expression_list (binary_operator (integer_1) integer_1 (attribute (identifier_self) identifier_self (identifier_yfac) identifier_yfac )attribute )binary_operator (binary_operator (integer_1) integer_1 (attribute (identifier_self) identifier_self (identifier_xfac) identifier_xfac )attribute )binary_operator )expression_list )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_self) identifier_self (identifier__xfac_) identifier__xfac_ )attribute (attribute (identifier_self) identifier_self (identifier__yfac_) identifier__yfac_ )attribute )pattern_list (expression_list (binary_operator (integer_1) integer_1 (attribute (identifier_self) identifier_self (identifier__yfac_) identifier__yfac_ )attribute )binary_operator (binary_operator (integer_1) integer_1 (attribute (identifier_self) identifier_self (identifier__xfac_) identifier__xfac_ )attribute )binary_operator )expression_list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__u) identifier__u )attribute (binary_operator (integer_1) integer_1 (call (attribute (attribute (identifier_self) identifier_self (identifier__u) identifier__u )attribute (identifier_conj) identifier_conj )attribute (argument_list )argument_list )call )binary_operator )assignment )expression_statement )block )function_definition )module
Invert the transform. After calling this method, calling the instance will do the inverse transform. Calling this twice return the instance to the original transform.
(module (function_definition (function_name_read_parameters) function_name_read_parameters (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_param_fname) identifier_param_fname (call (identifier_join) identifier_join (argument_list (attribute (identifier_self) identifier_self (identifier_out_dir) identifier_out_dir )attribute (string_"PARAMETERS.OUT") string_"PARAMETERS.OUT" )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (identifier_exists) identifier_exists (argument_list (identifier_param_fname) identifier_param_fname )argument_list )call )not_operator (block (raise_statement (call (identifier_FileNotFoundError) identifier_FileNotFoundError (argument_list (string_"No PARAMETERS.OUT found") string_"No PARAMETERS.OUT found" )argument_list )call )raise_statement )block )if_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_param_fname) identifier_param_fname )argument_list )call (as_pattern_target (identifier_nml_file) identifier_nml_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_parameters) identifier_parameters (call (identifier_dict) identifier_dict (argument_list (call (attribute (identifier_f90nml) identifier_f90nml (identifier_read) identifier_read )attribute (argument_list (identifier_nml_file) identifier_nml_file )argument_list )call )argument_list )call )assignment )expression_statement (for_statement (identifier_group) identifier_group (list (string_"nml_years") string_"nml_years" (string_"nml_allcfgs") string_"nml_allcfgs" (string_"nml_outputcfgs") string_"nml_outputcfgs" )list (block (expression_statement (assignment (subscript (identifier_parameters) identifier_parameters (identifier_group) identifier_group )subscript (call (identifier_dict) identifier_dict (argument_list (subscript (identifier_parameters) identifier_parameters (identifier_group) identifier_group )subscript )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (subscript (identifier_parameters) identifier_parameters (identifier_group) identifier_group )subscript (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (assignment (subscript (subscript (identifier_parameters) identifier_parameters (identifier_group) identifier_group )subscript (identifier_k) identifier_k )subscript (call (identifier__clean_value) identifier__clean_value (argument_list (identifier_v) identifier_v )argument_list )call )assignment )expression_statement )block )for_statement (expression_statement (assignment (subscript (identifier_parameters) identifier_parameters (call (attribute (identifier_group) identifier_group (identifier_replace) identifier_replace )attribute (argument_list (string_"nml_") string_"nml_" (string_"") string_"" )argument_list )call )subscript (call (attribute (identifier_parameters) identifier_parameters (identifier_pop) identifier_pop )attribute (argument_list (identifier_group) identifier_group )argument_list )call )assignment )expression_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (identifier_parameters) identifier_parameters )assignment )expression_statement )block )with_statement (return_statement (identifier_parameters) identifier_parameters )return_statement )block )function_definition )module
Read a parameters.out file Returns ------- dict A dictionary containing all the configuration used by MAGICC
(module (function_definition (function_name_get_last_doc) function_name_get_last_doc (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (assignment (identifier_result) identifier_result (call (attribute (attribute (identifier_self) identifier_self (identifier_solr) identifier_solr )attribute (identifier_search) identifier_search )attribute (argument_list (string_'*:*') string_'*:*' (keyword_argument (identifier_sort) identifier_sort (string_'_ts desc') string_'_ts desc' )keyword_argument (keyword_argument (identifier_rows) identifier_rows (integer_1) integer_1 )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (return_statement (None) None )return_statement )block )except_clause )try_statement (for_statement (identifier_r) identifier_r (identifier_result) identifier_result (block (expression_statement (assignment (subscript (identifier_r) identifier_r (string_'_id') string_'_id' )subscript (call (attribute (identifier_r) identifier_r (identifier_pop) identifier_pop )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_unique_key) identifier_unique_key )attribute )argument_list )call )assignment )expression_statement (return_statement (identifier_r) identifier_r )return_statement )block )for_statement )block )function_definition )module
Returns the last document stored in the Solr engine.
(module (function_definition (function_name__create_symlink_cygwin) function_name__create_symlink_cygwin (parameters (identifier_self) identifier_self (identifier_initial_path) identifier_initial_path (identifier_final_path) identifier_final_path )parameters (block (expression_statement (assignment (identifier_symlink_cmd) identifier_symlink_cmd (list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__cygwin_bin_location) identifier__cygwin_bin_location )attribute (string_"ln.exe") string_"ln.exe" )argument_list )call (string_"-s") string_"-s" (call (attribute (identifier_self) identifier_self (identifier__get_cygwin_path) identifier__get_cygwin_path )attribute (argument_list (identifier_initial_path) identifier_initial_path )argument_list )call (call (attribute (identifier_self) identifier_self (identifier__get_cygwin_path) identifier__get_cygwin_path )attribute (argument_list (identifier_final_path) identifier_final_path )argument_list )call )list )assignment )expression_statement (expression_statement (assignment (identifier_process) identifier_process (call (identifier_Popen) identifier_Popen (argument_list (identifier_symlink_cmd) identifier_symlink_cmd (keyword_argument (identifier_stdout) identifier_stdout (identifier_PIPE) identifier_PIPE )keyword_argument (keyword_argument (identifier_stderr) identifier_stderr (identifier_PIPE) identifier_PIPE )keyword_argument (keyword_argument (identifier_shell) identifier_shell (False) False )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_out) identifier_out (identifier_err) identifier_err )pattern_list (call (attribute (identifier_process) identifier_process (identifier_communicate) identifier_communicate )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_err) identifier_err (block (expression_statement (call (identifier_print) identifier_print (argument_list (identifier_err) identifier_err )argument_list )call )expression_statement (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (identifier_err) identifier_err )argument_list )call )raise_statement )block )if_statement (return_statement (call (attribute (identifier_out) identifier_out (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Use cygqin to generate symbolic link
(module (function_definition (function_name__create_ema_callback) function_name__create_ema_callback (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (call (attribute (identifier_self) identifier_self (identifier_cached_name_scope) identifier_cached_name_scope )attribute (argument_list )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_size) identifier_size (call (attribute (identifier_tf) identifier_tf (identifier_cast) identifier_cast )attribute (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_queue) identifier_queue )attribute (identifier_size) identifier_size )attribute (argument_list )argument_list )call (attribute (identifier_tf) identifier_tf (identifier_float32) identifier_float32 )attribute (keyword_argument (identifier_name) identifier_name (string_'queue_size') string_'queue_size' )keyword_argument )argument_list )call )assignment )expression_statement )block )with_statement (expression_statement (assignment (identifier_size_ema_op) identifier_size_ema_op (attribute (subscript (call (identifier_add_moving_summary) identifier_add_moving_summary (argument_list (identifier_size) identifier_size (keyword_argument (identifier_collection) identifier_collection (None) None )keyword_argument (keyword_argument (identifier_decay) identifier_decay (float_0.5) float_0.5 )keyword_argument )argument_list )call (integer_0) integer_0 )subscript (identifier_op) identifier_op )attribute )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (call (identifier_RunOp) identifier_RunOp (argument_list (lambda (identifier_size_ema_op) identifier_size_ema_op )lambda (keyword_argument (identifier_run_before) identifier_run_before (False) False )keyword_argument (keyword_argument (identifier_run_as_trigger) identifier_run_as_trigger (False) False )keyword_argument (keyword_argument (identifier_run_step) identifier_run_step (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_ret) identifier_ret (identifier_name_scope) identifier_name_scope )attribute (string_"InputSource/EMA") string_"InputSource/EMA" )assignment )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Create a hook-only callback which maintain EMA of the queue size. Also tf.summary.scalar the EMA.
(module (function_definition (function_name_error) function_name_error (parameters (identifier_msg) identifier_msg (default_parameter (identifier_log_file) identifier_log_file (None) None )default_parameter )parameters (block (expression_statement (call (attribute (identifier_UtilClass) identifier_UtilClass (identifier_print_msg) identifier_print_msg )attribute (argument_list (binary_operator (identifier_msg) identifier_msg (attribute (identifier_os) identifier_os (identifier_linesep) identifier_linesep )attribute )binary_operator )argument_list )call )expression_statement (if_statement (comparison_operator (identifier_log_file) identifier_log_file (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_UtilClass) identifier_UtilClass (identifier_writelog) identifier_writelog )attribute (argument_list (identifier_log_file) identifier_log_file (identifier_msg) identifier_msg (string_'append') string_'append' )argument_list )call )expression_statement )block )if_statement (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )function_definition )module
Print, output error message and raise RuntimeError.
(module (function_definition (function_name_expand_factor_conditions) function_name_expand_factor_conditions (parameters (identifier_s) identifier_s (identifier_env) identifier_env )parameters (block (try_statement (block (expression_statement (assignment (pattern_list (identifier_factor) identifier_factor (identifier_value) identifier_value )pattern_list (call (attribute (identifier_re) identifier_re (identifier_split) identifier_split )attribute (argument_list (string_r'\s*\:\s*') string_r'\s*\:\s*' (identifier_s) identifier_s )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (return_statement (identifier_s) identifier_s )return_statement )block )except_clause )try_statement (if_statement (call (identifier_matches_factor_conditions) identifier_matches_factor_conditions (argument_list (identifier_factor) identifier_factor (identifier_env) identifier_env )argument_list )call (block (return_statement (identifier_value) identifier_value )return_statement )block (else_clause (block (return_statement (string_'') string_'' )return_statement )block )else_clause )if_statement )block )function_definition )module
If env matches the expanded factor then return value else return ''. Example ------- >>> s = 'py{33,34}: docformatter' >>> expand_factor_conditions(s, Env(name="py34", ...)) "docformatter" >>> expand_factor_conditions(s, Env(name="py26", ...)) ""
(module (function_definition (function_name_creator_type) function_name_creator_type (parameters (identifier_self) identifier_self (identifier_creator_type) identifier_creator_type )parameters (block (expression_statement (assignment (identifier_allowed_values) identifier_allowed_values (list (string_"USER") string_"USER" (string_"ALERT") string_"ALERT" (string_"SYSTEM") string_"SYSTEM" )list )assignment )expression_statement (if_statement (not_operator (call (attribute (call (identifier_set) identifier_set (argument_list (identifier_creator_type) identifier_creator_type )argument_list )call (identifier_issubset) identifier_issubset )attribute (argument_list (call (identifier_set) identifier_set (argument_list (identifier_allowed_values) identifier_allowed_values )argument_list )call )argument_list )call )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_"Invalid values for `creator_type` [{0}], must be a subset of [{1}]") string_"Invalid values for `creator_type` [{0}], must be a subset of [{1}]" (identifier_format) identifier_format )attribute (argument_list (call (attribute (string_", ") string_", " (identifier_join) identifier_join )attribute (argument_list (call (identifier_map) identifier_map (argument_list (identifier_str) identifier_str (binary_operator (call (identifier_set) identifier_set (argument_list (identifier_creator_type) identifier_creator_type )argument_list )call (call (identifier_set) identifier_set (argument_list (identifier_allowed_values) identifier_allowed_values )argument_list )call )binary_operator )argument_list )call )argument_list )call (call (attribute (string_", ") string_", " (identifier_join) identifier_join )attribute (argument_list (call (identifier_map) identifier_map (argument_list (identifier_str) identifier_str (identifier_allowed_values) identifier_allowed_values )argument_list )call )argument_list )call )argument_list )call )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__creator_type) identifier__creator_type )attribute (identifier_creator_type) identifier_creator_type )assignment )expression_statement )block )function_definition )module
Sets the creator_type of this Event. :param creator_type: The creator_type of this Event. # noqa: E501 :type: list[str]
(module (function_definition (function_name_duplicate_txn_id) function_name_duplicate_txn_id (parameters (identifier_ipn_obj) identifier_ipn_obj )parameters (block (expression_statement (assignment (identifier_similars) identifier_similars (parenthesized_expression (subscript (call (attribute (call (attribute (call (attribute (call (attribute (attribute (attribute (identifier_ipn_obj) identifier_ipn_obj (identifier___class__) identifier___class__ )attribute (identifier__default_manager) identifier__default_manager )attribute (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_txn_id) identifier_txn_id (attribute (identifier_ipn_obj) identifier_ipn_obj (identifier_txn_id) identifier_txn_id )attribute )keyword_argument )argument_list )call (identifier_exclude) identifier_exclude )attribute (argument_list (keyword_argument (identifier_id) identifier_id (attribute (identifier_ipn_obj) identifier_ipn_obj (identifier_id) identifier_id )attribute )keyword_argument )argument_list )call (identifier_exclude) identifier_exclude )attribute (argument_list (keyword_argument (identifier_flag) identifier_flag (True) True )keyword_argument )argument_list )call (identifier_order_by) identifier_order_by )attribute (argument_list (string_'-created_at') string_'-created_at' )argument_list )call (slice (colon) colon (integer_1) integer_1 )slice )subscript )parenthesized_expression )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_similars) identifier_similars )argument_list )call (integer_0) integer_0 )comparison_operator (block (return_statement (comparison_operator (attribute (subscript (identifier_similars) identifier_similars (integer_0) integer_0 )subscript (identifier_payment_status) identifier_payment_status )attribute (attribute (identifier_ipn_obj) identifier_ipn_obj (identifier_payment_status) identifier_payment_status )attribute )comparison_operator )return_statement )block )if_statement (return_statement (False) False )return_statement )block )function_definition )module
Returns True if a record with this transaction id exists and its payment_status has not changed. This function has been completely changed from its previous implementation where it used to specifically only check for a Pending->Completed transition.
(module (function_definition (function_name_get_uri) function_name_get_uri (parameters (identifier_source) identifier_source )parameters (block (import_statement (dotted_name (identifier_gst) identifier_gst )dotted_name )import_statement (expression_statement (assignment (identifier_src_info) identifier_src_info (call (identifier_source_info) identifier_source_info (argument_list (identifier_source) identifier_source )argument_list )call )assignment )expression_statement (if_statement (subscript (identifier_src_info) identifier_src_info (string_'is_file') string_'is_file' )subscript (block (return_statement (call (identifier_get_uri) identifier_get_uri (argument_list (subscript (identifier_src_info) identifier_src_info (string_'uri') string_'uri' )subscript )argument_list )call )return_statement )block (elif_clause (call (attribute (identifier_gst) identifier_gst (identifier_uri_is_valid) identifier_uri_is_valid )attribute (argument_list (identifier_source) identifier_source )argument_list )call (block (expression_statement (assignment (identifier_uri_protocol) identifier_uri_protocol (call (attribute (identifier_gst) identifier_gst (identifier_uri_get_protocol) identifier_uri_get_protocol )attribute (argument_list (identifier_source) identifier_source )argument_list )call )assignment )expression_statement (if_statement (call (attribute (identifier_gst) identifier_gst (identifier_uri_protocol_is_supported) identifier_uri_protocol_is_supported )attribute (argument_list (attribute (identifier_gst) identifier_gst (identifier_URI_SRC) identifier_URI_SRC )attribute (identifier_uri_protocol) identifier_uri_protocol )argument_list )call (block (return_statement (identifier_source) identifier_source )return_statement )block (else_clause (block (raise_statement (call (identifier_IOError) identifier_IOError (argument_list (string_'Invalid URI source for Gstreamer') string_'Invalid URI source for Gstreamer' )argument_list )call )raise_statement )block )else_clause )if_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_IOError) identifier_IOError (argument_list (binary_operator (string_'Failed getting uri for path %s: no such file') string_'Failed getting uri for path %s: no such file' (identifier_source) identifier_source )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Check a media source as a valid file or uri and return the proper uri
(module (function_definition (function_name_is_same_service) function_name_is_same_service (parameters (identifier_self) identifier_self (identifier_endpoint) identifier_endpoint )parameters (block (return_statement (parenthesized_expression (boolean_operator (comparison_operator (call (attribute (identifier_self) identifier_self (identifier_get_framework_uuid) identifier_get_framework_uuid )attribute (argument_list )argument_list )call (call (attribute (identifier_endpoint) identifier_endpoint (identifier_get_framework_uuid) identifier_get_framework_uuid )attribute (argument_list )argument_list )call )comparison_operator (comparison_operator (call (attribute (identifier_self) identifier_self (identifier_get_service_id) identifier_get_service_id )attribute (argument_list )argument_list )call (call (attribute (identifier_endpoint) identifier_endpoint (identifier_get_service_id) identifier_get_service_id )attribute (argument_list )argument_list )call )comparison_operator )boolean_operator )parenthesized_expression )return_statement )block )function_definition )module
Tests if this endpoint and the given one have the same framework UUID and service ID :param endpoint: Another endpoint :return: True if both endpoints represent the same remote service
(module (function_definition (function_name_get_tuple_type_str_parts) function_name_get_tuple_type_str_parts (parameters (typed_parameter (identifier_s) identifier_s (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (generic_type (identifier_Tuple) identifier_Tuple (type_parameter (type (identifier_str) identifier_str )type (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type )type_parameter )generic_type )type )type_parameter )generic_type )type (block (expression_statement (assignment (identifier_match) identifier_match (call (attribute (identifier_TUPLE_TYPE_STR_RE) identifier_TUPLE_TYPE_STR_RE (identifier_match) identifier_match )attribute (argument_list (identifier_s) identifier_s )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_match) identifier_match (None) None )comparison_operator (block (expression_statement (assignment (identifier_tuple_prefix) identifier_tuple_prefix (call (attribute (identifier_match) identifier_match (identifier_group) identifier_group )attribute (argument_list (integer_1) integer_1 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_tuple_dims) identifier_tuple_dims (call (attribute (identifier_match) identifier_match (identifier_group) identifier_group )attribute (argument_list (integer_2) integer_2 )argument_list )call )assignment )expression_statement (return_statement (expression_list (identifier_tuple_prefix) identifier_tuple_prefix (identifier_tuple_dims) identifier_tuple_dims )expression_list )return_statement )block )if_statement (return_statement (None) None )return_statement )block )function_definition )module
Takes a JSON ABI type string. For tuple type strings, returns the separated prefix and array dimension parts. For all other strings, returns ``None``.
(module (function_definition (function_name__verifyDiscoveryResults) function_name__verifyDiscoveryResults (parameters (identifier_self) identifier_self (identifier_resp_msg) identifier_resp_msg (default_parameter (identifier_endpoint) identifier_endpoint (None) None )default_parameter )parameters (block (if_statement (comparison_operator (call (attribute (identifier_resp_msg) identifier_resp_msg (identifier_getOpenIDNamespace) identifier_getOpenIDNamespace )attribute (argument_list )argument_list )call (identifier_OPENID2_NS) identifier_OPENID2_NS )comparison_operator (block (return_statement (call (attribute (identifier_self) identifier_self (identifier__verifyDiscoveryResultsOpenID2) identifier__verifyDiscoveryResultsOpenID2 )attribute (argument_list (identifier_resp_msg) identifier_resp_msg (identifier_endpoint) identifier_endpoint )argument_list )call )return_statement )block (else_clause (block (return_statement (call (attribute (identifier_self) identifier_self (identifier__verifyDiscoveryResultsOpenID1) identifier__verifyDiscoveryResultsOpenID1 )attribute (argument_list (identifier_resp_msg) identifier_resp_msg (identifier_endpoint) identifier_endpoint )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Extract the information from an OpenID assertion message and verify it against the original @param endpoint: The endpoint that resulted from doing discovery @param resp_msg: The id_res message object @returns: the verified endpoint
(module (function_definition (function_name___exists_row_not_too_old) function_name___exists_row_not_too_old (parameters (identifier_self) identifier_self (identifier_row) identifier_row )parameters (block (if_statement (comparison_operator (identifier_row) identifier_row (None) None )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement (expression_statement (assignment (identifier_record_time) identifier_record_time (call (attribute (attribute (identifier_dateutil) identifier_dateutil (identifier_parser) identifier_parser )attribute (identifier_parse) identifier_parse )attribute (argument_list (subscript (identifier_row) identifier_row (integer_2) integer_2 )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_now) identifier_now (call (attribute (attribute (identifier_datetime) identifier_datetime (identifier_datetime) identifier_datetime )attribute (identifier_now) identifier_now )attribute (argument_list (call (attribute (attribute (identifier_dateutil) identifier_dateutil (identifier_tz) identifier_tz )attribute (identifier_gettz) identifier_gettz )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_age) identifier_age (call (attribute (parenthesized_expression (binary_operator (identifier_record_time) identifier_record_time (identifier_now) identifier_now )binary_operator )parenthesized_expression (identifier_total_seconds) identifier_total_seconds )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_age) identifier_age (attribute (identifier_self) identifier_self (identifier_max_age) identifier_max_age )attribute )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement (return_statement (True) True )return_statement )block )function_definition )module
Check if the given row exists and is not too old
(module (function_definition (function_name_get_host_map) function_name_get_host_map (parameters (identifier_root) identifier_root )parameters (block (expression_statement (assignment (identifier_hosts_map) identifier_hosts_map (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_host) identifier_host (call (attribute (identifier_root) identifier_root (identifier_get_all_hosts) identifier_get_all_hosts )attribute (argument_list )argument_list )call (block (expression_statement (assignment (subscript (identifier_hosts_map) identifier_hosts_map (attribute (identifier_host) identifier_host (identifier_hostId) identifier_hostId )attribute )subscript (dictionary (pair (string_"hostname") string_"hostname" (binary_operator (identifier_NAGIOS_HOSTNAME_FORMAT) identifier_NAGIOS_HOSTNAME_FORMAT (tuple (attribute (identifier_host) identifier_host (identifier_hostname) identifier_hostname )attribute )tuple )binary_operator )pair (pair (string_"address") string_"address" (attribute (identifier_host) identifier_host (identifier_ipAddress) identifier_ipAddress )attribute )pair )dictionary )assignment )expression_statement )block )for_statement (for_statement (identifier_cluster) identifier_cluster (call (attribute (identifier_root) identifier_root (identifier_get_all_clusters) identifier_get_all_clusters )attribute (argument_list )argument_list )call (block (expression_statement (assignment (subscript (identifier_hosts_map) identifier_hosts_map (attribute (identifier_cluster) identifier_cluster (identifier_name) identifier_name )attribute )subscript (dictionary (pair (string_"hostname") string_"hostname" (attribute (identifier_cluster) identifier_cluster (identifier_name) identifier_name )attribute )pair (pair (string_"address") string_"address" (call (identifier_quote) identifier_quote (argument_list (attribute (identifier_cluster) identifier_cluster (identifier_name) identifier_name )attribute )argument_list )call )pair )dictionary )assignment )expression_statement )block )for_statement (expression_statement (assignment (subscript (identifier_hosts_map) identifier_hosts_map (identifier_CM_DUMMY_HOST) identifier_CM_DUMMY_HOST )subscript (dictionary (pair (string_"hostname") string_"hostname" (identifier_CM_DUMMY_HOST) identifier_CM_DUMMY_HOST )pair (pair (string_"address") string_"address" (identifier_CM_DUMMY_HOST) identifier_CM_DUMMY_HOST )pair )dictionary )assignment )expression_statement (return_statement (identifier_hosts_map) identifier_hosts_map )return_statement )block )function_definition )module
Gets a mapping between CM hostId and Nagios host information The key is the CM hostId The value is an object containing the Nagios hostname and host address
(module (function_definition (function_name_table_dataset_database_table) function_name_table_dataset_database_table (parameters (default_parameter (identifier_table) identifier_table (None) None )default_parameter (default_parameter (identifier_include_attributes) identifier_include_attributes (None) None )default_parameter (default_parameter (identifier_rows_limit) identifier_rows_limit (None) None )default_parameter (default_parameter (identifier_print_progress) identifier_print_progress (False) False )default_parameter )parameters (block (if_statement (identifier_print_progress) identifier_print_progress (block (import_statement (dotted_name (identifier_shijian) identifier_shijian )dotted_name )import_statement (expression_statement (assignment (identifier_progress) identifier_progress (call (attribute (identifier_shijian) identifier_shijian (identifier_Progress) identifier_Progress )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_progress) identifier_progress (identifier_engage_quick_calculation_mode) identifier_engage_quick_calculation_mode )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_number_of_rows) identifier_number_of_rows (call (identifier_len) identifier_len (argument_list (identifier_table) identifier_table )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (identifier_include_attributes) identifier_include_attributes (block (expression_statement (assignment (identifier_columns) identifier_columns (identifier_include_attributes) identifier_include_attributes )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_columns) identifier_columns (attribute (identifier_table) identifier_table (identifier_columns) identifier_columns )attribute )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_table_contents) identifier_table_contents (list (identifier_columns) identifier_columns )list )assignment )expression_statement (for_statement (pattern_list (identifier_index_row) identifier_index_row (identifier_row) identifier_row )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_table) identifier_table )argument_list )call (block (if_statement (comparison_operator (identifier_rows_limit) identifier_rows_limit (None) None )comparison_operator (block (if_statement (comparison_operator (identifier_index_row) identifier_index_row (identifier_rows_limit) identifier_rows_limit )comparison_operator (block (break_statement )break_statement )block )if_statement )block )if_statement (expression_statement (assignment (identifier_row_contents) identifier_row_contents (list )list )assignment )expression_statement (for_statement (identifier_column) identifier_column (identifier_columns) identifier_columns (block (try_statement (block (expression_statement (assignment (identifier_string_representation) identifier_string_representation (call (identifier_str) identifier_str (argument_list (subscript (identifier_row) identifier_row (identifier_column) identifier_column )subscript )argument_list )call )assignment )expression_statement )block (except_clause (block (expression_statement (assignment (identifier_string_representation) identifier_string_representation (call (identifier_str) identifier_str (argument_list (call (attribute (subscript (identifier_row) identifier_row (identifier_column) identifier_column )subscript (identifier_encode) identifier_encode )attribute (argument_list (string_"utf-8") string_"utf-8" )argument_list )call )argument_list )call )assignment )expression_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_row_contents) identifier_row_contents (identifier_append) identifier_append )attribute (argument_list (identifier_string_representation) identifier_string_representation )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_table_contents) identifier_table_contents (identifier_append) identifier_append )attribute (argument_list (identifier_row_contents) identifier_row_contents )argument_list )call )expression_statement (if_statement (identifier_print_progress) identifier_print_progress (block (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (identifier_progress) identifier_progress (identifier_add_datum) identifier_add_datum )attribute (argument_list (keyword_argument (identifier_fraction) identifier_fraction (binary_operator (call (identifier_float) identifier_float (argument_list (identifier_index_row) identifier_index_row )argument_list )call (call (identifier_float) identifier_float (argument_list (identifier_number_of_rows) identifier_number_of_rows )argument_list )call )binary_operator )keyword_argument )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (identifier_table_contents) identifier_table_contents )return_statement )block )function_definition )module
Create a pyprel table contents list from a database table of the module dataset. Attributes to be included in the table can be specified; by default, all attributes are included. A limit on the number of rows included can be specified. Progress on building the table can be reported.
(module (function_definition (function_name__mark_in_progress) function_name__mark_in_progress (parameters (identifier_self) identifier_self (identifier_node_id) identifier_node_id )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_queued) identifier_queued )attribute (identifier_remove) identifier_remove )attribute (argument_list (identifier_node_id) identifier_node_id )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_in_progress) identifier_in_progress )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_node_id) identifier_node_id )argument_list )call )expression_statement )block )function_definition )module
Mark the node as 'in progress'. Callers must hold the lock. :param str node_id: The node ID to mark as in progress.
(module (function_definition (function_name_exchange_oauth2_member) function_name_exchange_oauth2_member (parameters (identifier_access_token) identifier_access_token (default_parameter (identifier_base_url) identifier_base_url (identifier_OH_BASE_URL) identifier_OH_BASE_URL )default_parameter (default_parameter (identifier_all_files) identifier_all_files (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (identifier_urlparse) identifier_urlparse (identifier_urljoin) identifier_urljoin )attribute (argument_list (identifier_base_url) identifier_base_url (call (attribute (string_'/api/direct-sharing/project/exchange-member/?{}') string_'/api/direct-sharing/project/exchange-member/?{}' (identifier_format) identifier_format )attribute (argument_list (call (attribute (identifier_urlparse) identifier_urlparse (identifier_urlencode) identifier_urlencode )attribute (argument_list (dictionary (pair (string_'access_token') string_'access_token' (identifier_access_token) identifier_access_token )pair )dictionary )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_member_data) identifier_member_data (call (identifier_get_page) identifier_get_page (argument_list (identifier_url) identifier_url )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_returned) identifier_returned (call (attribute (identifier_member_data) identifier_member_data (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_all_files) identifier_all_files (block (while_statement (subscript (identifier_member_data) identifier_member_data (string_'next') string_'next' )subscript (block (expression_statement (assignment (identifier_member_data) identifier_member_data (call (identifier_get_page) identifier_get_page (argument_list (subscript (identifier_member_data) identifier_member_data (string_'next') string_'next' )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_returned) identifier_returned (string_'data') string_'data' )subscript (binary_operator (subscript (identifier_returned) identifier_returned (string_'data') string_'data' )subscript (subscript (identifier_member_data) identifier_member_data (string_'data') string_'data' )subscript )binary_operator )assignment )expression_statement )block )while_statement )block )if_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'JSON data: {}') string_'JSON data: {}' (identifier_format) identifier_format )attribute (argument_list (identifier_returned) identifier_returned )argument_list )call )argument_list )call )expression_statement (return_statement (identifier_returned) identifier_returned )return_statement )block )function_definition )module
Returns data for a specific user, including shared data files. :param access_token: This field is the user specific access_token. :param base_url: It is this URL `https://www.openhumans.org`.
(module (function_definition (function_name__get_blob) function_name__get_blob (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier___blob) identifier___blob )attribute )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___blob) identifier___blob )attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_repo) identifier_repo )attribute (identifier_get_object) identifier_get_object )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (attribute (identifier_self) identifier_self (identifier___blob) identifier___blob )attribute )return_statement )block )function_definition )module
read blob on access only because get_object is slow
(module (function_definition (function_name__init_forms) function_name__init_forms (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_BaseCRUDView) identifier_BaseCRUDView (identifier_self) identifier_self )argument_list )call (identifier__init_forms) identifier__init_forms )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_conv) identifier_conv (call (identifier_GeneralModelConverter) identifier_GeneralModelConverter (argument_list (attribute (identifier_self) identifier_self (identifier_datamodel) identifier_datamodel )attribute )argument_list )call )assignment )expression_statement (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_add_form) identifier_add_form )attribute )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_add_form) identifier_add_form )attribute (call (attribute (identifier_conv) identifier_conv (identifier_create_form) identifier_create_form )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_label_columns) identifier_label_columns )attribute (attribute (identifier_self) identifier_self (identifier_add_columns) identifier_add_columns )attribute (attribute (identifier_self) identifier_self (identifier_description_columns) identifier_description_columns )attribute (attribute (identifier_self) identifier_self (identifier_validators_columns) identifier_validators_columns )attribute (attribute (identifier_self) identifier_self (identifier_add_form_extra_fields) identifier_add_form_extra_fields )attribute (attribute (identifier_self) identifier_self (identifier_add_form_query_rel_fields) identifier_add_form_query_rel_fields )attribute )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_edit_form) identifier_edit_form )attribute )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_edit_form) identifier_edit_form )attribute (call (attribute (identifier_conv) identifier_conv (identifier_create_form) identifier_create_form )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_label_columns) identifier_label_columns )attribute (attribute (identifier_self) identifier_self (identifier_edit_columns) identifier_edit_columns )attribute (attribute (identifier_self) identifier_self (identifier_description_columns) identifier_description_columns )attribute (attribute (identifier_self) identifier_self (identifier_validators_columns) identifier_validators_columns )attribute (attribute (identifier_self) identifier_self (identifier_edit_form_extra_fields) identifier_edit_form_extra_fields )attribute (attribute (identifier_self) identifier_self (identifier_edit_form_query_rel_fields) identifier_edit_form_query_rel_fields )attribute )argument_list )call )assignment )expression_statement )block )if_statement )block )function_definition )module
Init forms for Add and Edit
(module (function_definition (function_name__aggregrate_scores) function_name__aggregrate_scores (parameters (identifier_its) identifier_its (identifier_tss) identifier_tss (identifier_num_sentences) identifier_num_sentences )parameters (block (expression_statement (assignment (identifier_final) identifier_final (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_el) identifier_el )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_its) identifier_its )argument_list )call (block (for_statement (pattern_list (identifier_j) identifier_j (identifier_le) identifier_le )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_tss) identifier_tss )argument_list )call (block (if_statement (comparison_operator (subscript (identifier_el) identifier_el (integer_2) integer_2 )subscript (subscript (identifier_le) identifier_le (integer_2) integer_2 )subscript )comparison_operator (block (assert_statement (comparison_operator (subscript (identifier_el) identifier_el (integer_1) integer_1 )subscript (subscript (identifier_le) identifier_le (integer_1) integer_1 )subscript )comparison_operator )assert_statement (expression_statement (call (attribute (identifier_final) identifier_final (identifier_append) identifier_append )attribute (argument_list (tuple (subscript (identifier_el) identifier_el (integer_1) integer_1 )subscript (binary_operator (identifier_i) identifier_i (identifier_j) identifier_j )binary_operator (subscript (identifier_el) identifier_el (integer_2) integer_2 )subscript )tuple )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )for_statement (expression_statement (assignment (identifier__final) identifier__final (subscript (call (identifier_sorted) identifier_sorted (argument_list (identifier_final) identifier_final (keyword_argument (identifier_key) identifier_key (lambda (lambda_parameters (identifier_tup) identifier_tup )lambda_parameters (subscript (identifier_tup) identifier_tup (integer_1) integer_1 )subscript )lambda )keyword_argument )argument_list )call (slice (colon) colon (identifier_num_sentences) identifier_num_sentences )slice )subscript )assignment )expression_statement (return_statement (call (identifier_sorted) identifier_sorted (argument_list (identifier__final) identifier__final (keyword_argument (identifier_key) identifier_key (lambda (lambda_parameters (identifier_tup) identifier_tup )lambda_parameters (subscript (identifier_tup) identifier_tup (integer_0) integer_0 )subscript )lambda )keyword_argument )argument_list )call )return_statement )block )function_definition )module
rerank the two vectors by min aggregrate rank, reorder
(module (function_definition (function_name_purge) function_name_purge (parameters (identifier_name) identifier_name (default_parameter (identifier_delete_key) identifier_delete_key (True) True )default_parameter )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_client) identifier_client (call (attribute (attribute (identifier_salt) identifier_salt (identifier_client) identifier_client )attribute (identifier_get_local_client) identifier_get_local_client )attribute (argument_list (subscript (identifier___opts__) identifier___opts__ (string_'conf_file') string_'conf_file' )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (identifier_vm_info) identifier_vm_info (argument_list (identifier_name) identifier_name (keyword_argument (identifier_quiet) identifier_quiet (True) True )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_data) identifier_data )not_operator (block (expression_statement (call (attribute (identifier___jid_event__) identifier___jid_event__ (identifier_fire_event) identifier_fire_event )attribute (argument_list (dictionary (pair (string_'error') string_'error' (call (attribute (string_'Failed to find VM {0} to purge') string_'Failed to find VM {0} to purge' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )pair )dictionary (string_'progress') string_'progress' )argument_list )call )expression_statement (return_statement (string_'fail') string_'fail' )return_statement )block )if_statement (expression_statement (assignment (identifier_host) identifier_host (call (identifier_next) identifier_next (argument_list (call (attribute (identifier_six) identifier_six (identifier_iterkeys) identifier_iterkeys )attribute (argument_list (identifier_data) identifier_data )argument_list )call )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_cmd_ret) identifier_cmd_ret (call (attribute (identifier_client) identifier_client (identifier_cmd_iter) identifier_cmd_iter )attribute (argument_list (identifier_host) identifier_host (string_'virt.purge') string_'virt.purge' (list (identifier_name) identifier_name (True) True )list (keyword_argument (identifier_timeout) identifier_timeout (integer_600) integer_600 )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_SaltClientError) identifier_SaltClientError (as_pattern_target (identifier_client_error) identifier_client_error )as_pattern_target )as_pattern (block (return_statement (call (attribute (string_'Virtual machine {0} could not be purged: {1}') string_'Virtual machine {0} could not be purged: {1}' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name (identifier_client_error) identifier_client_error )argument_list )call )return_statement )block )except_clause )try_statement (for_statement (identifier_comp) identifier_comp (identifier_cmd_ret) identifier_cmd_ret (block (expression_statement (call (attribute (identifier_ret) identifier_ret (identifier_update) identifier_update )attribute (argument_list (identifier_comp) identifier_comp )argument_list )call )expression_statement )block )for_statement (if_statement (identifier_delete_key) identifier_delete_key (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (string_'Deleting key %s') string_'Deleting key %s' (identifier_name) identifier_name )argument_list )call )expression_statement (expression_statement (assignment (identifier_skey) identifier_skey (call (attribute (attribute (identifier_salt) identifier_salt (identifier_key) identifier_key )attribute (identifier_Key) identifier_Key )attribute (argument_list (identifier___opts__) identifier___opts__ )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_skey) identifier_skey (identifier_delete_key) identifier_delete_key )attribute (argument_list (identifier_name) identifier_name )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier___jid_event__) identifier___jid_event__ (identifier_fire_event) identifier_fire_event )attribute (argument_list (dictionary (pair (string_'message') string_'message' (call (attribute (string_'Purged VM {0}') string_'Purged VM {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )pair )dictionary (string_'progress') string_'progress' )argument_list )call )expression_statement (return_statement (string_'good') string_'good' )return_statement )block )function_definition )module
Destroy the named VM
(module (function_definition (function_name__sane_version_list) function_name__sane_version_list (parameters (identifier_version) identifier_version )parameters (block (expression_statement (assignment (identifier_v0) identifier_v0 (call (identifier_str) identifier_str (argument_list (subscript (identifier_version) identifier_version (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement (if_statement (identifier_v0) identifier_v0 (block (try_statement (block (expression_statement (assignment (identifier_v0) identifier_v0 (call (attribute (call (attribute (identifier_v0) identifier_v0 (identifier_lstrip) identifier_lstrip )attribute (argument_list (string_"v") string_"v" )argument_list )call (identifier_lstrip) identifier_lstrip )attribute (argument_list (string_"V") string_"V" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_v0) identifier_v0 (call (identifier_int) identifier_int (argument_list (identifier_v0) identifier_v0 )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (expression_statement (assignment (identifier_v0) identifier_v0 (None) None )assignment )expression_statement )block )except_clause )try_statement )block )if_statement (if_statement (comparison_operator (identifier_v0) identifier_v0 (None) None )comparison_operator (block (expression_statement (assignment (identifier_version) identifier_version (binary_operator (list (integer_0) integer_0 (integer_0) integer_0 )list (identifier_version) identifier_version )binary_operator )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_version) identifier_version (integer_0) integer_0 )subscript (identifier_v0) identifier_v0 )assignment )expression_statement )block )else_clause )if_statement (try_statement (block (expression_statement (assignment (subscript (identifier_version) identifier_version (integer_1) integer_1 )subscript (call (identifier_int) identifier_int (argument_list (subscript (identifier_version) identifier_version (integer_1) integer_1 )subscript )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (expression_statement (assignment (identifier_version) identifier_version (binary_operator (list (subscript (identifier_version) identifier_version (integer_0) integer_0 )subscript (integer_0) integer_0 )list (subscript (identifier_version) identifier_version (slice (integer_1) integer_1 (colon) colon )slice )subscript )binary_operator )assignment )expression_statement )block )except_clause )try_statement (return_statement (identifier_version) identifier_version )return_statement )block )function_definition )module
Ensure the major and minor are int. Parameters ---------- version: list Version components Returns ------- version: list List of components where first two components has been sanitised
(module (function_definition (function_name_is_service_selected) function_name_is_service_selected (parameters (identifier_self) identifier_self (identifier_service) identifier_service )parameters (block (expression_statement (assignment (identifier_service_uid) identifier_service_uid (call (attribute (identifier_api) identifier_api (identifier_get_uid) identifier_get_uid )attribute (argument_list (identifier_service) identifier_service )argument_list )call )assignment )expression_statement (for_statement (identifier_arnum) identifier_arnum (call (identifier_range) identifier_range (argument_list (attribute (identifier_self) identifier_self (identifier_ar_count) identifier_ar_count )attribute )argument_list )call (block (expression_statement (assignment (identifier_analyses) identifier_analyses (call (attribute (attribute (identifier_self) identifier_self (identifier_fieldvalues) identifier_fieldvalues )attribute (identifier_get) identifier_get )attribute (argument_list (call (attribute (string_"Analyses-{}") string_"Analyses-{}" (identifier_format) identifier_format )attribute (argument_list (identifier_arnum) identifier_arnum )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_analyses) identifier_analyses )not_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_service_uids) identifier_service_uids (call (identifier_map) identifier_map (argument_list (attribute (identifier_self) identifier_self (identifier_get_service_uid_from) identifier_get_service_uid_from )attribute (identifier_analyses) identifier_analyses )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_service_uid) identifier_service_uid (identifier_service_uids) identifier_service_uids )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement )block )for_statement (return_statement (False) False )return_statement )block )function_definition )module
Checks if the given service is selected by one of the ARs. This is used to make the whole line visible or not.
(module (function_definition (function_name_trim) function_name_trim (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_overlay_data_offset) identifier_overlay_data_offset (call (attribute (identifier_self) identifier_self (identifier_get_overlay_data_start_offset) identifier_get_overlay_data_start_offset )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_overlay_data_offset) identifier_overlay_data_offset (None) None )comparison_operator (block (return_statement (subscript (attribute (identifier_self) identifier_self (identifier___data__) identifier___data__ )attribute (slice (colon) colon (identifier_overlay_data_offset) identifier_overlay_data_offset )slice )subscript )return_statement )block )if_statement (return_statement (subscript (attribute (identifier_self) identifier_self (identifier___data__) identifier___data__ )attribute (slice (colon) colon )slice )subscript )return_statement )block )function_definition )module
Return the just data defined by the PE headers, removing any overlayed data.
(module (function_definition (function_name_scan_elements) function_name_scan_elements (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_x) identifier_x (call (attribute (attribute (identifier_self) identifier_self (identifier_redis) identifier_redis )attribute (identifier_sscan_iter) identifier_sscan_iter )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_key) identifier_key )attribute )argument_list )call (block (expression_statement (yield (call (attribute (identifier_self) identifier_self (identifier__unpickle) identifier__unpickle )attribute (argument_list (identifier_x) identifier_x )argument_list )call )yield )expression_statement )block )for_statement )block )function_definition )module
Yield each of the elements from the collection, without pulling them all into memory. .. warning:: This method is not available on the set collections provided by Python. This method may return the element multiple times. See the `Redis SCAN documentation <http://redis.io/commands/scan#scan-guarantees>`_ for details.
(module (function_definition (function_name_could_scope_out) function_name_could_scope_out (parameters (identifier_self) identifier_self )parameters (block (return_statement (boolean_operator (boolean_operator (not_operator (attribute (identifier_self) identifier_self (identifier_waiting_for) identifier_waiting_for )attribute )not_operator (line_continuation_\) line_continuation_\ (call (identifier_isinstance) identifier_isinstance (argument_list (attribute (identifier_self) identifier_self (identifier_waiting_for) identifier_waiting_for )attribute (attribute (identifier_callable) identifier_callable (identifier_EndOfStory) identifier_EndOfStory )attribute )argument_list )call )boolean_operator (line_continuation_\) line_continuation_\ (call (attribute (identifier_self) identifier_self (identifier_is_breaking_a_loop) identifier_is_breaking_a_loop )attribute (argument_list )argument_list )call )boolean_operator )return_statement )block )function_definition )module
could bubble up from current scope :return:
(module (function_definition (function_name_iter_predict) function_name_iter_predict (parameters (identifier_self) identifier_self (identifier_eval_data) identifier_eval_data (default_parameter (identifier_num_batch) identifier_num_batch (None) None )default_parameter (default_parameter (identifier_reset) identifier_reset (True) True )default_parameter (default_parameter (identifier_sparse_row_id_fn) identifier_sparse_row_id_fn (None) None )default_parameter )parameters (block (assert_statement (boolean_operator (attribute (identifier_self) identifier_self (identifier_binded) identifier_binded )attribute (attribute (identifier_self) identifier_self (identifier_params_initialized) identifier_params_initialized )attribute )boolean_operator )assert_statement (if_statement (identifier_reset) identifier_reset (block (expression_statement (call (attribute (identifier_eval_data) identifier_eval_data (identifier_reset) identifier_reset )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (for_statement (pattern_list (identifier_nbatch) identifier_nbatch (identifier_eval_batch) identifier_eval_batch )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_eval_data) identifier_eval_data )argument_list )call (block (if_statement (boolean_operator (comparison_operator (identifier_num_batch) identifier_num_batch (None) None )comparison_operator (comparison_operator (identifier_nbatch) identifier_nbatch (identifier_num_batch) identifier_num_batch )comparison_operator )boolean_operator (block (break_statement )break_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_prepare) identifier_prepare )attribute (argument_list (identifier_eval_batch) identifier_eval_batch (keyword_argument (identifier_sparse_row_id_fn) identifier_sparse_row_id_fn (identifier_sparse_row_id_fn) identifier_sparse_row_id_fn )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_forward) identifier_forward )attribute (argument_list (identifier_eval_batch) identifier_eval_batch (keyword_argument (identifier_is_train) identifier_is_train (False) False )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_pad) identifier_pad (attribute (identifier_eval_batch) identifier_eval_batch (identifier_pad) identifier_pad )attribute )assignment )expression_statement (expression_statement (assignment (identifier_outputs) identifier_outputs (list_comprehension (subscript (identifier_out) identifier_out (slice (integer_0) integer_0 (colon) colon (binary_operator (subscript (attribute (identifier_out) identifier_out (identifier_shape) identifier_shape )attribute (integer_0) integer_0 )subscript (identifier_pad) identifier_pad )binary_operator )slice )subscript (for_in_clause (identifier_out) identifier_out (call (attribute (identifier_self) identifier_self (identifier_get_outputs) identifier_get_outputs )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (yield (tuple (identifier_outputs) identifier_outputs (identifier_nbatch) identifier_nbatch (identifier_eval_batch) identifier_eval_batch )tuple )yield )expression_statement )block )for_statement )block )function_definition )module
Iterates over predictions. Examples -------- >>> for pred, i_batch, batch in module.iter_predict(eval_data): ... # pred is a list of outputs from the module ... # i_batch is a integer ... # batch is the data batch from the data iterator Parameters ---------- eval_data : DataIter Evaluation data to run prediction on. num_batch : int Default is ``None``, indicating running all the batches in the data iterator. reset : bool Default is ``True``, indicating whether we should reset the data iter before start doing prediction. sparse_row_id_fn : A callback function The function takes `data_batch` as an input and returns a dict of str -> NDArray. The resulting dict is used for pulling row_sparse parameters from the kvstore, where the str key is the name of the param, and the value is the row id of the param to pull.
(module (function_definition (function_name_setuptools_entry) function_name_setuptools_entry (parameters (identifier_dist) identifier_dist (identifier_keyword) identifier_keyword (identifier_value) identifier_value )parameters (block (if_statement (not_operator (identifier_value) identifier_value )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_version) identifier_version (call (identifier_get_version) identifier_get_version (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (attribute (identifier_dist) identifier_dist (identifier_metadata) identifier_metadata )attribute (identifier_version) identifier_version )attribute (None) None )comparison_operator (block (expression_statement (assignment (identifier_s) identifier_s (string_"Ignoring explicit version='{0}' in setup.py, using '{1}' instead") string_"Ignoring explicit version='{0}' in setup.py, using '{1}' instead" )assignment )expression_statement (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (call (attribute (identifier_s) identifier_s (identifier_format) identifier_format )attribute (argument_list (attribute (attribute (identifier_dist) identifier_dist (identifier_metadata) identifier_metadata )attribute (identifier_version) identifier_version )attribute (identifier_version) identifier_version )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (attribute (attribute (identifier_dist) identifier_dist (identifier_metadata) identifier_metadata )attribute (identifier_version) identifier_version )attribute (identifier_version) identifier_version )assignment )expression_statement (expression_statement (assignment (identifier_ExistingCustomBuildPy) identifier_ExistingCustomBuildPy (call (attribute (attribute (identifier_dist) identifier_dist (identifier_cmdclass) identifier_cmdclass )attribute (identifier_get) identifier_get )attribute (argument_list (string_'build_py') string_'build_py' (identifier_object) identifier_object )argument_list )call )assignment )expression_statement (class_definition (identifier_KatVersionBuildPy) identifier_KatVersionBuildPy (argument_list (identifier_AddVersionToInitBuildPy) identifier_AddVersionToInitBuildPy (identifier_ExistingCustomBuildPy) identifier_ExistingCustomBuildPy )argument_list (block_) block_ )class_definition (expression_statement (assignment (subscript (attribute (identifier_dist) identifier_dist (identifier_cmdclass) identifier_cmdclass )attribute (string_'build_py') string_'build_py' )subscript (identifier_KatVersionBuildPy) identifier_KatVersionBuildPy )assignment )expression_statement (expression_statement (assignment (identifier_ExistingCustomSdist) identifier_ExistingCustomSdist (call (attribute (attribute (identifier_dist) identifier_dist (identifier_cmdclass) identifier_cmdclass )attribute (identifier_get) identifier_get )attribute (argument_list (string_'sdist') string_'sdist' (identifier_object) identifier_object )argument_list )call )assignment )expression_statement (class_definition (identifier_KatVersionSdist) identifier_KatVersionSdist (argument_list (identifier_AddVersionToInitSdist) identifier_AddVersionToInitSdist (identifier_ExistingCustomSdist) identifier_ExistingCustomSdist )argument_list (block_) block_ )class_definition (expression_statement (assignment (subscript (attribute (identifier_dist) identifier_dist (identifier_cmdclass) identifier_cmdclass )attribute (string_'sdist') string_'sdist' )subscript (identifier_KatVersionSdist) identifier_KatVersionSdist )assignment )expression_statement )block )function_definition )module
Setuptools entry point for setting version and baking it into package.
(module (function_definition (function_name__extract) function_name__extract (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_outdir) identifier_outdir (default_parameter (identifier_filter_func) identifier_filter_func (None) None )default_parameter )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open_zip) identifier_open_zip (argument_list (identifier_path) identifier_path )argument_list )call (as_pattern_target (identifier_archive_file) identifier_archive_file )as_pattern_target )as_pattern )with_item )with_clause (block (for_statement (identifier_name) identifier_name (call (attribute (identifier_archive_file) identifier_archive_file (identifier_namelist) identifier_namelist )attribute (argument_list )argument_list )call (block (if_statement (boolean_operator (call (attribute (identifier_name) identifier_name (identifier_startswith) identifier_startswith )attribute (argument_list (string_'/') string_'/' )argument_list )call (call (attribute (identifier_name) identifier_name (identifier_startswith) identifier_startswith )attribute (argument_list (string_'..') string_'..' )argument_list )call )boolean_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_'Zip file contains unsafe path: {}') string_'Zip file contains unsafe path: {}' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )argument_list )call )raise_statement )block )if_statement (if_statement (parenthesized_expression (boolean_operator (not_operator (identifier_filter_func) identifier_filter_func )not_operator (call (identifier_filter_func) identifier_filter_func (argument_list (identifier_name) identifier_name )argument_list )call )boolean_operator )parenthesized_expression (block (expression_statement (call (attribute (identifier_archive_file) identifier_archive_file (identifier_extract) identifier_extract )attribute (argument_list (identifier_name) identifier_name (identifier_outdir) identifier_outdir )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )with_statement )block )function_definition )module
Extract from a zip file, with an optional filter. :param function filter_func: optional filter with the filename as the parameter. Returns True if the file should be extracted.
(module (function_definition (function_name_after_epoch) function_name_after_epoch (parameters (identifier_self) identifier_self (typed_parameter (identifier_epoch_data) identifier_epoch_data (type (identifier_EpochData) identifier_EpochData )type )typed_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (type (None) None )type (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__save_stats) identifier__save_stats )attribute (argument_list (identifier_epoch_data) identifier_epoch_data )argument_list )call )expression_statement (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list )argument_list )call (identifier_after_epoch) identifier_after_epoch )attribute (argument_list (keyword_argument (identifier_epoch_data) identifier_epoch_data (identifier_epoch_data) identifier_epoch_data )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )expression_statement )block )function_definition )module
Compute the specified aggregations and save them to the given epoch data. :param epoch_data: epoch data to be processed
(module (function_definition (function_name___diff_internal) function_name___diff_internal (parameters (identifier_self) identifier_self )parameters (block (assert_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_p) identifier_p )attribute (integer_0) integer_0 )comparison_operator (string_"order of Bspline must be > 0") string_"order of Bspline must be > 0" )assert_statement (expression_statement (assignment (identifier_t) identifier_t (attribute (identifier_self) identifier_self (identifier_knot_vector) identifier_knot_vector )attribute )assignment )expression_statement (expression_statement (assignment (identifier_p) identifier_p (attribute (identifier_self) identifier_self (identifier_p) identifier_p )attribute )assignment )expression_statement (expression_statement (assignment (identifier_Bi) identifier_Bi (call (identifier_Bspline) identifier_Bspline (argument_list (subscript (identifier_t) identifier_t (slice (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript (binary_operator (identifier_p) identifier_p (integer_1) integer_1 )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_Bip1) identifier_Bip1 (call (identifier_Bspline) identifier_Bspline (argument_list (subscript (identifier_t) identifier_t (slice (integer_1) integer_1 (colon) colon )slice )subscript (binary_operator (identifier_p) identifier_p (integer_1) integer_1 )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_numer1) identifier_numer1 (unary_operator (identifier_p) identifier_p )unary_operator )assignment )expression_statement (expression_statement (assignment (identifier_numer2) identifier_numer2 (unary_operator (identifier_p) identifier_p )unary_operator )assignment )expression_statement (expression_statement (assignment (identifier_denom1) identifier_denom1 (binary_operator (subscript (identifier_t) identifier_t (slice (identifier_p) identifier_p (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript (subscript (identifier_t) identifier_t (slice (colon) colon (unary_operator (parenthesized_expression (binary_operator (identifier_p) identifier_p (integer_1) integer_1 )binary_operator )parenthesized_expression )unary_operator )slice )subscript )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_denom2) identifier_denom2 (binary_operator (subscript (identifier_t) identifier_t (slice (parenthesized_expression (binary_operator (identifier_p) identifier_p (integer_1) integer_1 )binary_operator )parenthesized_expression (colon) colon )slice )subscript (subscript (identifier_t) identifier_t (slice (integer_1) integer_1 (colon) colon (unary_operator (identifier_p) identifier_p )unary_operator )slice )subscript )binary_operator )assignment )expression_statement (with_statement (with_clause (with_item (call (attribute (identifier_np) identifier_np (identifier_errstate) identifier_errstate )attribute (argument_list (keyword_argument (identifier_divide) identifier_divide (string_'ignore') string_'ignore' )keyword_argument (keyword_argument (identifier_invalid) identifier_invalid (string_'ignore') string_'ignore' )keyword_argument )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_ci) identifier_ci (call (attribute (identifier_np) identifier_np (identifier_where) identifier_where )attribute (argument_list (comparison_operator (identifier_denom1) identifier_denom1 (float_0.) float_0. )comparison_operator (parenthesized_expression (binary_operator (identifier_numer1) identifier_numer1 (identifier_denom1) identifier_denom1 )binary_operator )parenthesized_expression (float_0.) float_0. )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cip1) identifier_cip1 (call (attribute (identifier_np) identifier_np (identifier_where) identifier_where )attribute (argument_list (comparison_operator (identifier_denom2) identifier_denom2 (float_0.) float_0. )comparison_operator (parenthesized_expression (binary_operator (identifier_numer2) identifier_numer2 (identifier_denom2) identifier_denom2 )binary_operator )parenthesized_expression (float_0.) float_0. )argument_list )call )assignment )expression_statement )block )with_statement (return_statement (tuple (tuple (identifier_ci) identifier_ci (identifier_Bi) identifier_Bi )tuple (tuple (identifier_cip1) identifier_cip1 (identifier_Bip1) identifier_Bip1 )tuple )tuple )return_statement )block )function_definition )module
Differentiate a B-spline once, and return the resulting coefficients and Bspline objects. This preserves the Bspline object nature of the data, enabling recursive implementation of higher-order differentiation (see `diff`). The value of the first derivative of `B` at a point `x` can be obtained as:: def diff1(B, x): terms = B.__diff_internal() return sum( ci*Bi(x) for ci,Bi in terms ) Returns: tuple of tuples, where each item is (coefficient, Bspline object). See: `diff`: differentiation of any order >= 0
(module (function_definition (function_name__connect_mitogen_su) function_name__connect_mitogen_su (parameters (identifier_spec) identifier_spec )parameters (block (return_statement (dictionary (pair (string_'method') string_'method' (string_'su') string_'su' )pair (pair (string_'kwargs') string_'kwargs' (dictionary (pair (string_'username') string_'username' (call (attribute (identifier_spec) identifier_spec (identifier_remote_user) identifier_remote_user )attribute (argument_list )argument_list )call )pair (pair (string_'password') string_'password' (call (attribute (identifier_spec) identifier_spec (identifier_password) identifier_password )attribute (argument_list )argument_list )call )pair (pair (string_'python_path') string_'python_path' (call (attribute (identifier_spec) identifier_spec (identifier_python_path) identifier_python_path )attribute (argument_list )argument_list )call )pair (pair (string_'su_path') string_'su_path' (call (attribute (identifier_spec) identifier_spec (identifier_become_exe) identifier_become_exe )attribute (argument_list )argument_list )call )pair (pair (string_'connect_timeout') string_'connect_timeout' (call (attribute (identifier_spec) identifier_spec (identifier_timeout) identifier_timeout )attribute (argument_list )argument_list )call )pair (pair (string_'remote_name') string_'remote_name' (call (identifier_get_remote_name) identifier_get_remote_name (argument_list (identifier_spec) identifier_spec )argument_list )call )pair )dictionary )pair )dictionary )return_statement )block )function_definition )module
Return ContextService arguments for su as a first class connection.
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self (identifier_definitions) identifier_definitions )parameters (block (expression_statement (assignment (identifier_url) identifier_url (attribute (identifier_self) identifier_self (identifier_location) identifier_location )attribute )assignment )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (string_'importing (%s)') string_'importing (%s)' (identifier_url) identifier_url )argument_list )call )expression_statement (if_statement (comparison_operator (string_'://') string_'://' (identifier_url) identifier_url )comparison_operator (block (expression_statement (assignment (identifier_url) identifier_url (call (identifier_urljoin) identifier_urljoin (argument_list (attribute (identifier_definitions) identifier_definitions (identifier_url) identifier_url )attribute (identifier_url) identifier_url )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_options) identifier_options (attribute (identifier_definitions) identifier_definitions (identifier_options) identifier_options )attribute )assignment )expression_statement (expression_statement (assignment (identifier_d) identifier_d (call (identifier_Definitions) identifier_Definitions (argument_list (identifier_url) identifier_url (identifier_options) identifier_options )argument_list )call )assignment )expression_statement (if_statement (call (attribute (attribute (identifier_d) identifier_d (identifier_root) identifier_root )attribute (identifier_match) identifier_match )attribute (argument_list (attribute (identifier_Definitions) identifier_Definitions (identifier_Tag) identifier_Tag )attribute (identifier_wsdlns) identifier_wsdlns )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_import_definitions) identifier_import_definitions )attribute (argument_list (identifier_definitions) identifier_definitions (identifier_d) identifier_d )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (if_statement (call (attribute (attribute (identifier_d) identifier_d (identifier_root) identifier_root )attribute (identifier_match) identifier_match )attribute (argument_list (attribute (identifier_Schema) identifier_Schema (identifier_Tag) identifier_Tag )attribute (attribute (identifier_Namespace) identifier_Namespace (identifier_xsdns) identifier_xsdns )attribute )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_import_schema) identifier_import_schema )attribute (argument_list (identifier_definitions) identifier_definitions (identifier_d) identifier_d )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (binary_operator (string_'document at "%s" is unknown') string_'document at "%s" is unknown' (identifier_url) identifier_url )binary_operator )argument_list )call )raise_statement )block )function_definition )module
Load the object by opening the URL
(module (function_definition (function_name_in1d_events) function_name_in1d_events (parameters (identifier_ar1) identifier_ar1 (identifier_ar2) identifier_ar2 )parameters (block (expression_statement (assignment (identifier_ar1) identifier_ar1 (call (attribute (identifier_np) identifier_np (identifier_ascontiguousarray) identifier_ascontiguousarray )attribute (argument_list (identifier_ar1) identifier_ar1 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ar2) identifier_ar2 (call (attribute (identifier_np) identifier_np (identifier_ascontiguousarray) identifier_ascontiguousarray )attribute (argument_list (identifier_ar2) identifier_ar2 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_tmp) identifier_tmp (call (attribute (identifier_np) identifier_np (identifier_empty_like) identifier_empty_like )attribute (argument_list (identifier_ar1) identifier_ar1 (keyword_argument (identifier_dtype) identifier_dtype (attribute (identifier_np) identifier_np (identifier_uint8) identifier_uint8 )attribute )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_analysis_functions) identifier_analysis_functions (identifier_get_in1d_sorted) identifier_get_in1d_sorted )attribute (argument_list (identifier_ar1) identifier_ar1 (identifier_ar2) identifier_ar2 (identifier_tmp) identifier_tmp )argument_list )call )return_statement )block )function_definition )module
Does the same than np.in1d but uses the fact that ar1 and ar2 are sorted and the c++ library. Is therefore much much faster.
(module (function_definition (function_name__check_dependencies) function_name__check_dependencies (parameters (identifier_string) identifier_string )parameters (block (expression_statement (assignment (pattern_list (identifier_opener) identifier_opener (identifier_closer) identifier_closer )pattern_list (expression_list (string_'(') string_'(' (string_')') string_')' )expression_list )assignment )expression_statement (expression_statement (call (identifier__check_enclosing_characters) identifier__check_enclosing_characters (argument_list (identifier_string) identifier_string (identifier_opener) identifier_opener (identifier_closer) identifier_closer )argument_list )call )expression_statement (if_statement (comparison_operator (identifier_opener) identifier_opener (identifier_string) identifier_string )comparison_operator (block (if_statement (comparison_operator (subscript (identifier_string) identifier_string (integer_0) integer_0 )subscript (identifier_opener) identifier_opener )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (identifier_DEPENDENCIES_NOT_FIRST) identifier_DEPENDENCIES_NOT_FIRST )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_ret) identifier_ret (True) True )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_ret) identifier_ret (False) False )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Checks the dependencies constructor. Looks to make sure that the dependencies are the first things defined
(module (function_definition (function_name_make_wsgi_app) function_name_make_wsgi_app (parameters (identifier_matching) identifier_matching (default_parameter (identifier_not_found_app) identifier_not_found_app (identifier_not_found_app) identifier_not_found_app )default_parameter )parameters (block (function_definition (function_name_wsgi_app) function_name_wsgi_app (parameters (identifier_environ) identifier_environ (identifier_start_response) identifier_start_response )parameters (block (expression_statement (assignment (subscript (identifier_environ) identifier_environ (string_'matcha.matching') string_'matcha.matching' )subscript (identifier_matching) identifier_matching )assignment )expression_statement (try_statement (block (expression_statement (assignment (pattern_list (identifier_matched_case) identifier_matched_case (identifier_matched_dict) identifier_matched_dict )pattern_list (call (identifier_matching) identifier_matching (argument_list (identifier_environ) identifier_environ )argument_list )call )assignment )expression_statement )block (except_clause (identifier_NotMatched) identifier_NotMatched (block (return_statement (call (identifier_not_found_app) identifier_not_found_app (argument_list (identifier_environ) identifier_environ (identifier_start_response) identifier_start_response )argument_list )call )return_statement )block )except_clause (else_clause (block (expression_statement (assignment (subscript (identifier_environ) identifier_environ (string_'matcha.matched_dict') string_'matcha.matched_dict' )subscript (identifier_matched_dict) identifier_matched_dict )assignment )expression_statement (return_statement (call (identifier_matched_case) identifier_matched_case (argument_list (identifier_environ) identifier_environ (identifier_start_response) identifier_start_response )argument_list )call )return_statement )block )else_clause )try_statement )block )function_definition (return_statement (identifier_wsgi_app) identifier_wsgi_app )return_statement )block )function_definition )module
Making a WSGI application from Matching object registered other WSGI applications on each 'case' argument.
(module (function_definition (function_name_sge) function_name_sge (parameters (identifier_self) identifier_self (identifier_other) identifier_other )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__check_match) identifier__check_match )attribute (argument_list (identifier_other) identifier_other )argument_list )call )expression_statement (return_statement (comparison_operator (call (attribute (identifier_self) identifier_self (identifier_to_sint) identifier_to_sint )attribute (argument_list )argument_list )call (call (attribute (identifier_other) identifier_other (identifier_to_sint) identifier_to_sint )attribute (argument_list )argument_list )call )comparison_operator )return_statement )block )function_definition )module
Compares two equal-sized BinWords, treating them as signed integers, and returning True if the first is bigger or equal.
(module (function_definition (function_name_get_step_by) function_name_get_step_by (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (not_operator (identifier_kwargs) identifier_kwargs )not_operator (block (return_statement (None) None )return_statement )block )if_statement (for_statement (pattern_list (identifier_index) identifier_index (identifier_step) identifier_step )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_steps) identifier_steps )attribute (identifier_values) identifier_values )attribute (argument_list )argument_list )call )argument_list )call (block (expression_statement (assignment (identifier_extended_step) identifier_extended_step (call (identifier_dict) identifier_dict (argument_list (call (attribute (identifier_step) identifier_step (identifier_serialize) identifier_serialize )attribute (argument_list )argument_list )call (keyword_argument (identifier_index) identifier_index (identifier_index) identifier_index )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (call (identifier_all) identifier_all (generator_expression (comparison_operator (identifier_item) identifier_item (call (attribute (identifier_extended_step) identifier_extended_step (identifier_items) identifier_items )attribute (argument_list )argument_list )call )comparison_operator (for_in_clause (identifier_item) identifier_item (call (attribute (identifier_kwargs) identifier_kwargs (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )generator_expression )call (block (return_statement (identifier_step) identifier_step )return_statement )block )if_statement )block )for_statement (return_statement (None) None )return_statement )block )function_definition )module
Get the first step that matches all the passed named arguments. Has special argument index not present in the real step. Usage: config.get_step_by(name='not found') config.get_step_by(index=0) config.get_step_by(name="greeting", command='echo HELLO MORDOR') :param kwargs: :return: Step object or None :rtype: valohai_yaml.objs.Step|None
(module (function_definition (function_name_bookmark_show) function_name_bookmark_show (parameters (identifier_bookmark_id_or_name) identifier_bookmark_id_or_name )parameters (block (expression_statement (assignment (identifier_client) identifier_client (call (identifier_get_client) identifier_get_client (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (call (identifier_resolve_id_or_name) identifier_resolve_id_or_name (argument_list (identifier_client) identifier_client (identifier_bookmark_id_or_name) identifier_bookmark_id_or_name )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_formatted_print) identifier_formatted_print (argument_list (identifier_res) identifier_res (keyword_argument (identifier_text_format) identifier_text_format (identifier_FORMAT_TEXT_RECORD) identifier_FORMAT_TEXT_RECORD )keyword_argument (keyword_argument (identifier_fields) identifier_fields (tuple (tuple (string_"ID") string_"ID" (string_"id") string_"id" )tuple (tuple (string_"Name") string_"Name" (string_"name") string_"name" )tuple (tuple (string_"Endpoint ID") string_"Endpoint ID" (string_"endpoint_id") string_"endpoint_id" )tuple (tuple (string_"Path") string_"Path" (string_"path") string_"path" )tuple )tuple )keyword_argument (keyword_argument (identifier_simple_text) identifier_simple_text (parenthesized_expression (conditional_expression (call (attribute (string_"{}:{}") string_"{}:{}" (identifier_format) identifier_format )attribute (argument_list (subscript (identifier_res) identifier_res (string_"endpoint_id") string_"endpoint_id" )subscript (subscript (identifier_res) identifier_res (string_"path") string_"path" )subscript )argument_list )call (not_operator (call (identifier_is_verbose) identifier_is_verbose (argument_list )argument_list )call )not_operator (None) None )conditional_expression )parenthesized_expression )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Executor for `globus bookmark show`
(module (function_definition (function_name_correct_rytov_sc_input) function_name_correct_rytov_sc_input (parameters (identifier_radius_sc) identifier_radius_sc (identifier_sphere_index_sc) identifier_sphere_index_sc (identifier_medium_index) identifier_medium_index (identifier_radius_sampling) identifier_radius_sampling )parameters (block (expression_statement (assignment (identifier_params) identifier_params (call (identifier_get_params) identifier_get_params (argument_list (identifier_radius_sampling) identifier_radius_sampling )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_na) identifier_na (subscript (identifier_params) identifier_params (string_"na") string_"na" )subscript )assignment )expression_statement (expression_statement (assignment (identifier_nb) identifier_nb (subscript (identifier_params) identifier_params (string_"nb") string_"nb" )subscript )assignment )expression_statement (expression_statement (assignment (identifier_prefac) identifier_prefac (binary_operator (identifier_medium_index) identifier_medium_index (parenthesized_expression (binary_operator (integer_2) integer_2 (identifier_na) identifier_na )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_sm) identifier_sm (binary_operator (binary_operator (binary_operator (integer_2) integer_2 (identifier_na) identifier_na )binary_operator (identifier_nb) identifier_nb )binary_operator (integer_1) integer_1 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_rt) identifier_rt (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (identifier_nb) identifier_nb (integer_2) integer_2 )binary_operator (binary_operator (integer_4) integer_4 (identifier_na) identifier_na )binary_operator )binary_operator (binary_operator (integer_2) integer_2 (identifier_nb) identifier_nb )binary_operator )binary_operator (integer_1) integer_1 )binary_operator (binary_operator (binary_operator (binary_operator (integer_4) integer_4 (identifier_medium_index) identifier_medium_index )binary_operator (identifier_na) identifier_na )binary_operator (identifier_sphere_index_sc) identifier_sphere_index_sc )binary_operator )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_sphere_index) identifier_sphere_index (binary_operator (identifier_prefac) identifier_prefac (parenthesized_expression (binary_operator (identifier_sm) identifier_sm (call (attribute (identifier_np) identifier_np (identifier_sqrt) identifier_sqrt )attribute (argument_list (identifier_rt) identifier_rt )argument_list )call )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_x) identifier_x (binary_operator (binary_operator (identifier_sphere_index) identifier_sphere_index (identifier_medium_index) identifier_medium_index )binary_operator (integer_1) integer_1 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_radius) identifier_radius (binary_operator (identifier_radius_sc) identifier_radius_sc (parenthesized_expression (binary_operator (binary_operator (binary_operator (subscript (identifier_params) identifier_params (string_"ra") string_"ra" )subscript (binary_operator (identifier_x) identifier_x (integer_2) integer_2 )binary_operator )binary_operator (binary_operator (subscript (identifier_params) identifier_params (string_"rb") string_"rb" )subscript (identifier_x) identifier_x )binary_operator )binary_operator (subscript (identifier_params) identifier_params (string_"rc") string_"rc" )subscript )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (return_statement (expression_list (identifier_radius) identifier_radius (identifier_sphere_index) identifier_sphere_index )expression_list )return_statement )block )function_definition )module
Inverse correction of refractive index and radius for Rytov This method returns the inverse of :func:`correct_rytov_output`. Parameters ---------- radius_sc: float Systematically corrected radius of the sphere [m] sphere_index_sc: float Systematically corrected refractive index of the sphere medium_index: float Refractive index of the surrounding medium radius_sampling: int Number of pixels used to sample the sphere radius when computing the Rytov field. Returns ------- radius: float Fitted radius of the sphere [m] sphere_index: float Fitted refractive index of the sphere See Also -------- correct_rytov_output: the inverse of this method
(module (function_definition (function_name_set_using_network_time) function_name_set_using_network_time (parameters (identifier_enable) identifier_enable )parameters (block (expression_statement (assignment (identifier_state) identifier_state (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_mac_utils) identifier_mac_utils )attribute (identifier_validate_enabled) identifier_validate_enabled )attribute (argument_list (identifier_enable) identifier_enable )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_'systemsetup -setusingnetworktime {0}') string_'systemsetup -setusingnetworktime {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_state) identifier_state )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_mac_utils) identifier_mac_utils )attribute (identifier_execute_return_success) identifier_execute_return_success )attribute (argument_list (identifier_cmd) identifier_cmd )argument_list )call )expression_statement (return_statement (comparison_operator (identifier_state) identifier_state (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_mac_utils) identifier_mac_utils )attribute (identifier_validate_enabled) identifier_validate_enabled )attribute (argument_list (call (identifier_get_using_network_time) identifier_get_using_network_time (argument_list )argument_list )call )argument_list )call )comparison_operator )return_statement )block )function_definition )module
Set whether network time is on or off. :param enable: True to enable, False to disable. Can also use 'on' or 'off' :type: str bool :return: True if successful, False if not :rtype: bool :raises: CommandExecutionError on failure CLI Example: .. code-block:: bash salt '*' timezone.set_using_network_time True
(module (function_definition (function_name_fetch_rrlyrae_lc_params) function_name_fetch_rrlyrae_lc_params (parameters (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_save_loc) identifier_save_loc (call (identifier__get_download_or_cache) identifier__get_download_or_cache (argument_list (string_'table2.dat.gz') string_'table2.dat.gz' (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_dtype) identifier_dtype (list (tuple (string_'id') string_'id' (string_'i') string_'i' )tuple (tuple (string_'type') string_'type' (string_'S2') string_'S2' )tuple (tuple (string_'P') string_'P' (string_'f') string_'f' )tuple (tuple (string_'uA') string_'uA' (string_'f') string_'f' )tuple (tuple (string_'u0') string_'u0' (string_'f') string_'f' )tuple (tuple (string_'uE') string_'uE' (string_'f') string_'f' )tuple (tuple (string_'uT') string_'uT' (string_'f') string_'f' )tuple (tuple (string_'gA') string_'gA' (string_'f') string_'f' )tuple (tuple (string_'g0') string_'g0' (string_'f') string_'f' )tuple (tuple (string_'gE') string_'gE' (string_'f') string_'f' )tuple (tuple (string_'gT') string_'gT' (string_'f') string_'f' )tuple (tuple (string_'rA') string_'rA' (string_'f') string_'f' )tuple (tuple (string_'r0') string_'r0' (string_'f') string_'f' )tuple (tuple (string_'rE') string_'rE' (string_'f') string_'f' )tuple (tuple (string_'rT') string_'rT' (string_'f') string_'f' )tuple (tuple (string_'iA') string_'iA' (string_'f') string_'f' )tuple (tuple (string_'i0') string_'i0' (string_'f') string_'f' )tuple (tuple (string_'iE') string_'iE' (string_'f') string_'f' )tuple (tuple (string_'iT') string_'iT' (string_'f') string_'f' )tuple (tuple (string_'zA') string_'zA' (string_'f') string_'f' )tuple (tuple (string_'z0') string_'z0' (string_'f') string_'f' )tuple (tuple (string_'zE') string_'zE' (string_'f') string_'f' )tuple (tuple (string_'zT') string_'zT' (string_'f') string_'f' )tuple )list )assignment )expression_statement (return_statement (call (attribute (identifier_np) identifier_np (identifier_loadtxt) identifier_loadtxt )attribute (argument_list (identifier_save_loc) identifier_save_loc (keyword_argument (identifier_dtype) identifier_dtype (identifier_dtype) identifier_dtype )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Fetch data from table 2 of Sesar 2010 This table includes observationally-derived parameters for all the Sesar 2010 lightcurves.
(module (function_definition (function_name_calc_pident_ignore_gaps) function_name_calc_pident_ignore_gaps (parameters (identifier_a) identifier_a (identifier_b) identifier_b )parameters (block (expression_statement (assignment (identifier_m) identifier_m (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (identifier_mm) identifier_mm (integer_0) integer_0 )assignment )expression_statement (for_statement (pattern_list (identifier_A) identifier_A (identifier_B) identifier_B )pattern_list (call (identifier_zip) identifier_zip (argument_list (call (identifier_list) identifier_list (argument_list (identifier_a) identifier_a )argument_list )call (call (identifier_list) identifier_list (argument_list (identifier_b) identifier_b )argument_list )call )argument_list )call (block (if_statement (boolean_operator (boolean_operator (boolean_operator (comparison_operator (identifier_A) identifier_A (string_'-') string_'-' )comparison_operator (comparison_operator (identifier_A) identifier_A (string_'.') string_'.' )comparison_operator )boolean_operator (comparison_operator (identifier_B) identifier_B (string_'-') string_'-' )comparison_operator )boolean_operator (comparison_operator (identifier_B) identifier_B (string_'.') string_'.' )comparison_operator )boolean_operator (block (continue_statement )continue_statement )block )if_statement (if_statement (comparison_operator (identifier_A) identifier_A (identifier_B) identifier_B )comparison_operator (block (expression_statement (augmented_assignment (identifier_m) identifier_m (integer_1) integer_1 )augmented_assignment )expression_statement )block (else_clause (block (expression_statement (augmented_assignment (identifier_mm) identifier_mm (integer_1) integer_1 )augmented_assignment )expression_statement )block )else_clause )if_statement )block )for_statement (try_statement (block (return_statement (binary_operator (call (identifier_float) identifier_float (argument_list (binary_operator (call (identifier_float) identifier_float (argument_list (identifier_m) identifier_m )argument_list )call (call (identifier_float) identifier_float (argument_list (parenthesized_expression (binary_operator (identifier_m) identifier_m (identifier_mm) identifier_mm )binary_operator )parenthesized_expression )argument_list )call )binary_operator )argument_list )call (integer_100) integer_100 )binary_operator )return_statement )block (except_clause (block (return_statement (integer_0) integer_0 )return_statement )block )except_clause )try_statement )block )function_definition )module
calculate percent identity
(module (function_definition (function_name_field_data) function_name_field_data (parameters (identifier_self) identifier_self (identifier_field_data) identifier_field_data )parameters (block (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (string_"Runtime.field_data is deprecated") string_"Runtime.field_data is deprecated" (identifier_FieldDataDeprecationWarning) identifier_FieldDataDeprecationWarning (keyword_argument (identifier_stacklevel) identifier_stacklevel (integer_2) integer_2 )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__deprecated_per_instance_field_data) identifier__deprecated_per_instance_field_data )attribute (identifier_field_data) identifier_field_data )assignment )expression_statement )block )function_definition )module
Set field_data. Deprecated in favor of a 'field-data' service.
(module (function_definition (function_name__update_url_map) function_name__update_url_map (parameters (identifier_self) identifier_self )parameters (block (if_statement (identifier_HAS_WEBSOCKETS) identifier_HAS_WEBSOCKETS (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_url_map) identifier_url_map )attribute (identifier_update) identifier_update )attribute (argument_list (dictionary (pair (string_'ws') string_'ws' (identifier_WebsocketEndpoint) identifier_WebsocketEndpoint )pair )dictionary )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_url_map) identifier_url_map )attribute (identifier_update) identifier_update )attribute (argument_list (dictionary (pair (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_apiopts) identifier_apiopts )attribute (identifier_get) identifier_get )attribute (argument_list (string_'webhook_url') string_'webhook_url' (string_'hook') string_'hook' )argument_list )call (identifier_lstrip) identifier_lstrip )attribute (argument_list (string_'/') string_'/' )argument_list )call (identifier_Webhook) identifier_Webhook )pair )dictionary )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_url_map) identifier_url_map )attribute (identifier_update) identifier_update )attribute (argument_list (dictionary (pair (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_apiopts) identifier_apiopts )attribute (identifier_get) identifier_get )attribute (argument_list (string_'app_path') string_'app_path' (string_'app') string_'app' )argument_list )call (identifier_lstrip) identifier_lstrip )attribute (argument_list (string_'/') string_'/' )argument_list )call (identifier_App) identifier_App )pair )dictionary )argument_list )call )expression_statement )block )function_definition )module
Assemble any dynamic or configurable URLs
(module (function_definition (function_name_setUp) function_name_setUp (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (identifier_HarnessCase) identifier_HarnessCase )comparison_operator (block (return_statement )return_statement )block )if_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_'Setting up') string_'Setting up' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_'Deleting all .pdf') string_'Deleting all .pdf' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (string_'del /q "%HOMEDRIVE%%HOMEPATH%\\Downloads\\NewPdf_*.pdf"') string_'del /q "%HOMEDRIVE%%HOMEPATH%\\Downloads\\NewPdf_*.pdf"' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_'Deleting all .xlsx') string_'Deleting all .xlsx' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (string_'del /q "%HOMEDRIVE%%HOMEPATH%\\Downloads\\ExcelReport*.xlsx"') string_'del /q "%HOMEDRIVE%%HOMEPATH%\\Downloads\\ExcelReport*.xlsx"' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_'Deleting all .pcapng') string_'Deleting all .pcapng' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (binary_operator (string_'del /q "%s\\Captures\\*.pcapng"') string_'del /q "%s\\Captures\\*.pcapng"' (attribute (identifier_settings) identifier_settings (identifier_HARNESS_HOME) identifier_HARNESS_HOME )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_'Empty files in temps') string_'Empty files in temps' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (binary_operator (string_'del /q "%s\\Thread_Harness\\temp\\*.*"') string_'del /q "%s\\Thread_Harness\\temp\\*.*"' (attribute (identifier_settings) identifier_settings (identifier_HARNESS_HOME) identifier_HARNESS_HOME )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (binary_operator (string_'mkdir %s') string_'mkdir %s' (attribute (identifier_self) identifier_self (identifier_result_dir) identifier_result_dir )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__init_harness) identifier__init_harness )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__init_devices) identifier__init_devices )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__init_dut) identifier__init_dut )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__init_rf_shield) identifier__init_rf_shield )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Prepare to run test case. Start harness service, init golden devices, reset DUT and open browser.
(module (function_definition (function_name_addTable) function_name_addTable (parameters (identifier_D) identifier_D )parameters (block (expression_statement (assignment (identifier__swap) identifier__swap (dictionary (pair (string_"1") string_"1" (string_"measurement") string_"measurement" )pair (pair (string_"2") string_"2" (string_"summary") string_"summary" )pair (pair (string_"3") string_"3" (string_"ensemble") string_"ensemble" )pair (pair (string_"4") string_"4" (string_"distribution") string_"distribution" )pair )dictionary )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (concatenated_string (string_"What type of table would you like to add?\n") string_"What type of table would you like to add?\n" (string_"1: measurement\n") string_"1: measurement\n" (string_"2: summary\n") string_"2: summary\n" (string_"3: ensemble (under development)\n") string_"3: ensemble (under development)\n" (string_"4: distribution (under development)\n") string_"4: distribution (under development)\n" (string_"\n Note: if you want to add a whole model, use the addModel() function") string_"\n Note: if you want to add a whole model, use the addModel() function" )concatenated_string )argument_list )call )expression_statement (expression_statement (assignment (identifier__ans) identifier__ans (call (identifier_input) identifier_input (argument_list (string_">") string_">" )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier__ans) identifier__ans (list (string_"3") string_"3" (string_"4") string_"4" )list )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"I don't know how to do that yet.") string_"I don't know how to do that yet." )argument_list )call )expression_statement )block (elif_clause (comparison_operator (identifier__ans) identifier__ans (list (string_"1") string_"1" (string_"2") string_"2" )list )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Locate the CSV file with the values for this table: ") string_"Locate the CSV file with the values for this table: " )argument_list )call )expression_statement (expression_statement (assignment (pattern_list (identifier__path) identifier__path (identifier__files) identifier__files )pattern_list (call (identifier_browse_dialog_file) identifier_browse_dialog_file (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier__path) identifier__path (call (identifier__confirm_file_path) identifier__confirm_file_path (argument_list (identifier__files) identifier__files )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier__values) identifier__values (call (identifier_read_csv_from_file) identifier_read_csv_from_file (argument_list (identifier__path) identifier__path )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier__table) identifier__table (call (identifier__build_table) identifier__build_table (argument_list (identifier__values) identifier__values )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier__placement) identifier__placement (call (identifier__prompt_placement) identifier__prompt_placement (argument_list (identifier_D) identifier_D (subscript (identifier__swap) identifier__swap (identifier__ans) identifier__ans )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_D) identifier_D (call (identifier__put_table) identifier__put_table (argument_list (identifier_D) identifier_D (identifier__placement) identifier__placement (identifier__table) identifier__table )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"That's not a valid option") string_"That's not a valid option" )argument_list )call )expression_statement )block )else_clause )if_statement (return_statement (identifier_D) identifier_D )return_statement )block )function_definition )module
Add any table type to the given dataset. Use prompts to determine index locations and table type. :param dict D: Metadata (dataset) :param dict dat: Metadata (table) :return dict D: Metadata (dataset)
(module (function_definition (function_name_get_messages) function_name_get_messages (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_cs) identifier_cs (subscript (subscript (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (string_"comments") string_"comments" )subscript (string_"data") string_"data" )subscript )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (list )list )assignment )expression_statement (for_statement (identifier_c) identifier_c (identifier_cs) identifier_cs (block (expression_statement (call (attribute (identifier_res) identifier_res (identifier_append) identifier_append )attribute (argument_list (call (identifier_Message) identifier_Message (argument_list (identifier_c) identifier_c (identifier_self) identifier_self )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_res) identifier_res )return_statement )block )function_definition )module
Returns list of Message objects which represents messages being transported.
(module (function_definition (function_name_get_version) function_name_get_version (parameters (identifier_self) identifier_self (identifier_layer_id) identifier_layer_id (identifier_version_id) identifier_version_id (default_parameter (identifier_expand) identifier_expand (list )list )default_parameter )parameters (block (expression_statement (assignment (identifier_target_url) identifier_target_url (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_get_url) identifier_get_url )attribute (argument_list (string_'VERSION') string_'VERSION' (string_'GET') string_'GET' (string_'single') string_'single' (dictionary (pair (string_'layer_id') string_'layer_id' (identifier_layer_id) identifier_layer_id )pair (pair (string_'version_id') string_'version_id' (identifier_version_id) identifier_version_id )pair )dictionary )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__get) identifier__get )attribute (argument_list (identifier_target_url) identifier_target_url (keyword_argument (identifier_expand) identifier_expand (identifier_expand) identifier_expand )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Get a specific version of a layer.
(module (function_definition (function_name_read_configuration) function_name_read_configuration (parameters (identifier_filepath) identifier_filepath (default_parameter (identifier_find_others) identifier_find_others (False) False )default_parameter (default_parameter (identifier_ignore_option_errors) identifier_ignore_option_errors (False) False )default_parameter )parameters (block (import_from_statement (dotted_name (identifier_setuptools) identifier_setuptools (identifier_dist) identifier_dist )dotted_name (dotted_name (identifier_Distribution) identifier_Distribution )dotted_name (dotted_name (identifier__Distribution) identifier__Distribution )dotted_name )import_from_statement (expression_statement (assignment (identifier_filepath) identifier_filepath (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (identifier_filepath) identifier_filepath )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_filepath) identifier_filepath )argument_list )call )not_operator (block (raise_statement (call (identifier_DistutilsFileError) identifier_DistutilsFileError (argument_list (binary_operator (string_'Configuration file %s does not exist.') string_'Configuration file %s does not exist.' (identifier_filepath) identifier_filepath )binary_operator )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_current_directory) identifier_current_directory (call (attribute (identifier_os) identifier_os (identifier_getcwd) identifier_getcwd )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_chdir) identifier_chdir )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_filepath) identifier_filepath )argument_list )call )argument_list )call )expression_statement (try_statement (block (expression_statement (assignment (identifier_dist) identifier_dist (call (identifier_Distribution) identifier_Distribution (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_filenames) identifier_filenames (conditional_expression (call (attribute (identifier_dist) identifier_dist (identifier_find_config_files) identifier_find_config_files )attribute (argument_list )argument_list )call (identifier_find_others) identifier_find_others (list )list )conditional_expression )assignment )expression_statement (if_statement (comparison_operator (identifier_filepath) identifier_filepath (identifier_filenames) identifier_filenames )comparison_operator (block (expression_statement (call (attribute (identifier_filenames) identifier_filenames (identifier_append) identifier_append )attribute (argument_list (identifier_filepath) identifier_filepath )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier__Distribution) identifier__Distribution (identifier_parse_config_files) identifier_parse_config_files )attribute (argument_list (identifier_dist) identifier_dist (keyword_argument (identifier_filenames) identifier_filenames (identifier_filenames) identifier_filenames )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_handlers) identifier_handlers (call (identifier_parse_configuration) identifier_parse_configuration (argument_list (identifier_dist) identifier_dist (attribute (identifier_dist) identifier_dist (identifier_command_options) identifier_command_options )attribute (keyword_argument (identifier_ignore_option_errors) identifier_ignore_option_errors (identifier_ignore_option_errors) identifier_ignore_option_errors )keyword_argument )argument_list )call )assignment )expression_statement )block (finally_clause (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_chdir) identifier_chdir )attribute (argument_list (identifier_current_directory) identifier_current_directory )argument_list )call )expression_statement )block )finally_clause )try_statement (return_statement (call (identifier_configuration_to_dict) identifier_configuration_to_dict (argument_list (identifier_handlers) identifier_handlers )argument_list )call )return_statement )block )function_definition )module
Read given configuration file and returns options from it as a dict. :param str|unicode filepath: Path to configuration file to get options from. :param bool find_others: Whether to search for other configuration files which could be on in various places. :param bool ignore_option_errors: Whether to silently ignore options, values of which could not be resolved (e.g. due to exceptions in directives such as file:, attr:, etc.). If False exceptions are propagated as expected. :rtype: dict
(module (function_definition (function_name_is_job_complete) function_name_is_job_complete (parameters (identifier_job_id) identifier_job_id (default_parameter (identifier_conn) identifier_conn (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_result) identifier_result (False) False )assignment )expression_statement (expression_statement (assignment (identifier_job) identifier_job (call (attribute (call (attribute (identifier_RBJ) identifier_RBJ (identifier_get) identifier_get )attribute (argument_list (identifier_job_id) identifier_job_id )argument_list )call (identifier_run) identifier_run )attribute (argument_list (identifier_conn) identifier_conn )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (identifier_job) identifier_job (comparison_operator (call (attribute (identifier_job) identifier_job (identifier_get) identifier_get )attribute (argument_list (identifier_STATUS_FIELD) identifier_STATUS_FIELD )argument_list )call (identifier_COMPLETED) identifier_COMPLETED )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_result) identifier_result (identifier_job) identifier_job )assignment )expression_statement )block )if_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
is_job_done function checks to if Brain.Jobs Status is Completed Completed is defined in statics as Done|Stopped|Error :param job_id: <str> id for the job :param conn: (optional)<connection> to run on :return: <dict> if job is done <false> if
(module (function_definition (function_name_get_volume) function_name_get_volume (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (string_"getting volumne...") string_"getting volumne..." )argument_list )call )expression_statement (expression_statement (assignment (pattern_list (identifier_cmd) identifier_cmd (identifier_url) identifier_url )pattern_list (subscript (identifier_DEVICE_URLS) identifier_DEVICE_URLS (string_"get_volume") string_"get_volume" )subscript )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__exec) identifier__exec )attribute (argument_list (identifier_cmd) identifier_cmd (identifier_url) identifier_url )argument_list )call )return_statement )block )function_definition )module
returns the current volume
(module (function_definition (function_name_complete_query) function_name_complete_query (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_query) identifier_query (identifier_page_size) identifier_page_size (default_parameter (identifier_language_codes) identifier_language_codes (None) None )default_parameter (default_parameter (identifier_company_name) identifier_company_name (None) None )default_parameter (default_parameter (identifier_scope) identifier_scope (None) None )default_parameter (default_parameter (identifier_type_) identifier_type_ (None) None )default_parameter (default_parameter (identifier_retry) identifier_retry (attribute (attribute (attribute (attribute (identifier_google) identifier_google (identifier_api_core) identifier_api_core )attribute (identifier_gapic_v1) identifier_gapic_v1 )attribute (identifier_method) identifier_method )attribute (identifier_DEFAULT) identifier_DEFAULT )attribute )default_parameter (default_parameter (identifier_timeout) identifier_timeout (attribute (attribute (attribute (attribute (identifier_google) identifier_google (identifier_api_core) identifier_api_core )attribute (identifier_gapic_v1) identifier_gapic_v1 )attribute (identifier_method) identifier_method )attribute (identifier_DEFAULT) identifier_DEFAULT )attribute )default_parameter (default_parameter (identifier_metadata) identifier_metadata (None) None )default_parameter )parameters (block (if_statement (comparison_operator (string_"complete_query") string_"complete_query" (attribute (identifier_self) identifier_self (identifier__inner_api_calls) identifier__inner_api_calls )attribute )comparison_operator (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__inner_api_calls) identifier__inner_api_calls )attribute (string_"complete_query") string_"complete_query" )subscript (call (attribute (attribute (attribute (attribute (identifier_google) identifier_google (identifier_api_core) identifier_api_core )attribute (identifier_gapic_v1) identifier_gapic_v1 )attribute (identifier_method) identifier_method )attribute (identifier_wrap_method) identifier_wrap_method )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_transport) identifier_transport )attribute (identifier_complete_query) identifier_complete_query )attribute (keyword_argument (identifier_default_retry) identifier_default_retry (attribute (subscript (attribute (identifier_self) identifier_self (identifier__method_configs) identifier__method_configs )attribute (string_"CompleteQuery") string_"CompleteQuery" )subscript (identifier_retry) identifier_retry )attribute )keyword_argument (keyword_argument (identifier_default_timeout) identifier_default_timeout (attribute (subscript (attribute (identifier_self) identifier_self (identifier__method_configs) identifier__method_configs )attribute (string_"CompleteQuery") string_"CompleteQuery" )subscript (identifier_timeout) identifier_timeout )attribute )keyword_argument (keyword_argument (identifier_client_info) identifier_client_info (attribute (identifier_self) identifier_self (identifier__client_info) identifier__client_info )attribute )keyword_argument )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_request) identifier_request (call (attribute (identifier_completion_service_pb2) identifier_completion_service_pb2 (identifier_CompleteQueryRequest) identifier_CompleteQueryRequest )attribute (argument_list (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument (keyword_argument (identifier_query) identifier_query (identifier_query) identifier_query )keyword_argument (keyword_argument (identifier_page_size) identifier_page_size (identifier_page_size) identifier_page_size )keyword_argument (keyword_argument (identifier_language_codes) identifier_language_codes (identifier_language_codes) identifier_language_codes )keyword_argument (keyword_argument (identifier_company_name) identifier_company_name (identifier_company_name) identifier_company_name )keyword_argument (keyword_argument (identifier_scope) identifier_scope (identifier_scope) identifier_scope )keyword_argument (keyword_argument (identifier_type) identifier_type (identifier_type_) identifier_type_ )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (subscript (attribute (identifier_self) identifier_self (identifier__inner_api_calls) identifier__inner_api_calls )attribute (string_"complete_query") string_"complete_query" )subscript (argument_list (identifier_request) identifier_request (keyword_argument (identifier_retry) identifier_retry (identifier_retry) identifier_retry )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (identifier_timeout) identifier_timeout )keyword_argument (keyword_argument (identifier_metadata) identifier_metadata (identifier_metadata) identifier_metadata )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box. Example: >>> from google.cloud import talent_v4beta1 >>> >>> client = talent_v4beta1.CompletionClient() >>> >>> name = client.project_path('[PROJECT]') >>> >>> # TODO: Initialize `query`: >>> query = '' >>> >>> # TODO: Initialize `page_size`: >>> page_size = 0 >>> >>> response = client.complete_query(name, query, page_size) Args: name (str): Required. Resource name of project the completion is performed within. The format is "projects/{project\_id}", for example, "projects/api-test-project". query (str): Required. The query used to generate suggestions. The maximum number of allowed characters is 255. page_size (int): Required. Completion result count. The maximum allowed page size is 10. language_codes (list[str]): Optional. The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see `Tags for Identifying Languages <https://tools.ietf.org/html/bcp47>`__. For ``CompletionType.JOB_TITLE`` type, only open jobs with the same ``language_codes`` are returned. For ``CompletionType.COMPANY_NAME`` type, only companies having open jobs with the same ``language_codes`` are returned. For ``CompletionType.COMBINED`` type, only open jobs with the same ``language_codes`` or companies having open jobs with the same ``language_codes`` are returned. The maximum number of allowed characters is 255. company_name (str): Optional. If provided, restricts completion to specified company. The format is "projects/{project\_id}/companies/{company\_id}", for example, "projects/api-test-project/companies/foo". scope (~google.cloud.talent_v4beta1.types.CompletionScope): Optional. The scope of the completion. The defaults is ``CompletionScope.PUBLIC``. type_ (~google.cloud.talent_v4beta1.types.CompletionType): Optional. The completion topic. The default is ``CompletionType.COMBINED``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. timeout (Optional[float]): The amount of time, in seconds, to wait for the request to complete. Note that if ``retry`` is specified, the timeout applies to each individual attempt. metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata that is provided to the method. Returns: A :class:`~google.cloud.talent_v4beta1.types.CompleteQueryResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request failed for any reason. google.api_core.exceptions.RetryError: If the request failed due to a retryable error and retry attempts failed. ValueError: If the parameters are invalid.
(module (function_definition (function_name__get_stddev_deep_soil) function_name__get_stddev_deep_soil (parameters (identifier_self) identifier_self (identifier_mag) identifier_mag (identifier_imt) identifier_imt )parameters (block (if_statement (comparison_operator (identifier_mag) identifier_mag (integer_7) integer_7 )comparison_operator (block (expression_statement (assignment (identifier_mag) identifier_mag (integer_7) integer_7 )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_C) identifier_C (subscript (attribute (identifier_self) identifier_self (identifier_COEFFS_SOIL) identifier_COEFFS_SOIL )attribute (identifier_imt) identifier_imt )subscript )assignment )expression_statement (return_statement (binary_operator (subscript (identifier_C) identifier_C (string_'sigma0') string_'sigma0' )subscript (binary_operator (subscript (identifier_C) identifier_C (string_'magfactor') string_'magfactor' )subscript (identifier_mag) identifier_mag )binary_operator )binary_operator )return_statement )block )function_definition )module
Calculate and return total standard deviation for deep soil sites. Implements formulae from the last column of table 4.
(module (function_definition (function_name_device_status) function_name_device_status (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary (pair (string_'active') string_'active' (subscript (attribute (identifier_self) identifier_self (identifier_device) identifier_device )attribute (string_'active') string_'active' )subscript )pair (pair (string_'offline') string_'offline' (subscript (attribute (identifier_self) identifier_self (identifier_device) identifier_device )attribute (string_'offline') string_'offline' )subscript )pair (pair (string_'last_update') string_'last_update' (attribute (identifier_self) identifier_self (identifier_last_update) identifier_last_update )attribute )pair (pair (string_'battery_level') string_'battery_level' (attribute (identifier_self) identifier_self (identifier_battery_level) identifier_battery_level )attribute )pair )dictionary )return_statement )block )function_definition )module
Status of device.
(module (function_definition (function_name__add_data) function_name__add_data (parameters (identifier_self) identifier_self (identifier_plotter_cls) identifier_plotter_cls (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (identifier_plotter_cls) identifier_plotter_cls (argument_list (attribute (identifier_self) identifier_self (identifier__da) identifier__da )attribute (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Visualize this data array Parameters ---------- %(Plotter.parameters.no_data)s Returns ------- psyplot.plotter.Plotter The plotter that visualizes the data
(module (function_definition (function_name_easybake) function_name_easybake (parameters (identifier_css_in) identifier_css_in (default_parameter (identifier_html_in) identifier_html_in (attribute (identifier_sys) identifier_sys (identifier_stdin) identifier_stdin )attribute )default_parameter (default_parameter (identifier_html_out) identifier_html_out (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute )default_parameter (default_parameter (identifier_last_step) identifier_last_step (None) None )default_parameter (default_parameter (identifier_coverage_file) identifier_coverage_file (None) None )default_parameter (default_parameter (identifier_use_repeatable_ids) identifier_use_repeatable_ids (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_html_doc) identifier_html_doc (call (attribute (identifier_etree) identifier_etree (identifier_parse) identifier_parse )attribute (argument_list (identifier_html_in) identifier_html_in )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_oven) identifier_oven (call (identifier_Oven) identifier_Oven (argument_list (identifier_css_in) identifier_css_in (identifier_use_repeatable_ids) identifier_use_repeatable_ids )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_oven) identifier_oven (identifier_bake) identifier_bake )attribute (argument_list (identifier_html_doc) identifier_html_doc (identifier_last_step) identifier_last_step )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (call (attribute (identifier_etree) identifier_etree (identifier_tostring) identifier_tostring )attribute (argument_list (identifier_html_doc) identifier_html_doc (keyword_argument (identifier_method) identifier_method (string_"xml") string_"xml" )keyword_argument )argument_list )call (identifier_decode) identifier_decode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call (keyword_argument (identifier_file) identifier_file (identifier_html_out) identifier_html_out )keyword_argument )argument_list )call )expression_statement (if_statement (identifier_coverage_file) identifier_coverage_file (block (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_'SF:{}') string_'SF:{}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_css_in) identifier_css_in (identifier_name) identifier_name )attribute )argument_list )call (keyword_argument (identifier_file) identifier_file (identifier_coverage_file) identifier_coverage_file )keyword_argument )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (identifier_oven) identifier_oven (identifier_get_coverage_report) identifier_get_coverage_report )attribute (argument_list )argument_list )call (keyword_argument (identifier_file) identifier_file (identifier_coverage_file) identifier_coverage_file )keyword_argument )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_'end_of_record') string_'end_of_record' (keyword_argument (identifier_file) identifier_file (identifier_coverage_file) identifier_coverage_file )keyword_argument )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Process the given HTML file stream with the css stream.
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self (identifier_session) identifier_session (identifier_directory) identifier_directory (identifier_name) identifier_name (default_parameter (identifier_replaceParamFile) identifier_replaceParamFile (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier_raster) identifier_raster )attribute (None) None )comparison_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier_rasterText) identifier_rasterText )attribute (None) None )comparison_operator )boolean_operator (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_RasterMapFile) identifier_RasterMapFile (identifier_self) identifier_self )argument_list )call (identifier_write) identifier_write )attribute (argument_list (identifier_session) identifier_session (identifier_directory) identifier_directory (identifier_name) identifier_name (identifier_replaceParamFile) identifier_replaceParamFile (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Wrapper for GsshaPyFileObjectBase write method
(module (function_definition (function_name__authenticate) function_name__authenticate (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_opts) identifier_opts (dictionary (pair (string_'domain') string_'domain' (attribute (identifier_self) identifier_self (identifier__domain) identifier__domain )attribute )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (identifier_opts) identifier_opts (identifier_update) identifier_update )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__auth) identifier__auth )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier__api) identifier__api )attribute (identifier_domain) identifier_domain )attribute (identifier_info) identifier_info )attribute (argument_list (identifier_opts) identifier_opts )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__validate_response) identifier__validate_response )attribute (argument_list (keyword_argument (identifier_response) identifier_response (identifier_response) identifier_response )keyword_argument (keyword_argument (identifier_message) identifier_message (string_'Failed to authenticate') string_'Failed to authenticate' )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_domain_id) identifier_domain_id )attribute (integer_1) integer_1 )assignment )expression_statement (return_statement (True) True )return_statement )block )function_definition )module
run any request against the API just to make sure the credentials are valid :return bool: success status :raises Exception: on error
(module (function_definition (function_name_unhook_symbol) function_name_unhook_symbol (parameters (identifier_self) identifier_self (identifier_symbol_name) identifier_symbol_name )parameters (block (expression_statement (assignment (identifier_sym) identifier_sym (call (attribute (attribute (identifier_self) identifier_self (identifier_loader) identifier_loader )attribute (identifier_find_symbol) identifier_find_symbol )attribute (argument_list (identifier_symbol_name) identifier_symbol_name )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_sym) identifier_sym (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_l) identifier_l (identifier_warning) identifier_warning )attribute (argument_list (string_"Could not find symbol %s") string_"Could not find symbol %s" (identifier_symbol_name) identifier_symbol_name )argument_list )call )expression_statement (return_statement (False) False )return_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_sym) identifier_sym (identifier_owner) identifier_owner )attribute (attribute (attribute (identifier_self) identifier_self (identifier_loader) identifier_loader )attribute (identifier__extern_object) identifier__extern_object )attribute )comparison_operator (block (expression_statement (call (attribute (identifier_l) identifier_l (identifier_warning) identifier_warning )attribute (argument_list (string_"Refusing to unhook external symbol %s, replace it with another hook if you want to change it") string_"Refusing to unhook external symbol %s, replace it with another hook if you want to change it" (identifier_symbol_name) identifier_symbol_name )argument_list )call )expression_statement (return_statement (False) False )return_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_hook_addr) identifier_hook_addr (identifier__) identifier__ )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_simos) identifier_simos )attribute (identifier_prepare_function_symbol) identifier_prepare_function_symbol )attribute (argument_list (identifier_symbol_name) identifier_symbol_name (keyword_argument (identifier_basic_addr) identifier_basic_addr (attribute (identifier_sym) identifier_sym (identifier_rebased_addr) identifier_rebased_addr )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_unhook) identifier_unhook )attribute (argument_list (identifier_hook_addr) identifier_hook_addr )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )function_definition )module
Remove the hook on a symbol. This function will fail if the symbol is provided by the extern object, as that would result in a state where analysis would be unable to cope with a call to this symbol.
(module (function_definition (function_name_delete) function_name_delete (parameters (identifier_self) identifier_self (default_parameter (identifier_json) identifier_json (None) None )default_parameter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier__call) identifier__call )attribute (argument_list (string_'delete') string_'delete' (keyword_argument (identifier_url) identifier_url (attribute (identifier_self) identifier_self (identifier_endpoint) identifier_endpoint )attribute )keyword_argument (keyword_argument (identifier_json) identifier_json (identifier_json) identifier_json )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Send a DELETE request and return the JSON decoded result. Args: json (dict, optional): Object to encode and send in request. Returns: mixed: JSON decoded response data.
(module (function_definition (function_name_fill_altgoids) function_name_fill_altgoids (parameters (identifier_go2obj) identifier_go2obj )parameters (block (expression_statement (assignment (identifier_alt2obj) identifier_alt2obj (dictionary_comprehension (pair (identifier_altgo) identifier_altgo (identifier_goobj) identifier_goobj )pair (for_in_clause (identifier_goobj) identifier_goobj (call (attribute (identifier_go2obj) identifier_go2obj (identifier_values) identifier_values )attribute (argument_list )argument_list )call )for_in_clause (for_in_clause (identifier_altgo) identifier_altgo (attribute (identifier_goobj) identifier_goobj (identifier_alt_ids) identifier_alt_ids )attribute )for_in_clause )dictionary_comprehension )assignment )expression_statement (for_statement (pattern_list (identifier_goid) identifier_goid (identifier_goobj) identifier_goobj )pattern_list (call (attribute (identifier_alt2obj) identifier_alt2obj (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (assignment (subscript (identifier_go2obj) identifier_go2obj (identifier_goid) identifier_goid )subscript (identifier_goobj) identifier_goobj )assignment )expression_statement )block )for_statement )block )function_definition )module
Given a go2obj containing key GO IDs, fill with all alternate GO IDs.