sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_createVertex) function_name_createVertex (parameters (identifier_self) identifier_self (identifier_collectionName) identifier_collectionName (identifier_docAttributes) identifier_docAttributes (default_parameter (identifier_waitForSync) identifier_waitForSync (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_url) identifier_url (binary_operator (string_"%s/vertex/%s") string_"%s/vertex/%s" (tuple (attribute (identifier_self) identifier_self (identifier_URL) identifier_URL )attribute (identifier_collectionName) identifier_collectionName )tuple )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_store) identifier_store (call (attribute (identifier_DOC) identifier_DOC (identifier_DocumentStore) identifier_DocumentStore )attribute (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_database) identifier_database )attribute (identifier_collectionName) identifier_collectionName )subscript (keyword_argument (identifier_validators) identifier_validators (attribute (subscript (attribute (identifier_self) identifier_self (identifier_database) identifier_database )attribute (identifier_collectionName) identifier_collectionName )subscript (identifier__fields) identifier__fields )attribute )keyword_argument (keyword_argument (identifier_initDct) identifier_initDct (identifier_docAttributes) identifier_docAttributes )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_store) identifier_store (identifier_validate) identifier_validate )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_r) identifier_r (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_connection) identifier_connection )attribute (identifier_session) identifier_session )attribute (identifier_post) identifier_post )attribute (argument_list (identifier_url) identifier_url (keyword_argument (identifier_data) identifier_data (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_docAttributes) identifier_docAttributes (keyword_argument (identifier_default) identifier_default (identifier_str) identifier_str )keyword_argument )argument_list )call )keyword_argument (keyword_argument (identifier_params) identifier_params (dictionary (pair (string_'waitForSync') string_'waitForSync' (identifier_waitForSync) identifier_waitForSync )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (attribute (identifier_r) identifier_r (identifier_json) identifier_json )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (attribute (identifier_r) identifier_r (identifier_status_code) identifier_status_code )attribute (integer_201) integer_201 )comparison_operator (comparison_operator (attribute (identifier_r) identifier_r (identifier_status_code) identifier_status_code )attribute (integer_202) integer_202 )comparison_operator )boolean_operator (block (return_statement (subscript (subscript (attribute (identifier_self) identifier_self (identifier_database) identifier_database )attribute (identifier_collectionName) identifier_collectionName )subscript (subscript (subscript (identifier_data) identifier_data (string_"vertex") string_"vertex" )subscript (string_"_key") string_"_key" )subscript )subscript )return_statement )block )if_statement (raise_statement (call (identifier_CreationError) identifier_CreationError (argument_list (binary_operator (string_"Unable to create vertice, %s") string_"Unable to create vertice, %s" (subscript (identifier_data) identifier_data (string_"errorMessage") string_"errorMessage" )subscript )binary_operator (identifier_data) identifier_data )argument_list )call )raise_statement )block )function_definition )module
adds a vertex to the graph and returns it
(module (function_definition (function_name_file_search) function_name_file_search (parameters (identifier_self) identifier_self (identifier_query) identifier_query (default_parameter (identifier_offset) identifier_offset (None) None )default_parameter (default_parameter (identifier_timeout) identifier_timeout (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_params) identifier_params (call (identifier_dict) identifier_dict (argument_list (keyword_argument (identifier_apikey) identifier_apikey (attribute (identifier_self) identifier_self (identifier_api_key) identifier_api_key )attribute )keyword_argument (keyword_argument (identifier_query) identifier_query (identifier_query) identifier_query )keyword_argument (keyword_argument (identifier_offset) identifier_offset (identifier_offset) identifier_offset )keyword_argument )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_base) identifier_base )attribute (string_'file/search') string_'file/search' )binary_operator (keyword_argument (identifier_params) identifier_params (identifier_params) identifier_params )keyword_argument (keyword_argument (identifier_proxies) identifier_proxies (attribute (identifier_self) identifier_self (identifier_proxies) identifier_proxies )attribute )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (identifier_timeout) identifier_timeout )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (attribute (identifier_requests) identifier_requests (identifier_RequestException) identifier_RequestException )attribute (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (return_statement (call (identifier_dict) identifier_dict (argument_list (keyword_argument (identifier_error) identifier_error (call (identifier_str) identifier_str (argument_list (identifier_e) identifier_e )argument_list )call )keyword_argument )argument_list )call )return_statement )block )except_clause )try_statement (return_statement (call (identifier__return_response_and_status_code) identifier__return_response_and_status_code (argument_list (identifier_response) identifier_response )argument_list )call )return_statement )block )function_definition )module
Search for samples. In addition to retrieving all information on a particular file, VirusTotal allows you to perform what we call "advanced reverse searches". Reverse searches take you from a file property to a list of files that match that property. For example, this functionality enables you to retrieve all those files marked by at least one antivirus vendor as Zbot, or all those files that have a size under 90KB and are detected by at least 10 antivirus solutions, or all those PDF files that have an invalid XREF section, etc. This API is equivalent to VirusTotal Intelligence advanced searches. A very wide variety of search modifiers are available, including: file size, file type, first submission date to VirusTotal, last submission date to VirusTotal, number of positives, dynamic behavioural properties, binary content, submission file name, and a very long etcetera. The full list of search modifiers allowed for file search queries is documented at: https://www.virustotal.com/intelligence/help/file-search/#search-modifiers NOTE: Daily limited! No matter what API step you have licensed, this API call is limited to 50K requests per day. If you need any more, chances are you are approaching your engineering problem erroneously and you can probably solve it using the file distribution call. Do not hesitate to contact us with your particular use case. EXAMPLE: search_options = 'type:peexe size:90kb+ positives:5+ behaviour:"taskkill"' :param query: A search modifier compliant file search query. :param offset: (optional) The offset value returned by a previously issued identical query, allows you to paginate over the results. If not specified the first 300 matching files sorted according to last submission date to VirusTotal in a descending fashion will be returned. :param timeout: The amount of time in seconds the request should wait before timing out. :return: JSON response - By default the list returned contains at most 300 hashes, ordered according to last submission date to VirusTotal in a descending fashion.
(module (function_definition (function_name_getbit) function_name_getbit (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_offset) identifier_offset )parameters (block (expression_statement (assignment (identifier_key) identifier_key (call (attribute (identifier_self) identifier_self (identifier__encode) identifier__encode )attribute (argument_list (identifier_key) identifier_key )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_index) identifier_index (identifier_bits) identifier_bits (identifier_mask) identifier_mask )pattern_list (call (attribute (identifier_self) identifier_self (identifier__get_bits_and_offset) identifier__get_bits_and_offset )attribute (argument_list (identifier_key) identifier_key (identifier_offset) identifier_offset )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_index) identifier_index (call (identifier_len) identifier_len (argument_list (identifier_bits) identifier_bits )argument_list )call )comparison_operator (block (return_statement (integer_0) integer_0 )return_statement )block )if_statement (return_statement (conditional_expression (integer_1) integer_1 (parenthesized_expression (binary_operator (subscript (identifier_bits) identifier_bits (identifier_index) identifier_index )subscript (identifier_mask) identifier_mask )binary_operator )parenthesized_expression (integer_0) integer_0 )conditional_expression )return_statement )block )function_definition )module
Returns the bit value at ``offset`` in ``key``.
(module (function_definition (function_name__md5) function_name__md5 (parameters (identifier_path) identifier_path (default_parameter (identifier_blocksize) identifier_blocksize (binary_operator (integer_2) integer_2 (integer_20) integer_20 )binary_operator )default_parameter )parameters (block (expression_statement (assignment (identifier_m) identifier_m (call (attribute (identifier_hashlib) identifier_hashlib (identifier_md5) identifier_md5 )attribute (argument_list )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_path) identifier_path (string_'rb') string_'rb' )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (while_statement (True) True (block (expression_statement (assignment (identifier_buf) identifier_buf (call (attribute (identifier_f) identifier_f (identifier_read) identifier_read )attribute (argument_list (identifier_blocksize) identifier_blocksize )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_buf) identifier_buf )not_operator (block (break_statement )break_statement )block )if_statement (expression_statement (call (attribute (identifier_m) identifier_m (identifier_update) identifier_update )attribute (argument_list (identifier_buf) identifier_buf )argument_list )call )expression_statement )block )while_statement )block )with_statement (return_statement (call (attribute (identifier_m) identifier_m (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Compute the checksum of a file.
(module (function_definition (function_name_is_accessable_by_others) function_name_is_accessable_by_others (parameters (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_mode) identifier_mode (subscript (call (attribute (identifier_os) identifier_os (identifier_stat) identifier_stat )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call (attribute (identifier_stat) identifier_stat (identifier_ST_MODE) identifier_ST_MODE )attribute )subscript )assignment )expression_statement (return_statement (binary_operator (identifier_mode) identifier_mode (parenthesized_expression (binary_operator (attribute (identifier_stat) identifier_stat (identifier_S_IRWXG) identifier_S_IRWXG )attribute (attribute (identifier_stat) identifier_stat (identifier_S_IRWXO) identifier_S_IRWXO )attribute )binary_operator )parenthesized_expression )binary_operator )return_statement )block )function_definition )module
Check if file is group or world accessable.
(module (function_definition (function_name_list_service_profiles) function_name_list_service_profiles (parameters (identifier_self) identifier_self (default_parameter (identifier_retrieve_all) identifier_retrieve_all (True) True )default_parameter (dictionary_splat_pattern (identifier__params) identifier__params )dictionary_splat_pattern )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_list) identifier_list )attribute (argument_list (string_'service_profiles') string_'service_profiles' (attribute (identifier_self) identifier_self (identifier_service_profiles_path) identifier_service_profiles_path )attribute (identifier_retrieve_all) identifier_retrieve_all (dictionary_splat (identifier__params) identifier__params )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Fetches a list of all Neutron service flavor profiles.
(module (function_definition (function_name_atomic) function_name_atomic (parameters (identifier_self) identifier_self (identifier_func) identifier_func )parameters (block (decorated_definition (decorator (call (identifier_wraps) identifier_wraps (argument_list (identifier_func) identifier_func )argument_list )call )decorator (function_definition (function_name_wrapper) function_name_wrapper (parameters (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_session) identifier_session (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute )assignment )expression_statement (expression_statement (assignment (identifier_session_info) identifier_session_info (attribute (identifier_session) identifier_session (identifier_info) identifier_info )attribute )assignment )expression_statement (if_statement (call (attribute (identifier_session_info) identifier_session_info (identifier_get) identifier_get )attribute (argument_list (identifier__ATOMIC_FLAG_SESSION_INFO_KEY) identifier__ATOMIC_FLAG_SESSION_INFO_KEY )argument_list )call (block (return_statement (call (identifier_func) identifier_func (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_f) identifier_f (call (call (identifier_retry_on_deadlock) identifier_retry_on_deadlock (argument_list (identifier_session) identifier_session )argument_list )call (argument_list (identifier_func) identifier_func )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_session_info) identifier_session_info (identifier__ATOMIC_FLAG_SESSION_INFO_KEY) identifier__ATOMIC_FLAG_SESSION_INFO_KEY )subscript (True) True )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_f) identifier_f (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_flush) identifier_flush )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_expunge_all) identifier_expunge_all )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_commit) identifier_commit )attribute (argument_list )argument_list )call )expression_statement (return_statement (identifier_result) identifier_result )return_statement )block (except_clause (identifier_Exception) identifier_Exception (block (expression_statement (call (attribute (identifier_session) identifier_session (identifier_rollback) identifier_rollback )attribute (argument_list )argument_list )call )expression_statement (raise_statement )raise_statement )block )except_clause (finally_clause (block (expression_statement (assignment (subscript (identifier_session_info) identifier_session_info (identifier__ATOMIC_FLAG_SESSION_INFO_KEY) identifier__ATOMIC_FLAG_SESSION_INFO_KEY )subscript (False) False )assignment )expression_statement )block )finally_clause )try_statement )block )function_definition )decorated_definition (return_statement (identifier_wrapper) identifier_wrapper )return_statement )block )function_definition )module
A decorator that wraps a function in an atomic block. Example:: db = CustomSQLAlchemy() @db.atomic def f(): write_to_db('a message') return 'OK' assert f() == 'OK' This code defines the function ``f``, which is wrapped in an atomic block. Wrapping a function in an atomic block gives several guarantees: 1. The database transaction will be automatically committed if the function returns normally, and automatically rolled back if the function raises unhandled exception. 2. When the transaction is committed, all objects in ``db.session`` will be expunged. This means that no lazy loading will be performed on them. 3. If a transaction serialization error occurs during the execution of the function, the function will be re-executed. (It might be re-executed several times.) Atomic blocks can be nested, but in this case the outermost block takes full control of transaction's life-cycle, and inner blocks do nothing.
(module (function_definition (function_name_days_since_last_snowfall) function_name_days_since_last_snowfall (parameters (identifier_self) identifier_self (default_parameter (identifier_value) identifier_value (integer_99) integer_99 )default_parameter )parameters (block (if_statement (comparison_operator (identifier_value) identifier_value (None) None )comparison_operator (block (try_statement (block (expression_statement (assignment (identifier_value) identifier_value (call (identifier_int) identifier_int (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (concatenated_string (string_'value {} need to be of type int ') string_'value {} need to be of type int ' (string_'for field `days_since_last_snowfall`') string_'for field `days_since_last_snowfall`' )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_value) identifier_value )argument_list )call )argument_list )call )raise_statement )block )except_clause )try_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__days_since_last_snowfall) identifier__days_since_last_snowfall )attribute (identifier_value) identifier_value )assignment )expression_statement )block )function_definition )module
Corresponds to IDD Field `days_since_last_snowfall` Args: value (int): value for IDD Field `days_since_last_snowfall` Missing value: 99 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
(module (function_definition (function_name_pvalues) function_name_pvalues (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_compute_statistics) identifier_compute_statistics )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_lml_alts) identifier_lml_alts (call (attribute (identifier_self) identifier_self (identifier_alt_lmls) identifier_alt_lmls )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lml_null) identifier_lml_null (call (attribute (identifier_self) identifier_self (identifier_null_lml) identifier_null_lml )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lrs) identifier_lrs (binary_operator (binary_operator (unary_operator (integer_2) integer_2 )unary_operator (identifier_lml_null) identifier_lml_null )binary_operator (binary_operator (integer_2) integer_2 (call (identifier_asarray) identifier_asarray (argument_list (identifier_lml_alts) identifier_lml_alts )argument_list )call )binary_operator )binary_operator )assignment )expression_statement (import_from_statement (dotted_name (identifier_scipy) identifier_scipy (identifier_stats) identifier_stats )dotted_name (dotted_name (identifier_chi2) identifier_chi2 )dotted_name )import_from_statement (expression_statement (assignment (identifier_chi2) identifier_chi2 (call (identifier_chi2) identifier_chi2 (argument_list (keyword_argument (identifier_df) identifier_df (integer_1) integer_1 )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_chi2) identifier_chi2 (identifier_sf) identifier_sf )attribute (argument_list (identifier_lrs) identifier_lrs )argument_list )call )return_statement )block )function_definition )module
Association p-value for candidate markers.
(module (function_definition (function_name__register_service_type) function_name__register_service_type (parameters (identifier_cls) identifier_cls (identifier_subclass) identifier_subclass )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_subclass) identifier_subclass (string_'__service_type__') string_'__service_type__' )argument_list )call (block (expression_statement (assignment (subscript (attribute (identifier_cls) identifier_cls (identifier__service_type_mapping) identifier__service_type_mapping )attribute (attribute (identifier_subclass) identifier_subclass (identifier___service_type__) identifier___service_type__ )attribute )subscript (identifier_subclass) identifier_subclass )assignment )expression_statement (if_statement (attribute (identifier_subclass) identifier_subclass (identifier___service_type__) identifier___service_type__ )attribute (block (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_subclass) identifier_subclass (attribute (identifier_subclass) identifier_subclass (identifier___service_type__) identifier___service_type__ )attribute (call (identifier_property) identifier_property (argument_list (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (identifier_x) identifier_x )lambda )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )if_statement (return_statement (identifier_subclass) identifier_subclass )return_statement )block )function_definition )module
Registers subclass handlers of various service-type-specific service implementations. Look for classes decorated with @Folder._register_service_type for hints on how this works.
(module (function_definition (function_name_get_nodes) function_name_get_nodes (parameters (default_parameter (identifier_n) identifier_n (integer_8) integer_8 )default_parameter (default_parameter (identifier_exclude) identifier_exclude (list )list )default_parameter (default_parameter (identifier_loop) identifier_loop (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_report) identifier_report (call (identifier__get_ukko_report) identifier__get_ukko_report (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_nodes) identifier_nodes (call (identifier__parse_ukko_report) identifier__parse_ukko_report (argument_list (identifier_report) identifier_report )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (list )list )assignment )expression_statement (while_statement (boolean_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_ret) identifier_ret )argument_list )call (identifier_n) identifier_n )comparison_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_nodes) identifier_nodes )argument_list )call (integer_0) integer_0 )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_node) identifier_node (subscript (identifier_nodes) identifier_nodes (integer_0) integer_0 )subscript )assignment )expression_statement (if_statement (comparison_operator (identifier_node) identifier_node (identifier_exclude) identifier_exclude )comparison_operator (block (expression_statement (assignment (identifier_reachable) identifier_reachable (True) True )assignment )expression_statement (if_statement (comparison_operator (identifier_loop) identifier_loop (None) None )comparison_operator (block (expression_statement (assignment (identifier_reachable) identifier_reachable (call (attribute (identifier_loop) identifier_loop (identifier_run_until_complete) identifier_run_until_complete )attribute (argument_list (call (identifier__test_node) identifier__test_node (argument_list (identifier_node) identifier_node )argument_list )call )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (identifier_reachable) identifier_reachable (block (expression_statement (call (attribute (identifier_ret) identifier_ret (identifier_append) identifier_append )attribute (argument_list (identifier_node) identifier_node )argument_list )call )expression_statement )block )if_statement )block )if_statement (expression_statement (assignment (identifier_nodes) identifier_nodes (subscript (identifier_nodes) identifier_nodes (slice (integer_1) integer_1 (colon) colon )slice )subscript )assignment )expression_statement )block )while_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Get Ukko nodes with the least amount of load. May return less than *n* nodes if there are not as many nodes available, the nodes are reserved or the nodes are on the exclude list. :param int n: Number of Ukko nodes to return. :param list exclude: Nodes to exclude from the returned list. :param loop: asyncio's event loop to test if each returned node is currently loggable. The test is done by trying to connect to the node with (async)ssh. :rtype list: :returns: Locations of Ukko nodes with the least amount of load
(module (function_definition (function_name_shape_list) function_name_shape_list (parameters (identifier_x) identifier_x )parameters (block (expression_statement (assignment (identifier_x) identifier_x (call (attribute (identifier_tf) identifier_tf (identifier_convert_to_tensor) identifier_convert_to_tensor )attribute (argument_list (identifier_x) identifier_x )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (call (attribute (identifier_x) identifier_x (identifier_get_shape) identifier_get_shape )attribute (argument_list )argument_list )call (identifier_dims) identifier_dims )attribute (None) None )comparison_operator (block (return_statement (call (attribute (identifier_tf) identifier_tf (identifier_shape) identifier_shape )attribute (argument_list (identifier_x) identifier_x )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_static) identifier_static (call (attribute (call (attribute (identifier_x) identifier_x (identifier_get_shape) identifier_get_shape )attribute (argument_list )argument_list )call (identifier_as_list) identifier_as_list )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_shape) identifier_shape (call (attribute (identifier_tf) identifier_tf (identifier_shape) identifier_shape )attribute (argument_list (identifier_x) identifier_x )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_dim) identifier_dim )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_static) identifier_static )argument_list )call (block (if_statement (comparison_operator (identifier_dim) identifier_dim (None) None )comparison_operator (block (expression_statement (assignment (identifier_dim) identifier_dim (subscript (identifier_shape) identifier_shape (identifier_i) identifier_i )subscript )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_ret) identifier_ret (identifier_append) identifier_append )attribute (argument_list (identifier_dim) identifier_dim )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Return list of dims, statically where possible.
(module (function_definition (function_name__is_builtin_module) function_name__is_builtin_module (parameters (identifier_module) identifier_module )parameters (block (if_statement (boolean_operator (parenthesized_expression (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_module) identifier_module (string_'__file__') string_'__file__' )argument_list )call )not_operator )parenthesized_expression (comparison_operator (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute (attribute (identifier_sys) identifier_sys (identifier_builtin_module_names) identifier_builtin_module_names )attribute )comparison_operator )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute (attribute (identifier__stdlib) identifier__stdlib (identifier__STD_LIB_MODULES) identifier__STD_LIB_MODULES )attribute )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement (expression_statement (assignment (identifier_amp) identifier_amp (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (attribute (identifier_module) identifier_module (identifier___file__) identifier___file__ )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (string_'site-packages') string_'site-packages' (identifier_amp) identifier_amp )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement (if_statement (call (attribute (identifier_amp) identifier_amp (identifier_startswith) identifier_startswith )attribute (argument_list (identifier__STD_MODULE_DIR) identifier__STD_MODULE_DIR )argument_list )call (block (return_statement (True) True )return_statement )block )if_statement (if_statement (not_operator (comparison_operator (string_'.') string_'.' (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute )comparison_operator )not_operator (block (return_statement (False) False )return_statement )block )if_statement (expression_statement (assignment (identifier_mn_top) identifier_mn_top (subscript (call (attribute (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute (identifier_split) identifier_split )attribute (argument_list (string_'.') string_'.' )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (return_statement (comparison_operator (identifier_mn_top) identifier_mn_top (attribute (identifier__stdlib) identifier__stdlib (identifier__STD_LIB_MODULES) identifier__STD_LIB_MODULES )attribute )comparison_operator )return_statement )block )function_definition )module
Is builtin or part of standard library
(module (function_definition (function_name__randomized_roundoff_to_bfloat16) function_name__randomized_roundoff_to_bfloat16 (parameters (identifier_x) identifier_x (identifier_noise) identifier_noise (identifier_cand1) identifier_cand1 (identifier_cand2) identifier_cand2 )parameters (block (expression_statement (assignment (identifier_cand1_f) identifier_cand1_f (call (attribute (identifier_tf) identifier_tf (identifier_to_float) identifier_to_float )attribute (argument_list (identifier_cand1) identifier_cand1 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cand2_f) identifier_cand2_f (call (attribute (identifier_tf) identifier_tf (identifier_to_float) identifier_to_float )attribute (argument_list (identifier_cand2) identifier_cand2 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_step_size) identifier_step_size (binary_operator (identifier_cand2_f) identifier_cand2_f (identifier_cand1_f) identifier_cand1_f )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_fpart) identifier_fpart (binary_operator (parenthesized_expression (binary_operator (identifier_x) identifier_x (identifier_cand1_f) identifier_cand1_f )binary_operator )parenthesized_expression (identifier_step_size) identifier_step_size )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (identifier_tf) identifier_tf (identifier_where) identifier_where )attribute (argument_list (call (attribute (identifier_tf) identifier_tf (identifier_greater) identifier_greater )attribute (argument_list (identifier_fpart) identifier_fpart (identifier_noise) identifier_noise )argument_list )call (identifier_cand2) identifier_cand2 (identifier_cand1) identifier_cand1 )argument_list )call )assignment )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Round-off x to cand1 or to cand2 in an unbiased way. Cand1 and cand2 are the same shape as x. For every element of x, the corresponding elements of cand1 and cand2 should be the two closest bfloat16 values to x. Order does not matter. cand1 and cand2 must differ from each other. Args: x: A float32 Tensor. noise: A Tensor broadcastable to the shape of x containing random uniform values in [0.0, 1.0]. cand1: A bfloat16 Tensor the same shape as x. cand2: A bfloat16 Tensor the same shape as x. Returns: A bfloat16 Tensor.
(module (function_definition (function_name_eval_str_to_list) function_name_eval_str_to_list (parameters (typed_parameter (identifier_input_str) identifier_input_str (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type (block (expression_statement (assignment (identifier_inner_cast) identifier_inner_cast (call (attribute (identifier_ast) identifier_ast (identifier_literal_eval) identifier_literal_eval )attribute (argument_list (identifier_input_str) identifier_input_str )argument_list )call )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_inner_cast) identifier_inner_cast (identifier_list) identifier_list )argument_list )call (block (return_statement (identifier_inner_cast) identifier_inner_cast )return_statement )block (else_clause (block (raise_statement (identifier_ValueError) identifier_ValueError )raise_statement )block )else_clause )if_statement )block )function_definition )module
Turn str into str or tuple.
(module (function_definition (function_name_weighted_mean) function_name_weighted_mean (parameters (identifier_X) identifier_X (identifier_embedding) identifier_embedding (identifier_neighbors) identifier_neighbors (identifier_distances) identifier_distances )parameters (block (expression_statement (assignment (identifier_n_samples) identifier_n_samples (subscript (attribute (identifier_X) identifier_X (identifier_shape) identifier_shape )attribute (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_n_components) identifier_n_components (subscript (attribute (identifier_embedding) identifier_embedding (identifier_shape) identifier_shape )attribute (integer_1) integer_1 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_partial_embedding) identifier_partial_embedding (call (attribute (identifier_np) identifier_np (identifier_zeros) identifier_zeros )attribute (argument_list (tuple (identifier_n_samples) identifier_n_samples (identifier_n_components) identifier_n_components )tuple )argument_list )call )assignment )expression_statement (for_statement (identifier_i) identifier_i (call (identifier_range) identifier_range (argument_list (identifier_n_samples) identifier_n_samples )argument_list )call (block (expression_statement (assignment (subscript (identifier_partial_embedding) identifier_partial_embedding (identifier_i) identifier_i )subscript (call (attribute (identifier_np) identifier_np (identifier_average) identifier_average )attribute (argument_list (subscript (identifier_embedding) identifier_embedding (subscript (identifier_neighbors) identifier_neighbors (identifier_i) identifier_i )subscript )subscript (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument (keyword_argument (identifier_weights) identifier_weights (subscript (identifier_distances) identifier_distances (identifier_i) identifier_i )subscript )keyword_argument )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_partial_embedding) identifier_partial_embedding )return_statement )block )function_definition )module
Initialize points onto an existing embedding by placing them in the weighted mean position of their nearest neighbors on the reference embedding. Parameters ---------- X: np.ndarray embedding: TSNEEmbedding neighbors: np.ndarray distances: np.ndarray Returns ------- np.ndarray
(module (function_definition (function_name_degrees_of_freedom) function_name_degrees_of_freedom (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__set_xdata) identifier__set_xdata )attribute )argument_list )call (integer_0) integer_0 )comparison_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__set_ydata) identifier__set_ydata )attribute )argument_list )call (integer_0) integer_0 )comparison_operator )boolean_operator (block (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (identifier_r) identifier_r (call (attribute (identifier_self) identifier_self (identifier_studentized_residuals) identifier_studentized_residuals )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_r) identifier_r (None) None )comparison_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_N) identifier_N (float_0.0) float_0.0 )assignment )expression_statement (for_statement (identifier_i) identifier_i (call (identifier_range) identifier_range (argument_list (call (identifier_len) identifier_len (argument_list (identifier_r) identifier_r )argument_list )call )argument_list )call (block (expression_statement (augmented_assignment (identifier_N) identifier_N (call (identifier_len) identifier_len (argument_list (subscript (identifier_r) identifier_r (identifier_i) identifier_i )subscript )argument_list )call )augmented_assignment )expression_statement )block )for_statement (return_statement (binary_operator (identifier_N) identifier_N (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__pnames) identifier__pnames )attribute )argument_list )call )binary_operator )return_statement )block )function_definition )module
Returns the number of degrees of freedom.
(module (function_definition (function_name_process_mixcloud) function_name_process_mixcloud (parameters (identifier_vargs) identifier_vargs )parameters (block (expression_statement (assignment (identifier_artist_url) identifier_artist_url (subscript (identifier_vargs) identifier_vargs (string_'artist_url') string_'artist_url' )subscript )assignment )expression_statement (if_statement (comparison_operator (string_'mixcloud.com') string_'mixcloud.com' (identifier_artist_url) identifier_artist_url )comparison_operator (block (expression_statement (assignment (identifier_mc_url) identifier_mc_url (identifier_artist_url) identifier_artist_url )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_mc_url) identifier_mc_url (binary_operator (string_'https://mixcloud.com/') string_'https://mixcloud.com/' (identifier_artist_url) identifier_artist_url )binary_operator )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_filenames) identifier_filenames (call (identifier_scrape_mixcloud_url) identifier_scrape_mixcloud_url (argument_list (identifier_mc_url) identifier_mc_url (keyword_argument (identifier_num_tracks) identifier_num_tracks (subscript (identifier_vargs) identifier_vargs (string_'num_tracks') string_'num_tracks' )subscript )keyword_argument (keyword_argument (identifier_folders) identifier_folders (subscript (identifier_vargs) identifier_vargs (string_'folders') string_'folders' )subscript )keyword_argument (keyword_argument (identifier_custom_path) identifier_custom_path (subscript (identifier_vargs) identifier_vargs (string_'path') string_'path' )subscript )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (subscript (identifier_vargs) identifier_vargs (string_'open') string_'open' )subscript (block (expression_statement (call (identifier_open_files) identifier_open_files (argument_list (identifier_filenames) identifier_filenames )argument_list )call )expression_statement )block )if_statement (return_statement )return_statement )block )function_definition )module
Main MixCloud path.
(module (function_definition (function_name_print_docs) function_name_print_docs (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_docs) identifier_docs (dictionary )dictionary )assignment )expression_statement (for_statement (pattern_list (identifier_name) identifier_name (identifier_func) identifier_func )pattern_list (call (attribute (identifier_six) identifier_six (identifier_iteritems) identifier_iteritems )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_minion) identifier_minion )attribute (identifier_functions) identifier_functions )attribute )argument_list )call (block (if_statement (comparison_operator (identifier_name) identifier_name (identifier_docs) identifier_docs )comparison_operator (block (if_statement (attribute (identifier_func) identifier_func (identifier___doc__) identifier___doc__ )attribute (block (expression_statement (assignment (subscript (identifier_docs) identifier_docs (identifier_name) identifier_name )subscript (attribute (identifier_func) identifier_func (identifier___doc__) identifier___doc__ )attribute )assignment )expression_statement )block )if_statement )block )if_statement )block )for_statement (for_statement (identifier_name) identifier_name (call (identifier_sorted) identifier_sorted (argument_list (identifier_docs) identifier_docs )argument_list )call (block (if_statement (call (attribute (identifier_name) identifier_name (identifier_startswith) identifier_startswith )attribute (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute (identifier_get) identifier_get )attribute (argument_list (string_'fun') string_'fun' (string_'') string_'' )argument_list )call )argument_list )call (block (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_stringutils) identifier_stringutils )attribute (identifier_print_cli) identifier_print_cli )attribute (argument_list (call (attribute (string_'{0}:\n{1}\n') string_'{0}:\n{1}\n' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name (subscript (identifier_docs) identifier_docs (identifier_name) identifier_name )subscript )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )function_definition )module
Pick up the documentation for all of the modules and print it out.
(module (function_definition (function_name_face_colors) function_name_face_colors (parameters (identifier_self) identifier_self (identifier_values) identifier_values )parameters (block (if_statement (comparison_operator (identifier_values) identifier_values (None) None )comparison_operator (block (if_statement (comparison_operator (string_'face_colors') string_'face_colors' (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute )comparison_operator (block (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute (identifier_data) identifier_data )attribute (identifier_pop) identifier_pop )attribute (argument_list (string_'face_colors') string_'face_colors' )argument_list )call )expression_statement )block )if_statement (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_colors) identifier_colors (call (identifier_to_rgba) identifier_to_rgba (argument_list (identifier_values) identifier_values )argument_list )call )assignment )expression_statement (if_statement (parenthesized_expression (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier_mesh) identifier_mesh )attribute (None) None )comparison_operator (comparison_operator (attribute (identifier_colors) identifier_colors (identifier_shape) identifier_shape )attribute (tuple (integer_4) integer_4 )tuple )comparison_operator )boolean_operator )parenthesized_expression (block (expression_statement (assignment (identifier_count) identifier_count (call (identifier_len) identifier_len (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_mesh) identifier_mesh )attribute (identifier_faces) identifier_faces )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_colors) identifier_colors (call (attribute (identifier_np) identifier_np (identifier_tile) identifier_tile )attribute (argument_list (identifier_colors) identifier_colors (tuple (identifier_count) identifier_count (integer_1) integer_1 )tuple )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute (identifier_clear) identifier_clear )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute (string_'face_colors') string_'face_colors' )subscript (identifier_colors) identifier_colors )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__cache) identifier__cache )attribute (identifier_verify) identifier_verify )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Set the colors for each face of a mesh. This will apply these colors and delete any previously specified color information. Parameters ------------ colors: (len(mesh.faces), 3), set each face to the specified color (len(mesh.faces), 4), set each face to the specified color (3,) int, set the whole mesh this color (4,) int, set the whole mesh this color
(module (function_definition (function_name_wrap_value) function_name_wrap_value (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (try_statement (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_item_type) identifier_item_type )attribute (identifier_wrap_value) identifier_wrap_value )attribute (argument_list (identifier_value) identifier_value )argument_list )call )return_statement )block (except_clause (identifier_BadValueException) identifier_BadValueException (block (pass_statement )pass_statement )block )except_clause )try_statement (try_statement (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_wrap) identifier_wrap )attribute (argument_list (identifier_value) identifier_value )argument_list )call )return_statement )block (except_clause (identifier_BadValueException) identifier_BadValueException (block (pass_statement )pass_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__fail_validation) identifier__fail_validation )attribute (argument_list (identifier_value) identifier_value (binary_operator (string_'Could not wrap value as the correct type. Tried %s and %s') string_'Could not wrap value as the correct type. Tried %s and %s' (tuple (attribute (identifier_self) identifier_self (identifier_item_type) identifier_item_type )attribute (identifier_self) identifier_self )tuple )binary_operator )argument_list )call )expression_statement )block )function_definition )module
A function used to wrap a value used in a comparison. It will first try to wrap as the sequence's sub-type, and then as the sequence itself
(module (function_definition (function_name_add_fields) function_name_add_fields (parameters (identifier_self) identifier_self (identifier_fields) identifier_fields )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_fields) identifier_fields (identifier_string_types) identifier_string_types )argument_list )call (block (expression_statement (assignment (identifier_fields) identifier_fields (list (identifier_fields) identifier_fields )list )assignment )expression_statement )block (elif_clause (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_fields) identifier_fields )argument_list )call (identifier_tuple) identifier_tuple )comparison_operator (block (expression_statement (assignment (identifier_fields) identifier_fields (call (identifier_list) identifier_list (argument_list (identifier_fields) identifier_fields )argument_list )call )assignment )expression_statement )block )elif_clause )if_statement (expression_statement (assignment (identifier_field_objects) identifier_field_objects (list_comprehension (call (attribute (identifier_self) identifier_self (identifier_add_field) identifier_add_field )attribute (argument_list (identifier_field) identifier_field )argument_list )call (for_in_clause (identifier_field) identifier_field (identifier_fields) identifier_fields )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (identifier_field_objects) identifier_field_objects )return_statement )block )function_definition )module
Adds all of the passed fields to the table's current field list :param fields: The fields to select from ``table``. This can be a single field, a tuple of fields, or a list of fields. Each field can be a string or ``Field`` instance :type fields: str or tuple or list of str or list of Field or :class:`Field <querybuilder.fields.Field>`
(module (function_definition (function_name_broadcast_status) function_name_broadcast_status (parameters (identifier_self) identifier_self (identifier_status) identifier_status )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__broadcast) identifier__broadcast )attribute (argument_list (string_"transient.status") string_"transient.status" (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_status) identifier_status )argument_list )call (keyword_argument (identifier_headers) identifier_headers (dictionary (pair (string_"expires") string_"expires" (call (identifier_str) identifier_str (argument_list (call (identifier_int) identifier_int (argument_list (binary_operator (parenthesized_expression (binary_operator (integer_15) integer_15 (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )binary_operator )parenthesized_expression (integer_1000) integer_1000 )binary_operator )argument_list )call )argument_list )call )pair )dictionary )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Broadcast transient status information to all listeners
(module (function_definition (function_name_rank) function_name_rank (parameters (typed_parameter (identifier_tensor) identifier_tensor (type (identifier_BKTensor) identifier_BKTensor )type )typed_parameter )parameters (type (identifier_int) identifier_int )type (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_tensor) identifier_tensor (attribute (identifier_np) identifier_np (identifier_ndarray) identifier_ndarray )attribute )argument_list )call (block (return_statement (call (identifier_len) identifier_len (argument_list (attribute (identifier_tensor) identifier_tensor (identifier_shape) identifier_shape )attribute )argument_list )call )return_statement )block )if_statement (return_statement (call (identifier_len) identifier_len (argument_list (call (attribute (subscript (identifier_tensor) identifier_tensor (integer_0) integer_0 )subscript (identifier_size) identifier_size )attribute (argument_list )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Return the number of dimensions of a tensor
(module (function_definition (function_name_logical_drives) function_name_logical_drives (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (attribute (identifier_logical_drive) identifier_logical_drive (identifier_HPELogicalDriveCollection) identifier_HPELogicalDriveCollection )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__conn) identifier__conn )attribute (call (attribute (identifier_utils) identifier_utils (identifier_get_subresource_path_by) identifier_get_subresource_path_by )attribute (argument_list (identifier_self) identifier_self (list (string_'Links') string_'Links' (string_'LogicalDrives') string_'LogicalDrives' )list )argument_list )call (keyword_argument (identifier_redfish_version) identifier_redfish_version (attribute (identifier_self) identifier_self (identifier_redfish_version) identifier_redfish_version )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Gets the resource HPELogicalDriveCollection of ArrayControllers
(module (function_definition (function_name_prepare_input) function_name_prepare_input (parameters (identifier_self) identifier_self (identifier_extracted_str) identifier_extracted_str )parameters (block (if_statement (subscript (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute (string_'remove_whitespace') string_'remove_whitespace' )subscript (block (expression_statement (assignment (identifier_optimized_str) identifier_optimized_str (call (attribute (identifier_re) identifier_re (identifier_sub) identifier_sub )attribute (argument_list (string_' +') string_' +' (string_'') string_'' (identifier_extracted_str) identifier_extracted_str )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_optimized_str) identifier_optimized_str (identifier_extracted_str) identifier_extracted_str )assignment )expression_statement )block )else_clause )if_statement (if_statement (subscript (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute (string_'remove_accents') string_'remove_accents' )subscript (block (expression_statement (assignment (identifier_optimized_str) identifier_optimized_str (call (identifier_unidecode) identifier_unidecode (argument_list (identifier_optimized_str) identifier_optimized_str )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (subscript (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute (string_'lowercase') string_'lowercase' )subscript (block (expression_statement (assignment (identifier_optimized_str) identifier_optimized_str (call (attribute (identifier_optimized_str) identifier_optimized_str (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (for_statement (identifier_replace) identifier_replace (subscript (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute (string_'replace') string_'replace' )subscript (block (assert_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_replace) identifier_replace )argument_list )call (integer_2) integer_2 )comparison_operator (string_'A replace should be a list of 2 items') string_'A replace should be a list of 2 items' )assert_statement (expression_statement (assignment (identifier_optimized_str) identifier_optimized_str (call (attribute (identifier_optimized_str) identifier_optimized_str (identifier_replace) identifier_replace )attribute (argument_list (subscript (identifier_replace) identifier_replace (integer_0) integer_0 )subscript (subscript (identifier_replace) identifier_replace (integer_1) integer_1 )subscript )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_optimized_str) identifier_optimized_str )return_statement )block )function_definition )module
Input raw string and do transformations, as set in template file.
(module (function_definition (function_name__parse_account_information) function_name__parse_account_information (parameters (identifier_self) identifier_self (identifier_rows) identifier_rows )parameters (block (expression_statement (assignment (identifier_acc_info) identifier_acc_info (dictionary )dictionary )assignment )expression_statement (if_statement (not_operator (identifier_rows) identifier_rows )not_operator (block (return_statement )return_statement )block )if_statement (for_statement (identifier_row) identifier_row (identifier_rows) identifier_rows (block (expression_statement (assignment (identifier_cols_raw) identifier_cols_raw (call (attribute (identifier_row) identifier_row (identifier_find_all) identifier_find_all )attribute (argument_list (string_'td') string_'td' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cols) identifier_cols (list_comprehension (call (attribute (attribute (identifier_ele) identifier_ele (identifier_text) identifier_text )attribute (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (for_in_clause (identifier_ele) identifier_ele (identifier_cols_raw) identifier_cols_raw )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_field) identifier_field (identifier_value) identifier_value )pattern_list (identifier_cols) identifier_cols )assignment )expression_statement (expression_statement (assignment (identifier_field) identifier_field (call (attribute (call (attribute (call (attribute (call (attribute (identifier_field) identifier_field (identifier_replace) identifier_replace )attribute (argument_list (string_"\xa0") string_"\xa0" (string_"_") string_"_" )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_" ") string_" " (string_"_") string_"_" )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_":") string_":" (string_"") string_"" )argument_list )call (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (call (attribute (identifier_value) identifier_value (identifier_replace) identifier_replace )attribute (argument_list (string_"\xa0") string_"\xa0" (string_" ") string_" " )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_acc_info) identifier_acc_info (identifier_field) identifier_field )subscript (identifier_value) identifier_value )assignment )expression_statement )block )for_statement (expression_statement (assignment (identifier_created) identifier_created (call (identifier_parse_tibia_datetime) identifier_parse_tibia_datetime (argument_list (subscript (identifier_acc_info) identifier_acc_info (string_"created") string_"created" )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_loyalty_title) identifier_loyalty_title (conditional_expression (None) None (comparison_operator (subscript (identifier_acc_info) identifier_acc_info (string_"loyalty_title") string_"loyalty_title" )subscript (string_"(no title)") string_"(no title)" )comparison_operator (subscript (identifier_acc_info) identifier_acc_info (string_"loyalty_title") string_"loyalty_title" )subscript )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_position) identifier_position (call (attribute (identifier_acc_info) identifier_acc_info (identifier_get) identifier_get )attribute (argument_list (string_"position") string_"position" )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_account_information) identifier_account_information )attribute (call (identifier_AccountInformation) identifier_AccountInformation (argument_list (identifier_created) identifier_created (identifier_loyalty_title) identifier_loyalty_title (identifier_position) identifier_position )argument_list )call )assignment )expression_statement )block )function_definition )module
Parses the character's account information Parameters ---------- rows: :class:`list` of :class:`bs4.Tag`, optional A list of all rows contained in the table.
(module (function_definition (function_name_make_module_reload_func) function_name_make_module_reload_func (parameters (default_parameter (identifier_module_name) identifier_module_name (None) None )default_parameter (default_parameter (identifier_module_prefix) identifier_module_prefix (string_'[???]') string_'[???]' )default_parameter (default_parameter (identifier_module) identifier_module (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_module) identifier_module (call (identifier__get_module) identifier__get_module (argument_list (identifier_module_name) identifier_module_name (identifier_module) identifier_module (keyword_argument (identifier_register) identifier_register (False) False )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_module_name) identifier_module_name (None) None )comparison_operator (block (expression_statement (assignment (identifier_module_name) identifier_module_name (call (identifier_str) identifier_str (argument_list (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute )argument_list )call )assignment )expression_statement )block )if_statement (function_definition (function_name_rrr) function_name_rrr (parameters (default_parameter (identifier_verbose) identifier_verbose (True) True )default_parameter )parameters (block (if_statement (not_operator (identifier___RELOAD_OK__) identifier___RELOAD_OK__ )not_operator (block (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (string_'Reloading has been forced off') string_'Reloading has been forced off' )argument_list )call )raise_statement )block )if_statement (try_statement (block (import_statement (dotted_name (identifier_imp) identifier_imp )dotted_name )import_statement (if_statement (boolean_operator (identifier_verbose) identifier_verbose (not_operator (identifier_QUIET) identifier_QUIET )not_operator )boolean_operator (block (expression_statement (call (attribute (identifier_builtins) identifier_builtins (identifier_print) identifier_print )attribute (argument_list (binary_operator (binary_operator (binary_operator (string_'RELOAD: ') string_'RELOAD: ' (call (identifier_str) identifier_str (argument_list (identifier_module_prefix) identifier_module_prefix )argument_list )call )binary_operator (string_' __name__=') string_' __name__=' )binary_operator (identifier_module_name) identifier_module_name )binary_operator )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_imp) identifier_imp (identifier_reload) identifier_reload )attribute (argument_list (identifier_module) identifier_module )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 (call (identifier_print) identifier_print (argument_list (identifier_ex) identifier_ex )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_'%s Failed to reload') string_'%s Failed to reload' (identifier_module_prefix) identifier_module_prefix )binary_operator )argument_list )call )expression_statement (raise_statement )raise_statement )block )except_clause )try_statement )block )function_definition (return_statement (identifier_rrr) identifier_rrr )return_statement )block )function_definition )module
Injects dynamic module reloading
(module (function_definition (function_name__process_loop) function_name__process_loop (parameters (identifier_self) identifier_self )parameters (block (while_statement (not_operator (call (attribute (attribute (identifier_self) identifier_self (identifier__web_client_session) identifier__web_client_session )attribute (identifier_done) identifier_done )attribute (argument_list )argument_list )call )not_operator (block (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier__item_session) identifier__item_session )attribute (identifier_request) identifier_request )attribute (call (attribute (attribute (identifier_self) identifier_self (identifier__web_client_session) identifier__web_client_session )attribute (identifier_next_request) identifier_next_request )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_verdict) identifier_verdict (identifier_reason) identifier_reason )pattern_list (call (attribute (identifier_self) identifier_self (identifier__should_fetch_reason) identifier__should_fetch_reason )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier__logger) identifier__logger (identifier_debug) identifier_debug )attribute (argument_list (string_'Filter verdict {} reason {}') string_'Filter verdict {} reason {}' (identifier_verdict) identifier_verdict (identifier_reason) identifier_reason )argument_list )call )expression_statement (if_statement (not_operator (identifier_verdict) identifier_verdict )not_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__item_session) identifier__item_session )attribute (identifier_skip) identifier_skip )attribute (argument_list )argument_list )call )expression_statement (break_statement )break_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_exit_early) identifier_exit_early (identifier_wait_time) identifier_wait_time )pattern_list (yield (call (attribute (identifier_self) identifier_self (identifier__fetch_one) identifier__fetch_one )attribute (argument_list (call (identifier_cast) identifier_cast (argument_list (identifier_Request) identifier_Request (attribute (attribute (identifier_self) identifier_self (identifier__item_session) identifier__item_session )attribute (identifier_request) identifier_request )attribute )argument_list )call )argument_list )call )yield )assignment )expression_statement (if_statement (identifier_wait_time) identifier_wait_time (block (expression_statement (call (attribute (identifier__logger) identifier__logger (identifier_debug) identifier_debug )attribute (argument_list (string_'Sleeping {}') string_'Sleeping {}' (identifier_wait_time) identifier_wait_time )argument_list )call )expression_statement (expression_statement (yield (call (attribute (identifier_asyncio) identifier_asyncio (identifier_sleep) identifier_sleep )attribute (argument_list (identifier_wait_time) identifier_wait_time )argument_list )call )yield )expression_statement )block )if_statement (if_statement (identifier_exit_early) identifier_exit_early (block (break_statement )break_statement )block )if_statement )block )while_statement )block )function_definition )module
Fetch URL including redirects. Coroutine.
(module (function_definition (function_name_set_max_entries) function_name_set_max_entries (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_max_entries) identifier_max_entries )attribute (call (identifier_float) identifier_float (argument_list (call (identifier_max) identifier_max (argument_list (list_comprehension (subscript (identifier_i) identifier_i (integer_0) integer_0 )subscript (for_in_clause (identifier_i) identifier_i (call (attribute (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (identifier_values) identifier_values )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )argument_list )call )argument_list )call )assignment )expression_statement )block )if_statement )block )function_definition )module
Define the maximum of entries for computing the priority of each items later.
(module (function_definition (function_name__advertisement) function_name__advertisement (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_flags) identifier_flags (binary_operator (binary_operator (binary_operator (binary_operator (call (identifier_int) identifier_int (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_device) identifier_device )attribute (identifier_pending_data) identifier_pending_data )attribute )argument_list )call (parenthesized_expression (binary_operator (integer_0) integer_0 (integer_1) integer_1 )binary_operator )parenthesized_expression )binary_operator (parenthesized_expression (binary_operator (integer_0) integer_0 (integer_2) integer_2 )binary_operator )parenthesized_expression )binary_operator (parenthesized_expression (binary_operator (integer_1) integer_1 (integer_3) integer_3 )binary_operator )parenthesized_expression )binary_operator (parenthesized_expression (binary_operator (integer_1) integer_1 (integer_4) integer_4 )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (return_statement (call (attribute (identifier_struct) identifier_struct (identifier_pack) identifier_pack )attribute (argument_list (string_"<LH") string_"<LH" (attribute (attribute (identifier_self) identifier_self (identifier_device) identifier_device )attribute (identifier_iotile_id) identifier_iotile_id )attribute (identifier_flags) identifier_flags )argument_list )call )return_statement )block )function_definition )module
Create advertisement data.
(module (function_definition (function_name_get_attachment_size) function_name_get_attachment_size (parameters (identifier_self) identifier_self (identifier_attachment) identifier_attachment )parameters (block (expression_statement (assignment (identifier_fsize) identifier_fsize (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (identifier_file) identifier_file (call (attribute (identifier_attachment) identifier_attachment (identifier_getAttachmentFile) identifier_getAttachmentFile )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_file) identifier_file (block (expression_statement (assignment (identifier_fsize) identifier_fsize (call (attribute (identifier_file) identifier_file (identifier_get_size) identifier_get_size )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_fsize) identifier_fsize (integer_1024) integer_1024 )comparison_operator (block (expression_statement (assignment (identifier_fsize) identifier_fsize (binary_operator (string_'%s b') string_'%s b' (identifier_fsize) identifier_fsize )binary_operator )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_fsize) identifier_fsize (binary_operator (string_'%s Kb') string_'%s Kb' (parenthesized_expression (binary_operator (identifier_fsize) identifier_fsize (integer_1024) integer_1024 )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_fsize) identifier_fsize )return_statement )block )function_definition )module
Get the human readable size of the attachment
(module (function_definition (function_name__parse_ppt_segment) function_name__parse_ppt_segment (parameters (identifier_self) identifier_self (identifier_fptr) identifier_fptr )parameters (block (expression_statement (assignment (identifier_offset) identifier_offset (binary_operator (call (attribute (identifier_fptr) identifier_fptr (identifier_tell) identifier_tell )attribute (argument_list )argument_list )call (integer_2) integer_2 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_read_buffer) identifier_read_buffer (call (attribute (identifier_fptr) identifier_fptr (identifier_read) identifier_read )attribute (argument_list (integer_3) integer_3 )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_length) identifier_length (identifier_zppt) identifier_zppt )pattern_list (call (attribute (identifier_struct) identifier_struct (identifier_unpack) identifier_unpack )attribute (argument_list (string_'>HB') string_'>HB' (identifier_read_buffer) identifier_read_buffer )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_length) identifier_length (identifier_length) identifier_length )assignment )expression_statement (expression_statement (assignment (identifier_zppt) identifier_zppt (identifier_zppt) identifier_zppt )assignment )expression_statement (expression_statement (assignment (identifier_numbytes) identifier_numbytes (binary_operator (identifier_length) identifier_length (integer_3) integer_3 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_ippt) identifier_ippt (call (attribute (identifier_fptr) identifier_fptr (identifier_read) identifier_read )attribute (argument_list (identifier_numbytes) identifier_numbytes )argument_list )call )assignment )expression_statement (return_statement (call (identifier_PPTsegment) identifier_PPTsegment (argument_list (identifier_zppt) identifier_zppt (identifier_ippt) identifier_ippt (identifier_length) identifier_length (identifier_offset) identifier_offset )argument_list )call )return_statement )block )function_definition )module
Parse the PPT segment. The packet headers are not parsed, i.e. they remain "uninterpreted" raw data beffers. Parameters ---------- fptr : file object The file to parse. Returns ------- PPTSegment The current PPT segment.
(module (function_definition (function_name_branch_inlet_outlet) function_name_branch_inlet_outlet (parameters (identifier_data) identifier_data (identifier_commdct) identifier_commdct (identifier_branchname) identifier_branchname )parameters (block (expression_statement (assignment (identifier_objkey) identifier_objkey (call (attribute (string_'Branch') string_'Branch' (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_theobjects) identifier_theobjects (subscript (attribute (identifier_data) identifier_data (identifier_dt) identifier_dt )attribute (identifier_objkey) identifier_objkey )subscript )assignment )expression_statement (expression_statement (assignment (identifier_theobject) identifier_theobject (list_comprehension (identifier_obj) identifier_obj (for_in_clause (identifier_obj) identifier_obj (identifier_theobjects) identifier_theobjects )for_in_clause (if_clause (comparison_operator (subscript (identifier_obj) identifier_obj (integer_1) integer_1 )subscript (identifier_branchname) identifier_branchname )comparison_operator )if_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_theobject) identifier_theobject (subscript (identifier_theobject) identifier_theobject (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_inletindex) identifier_inletindex (integer_6) integer_6 )assignment )expression_statement (expression_statement (assignment (identifier_outletindex) identifier_outletindex (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_theobject) identifier_theobject )argument_list )call (integer_2) integer_2 )binary_operator )assignment )expression_statement (return_statement (list (subscript (identifier_theobject) identifier_theobject (identifier_inletindex) identifier_inletindex )subscript (subscript (identifier_theobject) identifier_theobject (identifier_outletindex) identifier_outletindex )subscript )list )return_statement )block )function_definition )module
return the inlet and outlet of a branch
(module (function_definition (function_name_handle_unset_evidence) function_name_handle_unset_evidence (parameters (identifier_self) identifier_self (typed_parameter (identifier_line) identifier_line (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier_position) identifier_position (type (identifier_int) identifier_int )type )typed_parameter (typed_parameter (identifier_tokens) identifier_tokens (type (identifier_ParseResults) identifier_ParseResults )type )typed_parameter )parameters (type (identifier_ParseResults) identifier_ParseResults )type (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_evidence) identifier_evidence )attribute (None) None )comparison_operator (block (raise_statement (call (identifier_MissingAnnotationKeyWarning) identifier_MissingAnnotationKeyWarning (argument_list (call (attribute (identifier_self) identifier_self (identifier_get_line_number) identifier_get_line_number )attribute (argument_list )argument_list )call (identifier_line) identifier_line (identifier_position) identifier_position (subscript (identifier_tokens) identifier_tokens (identifier_EVIDENCE) identifier_EVIDENCE )subscript )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_evidence) identifier_evidence )attribute (None) None )assignment )expression_statement (return_statement (identifier_tokens) identifier_tokens )return_statement )block )function_definition )module
Unset the evidence, or throws an exception if it is not already set. The value for ``tokens[EVIDENCE]`` corresponds to which alternate of SupportingText or Evidence was used in the BEL script. :raises: MissingAnnotationKeyWarning
(module (function_definition (function_name_create_dir) function_name_create_dir (parameters (identifier_entry) identifier_entry (identifier_section) identifier_section (identifier_domain) identifier_domain (identifier_output) identifier_output )parameters (block (expression_statement (assignment (identifier_full_output_dir) identifier_full_output_dir (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_output) identifier_output (identifier_section) identifier_section (identifier_domain) identifier_domain (subscript (identifier_entry) identifier_entry (string_'assembly_accession') string_'assembly_accession' )subscript )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_makedirs) identifier_makedirs )attribute (argument_list (identifier_full_output_dir) identifier_full_output_dir )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_OSError) identifier_OSError (as_pattern_target (identifier_err) identifier_err )as_pattern_target )as_pattern (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_err) identifier_err (identifier_errno) identifier_errno )attribute (attribute (identifier_errno) identifier_errno (identifier_EEXIST) identifier_EEXIST )attribute )comparison_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (identifier_full_output_dir) identifier_full_output_dir )argument_list )call )boolean_operator (block (pass_statement )pass_statement )block (else_clause (block (raise_statement )raise_statement )block )else_clause )if_statement )block )except_clause )try_statement (return_statement (identifier_full_output_dir) identifier_full_output_dir )return_statement )block )function_definition )module
Create the output directory for the entry if needed.
(module (function_definition (function_name_delete_topic) function_name_delete_topic (parameters (identifier_self) identifier_self (identifier_topic) identifier_topic )parameters (block (expression_statement (call (attribute (identifier_nsq) identifier_nsq (identifier_assert_valid_topic_name) identifier_assert_valid_topic_name )attribute (argument_list (identifier_topic) identifier_topic )argument_list )call )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__request) identifier__request )attribute (argument_list (string_'POST') string_'POST' (string_'/topic/delete') string_'/topic/delete' (keyword_argument (identifier_fields) identifier_fields (dictionary (pair (string_'topic') string_'topic' (identifier_topic) identifier_topic )pair )dictionary )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Delete a topic.
(module (function_definition (function_name_engine) function_name_engine (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_backend) identifier_backend )attribute (argument_list (dictionary (pair (string_'APP_DIRS') string_'APP_DIRS' (True) True )pair (pair (string_'DIRS') string_'DIRS' (list (call (identifier_str) identifier_str (argument_list (binary_operator (identifier_ROOT) identifier_ROOT (attribute (attribute (identifier_self) identifier_self (identifier_backend) identifier_backend )attribute (identifier_app_dirname) identifier_app_dirname )attribute )binary_operator )argument_list )call )list )pair (pair (string_'NAME') string_'NAME' (string_'djangoforms') string_'djangoforms' )pair (pair (string_'OPTIONS') string_'OPTIONS' (dictionary )dictionary )pair )dictionary )argument_list )call )return_statement )block )function_definition )module
Return Render Engine.
(module (function_definition (function_name_includeme) function_name_includeme (parameters (identifier_config) identifier_config )parameters (block (import_from_statement (relative_import (import_prefix )import_prefix (dotted_name (identifier_models) identifier_models )dotted_name )relative_import (dotted_name (identifier_AuthUserMixin) identifier_AuthUserMixin )dotted_name (dotted_name (identifier_random_uuid) identifier_random_uuid )dotted_name (dotted_name (identifier_lower_strip) identifier_lower_strip )dotted_name (dotted_name (identifier_encrypt_password) identifier_encrypt_password )dotted_name )import_from_statement (expression_statement (assignment (identifier_add_proc) identifier_add_proc (attribute (identifier_config) identifier_config (identifier_add_field_processors) identifier_add_field_processors )attribute )assignment )expression_statement (expression_statement (call (identifier_add_proc) identifier_add_proc (argument_list (list (identifier_random_uuid) identifier_random_uuid (identifier_lower_strip) identifier_lower_strip )list (keyword_argument (identifier_model) identifier_model (identifier_AuthUserMixin) identifier_AuthUserMixin )keyword_argument (keyword_argument (identifier_field) identifier_field (string_'username') string_'username' )keyword_argument )argument_list )call )expression_statement (expression_statement (call (identifier_add_proc) identifier_add_proc (argument_list (list (identifier_lower_strip) identifier_lower_strip )list (keyword_argument (identifier_model) identifier_model (identifier_AuthUserMixin) identifier_AuthUserMixin )keyword_argument (keyword_argument (identifier_field) identifier_field (string_'email') string_'email' )keyword_argument )argument_list )call )expression_statement (expression_statement (call (identifier_add_proc) identifier_add_proc (argument_list (list (identifier_encrypt_password) identifier_encrypt_password )list (keyword_argument (identifier_model) identifier_model (identifier_AuthUserMixin) identifier_AuthUserMixin )keyword_argument (keyword_argument (identifier_field) identifier_field (string_'password') string_'password' )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Set up event subscribers.
(module (function_definition (function_name__post_parse_request) function_name__post_parse_request (parameters (identifier_self) identifier_self (identifier_request) identifier_request (default_parameter (identifier_client_id) identifier_client_id (string_'') string_'' )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_request) identifier_request (call (identifier_RefreshAccessTokenRequest) identifier_RefreshAccessTokenRequest (argument_list (dictionary_splat (call (attribute (identifier_request) identifier_request (identifier_to_dict) identifier_to_dict )attribute (argument_list )argument_list )call )dictionary_splat )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_keyjar) identifier_keyjar (attribute (attribute (identifier_self) identifier_self (identifier_endpoint_context) identifier_endpoint_context )attribute (identifier_keyjar) identifier_keyjar )attribute )assignment )expression_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (expression_statement (assignment (identifier_keyjar) identifier_keyjar (string_"") string_"" )assignment )expression_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_request) identifier_request (identifier_verify) identifier_verify )attribute (argument_list (keyword_argument (identifier_keyjar) identifier_keyjar (identifier_keyjar) identifier_keyjar )keyword_argument (keyword_argument (identifier_opponent_id) identifier_opponent_id (identifier_client_id) identifier_client_id )keyword_argument )argument_list )call )expression_statement (if_statement (comparison_operator (string_"client_id") string_"client_id" (identifier_request) identifier_request )comparison_operator (block (expression_statement (assignment (subscript (identifier_request) identifier_request (string_"client_id") string_"client_id" )subscript (identifier_client_id) identifier_client_id )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (binary_operator (string_"%s: %s") string_"%s: %s" (tuple (attribute (attribute (identifier_request) identifier_request (identifier___class__) identifier___class__ )attribute (identifier___name__) identifier___name__ )attribute (call (identifier_sanitize) identifier_sanitize (argument_list (identifier_request) identifier_request )argument_list )call )tuple )binary_operator )argument_list )call )expression_statement (return_statement (identifier_request) identifier_request )return_statement )block )function_definition )module
This is where clients come to refresh their access tokens :param request: The request :param authn: Authentication info, comes from HTTP header :returns:
(module (function_definition (function_name__get_api_key_ops) function_name__get_api_key_ops (parameters )parameters (block (expression_statement (assignment (identifier_auth_header) identifier_auth_header (attribute (identifier_request) identifier_request (identifier_authorization) identifier_authorization )attribute )assignment )expression_statement (if_statement (not_operator (identifier_auth_header) identifier_auth_header )not_operator (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (string_'API request lacks authorization header') string_'API request lacks authorization header' )argument_list )call )expression_statement (expression_statement (call (identifier_abort) identifier_abort (argument_list (call (attribute (identifier_flask) identifier_flask (identifier_Response) identifier_Response )attribute (argument_list (string_'API key required') string_'API key required' (integer_401) integer_401 (dictionary (pair (string_'WWW-Authenticate') string_'WWW-Authenticate' (string_'Basic realm="API key required"') string_'Basic realm="API key required"' )pair )dictionary )argument_list )call )argument_list )call )expression_statement )block )if_statement (return_statement (call (attribute (identifier_operations) identifier_operations (identifier_ApiKeyOps) identifier_ApiKeyOps )attribute (argument_list (attribute (identifier_auth_header) identifier_auth_header (identifier_username) identifier_username )attribute (attribute (identifier_auth_header) identifier_auth_header (identifier_password) identifier_password )attribute )argument_list )call )return_statement )block )function_definition )module
Gets the operations.ApiKeyOps instance for the current request.
(module (function_definition (function_name_check_ensembl_api_version) function_name_check_ensembl_api_version (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_attempt) identifier_attempt )attribute (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (identifier_headers) identifier_headers (dictionary (pair (string_"content-type") string_"content-type" (string_"application/json") string_"application/json" )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_ext) identifier_ext (string_"/info/rest") string_"/info/rest" )assignment )expression_statement (expression_statement (assignment (identifier_r) identifier_r (call (attribute (identifier_self) identifier_self (identifier_ensembl_request) identifier_ensembl_request )attribute (argument_list (identifier_ext) identifier_ext (identifier_headers) identifier_headers )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_json) identifier_json (identifier_loads) identifier_loads )attribute (argument_list (identifier_r) identifier_r )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (identifier_set_ensembl_api_version) identifier_set_ensembl_api_version )attribute (argument_list (subscript (identifier_response) identifier_response (string_"release") string_"release" )subscript )argument_list )call )expression_statement )block )function_definition )module
check the ensembl api version matches a currently working version This function is included so when the api version changes, we notice the change, and we can manually check the responses for the new version.
(module (function_definition (function_name_by_youtube_id) function_name_by_youtube_id (parameters (identifier_cls) identifier_cls (identifier_youtube_id) identifier_youtube_id )parameters (block (expression_statement (assignment (identifier_qset) identifier_qset (call (attribute (call (attribute (attribute (identifier_cls) identifier_cls (identifier_objects) identifier_objects )attribute (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_encoded_videos__profile__profile_name) identifier_encoded_videos__profile__profile_name (string_'youtube') string_'youtube' )keyword_argument (keyword_argument (identifier_encoded_videos__url) identifier_encoded_videos__url (identifier_youtube_id) identifier_youtube_id )keyword_argument )argument_list )call (identifier_prefetch_related) identifier_prefetch_related )attribute (argument_list (string_'encoded_videos') string_'encoded_videos' (string_'courses') string_'courses' )argument_list )call )assignment )expression_statement (return_statement (identifier_qset) identifier_qset )return_statement )block )function_definition )module
Look up video by youtube id
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (identifier_eid) identifier_eid (identifier_data) identifier_data (identifier_token) identifier_token )parameters (block (expression_statement (assignment (identifier_final_dict) identifier_final_dict (dictionary (pair (string_"data") string_"data" (dictionary (pair (string_"id") string_"id" (identifier_eid) identifier_eid )pair (pair (string_"type") string_"type" (string_"libraryEntries") string_"libraryEntries" )pair (pair (string_"attributes") string_"attributes" (identifier_data) identifier_data )pair )dictionary )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_final_headers) identifier_final_headers (attribute (identifier_self) identifier_self (identifier_header) identifier_header )attribute )assignment )expression_statement (expression_statement (assignment (subscript (identifier_final_headers) identifier_final_headers (string_'Authorization') string_'Authorization' )subscript (call (attribute (string_"Bearer {}") string_"Bearer {}" (identifier_format) identifier_format )attribute (argument_list (identifier_token) identifier_token )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_r) identifier_r (call (attribute (identifier_requests) identifier_requests (identifier_patch) identifier_patch )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_apiurl) identifier_apiurl )attribute (call (attribute (string_"/library-entries/{}") string_"/library-entries/{}" (identifier_format) identifier_format )attribute (argument_list (identifier_eid) identifier_eid )argument_list )call )binary_operator (keyword_argument (identifier_json) identifier_json (identifier_final_dict) identifier_final_dict )keyword_argument (keyword_argument (identifier_headers) identifier_headers (identifier_final_headers) identifier_final_headers )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_r) identifier_r (identifier_status_code) identifier_status_code )attribute (integer_200) integer_200 )comparison_operator (block (raise_statement (call (identifier_ConnectionError) identifier_ConnectionError (argument_list (attribute (identifier_r) identifier_r (identifier_text) identifier_text )attribute )argument_list )call )raise_statement )block )if_statement (return_statement (True) True )return_statement )block )function_definition )module
Update a given Library Entry. :param eid str: Entry ID :param data dict: Attributes :param token str: OAuth token :return: True or ServerError :rtype: Bool or Exception
(module (function_definition (function_name_reportFailed) function_name_reportFailed (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier__makeApiCall) identifier__makeApiCall )attribute (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_funcinfo) identifier_funcinfo )attribute (string_"reportFailed") string_"reportFailed" )subscript (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
Report Run Failed Report a run failed, resolving the run as `failed`. Use this to resolve a run that failed because the task specific code behaved unexpectedly. For example the task exited non-zero, or didn't produce expected output. Do not use this if the task couldn't be run because if malformed payload, or other unexpected condition. In these cases we have a task exception, which should be reported with `reportException`. This method gives output: ``v1/task-status-response.json#`` This method is ``stable``
(module (function_definition (function_name_memory_write32) function_name_memory_write32 (parameters (identifier_self) identifier_self (identifier_addr) identifier_addr (identifier_data) identifier_data (default_parameter (identifier_zone) identifier_zone (None) None )default_parameter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_memory_write) identifier_memory_write )attribute (argument_list (identifier_addr) identifier_addr (identifier_data) identifier_data (identifier_zone) identifier_zone (integer_32) integer_32 )argument_list )call )return_statement )block )function_definition )module
Writes words to memory of a target system. Args: self (JLink): the ``JLink`` instance addr (int): start address to write to data (list): list of words to write zone (str): optional memory zone to access Returns: Number of words written to target. Raises: JLinkException: on memory access error.
(module (function_definition (function_name__get_nn_layers) function_name__get_nn_layers (parameters (identifier_spec) identifier_spec )parameters (block (expression_statement (assignment (identifier_layers) identifier_layers (list )list )assignment )expression_statement (if_statement (comparison_operator (call (attribute (identifier_spec) identifier_spec (identifier_WhichOneof) identifier_WhichOneof )attribute (argument_list (string_'Type') string_'Type' )argument_list )call (string_'pipeline') string_'pipeline' )comparison_operator (block (expression_statement (assignment (identifier_layers) identifier_layers (list )list )assignment )expression_statement (for_statement (identifier_model_spec) identifier_model_spec (attribute (attribute (identifier_spec) identifier_spec (identifier_pipeline) identifier_pipeline )attribute (identifier_models) identifier_models )attribute (block (if_statement (not_operator (identifier_layers) identifier_layers )not_operator (block (return_statement (call (identifier__get_nn_layers) identifier__get_nn_layers (argument_list (identifier_model_spec) identifier_model_spec )argument_list )call )return_statement )block (else_clause (block (expression_statement (call (attribute (identifier_layers) identifier_layers (identifier_extend) identifier_extend )attribute (argument_list (call (identifier__get_nn_layers) identifier__get_nn_layers (argument_list (identifier_model_spec) identifier_model_spec )argument_list )call )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement )block (elif_clause (comparison_operator (call (attribute (identifier_spec) identifier_spec (identifier_WhichOneof) identifier_WhichOneof )attribute (argument_list (string_'Type') string_'Type' )argument_list )call (list (string_'pipelineClassifier') string_'pipelineClassifier' (string_'pipelineRegressor') string_'pipelineRegressor' )list )comparison_operator (block (expression_statement (assignment (identifier_layers) identifier_layers (list )list )assignment )expression_statement (for_statement (identifier_model_spec) identifier_model_spec (attribute (attribute (identifier_spec) identifier_spec (identifier_pipeline) identifier_pipeline )attribute (identifier_models) identifier_models )attribute (block (if_statement (not_operator (identifier_layers) identifier_layers )not_operator (block (return_statement (call (identifier__get_nn_layers) identifier__get_nn_layers (argument_list (identifier_model_spec) identifier_model_spec )argument_list )call )return_statement )block (else_clause (block (expression_statement (call (attribute (identifier_layers) identifier_layers (identifier_extend) identifier_extend )attribute (argument_list (call (identifier__get_nn_layers) identifier__get_nn_layers (argument_list (identifier_model_spec) identifier_model_spec )argument_list )call )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement )block )elif_clause (elif_clause (attribute (attribute (identifier_spec) identifier_spec (identifier_neuralNetwork) identifier_neuralNetwork )attribute (identifier_layers) identifier_layers )attribute (block (expression_statement (assignment (identifier_layers) identifier_layers (attribute (attribute (identifier_spec) identifier_spec (identifier_neuralNetwork) identifier_neuralNetwork )attribute (identifier_layers) identifier_layers )attribute )assignment )expression_statement )block )elif_clause (elif_clause (attribute (attribute (identifier_spec) identifier_spec (identifier_neuralNetworkClassifier) identifier_neuralNetworkClassifier )attribute (identifier_layers) identifier_layers )attribute (block (expression_statement (assignment (identifier_layers) identifier_layers (attribute (attribute (identifier_spec) identifier_spec (identifier_neuralNetworkClassifier) identifier_neuralNetworkClassifier )attribute (identifier_layers) identifier_layers )attribute )assignment )expression_statement )block )elif_clause (elif_clause (attribute (attribute (identifier_spec) identifier_spec (identifier_neuralNetworkRegressor) identifier_neuralNetworkRegressor )attribute (identifier_layers) identifier_layers )attribute (block (expression_statement (assignment (identifier_layers) identifier_layers (attribute (attribute (identifier_spec) identifier_spec (identifier_neuralNetworkRegressor) identifier_neuralNetworkRegressor )attribute (identifier_layers) identifier_layers )attribute )assignment )expression_statement )block )elif_clause )if_statement (return_statement (identifier_layers) identifier_layers )return_statement )block )function_definition )module
Returns a list of neural network layers if the model contains any. Parameters ---------- spec: Model_pb A model protobuf specification. Returns ------- [NN layer] list of all layers (including layers from elements of a pipeline
(module (function_definition (function_name__enable_cleanup) function_name__enable_cleanup (parameters (identifier_func) identifier_func )parameters (block (decorated_definition (decorator (call (attribute (identifier_functools) identifier_functools (identifier_wraps) identifier_wraps )attribute (argument_list (identifier_func) identifier_func )argument_list )call )decorator (function_definition (function_name_wrapper) function_name_wrapper (parameters (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_self) identifier_self (subscript (identifier_args) identifier_args (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_func) identifier_func (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_cleanup) identifier_cleanup )attribute (argument_list (identifier_self) identifier_self )argument_list )call )expression_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )decorated_definition (return_statement (identifier_wrapper) identifier_wrapper )return_statement )block )function_definition )module
Execute cleanup operation when the decorated function completed.
(module (function_definition (function_name_get_extname) function_name_get_extname (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_name) identifier_name (subscript (attribute (identifier_self) identifier_self (identifier__info) identifier__info )attribute (string_'extname') string_'extname' )subscript )assignment )expression_statement (if_statement (comparison_operator (call (attribute (identifier_name) identifier_name (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (string_'') string_'' )comparison_operator (block (expression_statement (assignment (identifier_name) identifier_name (subscript (attribute (identifier_self) identifier_self (identifier__info) identifier__info )attribute (string_'hduname') string_'hduname' )subscript )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_name) identifier_name (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Get the name for this extension, can be an empty string
(module (function_definition (function_name_download) function_name_download (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename (identifier_representation) identifier_representation (default_parameter (identifier_overwrite) identifier_overwrite (False) False )default_parameter )parameters (block (expression_statement (call (identifier_download) identifier_download (argument_list (attribute (identifier_self) identifier_self (identifier_input) identifier_input )attribute (identifier_filename) identifier_filename (identifier_representation) identifier_representation (identifier_overwrite) identifier_overwrite (attribute (identifier_self) identifier_self (identifier_resolvers) identifier_resolvers )attribute (attribute (identifier_self) identifier_self (identifier_get3d) identifier_get3d )attribute (dictionary_splat (attribute (identifier_self) identifier_self (identifier_kwargs) identifier_kwargs )attribute )dictionary_splat )argument_list )call )expression_statement )block )function_definition )module
Download the resolved structure as a file. :param string filename: File path to save to :param string representation: Desired output representation :param bool overwrite: (Optional) Whether to allow overwriting of an existing file
(module (function_definition (function_name_summarize) function_name_summarize (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_data) identifier_data (list (list (string_'Sequence ID') string_'Sequence ID' (attribute (attribute (identifier_self) identifier_self (identifier_seqrecord) identifier_seqrecord )attribute (identifier_id) identifier_id )attribute )list (list (string_'G domain') string_'G domain' (conditional_expression (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_gdomain_regions) identifier_gdomain_regions )attribute )argument_list )call (attribute (identifier_self) identifier_self (identifier_gdomain_regions) identifier_gdomain_regions )attribute (None) None )conditional_expression )list (list (string_'E-value vs rab db') string_'E-value vs rab db' (attribute (identifier_self) identifier_self (identifier_evalue_bh_rabs) identifier_evalue_bh_rabs )attribute )list (list (string_'E-value vs non-rab db') string_'E-value vs non-rab db' (attribute (identifier_self) identifier_self (identifier_evalue_bh_non_rabs) identifier_evalue_bh_non_rabs )attribute )list (list (string_'RabF motifs') string_'RabF motifs' (conditional_expression (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (call (identifier_map) identifier_map (argument_list (identifier_str) identifier_str (attribute (identifier_self) identifier_self (identifier_rabf_motifs) identifier_rabf_motifs )attribute )argument_list )call )argument_list )call (attribute (identifier_self) identifier_self (identifier_rabf_motifs) identifier_rabf_motifs )attribute (None) None )conditional_expression )list (list (string_'Is Rab?') string_'Is Rab?' (call (attribute (identifier_self) identifier_self (identifier_is_rab) identifier_is_rab )attribute (argument_list )argument_list )call )list )list )assignment )expression_statement (expression_statement (assignment (identifier_summary) identifier_summary (string_'') string_'' )assignment )expression_statement (for_statement (pattern_list (identifier_name) identifier_name (identifier_value) identifier_value )pattern_list (identifier_data) identifier_data (block (expression_statement (augmented_assignment (identifier_summary) identifier_summary (call (attribute (string_'{:25s}{}\n') string_'{:25s}{}\n' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name (identifier_value) identifier_value )argument_list )call )augmented_assignment )expression_statement )block )for_statement (if_statement (call (attribute (identifier_self) identifier_self (identifier_is_rab) identifier_is_rab )attribute (argument_list )argument_list )call (block (expression_statement (augmented_assignment (identifier_summary) identifier_summary (call (attribute (string_'{:25s}{}\n') string_'{:25s}{}\n' (identifier_format) identifier_format )attribute (argument_list (string_'Top 5 subfamilies') string_'Top 5 subfamilies' (call (attribute (string_', ') string_', ' (identifier_join) identifier_join )attribute (generator_expression (call (attribute (string_'{:s} ({:.2g})') string_'{:s} ({:.2g})' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name (identifier_score) identifier_score )argument_list )call (for_in_clause (pattern_list (identifier_name) identifier_name (identifier_score) identifier_score )pattern_list (attribute (identifier_self) identifier_self (identifier_rab_subfamily_top5) identifier_rab_subfamily_top5 )attribute )for_in_clause )generator_expression )call )argument_list )call )augmented_assignment )expression_statement )block )if_statement (return_statement (identifier_summary) identifier_summary )return_statement )block )function_definition )module
G protein annotation summary in a text format :return: A string summary of the annotation :rtype: str
(module (function_definition (function_name_guess_strategy_type) function_name_guess_strategy_type (parameters (identifier_file_name_or_ext) identifier_file_name_or_ext )parameters (block (if_statement (comparison_operator (string_'.') string_'.' (identifier_file_name_or_ext) identifier_file_name_or_ext )comparison_operator (block (expression_statement (assignment (identifier_ext) identifier_ext (identifier_file_name_or_ext) identifier_file_name_or_ext )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (pattern_list (identifier_name) identifier_name (identifier_ext) identifier_ext )pattern_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_splitext) identifier_splitext )attribute (argument_list (identifier_file_name_or_ext) identifier_file_name_or_ext )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_ext) identifier_ext (call (attribute (identifier_ext) identifier_ext (identifier_lstrip) identifier_lstrip )attribute (argument_list (string_'.') string_'.' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_file_type_map) identifier_file_type_map (call (identifier_get_file_type_map) identifier_get_file_type_map (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_file_type_map) identifier_file_type_map (identifier_get) identifier_get )attribute (argument_list (identifier_ext) identifier_ext (None) None )argument_list )call )return_statement )block )function_definition )module
Guess strategy type to use for file by extension. Args: file_name_or_ext: Either a file name with an extension or just an extension Returns: Strategy: Type corresponding to extension or None if there's no corresponding strategy type
(module (function_definition (function_name__register_resources) function_name__register_resources (parameters (identifier_self) identifier_self (identifier_api_dirs) identifier_api_dirs (identifier_do_checks) identifier_do_checks )parameters (block (expression_statement (assignment (identifier_msg) identifier_msg (string_'Looking-up for APIs in the following directories: {}') string_'Looking-up for APIs in the following directories: {}' )assignment )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (identifier_msg) identifier_msg (identifier_format) identifier_format )attribute (argument_list (identifier_api_dirs) identifier_api_dirs )argument_list )call )argument_list )call )expression_statement (if_statement (identifier_do_checks) identifier_do_checks (block (expression_statement (call (identifier_check_and_load) identifier_check_and_load (argument_list (identifier_api_dirs) identifier_api_dirs )argument_list )call )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_msg) identifier_msg (string_'Loading module "{}" from directory "{}"') string_'Loading module "{}" from directory "{}"' )assignment )expression_statement (for_statement (pattern_list (identifier_loader) identifier_loader (identifier_mname) identifier_mname (identifier__) identifier__ )pattern_list (call (attribute (identifier_pkgutil) identifier_pkgutil (identifier_walk_packages) identifier_walk_packages )attribute (argument_list (identifier_api_dirs) identifier_api_dirs )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_path) identifier_path )attribute (identifier_append) identifier_append )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (attribute (identifier_loader) identifier_loader (identifier_path) identifier_path )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (identifier_msg) identifier_msg (identifier_format) identifier_format )attribute (argument_list (identifier_mname) identifier_mname (attribute (identifier_loader) identifier_loader (identifier_path) identifier_path )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_import_module) identifier_import_module (argument_list (identifier_mname) identifier_mname )argument_list )call )expression_statement )block )for_statement )block )else_clause )if_statement )block )function_definition )module
Register all Apis, Resources and Models with the application.
(module (function_definition (function_name_is_pod_running) function_name_is_pod_running (parameters (identifier_self) identifier_self (identifier_pod) identifier_pod )parameters (block (expression_statement (assignment (identifier_is_running) identifier_is_running (parenthesized_expression (boolean_operator (boolean_operator (boolean_operator (boolean_operator (comparison_operator (identifier_pod) identifier_pod (None) None )comparison_operator (comparison_operator (attribute (attribute (identifier_pod) identifier_pod (identifier_status) identifier_status )attribute (identifier_phase) identifier_phase )attribute (string_'Running') string_'Running' )comparison_operator )boolean_operator (comparison_operator (attribute (attribute (identifier_pod) identifier_pod (identifier_status) identifier_status )attribute (identifier_pod_ip) identifier_pod_ip )attribute (None) None )comparison_operator )boolean_operator (comparison_operator (attribute (attribute (identifier_pod) identifier_pod (identifier_metadata) identifier_metadata )attribute (identifier_deletion_timestamp) identifier_deletion_timestamp )attribute (None) None )comparison_operator )boolean_operator (call (identifier_all) identifier_all (argument_list (list_comprehension (attribute (identifier_cs) identifier_cs (identifier_ready) identifier_ready )attribute (for_in_clause (identifier_cs) identifier_cs (attribute (attribute (identifier_pod) identifier_pod (identifier_status) identifier_status )attribute (identifier_container_statuses) identifier_container_statuses )attribute )for_in_clause )list_comprehension )argument_list )call )boolean_operator )parenthesized_expression )assignment )expression_statement (return_statement (identifier_is_running) identifier_is_running )return_statement )block )function_definition )module
Check if the given pod is running pod must be a dictionary representing a Pod kubernetes API object.
(module (function_definition (function_name_get_totals_by_payee) function_name_get_totals_by_payee (parameters (identifier_self) identifier_self (identifier_account) identifier_account (default_parameter (identifier_start_date) identifier_start_date (None) None )default_parameter (default_parameter (identifier_end_date) identifier_end_date (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_qs) identifier_qs (call (attribute (attribute (identifier_Transaction) identifier_Transaction (identifier_objects) identifier_objects )attribute (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_account) identifier_account (identifier_account) identifier_account )keyword_argument (keyword_argument (identifier_parent__isnull) identifier_parent__isnull (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_qs) identifier_qs (call (attribute (call (attribute (identifier_qs) identifier_qs (identifier_values) identifier_values )attribute (argument_list (string_'payee') string_'payee' )argument_list )call (identifier_annotate) identifier_annotate )attribute (argument_list (call (attribute (identifier_models) identifier_models (identifier_Sum) identifier_Sum )attribute (argument_list (string_'value_gross') string_'value_gross' )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_qs) identifier_qs (call (attribute (identifier_qs) identifier_qs (identifier_order_by) identifier_order_by )attribute (argument_list (string_'payee__name') string_'payee__name' )argument_list )call )assignment )expression_statement (return_statement (identifier_qs) identifier_qs )return_statement )block )function_definition )module
Returns transaction totals grouped by Payee.
(module (function_definition (function_name_defaults) function_name_defaults (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (tuple_pattern (identifier_start) identifier_start (identifier_end) identifier_end )tuple_pattern (call (identifier_get_week_window) identifier_get_week_window (argument_list (binary_operator (call (attribute (identifier_timezone) identifier_timezone (identifier_now) identifier_now )attribute (argument_list )argument_list )call (call (identifier_relativedelta) identifier_relativedelta (argument_list (keyword_argument (identifier_days) identifier_days (integer_7) integer_7 )keyword_argument )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (return_statement (dictionary (pair (string_'from_date') string_'from_date' (identifier_start) identifier_start )pair (pair (string_'to_date') string_'to_date' (identifier_end) identifier_end )pair (pair (string_'billable') string_'billable' (True) True )pair (pair (string_'non_billable') string_'non_billable' (False) False )pair (pair (string_'paid_leave') string_'paid_leave' (False) False )pair (pair (string_'trunc') string_'trunc' (string_'day') string_'day' )pair (pair (string_'projects') string_'projects' (list )list )pair )dictionary )return_statement )block )function_definition )module
Default filter form data when no GET data is provided.
(module (function_definition (function_name_launch) function_name_launch (parameters (identifier_self) identifier_self )parameters (block (import_statement (dotted_name (identifier_subprocess) identifier_subprocess )dotted_name )import_statement (try_statement (block (expression_statement (assignment (identifier_retcode) identifier_retcode (call (attribute (identifier_subprocess) identifier_subprocess (identifier_call) identifier_call )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_fullname) identifier_fullname )attribute (keyword_argument (identifier_shell) identifier_shell (True) True )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_retcode) identifier_retcode (integer_0) integer_0 )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Child was terminated by signal") string_"Child was terminated by signal" (unary_operator (identifier_retcode) identifier_retcode )unary_operator (keyword_argument (identifier_file) identifier_file (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute )keyword_argument )argument_list )call )expression_statement (return_statement (False) False )return_statement )block (else_clause (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Child returned") string_"Child returned" (identifier_retcode) identifier_retcode (keyword_argument (identifier_file) identifier_file (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute )keyword_argument )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )else_clause )if_statement )block (except_clause (as_pattern (identifier_OSError) identifier_OSError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Execution failed:") string_"Execution failed:" (identifier_e) identifier_e (keyword_argument (identifier_file) identifier_file (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute )keyword_argument )argument_list )call )expression_statement (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
launch a file - used for starting html pages
(module (function_definition (function_name_confirm_execution) function_name_confirm_execution (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_permit) identifier_permit (string_'') string_'' )assignment )expression_statement (while_statement (comparison_operator (call (attribute (identifier_permit) identifier_permit (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (tuple (string_'yes') string_'yes' (string_'no') string_'no' )tuple )comparison_operator (block (expression_statement (assignment (identifier_permit) identifier_permit (call (identifier_input) identifier_input (argument_list (string_'Execute Proposed Plan? [yes/no] ') string_'Execute Proposed Plan? [yes/no] ' )argument_list )call )assignment )expression_statement )block )while_statement (if_statement (comparison_operator (call (attribute (identifier_permit) identifier_permit (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_'yes') string_'yes' )comparison_operator (block (return_statement (True) True )return_statement )block (else_clause (block (return_statement (False) False )return_statement )block )else_clause )if_statement )block )function_definition )module
Confirm from your if proposed-plan be executed.
(module (function_definition (function_name_set_current_time) function_name_set_current_time (parameters (identifier_self) identifier_self (identifier_current_time) identifier_current_time )parameters (block (expression_statement (assignment (identifier_current_time) identifier_current_time (call (identifier_c_double) identifier_c_double (argument_list (identifier_current_time) identifier_current_time )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (attribute (attribute (attribute (identifier_self) identifier_self (identifier_library) identifier_library )attribute (identifier_set_current_time) identifier_set_current_time )attribute (identifier_argtypes) identifier_argtypes )attribute (list (call (identifier_POINTER) identifier_POINTER (argument_list (identifier_c_double) identifier_c_double )argument_list )call )list )assignment )expression_statement (expression_statement (assignment (attribute (attribute (attribute (identifier_self) identifier_self (identifier_library) identifier_library )attribute (identifier_set_current_time) identifier_set_current_time )attribute (identifier_restype) identifier_restype )attribute (None) None )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_library) identifier_library )attribute (identifier_set_current_time) identifier_set_current_time )attribute (argument_list (call (identifier_byref) identifier_byref (argument_list (identifier_current_time) identifier_current_time )argument_list )call )argument_list )call )expression_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_warn) identifier_warn )attribute (argument_list (string_"Tried to set current time but method is not implemented in %s") string_"Tried to set current time but method is not implemented in %s" (attribute (identifier_self) identifier_self (identifier_engine) identifier_engine )attribute )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
sets current time of simulation
(module (function_definition (function_name__container_whitelist) function_name__container_whitelist (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier___container_whitelist) identifier___container_whitelist )attribute (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___container_whitelist) identifier___container_whitelist )attribute (line_continuation_\) line_continuation_\ (call (identifier_set) identifier_set (argument_list (boolean_operator (attribute (identifier_self) identifier_self (identifier_CLOUD_BROWSER_CONTAINER_WHITELIST) identifier_CLOUD_BROWSER_CONTAINER_WHITELIST )attribute (list )list )boolean_operator )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (attribute (identifier_self) identifier_self (identifier___container_whitelist) identifier___container_whitelist )attribute )return_statement )block )function_definition )module
Container whitelist.
(module (function_definition (function_name_describe_security_groups) function_name_describe_security_groups (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_names) identifier_names )list_splat_pattern )parameters (block (expression_statement (assignment (identifier_group_names) identifier_group_names (dictionary )dictionary )assignment )expression_statement (if_statement (identifier_names) identifier_names (block (expression_statement (assignment (identifier_group_names) identifier_group_names (call (identifier_dict) identifier_dict (argument_list (list_comprehension (tuple (binary_operator (string_"GroupName.%d") string_"GroupName.%d" (parenthesized_expression (binary_operator (identifier_i) identifier_i (integer_1) integer_1 )binary_operator )parenthesized_expression )binary_operator (identifier_name) identifier_name )tuple (for_in_clause (pattern_list (identifier_i) identifier_i (identifier_name) identifier_name )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_names) identifier_names )argument_list )call )for_in_clause )list_comprehension )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_query) identifier_query (call (attribute (identifier_self) identifier_self (identifier_query_factory) identifier_query_factory )attribute (argument_list (keyword_argument (identifier_action) identifier_action (string_"DescribeSecurityGroups") string_"DescribeSecurityGroups" )keyword_argument (keyword_argument (identifier_creds) identifier_creds (attribute (identifier_self) identifier_self (identifier_creds) identifier_creds )attribute )keyword_argument (keyword_argument (identifier_endpoint) identifier_endpoint (attribute (identifier_self) identifier_self (identifier_endpoint) identifier_endpoint )attribute )keyword_argument (keyword_argument (identifier_other_params) identifier_other_params (identifier_group_names) identifier_group_names )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_d) identifier_d (call (attribute (identifier_query) identifier_query (identifier_submit) identifier_submit )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_d) identifier_d (identifier_addCallback) identifier_addCallback )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_parser) identifier_parser )attribute (identifier_describe_security_groups) identifier_describe_security_groups )attribute )argument_list )call )return_statement )block )function_definition )module
Describe security groups. @param names: Optionally, a list of security group names to describe. Defaults to all security groups in the account. @return: A C{Deferred} that will fire with a list of L{SecurityGroup}s retrieved from the cloud.
(module (function_definition (function_name_htmlMarkup) function_name_htmlMarkup (parameters (identifier_self) identifier_self (identifier_realm) identifier_realm (default_parameter (identifier_return_to) identifier_return_to (None) None )default_parameter (default_parameter (identifier_immediate) identifier_immediate (False) False )default_parameter (default_parameter (identifier_form_tag_attrs) identifier_form_tag_attrs (None) None )default_parameter )parameters (block (return_statement (call (attribute (identifier_oidutil) identifier_oidutil (identifier_autoSubmitHTML) identifier_autoSubmitHTML )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier_formMarkup) identifier_formMarkup )attribute (argument_list (identifier_realm) identifier_realm (identifier_return_to) identifier_return_to (identifier_immediate) identifier_immediate (identifier_form_tag_attrs) identifier_form_tag_attrs )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Get an autosubmitting HTML page that submits this request to the IDP. This is just a wrapper for formMarkup. @see: formMarkup @returns: str
(module (function_definition (function_name_next_line) function_name_next_line (parameters (identifier_last_line) identifier_last_line (identifier_next_line_8bit) identifier_next_line_8bit )parameters (block (expression_statement (assignment (identifier_base_line) identifier_base_line (binary_operator (identifier_last_line) identifier_last_line (parenthesized_expression (binary_operator (identifier_last_line) identifier_last_line (integer_255) integer_255 )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_line) identifier_line (binary_operator (identifier_base_line) identifier_base_line (identifier_next_line_8bit) identifier_next_line_8bit )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_lower_line) identifier_lower_line (binary_operator (identifier_line) identifier_line (integer_256) integer_256 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_upper_line) identifier_upper_line (binary_operator (identifier_line) identifier_line (integer_256) integer_256 )binary_operator )assignment )expression_statement (if_statement (comparison_operator (binary_operator (identifier_last_line) identifier_last_line (identifier_lower_line) identifier_lower_line )binary_operator (binary_operator (identifier_line) identifier_line (identifier_last_line) identifier_last_line )binary_operator )comparison_operator (block (return_statement (identifier_lower_line) identifier_lower_line )return_statement )block )if_statement (if_statement (comparison_operator (binary_operator (identifier_upper_line) identifier_upper_line (identifier_last_line) identifier_last_line )binary_operator (binary_operator (identifier_last_line) identifier_last_line (identifier_line) identifier_line )binary_operator )comparison_operator (block (return_statement (identifier_upper_line) identifier_upper_line )return_statement )block )if_statement (return_statement (identifier_line) identifier_line )return_statement )block )function_definition )module
Compute the next line based on the last line and a 8bit next line. The behaviour of the function is specified in :ref:`reqline`. :param int last_line: the last line that was processed :param int next_line_8bit: the lower 8 bits of the next line :return: the next line closest to :paramref:`last_line` .. seealso:: :ref:`reqline`
(module (function_definition (function_name_backwardeuler) function_name_backwardeuler (parameters (identifier_dfun) identifier_dfun (identifier_xzero) identifier_xzero (identifier_timerange) identifier_timerange (identifier_timestep) identifier_timestep )parameters (block (return_statement (call (identifier_zip) identifier_zip (argument_list (list_splat (call (identifier_list) identifier_list (argument_list (call (identifier_BackwardEuler) identifier_BackwardEuler (argument_list (identifier_dfun) identifier_dfun (identifier_xzero) identifier_xzero (identifier_timerange) identifier_timerange (identifier_timestep) identifier_timestep )argument_list )call )argument_list )call )list_splat )argument_list )call )return_statement )block )function_definition )module
Backward Euler method integration. This function wraps BackwardEuler. :param dfun: Derivative function of the system. The differential system arranged as a series of first-order equations: \dot{X} = dfun(t, x) :param xzero: The initial condition of the system. :param vzero: The initial condition of first derivative of the system. :param timerange: The start and end times as (starttime, endtime). :param timestep: The timestep. :param convergencethreshold: Each step requires an iterative solution of an implicit equation. This is the threshold of convergence. :param maxiterations: Maximum iterations of the implicit equation before raising an exception. :returns: t, x: as lists.
(module (function_definition (function_name_addDataFrameColumn) function_name_addDataFrameColumn (parameters (identifier_self) identifier_self (identifier_columnName) identifier_columnName (default_parameter (identifier_dtype) identifier_dtype (identifier_str) identifier_str )default_parameter (default_parameter (identifier_defaultValue) identifier_defaultValue (None) None )default_parameter )parameters (block (if_statement (boolean_operator (not_operator (attribute (identifier_self) identifier_self (identifier_editable) identifier_editable )attribute )not_operator (comparison_operator (identifier_dtype) identifier_dtype (call (attribute (identifier_SupportedDtypes) identifier_SupportedDtypes (identifier_allTypes) identifier_allTypes )attribute (argument_list )argument_list )call )comparison_operator )boolean_operator (block (return_statement (False) False )return_statement )block )if_statement (expression_statement (assignment (identifier_elements) identifier_elements (call (attribute (identifier_self) identifier_self (identifier_rowCount) identifier_rowCount )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_columnPosition) identifier_columnPosition (call (attribute (identifier_self) identifier_self (identifier_columnCount) identifier_columnCount )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_newColumn) identifier_newColumn (call (attribute (identifier_pandas) identifier_pandas (identifier_Series) identifier_Series )attribute (argument_list (binary_operator (list (identifier_defaultValue) identifier_defaultValue )list (identifier_elements) identifier_elements )binary_operator (keyword_argument (identifier_index) identifier_index (attribute (attribute (identifier_self) identifier_self (identifier__dataFrame) identifier__dataFrame )attribute (identifier_index) identifier_index )attribute )keyword_argument (keyword_argument (identifier_dtype) identifier_dtype (identifier_dtype) identifier_dtype )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_beginInsertColumns) identifier_beginInsertColumns )attribute (argument_list (call (attribute (identifier_QtCore) identifier_QtCore (identifier_QModelIndex) identifier_QModelIndex )attribute (argument_list )argument_list )call (binary_operator (identifier_columnPosition) identifier_columnPosition (integer_1) integer_1 )binary_operator (binary_operator (identifier_columnPosition) identifier_columnPosition (integer_1) integer_1 )binary_operator )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__dataFrame) identifier__dataFrame )attribute (identifier_insert) identifier_insert )attribute (argument_list (identifier_columnPosition) identifier_columnPosition (identifier_columnName) identifier_columnName (identifier_newColumn) identifier_newColumn (keyword_argument (identifier_allow_duplicates) identifier_allow_duplicates (False) False )keyword_argument )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_ValueError) identifier_ValueError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (return_statement (False) False )return_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_endInsertColumns) identifier_endInsertColumns )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_propagateDtypeChanges) identifier_propagateDtypeChanges )attribute (argument_list (identifier_columnPosition) identifier_columnPosition (attribute (identifier_newColumn) identifier_newColumn (identifier_dtype) identifier_dtype )attribute )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )function_definition )module
Adds a column to the dataframe as long as the model's editable property is set to True and the dtype is supported. :param columnName: str name of the column. :param dtype: qtpandas.models.SupportedDtypes option :param defaultValue: (object) to default the column's value to, should be the same as the dtype or None :return: (bool) True on success, False otherwise.
(module (function_definition (function_name_send_custom_hsm) function_name_send_custom_hsm (parameters (identifier_self) identifier_self (identifier_whatsapp_id) identifier_whatsapp_id (identifier_template_name) identifier_template_name (identifier_language) identifier_language (identifier_variables) identifier_variables )parameters (block (expression_statement (assignment (identifier_data) identifier_data (dictionary (pair (string_"to") string_"to" (identifier_whatsapp_id) identifier_whatsapp_id )pair (pair (string_"type") string_"type" (string_"hsm") string_"hsm" )pair (pair (string_"hsm") string_"hsm" (dictionary (pair (string_"namespace") string_"namespace" (attribute (identifier_self) identifier_self (identifier_hsm_namespace) identifier_hsm_namespace )attribute )pair (pair (string_"element_name") string_"element_name" (identifier_template_name) identifier_template_name )pair (pair (string_"language") string_"language" (dictionary (pair (string_"policy") string_"policy" (string_"deterministic") string_"deterministic" )pair (pair (string_"code") string_"code" (identifier_language) identifier_language )pair )dictionary )pair (pair (string_"localizable_params") string_"localizable_params" (list_comprehension (dictionary (pair (string_"default") string_"default" (identifier_variable) identifier_variable )pair )dictionary (for_in_clause (identifier_variable) identifier_variable (identifier_variables) identifier_variables )for_in_clause )list_comprehension )pair )dictionary )pair )dictionary )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_ttl) identifier_ttl )attribute (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_data) identifier_data (string_"ttl") string_"ttl" )subscript (attribute (identifier_self) identifier_self (identifier_ttl) identifier_ttl )attribute )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute (identifier_post) identifier_post )attribute (argument_list (call (attribute (identifier_urllib_parse) identifier_urllib_parse (identifier_urljoin) identifier_urljoin )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_api_url) identifier_api_url )attribute (string_"/v1/messages") string_"/v1/messages" )argument_list )call (keyword_argument (identifier_json) identifier_json (identifier_data) identifier_data )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_return_response) identifier_return_response )attribute (argument_list (identifier_response) identifier_response )argument_list )call )return_statement )block )function_definition )module
Sends an HSM with more customizable fields than the send_hsm function
(module (function_definition (function_name_append) function_name_append (parameters (identifier_self) identifier_self (identifier_filename_in_zip) identifier_filename_in_zip (identifier_file_contents) identifier_file_contents )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_in_memory_zip) identifier_in_memory_zip )attribute (identifier_seek) identifier_seek )attribute (argument_list (unary_operator (integer_1) integer_1 )unary_operator (attribute (identifier_io) identifier_io (identifier_SEEK_END) identifier_SEEK_END )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_zf) identifier_zf (call (attribute (identifier_zipfile) identifier_zipfile (identifier_ZipFile) identifier_ZipFile )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_in_memory_zip) identifier_in_memory_zip )attribute (string_"a") string_"a" (attribute (identifier_zipfile) identifier_zipfile (identifier_ZIP_DEFLATED) identifier_ZIP_DEFLATED )attribute (False) False )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_zf) identifier_zf (identifier_writestr) identifier_writestr )attribute (argument_list (identifier_filename_in_zip) identifier_filename_in_zip (identifier_file_contents) identifier_file_contents )argument_list )call )expression_statement (for_statement (identifier_zfile) identifier_zfile (attribute (identifier_zf) identifier_zf (identifier_filelist) identifier_filelist )attribute (block (expression_statement (assignment (attribute (identifier_zfile) identifier_zfile (identifier_create_system) identifier_create_system )attribute (integer_0) integer_0 )assignment )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_zf) identifier_zf (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_in_memory_zip) identifier_in_memory_zip )attribute (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Appends a file with name filename_in_zip and contents of file_contents to the in-memory zip.
(module (function_definition (function_name_point_consensus) function_name_point_consensus (parameters (identifier_self) identifier_self (identifier_consensus_type) identifier_consensus_type )parameters (block (if_statement (comparison_operator (string_"mean") string_"mean" (identifier_consensus_type) identifier_consensus_type )comparison_operator (block (expression_statement (assignment (identifier_consensus_data) identifier_consensus_data (call (attribute (identifier_np) identifier_np (identifier_mean) identifier_mean )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement )block (elif_clause (comparison_operator (string_"std") string_"std" (identifier_consensus_type) identifier_consensus_type )comparison_operator (block (expression_statement (assignment (identifier_consensus_data) identifier_consensus_data (call (attribute (identifier_np) identifier_np (identifier_std) identifier_std )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (string_"median") string_"median" (identifier_consensus_type) identifier_consensus_type )comparison_operator (block (expression_statement (assignment (identifier_consensus_data) identifier_consensus_data (call (attribute (identifier_np) identifier_np (identifier_median) identifier_median )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (string_"max") string_"max" (identifier_consensus_type) identifier_consensus_type )comparison_operator (block (expression_statement (assignment (identifier_consensus_data) identifier_consensus_data (call (attribute (identifier_np) identifier_np (identifier_max) identifier_max )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (string_"percentile") string_"percentile" (identifier_consensus_type) identifier_consensus_type )comparison_operator (block (expression_statement (assignment (identifier_percentile) identifier_percentile (call (identifier_int) identifier_int (argument_list (subscript (call (attribute (identifier_consensus_type) identifier_consensus_type (identifier_split) identifier_split )attribute (argument_list (string_"_") string_"_" )argument_list )call (integer_1) integer_1 )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_consensus_data) identifier_consensus_data (call (attribute (identifier_np) identifier_np (identifier_percentile) identifier_percentile )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (identifier_percentile) identifier_percentile (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_consensus_data) identifier_consensus_data (call (attribute (identifier_np) identifier_np (identifier_zeros) identifier_zeros )attribute (argument_list (subscript (attribute (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (identifier_shape) identifier_shape )attribute (slice (integer_1) integer_1 (colon) colon )slice )subscript )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_consensus) identifier_consensus (call (identifier_EnsembleConsensus) identifier_EnsembleConsensus (argument_list (identifier_consensus_data) identifier_consensus_data (identifier_consensus_type) identifier_consensus_type (attribute (identifier_self) identifier_self (identifier_ensemble_name) identifier_ensemble_name )attribute (attribute (identifier_self) identifier_self (identifier_run_date) identifier_run_date )attribute (attribute (identifier_self) identifier_self (identifier_variable) identifier_variable )attribute (attribute (identifier_self) identifier_self (identifier_start_date) identifier_start_date )attribute (attribute (identifier_self) identifier_self (identifier_end_date) identifier_end_date )attribute (attribute (identifier_self) identifier_self (identifier_units) identifier_units )attribute )argument_list )call )assignment )expression_statement (return_statement (identifier_consensus) identifier_consensus )return_statement )block )function_definition )module
Calculate grid-point statistics across ensemble members. Args: consensus_type: mean, std, median, max, or percentile_nn Returns: EnsembleConsensus containing point statistic
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_url) identifier_url (default_parameter (identifier_headers) identifier_headers (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (identifier_headers) identifier_headers (None) None )comparison_operator (block (expression_statement (assignment (identifier_headers) identifier_headers (list )list )assignment )expression_statement )block )if_statement (if_statement (identifier_kwargs) identifier_kwargs (block (expression_statement (assignment (identifier_url) identifier_url (binary_operator (identifier_url) identifier_url (call (identifier_UrlEncoded) identifier_UrlEncoded (argument_list (binary_operator (string_'?') string_'?' (call (identifier__encode) identifier__encode (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )binary_operator (keyword_argument (identifier_skip_encode) identifier_skip_encode (True) True )keyword_argument )argument_list )call )binary_operator )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_request) identifier_request )attribute (argument_list (identifier_url) identifier_url (dictionary (pair (string_'method') string_'method' (string_"GET") string_"GET" )pair (pair (string_'headers') string_'headers' (identifier_headers) identifier_headers )pair )dictionary )argument_list )call )return_statement )block )function_definition )module
Sends a GET request to a URL. :param url: The URL. :type url: ``string`` :param headers: A list of pairs specifying the headers for the HTTP response (for example, ``[('Content-Type': 'text/cthulhu'), ('Token': 'boris')]``). :type headers: ``list`` :param kwargs: Additional keyword arguments (optional). These arguments are interpreted as the query part of the URL. The order of keyword arguments is not preserved in the request, but the keywords and their arguments will be URL encoded. :type kwargs: ``dict`` :returns: A dictionary describing the response (see :class:`HttpLib` for its structure). :rtype: ``dict``
(module (function_definition (function_name_get_effective_agent_id_with_proxy) function_name_get_effective_agent_id_with_proxy (parameters (identifier_proxy) identifier_proxy )parameters (block (if_statement (call (identifier_is_authenticated_with_proxy) identifier_is_authenticated_with_proxy (argument_list (identifier_proxy) identifier_proxy )argument_list )call (block (if_statement (call (attribute (identifier_proxy) identifier_proxy (identifier_has_effective_agent) identifier_has_effective_agent )attribute (argument_list )argument_list )call (block (return_statement (call (attribute (identifier_proxy) identifier_proxy (identifier_get_effective_agent_id) identifier_get_effective_agent_id )attribute (argument_list )argument_list )call )return_statement )block (else_clause (block (return_statement (call (attribute (call (attribute (identifier_proxy) identifier_proxy (identifier_get_authentication) identifier_get_authentication )attribute (argument_list )argument_list )call (identifier_get_agent_id) identifier_get_agent_id )attribute (argument_list )argument_list )call )return_statement )block )else_clause )if_statement )block (else_clause (block (return_statement (call (identifier_Id) identifier_Id (argument_list (keyword_argument (identifier_identifier) identifier_identifier (string_'MC3GUE$T@MIT.EDU') string_'MC3GUE$T@MIT.EDU' )keyword_argument (keyword_argument (identifier_namespace) identifier_namespace (string_'authentication.Agent') string_'authentication.Agent' )keyword_argument (keyword_argument (identifier_authority) identifier_authority (string_'MIT-ODL') string_'MIT-ODL' )keyword_argument )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Given a Proxy, returns the Id of the effective Agent
(module (function_definition (function_name__construct_location_to_filter_list) function_name__construct_location_to_filter_list (parameters (identifier_match_query) identifier_match_query )parameters (block (expression_statement (assignment (identifier_location_to_filters) identifier_location_to_filters (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_match_traversal) identifier_match_traversal (attribute (identifier_match_query) identifier_match_query (identifier_match_traversals) identifier_match_traversals )attribute (block (for_statement (identifier_match_step) identifier_match_step (identifier_match_traversal) identifier_match_traversal (block (expression_statement (assignment (identifier_current_filter) identifier_current_filter (attribute (identifier_match_step) identifier_match_step (identifier_where_block) identifier_where_block )attribute )assignment )expression_statement (if_statement (comparison_operator (identifier_current_filter) identifier_current_filter (None) None )comparison_operator (block (expression_statement (assignment (identifier_current_location) identifier_current_location (attribute (attribute (identifier_match_step) identifier_match_step (identifier_as_block) identifier_as_block )attribute (identifier_location) identifier_location )attribute )assignment )expression_statement (expression_statement (call (attribute (call (attribute (identifier_location_to_filters) identifier_location_to_filters (identifier_setdefault) identifier_setdefault )attribute (argument_list (identifier_current_location) identifier_current_location (list )list )argument_list )call (identifier_append) identifier_append )attribute (argument_list (identifier_current_filter) identifier_current_filter )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )for_statement (return_statement (identifier_location_to_filters) identifier_location_to_filters )return_statement )block )function_definition )module
Return a dict mapping location -> list of filters applied at that location. Args: match_query: MatchQuery object from which to extract location -> filters dict Returns: dict mapping each location in match_query to a list of Filter objects applied at that location
(module (function_definition (function_name_arg_strings) function_name_arg_strings (parameters (identifier_parsed_args) identifier_parsed_args (default_parameter (identifier_name) identifier_name (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_name) identifier_name (boolean_operator (identifier_name) identifier_name (string_'arg_strings') string_'arg_strings' )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (call (identifier_getattr) identifier_getattr (argument_list (identifier_parsed_args) identifier_parsed_args (identifier_name) identifier_name (list )list )argument_list )call )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_str) identifier_str )argument_list )call (block (return_statement (list (identifier_value) identifier_value )list )return_statement )block )if_statement (try_statement (block (return_statement (list_comprehension (identifier_v) identifier_v (for_in_clause (identifier_v) identifier_v (identifier_value) identifier_value )for_in_clause (if_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_v) identifier_v (identifier_str) identifier_str )argument_list )call )if_clause )list_comprehension )return_statement )block (except_clause (identifier_TypeError) identifier_TypeError (block (return_statement (list )list )return_statement )block )except_clause )try_statement )block )function_definition )module
A list of all strings for the named arg
(module (function_definition (function_name__add_secondary_if_exists) function_name__add_secondary_if_exists (parameters (identifier_secondary) identifier_secondary (identifier_out) identifier_out (identifier_get_retriever) identifier_get_retriever )parameters (block (expression_statement (assignment (identifier_secondary) identifier_secondary (list_comprehension (call (identifier__file_local_or_remote) identifier__file_local_or_remote (argument_list (identifier_y) identifier_y (identifier_get_retriever) identifier_get_retriever )argument_list )call (for_in_clause (identifier_y) identifier_y (identifier_secondary) identifier_secondary )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_secondary) identifier_secondary (list_comprehension (identifier_z) identifier_z (for_in_clause (identifier_z) identifier_z (identifier_secondary) identifier_secondary )for_in_clause (if_clause (identifier_z) identifier_z )if_clause )list_comprehension )assignment )expression_statement (if_statement (identifier_secondary) identifier_secondary (block (expression_statement (assignment (subscript (identifier_out) identifier_out (string_"secondaryFiles") string_"secondaryFiles" )subscript (list_comprehension (dictionary (pair (string_"class") string_"class" (string_"File") string_"File" )pair (pair (string_"path") string_"path" (identifier_f) identifier_f )pair )dictionary (for_in_clause (identifier_f) identifier_f (identifier_secondary) identifier_secondary )for_in_clause )list_comprehension )assignment )expression_statement )block )if_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Add secondary files only if present locally or remotely.
(module (function_definition (function_name_generate_optimized_y_move_down_x_SOL) function_name_generate_optimized_y_move_down_x_SOL (parameters (identifier_y_dist) identifier_y_dist )parameters (block (expression_statement (assignment (identifier_string) identifier_string (call (attribute (string_"\x1b[{0}E") string_"\x1b[{0}E" (identifier_format) identifier_format )attribute (argument_list (identifier_y_dist) identifier_y_dist )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_y_dist) identifier_y_dist (call (identifier_len) identifier_len (argument_list (identifier_string) identifier_string )argument_list )call )comparison_operator (block (expression_statement (assignment (identifier_string) identifier_string (binary_operator (string_'\n') string_'\n' (identifier_y_dist) identifier_y_dist )binary_operator )assignment )expression_statement )block )if_statement (return_statement (identifier_string) identifier_string )return_statement )block )function_definition )module
move down y_dist, set x=0
(module (function_definition (function_name_validate) function_name_validate (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (identifier_self) identifier_self )argument_list )call (identifier_validate) identifier_validate )attribute (argument_list (list_splat (identifier_args) identifier_args )list_splat )argument_list )call )expression_statement (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute )not_operator (block (raise_statement (call (identifier_ValidationError) identifier_ValidationError (argument_list (string_'name is required for Data') string_'name is required for Data' )argument_list )call )raise_statement )block )if_statement )block )function_definition )module
Validate contents of class
(module (function_definition (function_name_run_coral) function_name_run_coral (parameters (identifier_clus_obj) identifier_clus_obj (identifier_out_dir) identifier_out_dir (identifier_args) identifier_args )parameters (block (if_statement (not_operator (attribute (identifier_args) identifier_args (identifier_bed) identifier_bed )attribute )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"This module needs the bed file output from cluster subcmd.") string_"This module needs the bed file output from cluster subcmd." )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_workdir) identifier_workdir (call (attribute (identifier_op) identifier_op (identifier_abspath) identifier_abspath )attribute (argument_list (call (attribute (identifier_op) identifier_op (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_out) identifier_out )attribute (string_'coral') string_'coral' )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_safe_dirs) identifier_safe_dirs (argument_list (identifier_workdir) identifier_workdir )argument_list )call )expression_statement (expression_statement (assignment (identifier_bam_in) identifier_bam_in (call (attribute (identifier_op) identifier_op (identifier_abspath) identifier_abspath )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_bam) identifier_bam )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_bed_in) identifier_bed_in (call (attribute (identifier_op) identifier_op (identifier_abspath) identifier_abspath )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_bed) identifier_bed )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_reference) identifier_reference (call (attribute (identifier_op) identifier_op (identifier_abspath) identifier_abspath )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_ref) identifier_ref )attribute )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (call (identifier_chdir) identifier_chdir (argument_list (identifier_workdir) identifier_workdir )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_bam_clean) identifier_bam_clean (call (attribute (identifier_coral) identifier_coral (identifier_prepare_bam) identifier_prepare_bam )attribute (argument_list (identifier_bam_in) identifier_bam_in (identifier_bed_in) identifier_bed_in )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_out_dir) identifier_out_dir (call (attribute (identifier_op) identifier_op (identifier_join) identifier_join )attribute (argument_list (identifier_workdir) identifier_workdir (string_"regions") string_"regions" )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_safe_dirs) identifier_safe_dirs (argument_list (identifier_out_dir) identifier_out_dir )argument_list )call )expression_statement (expression_statement (assignment (identifier_prefix) identifier_prefix (string_"seqcluster") string_"seqcluster" )assignment )expression_statement (expression_statement (assignment (identifier_loci_file) identifier_loci_file (call (attribute (identifier_coral) identifier_coral (identifier_detect_regions) identifier_detect_regions )attribute (argument_list (identifier_bam_clean) identifier_bam_clean (identifier_bed_in) identifier_bed_in (identifier_out_dir) identifier_out_dir (identifier_prefix) identifier_prefix )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_coral) identifier_coral (identifier_create_features) identifier_create_features )attribute (argument_list (identifier_bam_clean) identifier_bam_clean (identifier_loci_file) identifier_loci_file (identifier_reference) identifier_reference (identifier_out_dir) identifier_out_dir )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Run some CoRaL modules to predict small RNA function
(module (function_definition (function_name_fromexportupdate) function_name_fromexportupdate (parameters (identifier_cls) identifier_cls (identifier_bundle) identifier_bundle (identifier_export_reg) identifier_export_reg )parameters (block (expression_statement (assignment (identifier_exc) identifier_exc (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_exception) identifier_get_exception )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_exc) identifier_exc (block (return_statement (call (identifier_RemoteServiceAdminEvent) identifier_RemoteServiceAdminEvent (argument_list (attribute (identifier_RemoteServiceAdminEvent) identifier_RemoteServiceAdminEvent (identifier_EXPORT_ERROR) identifier_EXPORT_ERROR )attribute (identifier_bundle) identifier_bundle (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_export_container_id) identifier_get_export_container_id )attribute (argument_list )argument_list )call (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_remoteservice_id) identifier_get_remoteservice_id )attribute (argument_list )argument_list )call (None) None (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_export_reference) identifier_get_export_reference )attribute (argument_list )argument_list )call (None) None (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_description) identifier_get_description )attribute (argument_list )argument_list )call )argument_list )call )return_statement )block )if_statement (return_statement (call (identifier_RemoteServiceAdminEvent) identifier_RemoteServiceAdminEvent (argument_list (attribute (identifier_RemoteServiceAdminEvent) identifier_RemoteServiceAdminEvent (identifier_EXPORT_UPDATE) identifier_EXPORT_UPDATE )attribute (identifier_bundle) identifier_bundle (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_export_container_id) identifier_get_export_container_id )attribute (argument_list )argument_list )call (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_remoteservice_id) identifier_get_remoteservice_id )attribute (argument_list )argument_list )call (None) None (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_export_reference) identifier_get_export_reference )attribute (argument_list )argument_list )call (None) None (call (attribute (identifier_export_reg) identifier_export_reg (identifier_get_description) identifier_get_description )attribute (argument_list )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Creates a RemoteServiceAdminEvent object from the update of an ExportRegistration
(module (function_definition (function_name_drop_invalid_columns) function_name_drop_invalid_columns (parameters (typed_parameter (identifier_feed) identifier_feed (type (string_"Feed") string_"Feed" )type )typed_parameter )parameters (type (string_"Feed") string_"Feed" )type (block (expression_statement (assignment (identifier_feed) identifier_feed (call (attribute (identifier_feed) identifier_feed (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_table) identifier_table (identifier_group) identifier_group )pattern_list (call (attribute (attribute (identifier_cs) identifier_cs (identifier_GTFS_REF) identifier_GTFS_REF )attribute (identifier_groupby) identifier_groupby )attribute (argument_list (string_"table") string_"table" )argument_list )call (block (expression_statement (assignment (identifier_f) identifier_f (call (identifier_getattr) identifier_getattr (argument_list (identifier_feed) identifier_feed (identifier_table) identifier_table )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_f) identifier_f (None) None )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_valid_columns) identifier_valid_columns (attribute (subscript (identifier_group) identifier_group (string_"column") string_"column" )subscript (identifier_values) identifier_values )attribute )assignment )expression_statement (for_statement (identifier_col) identifier_col (attribute (identifier_f) identifier_f (identifier_columns) identifier_columns )attribute (block (if_statement (comparison_operator (identifier_col) identifier_col (identifier_valid_columns) identifier_valid_columns )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_f"{table}: dropping invalid column {col}") string_f"{table}: dropping invalid column {col}" )argument_list )call )expression_statement (delete_statement (subscript (identifier_f) identifier_f (identifier_col) identifier_col )subscript )delete_statement )block )if_statement )block )for_statement (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_feed) identifier_feed (identifier_table) identifier_table (identifier_f) identifier_f )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_feed) identifier_feed )return_statement )block )function_definition )module
Drop all DataFrame columns of the given "Feed" that are not listed in the GTFS. Return the resulting new "Feed".
(module (function_definition (function_name_epoch) function_name_epoch (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_epoch_sec) identifier_epoch_sec (call (attribute (attribute (identifier_pytz) identifier_pytz (identifier_utc) identifier_utc )attribute (identifier_localize) identifier_localize )attribute (argument_list (call (attribute (identifier_datetime) identifier_datetime (identifier_utcfromtimestamp) identifier_utcfromtimestamp )attribute (argument_list (integer_0) integer_0 )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_now_sec) identifier_now_sec (call (attribute (attribute (identifier_pytz) identifier_pytz (identifier_utc) identifier_utc )attribute (identifier_normalize) identifier_normalize )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__dt) identifier__dt )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_delta_sec) identifier_delta_sec (binary_operator (identifier_now_sec) identifier_now_sec (identifier_epoch_sec) identifier_epoch_sec )binary_operator )assignment )expression_statement (return_statement (call (identifier_get_total_second) identifier_get_total_second (argument_list (identifier_delta_sec) identifier_delta_sec )argument_list )call )return_statement )block )function_definition )module
Returns the total seconds since epoch associated with the Delorean object. .. testsetup:: from datetime import datetime from delorean import Delorean .. doctest:: >>> d = Delorean(datetime(2015, 1, 1), timezone='US/Pacific') >>> d.epoch 1420099200.0
(module (function_definition (function_name_add_interrupt) function_name_add_interrupt (parameters (identifier_self) identifier_self (identifier_interrupt) identifier_interrupt )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_interrupts) identifier_interrupts )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_interrupt) identifier_interrupt )argument_list )call )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_constants) identifier_constants )attribute (attribute (identifier_interrupt) identifier_interrupt (identifier_name) identifier_name )attribute )subscript (attribute (identifier_interrupt) identifier_interrupt (identifier_address) identifier_address )attribute )assignment )expression_statement )block )function_definition )module
Adds the interrupt to the internal interrupt storage ``self.interrupts`` and registers the interrupt address in the internal constants.
(module (function_definition (function_name_query_plugins) function_name_query_plugins (parameters (identifier_entry_point_name) identifier_entry_point_name )parameters (block (expression_statement (assignment (identifier_entries) identifier_entries (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_entry_point) identifier_entry_point (call (attribute (identifier_pkg_resources) identifier_pkg_resources (identifier_iter_entry_points) identifier_iter_entry_points )attribute (argument_list (identifier_entry_point_name) identifier_entry_point_name )argument_list )call (block (expression_statement (assignment (subscript (identifier_entries) identifier_entries (attribute (identifier_entry_point) identifier_entry_point (identifier_name) identifier_name )attribute )subscript (call (attribute (identifier_entry_point) identifier_entry_point (identifier_load) identifier_load )attribute (argument_list )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_entries) identifier_entries )return_statement )block )function_definition )module
Find everything with a specific entry_point. Results will be returned as a dictionary, with the name as the key and the entry_point itself as the value. Arguments: entry_point_name - the name of the entry_point to populate
(module (function_definition (function_name_explode) function_name_explode (parameters (identifier_self) identifier_self (identifier_hosts) identifier_hosts (identifier_hostgroups) identifier_hostgroups (identifier_contactgroups) identifier_contactgroups )parameters (block (for_statement (identifier_i) identifier_i (identifier_self) identifier_self (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_explode_host_groups_into_hosts) identifier_explode_host_groups_into_hosts )attribute (argument_list (identifier_i) identifier_i (identifier_hosts) identifier_hosts (identifier_hostgroups) identifier_hostgroups )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_explode_contact_groups_into_contacts) identifier_explode_contact_groups_into_contacts )attribute (argument_list (identifier_i) identifier_i (identifier_contactgroups) identifier_contactgroups )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Loop over all escalation and explode hostsgroups in host and contactgroups in contacts Call Item.explode_host_groups_into_hosts and Item.explode_contact_groups_into_contacts :param hosts: host list to explode :type hosts: alignak.objects.host.Hosts :param hostgroups: hostgroup list to explode :type hostgroups: alignak.objects.hostgroup.Hostgroups :param contactgroups: contactgroup list to explode :type contactgroups: alignak.objects.contactgroup.Contactgroups :return: None
(module (function_definition (function_name_get_mapping) function_name_get_mapping (parameters (identifier_self) identifier_self (default_parameter (identifier_meta_fields) identifier_meta_fields (True) True )default_parameter )parameters (block (return_statement (dictionary (pair (string_'properties') string_'properties' (call (identifier_dict) identifier_dict (generator_expression (tuple (identifier_name) identifier_name (call (attribute (identifier_field) identifier_field (identifier_json) identifier_json )attribute (argument_list )argument_list )call )tuple (for_in_clause (pattern_list (identifier_name) identifier_name (identifier_field) identifier_field )pattern_list (call (identifier_iteritems) identifier_iteritems (argument_list (attribute (identifier_self) identifier_self (identifier_fields) identifier_fields )attribute )argument_list )call )for_in_clause (if_clause (boolean_operator (identifier_meta_fields) identifier_meta_fields (comparison_operator (identifier_name) identifier_name (attribute (identifier_AbstractField) identifier_AbstractField (identifier_meta_fields) identifier_meta_fields )attribute )comparison_operator )boolean_operator )if_clause )generator_expression )call )pair )dictionary )return_statement )block )function_definition )module
Returns the mapping for the index as a dictionary. :param meta_fields: Also include elasticsearch meta fields in the dictionary. :return: a dictionary which can be used to generate the elasticsearch index mapping for this doctype.
(module (function_definition (function_name_get_include_fields) function_name_get_include_fields (parameters (identifier_request) identifier_request )parameters (block (expression_statement (assignment (identifier_include_fields) identifier_include_fields (list )list )assignment )expression_statement (expression_statement (assignment (identifier_rif) identifier_rif (call (attribute (identifier_request) identifier_request (identifier_get) identifier_get )attribute (argument_list (string_"include_fields") string_"include_fields" (string_"") string_"" )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (string_"include_fields") string_"include_fields" (identifier_request) identifier_request )comparison_operator (block (expression_statement (assignment (identifier_include_fields) identifier_include_fields (list_comprehension (call (attribute (identifier_x) identifier_x (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (for_in_clause (identifier_x) identifier_x (call (attribute (identifier_rif) identifier_rif (identifier_split) identifier_split )attribute (argument_list (string_",") string_"," )argument_list )call )for_in_clause (if_clause (call (attribute (identifier_x) identifier_x (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )if_clause )list_comprehension )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (string_"include_fields[]") string_"include_fields[]" (identifier_request) identifier_request )comparison_operator (block (expression_statement (assignment (identifier_include_fields) identifier_include_fields (subscript (identifier_request) identifier_request (string_'include_fields[]') string_'include_fields[]' )subscript )assignment )expression_statement )block )if_statement (return_statement (identifier_include_fields) identifier_include_fields )return_statement )block )function_definition )module
Retrieve include_fields values from the request
(module (function_definition (function_name__start) function_name__start (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__enable_logpersist) identifier__enable_logpersist )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_logcat_file_path) identifier_logcat_file_path (attribute (attribute (identifier_self) identifier_self (identifier__configs) identifier__configs )attribute (identifier_output_file_path) identifier_output_file_path )attribute )assignment )expression_statement (if_statement (not_operator (identifier_logcat_file_path) identifier_logcat_file_path )not_operator (block (expression_statement (assignment (identifier_f_name) identifier_f_name (binary_operator (string_'adblog,%s,%s.txt') string_'adblog,%s,%s.txt' (tuple (attribute (attribute (identifier_self) identifier_self (identifier__ad) identifier__ad )attribute (identifier_model) identifier_model )attribute (attribute (attribute (identifier_self) identifier_self (identifier__ad) identifier__ad )attribute (identifier__normalized_serial) identifier__normalized_serial )attribute )tuple )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_logcat_file_path) identifier_logcat_file_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier__ad) identifier__ad )attribute (identifier_log_path) identifier_log_path )attribute (identifier_f_name) identifier_f_name )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_create_dir) identifier_create_dir )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_logcat_file_path) identifier_logcat_file_path )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_cmd) identifier_cmd (binary_operator (string_'"%s" -s %s logcat -v threadtime %s >> "%s"') string_'"%s" -s %s logcat -v threadtime %s >> "%s"' (tuple (attribute (identifier_adb) identifier_adb (identifier_ADB) identifier_ADB )attribute (attribute (attribute (identifier_self) identifier_self (identifier__ad) identifier__ad )attribute (identifier_serial) identifier_serial )attribute (attribute (attribute (identifier_self) identifier_self (identifier__configs) identifier__configs )attribute (identifier_logcat_params) identifier_logcat_params )attribute (identifier_logcat_file_path) identifier_logcat_file_path )tuple )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_process) identifier_process (call (attribute (identifier_utils) identifier_utils (identifier_start_standing_subprocess) identifier_start_standing_subprocess )attribute (argument_list (identifier_cmd) identifier_cmd (keyword_argument (identifier_shell) identifier_shell (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__adb_logcat_process) identifier__adb_logcat_process )attribute (identifier_process) identifier_process )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_adb_logcat_file_path) identifier_adb_logcat_file_path )attribute (identifier_logcat_file_path) identifier_logcat_file_path )assignment )expression_statement )block )function_definition )module
The actual logic of starting logcat.
(module (function_definition (function_name_discard_queue_messages) function_name_discard_queue_messages (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_zmq_stream_queue) identifier_zmq_stream_queue (attribute (call (attribute (call (attribute (identifier_self) identifier_self (identifier_handler) identifier_handler )attribute (argument_list )argument_list )call (identifier_stream) identifier_stream )attribute (argument_list )argument_list )call (identifier__send_queue) identifier__send_queue )attribute )assignment )expression_statement (while_statement (not_operator (call (attribute (identifier_zmq_stream_queue) identifier_zmq_stream_queue (identifier_empty) identifier_empty )attribute (argument_list )argument_list )call )not_operator (block (try_statement (block (expression_statement (call (attribute (identifier_zmq_stream_queue) identifier_zmq_stream_queue (identifier_get) identifier_get )attribute (argument_list (False) False )argument_list )call )expression_statement )block (except_clause (attribute (identifier_queue) identifier_queue (identifier_Empty) identifier_Empty )attribute (block (continue_statement )continue_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_zmq_stream_queue) identifier_zmq_stream_queue (identifier_task_done) identifier_task_done )attribute (argument_list )argument_list )call )expression_statement )block )while_statement )block )function_definition )module
Sometimes it is necessary to drop undelivered messages. These messages may be stored in different caches, for example in a zmq socket queue. With different zmq flags we can tweak zmq sockets and contexts no to keep those messages. But inside ZMQStream class there is a queue that can not be cleaned other way then the way it does in this method. So yes, it is dirty to access protected members, and yes it can be broken at any moment. And yes without correct locking procedure there is a possibility of unpredicted behaviour. But still - there is no other way to drop undelivered messages Discussion of the problem: https://github.com/zeromq/pyzmq/issues/1095 :return: None
(module (function_definition (function_name_cli) function_name_cli (parameters (identifier_env) identifier_env (identifier_identifier) identifier_identifier )parameters (block (expression_statement (assignment (identifier_nw_mgr) identifier_nw_mgr (call (attribute (identifier_SoftLayer) identifier_SoftLayer (identifier_NetworkManager) identifier_NetworkManager )attribute (argument_list (attribute (identifier_env) identifier_env (identifier_client) identifier_client )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (attribute (identifier_nw_mgr) identifier_nw_mgr (identifier_get_nas_credentials) identifier_get_nas_credentials )attribute (argument_list (identifier_identifier) identifier_identifier )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_table) identifier_table (call (attribute (identifier_formatting) identifier_formatting (identifier_Table) identifier_Table )attribute (argument_list (list (string_'username') string_'username' (string_'password') string_'password' )list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_table) identifier_table (identifier_add_row) identifier_add_row )attribute (argument_list (list (call (attribute (identifier_result) identifier_result (identifier_get) identifier_get )attribute (argument_list (string_'username') string_'username' (string_'None') string_'None' )argument_list )call (call (attribute (identifier_result) identifier_result (identifier_get) identifier_get )attribute (argument_list (string_'password') string_'password' (string_'None') string_'None' )argument_list )call )list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_env) identifier_env (identifier_fout) identifier_fout )attribute (argument_list (identifier_table) identifier_table )argument_list )call )expression_statement )block )function_definition )module
List NAS account credentials.
(module (function_definition (function_name_pickle_save) function_name_pickle_save (parameters (identifier_thing) identifier_thing (default_parameter (identifier_fname) identifier_fname (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_fname) identifier_fname (None) None )comparison_operator (block (expression_statement (assignment (identifier_fname) identifier_fname (binary_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_expanduser) identifier_expanduser )attribute (argument_list (string_"~") string_"~" )argument_list )call (binary_operator (string_"/%d.pkl") string_"/%d.pkl" (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )binary_operator )binary_operator )assignment )expression_statement )block )if_statement (assert_statement (boolean_operator (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_fname) identifier_fname )argument_list )call (identifier_str) identifier_str )comparison_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_fname) identifier_fname )argument_list )call )argument_list )call )boolean_operator )assert_statement (expression_statement (call (attribute (identifier_pickle) identifier_pickle (identifier_dump) identifier_dump )attribute (argument_list (identifier_thing) identifier_thing (call (identifier_open) identifier_open (argument_list (identifier_fname) identifier_fname (string_"wb") string_"wb" )argument_list )call (attribute (identifier_pickle) identifier_pickle (identifier_HIGHEST_PROTOCOL) identifier_HIGHEST_PROTOCOL )attribute )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"saved") string_"saved" (identifier_fname) identifier_fname )argument_list )call )expression_statement )block )function_definition )module
save something to a pickle file
(module (function_definition (function_name_set_process) function_name_set_process (parameters (identifier_self) identifier_self (default_parameter (identifier_process) identifier_process (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_process) identifier_process (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___process) identifier___process )attribute (None) None )assignment )expression_statement )block (else_clause (block (global_statement (identifier_Process) identifier_Process )global_statement (if_statement (comparison_operator (identifier_Process) identifier_Process (None) None )comparison_operator (block (import_from_statement (dotted_name (identifier_winappdbg) identifier_winappdbg (identifier_process) identifier_process )dotted_name (dotted_name (identifier_Process) identifier_Process )dotted_name )import_from_statement )block )if_statement (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_process) identifier_process (identifier_Process) identifier_Process )argument_list )call )not_operator (block (expression_statement (assignment (identifier_msg) identifier_msg (string_"Parent process must be a Process instance, ") string_"Parent process must be a Process instance, " )assignment )expression_statement (expression_statement (augmented_assignment (identifier_msg) identifier_msg (binary_operator (string_"got %s instead") string_"got %s instead" (call (identifier_type) identifier_type (argument_list (identifier_process) identifier_process )argument_list )call )binary_operator )augmented_assignment )expression_statement (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___process) identifier___process )attribute (identifier_process) identifier_process )assignment )expression_statement )block )else_clause )if_statement )block )function_definition )module
Manually set the parent process. Use with care! @type process: L{Process} @param process: (Optional) Process object. Use C{None} for no process.
(module (function_definition (function_name_camera_position) function_name_camera_position (parameters (identifier_self) identifier_self (identifier_camera_location) identifier_camera_location )parameters (block (if_statement (comparison_operator (identifier_camera_location) identifier_camera_location (None) None )comparison_operator (block (return_statement )return_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_camera_location) identifier_camera_location (identifier_str) identifier_str )argument_list )call (block (expression_statement (assignment (identifier_camera_location) identifier_camera_location (call (attribute (identifier_camera_location) identifier_camera_location (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_camera_location) identifier_camera_location (string_'xy') string_'xy' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_view_xy) identifier_view_xy )attribute (argument_list )argument_list )call )expression_statement )block (elif_clause (comparison_operator (identifier_camera_location) identifier_camera_location (string_'xz') string_'xz' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_view_xz) identifier_view_xz )attribute (argument_list )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_camera_location) identifier_camera_location (string_'yz') string_'yz' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_view_yz) identifier_view_yz )attribute (argument_list )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_camera_location) identifier_camera_location (string_'yx') string_'yx' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_view_xy) identifier_view_xy )attribute (argument_list (True) True )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_camera_location) identifier_camera_location (string_'zx') string_'zx' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_view_xz) identifier_view_xz )attribute (argument_list (True) True )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_camera_location) identifier_camera_location (string_'zy') string_'zy' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_view_yz) identifier_view_yz )attribute (argument_list (True) True )argument_list )call )expression_statement )block )elif_clause )if_statement (return_statement )return_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (subscript (identifier_camera_location) identifier_camera_location (integer_0) integer_0 )subscript (tuple (identifier_int) identifier_int (identifier_float) identifier_float )tuple )argument_list )call (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_view_vector) identifier_view_vector )attribute (argument_list (identifier_camera_location) identifier_camera_location )argument_list )call )return_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_camera) identifier_camera )attribute (identifier_SetPosition) identifier_SetPosition )attribute (argument_list (subscript (identifier_camera_location) identifier_camera_location (integer_0) integer_0 )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_camera) identifier_camera )attribute (identifier_SetFocalPoint) identifier_SetFocalPoint )attribute (argument_list (subscript (identifier_camera_location) identifier_camera_location (integer_1) integer_1 )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_camera) identifier_camera )attribute (identifier_SetViewUp) identifier_SetViewUp )attribute (argument_list (subscript (identifier_camera_location) identifier_camera_location (integer_2) integer_2 )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_ResetCameraClippingRange) identifier_ResetCameraClippingRange )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_camera_set) identifier_camera_set )attribute (True) True )assignment )expression_statement )block )function_definition )module
Set camera position of all active render windows
(module (function_definition (function_name_header_id_from_text) function_name_header_id_from_text (parameters (identifier_self) identifier_self (identifier_text) identifier_text (identifier_prefix) identifier_prefix (identifier_n) identifier_n )parameters (block (expression_statement (assignment (identifier_header_id) identifier_header_id (call (identifier__slugify) identifier__slugify (argument_list (identifier_text) identifier_text )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (identifier_prefix) identifier_prefix (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_prefix) identifier_prefix (identifier_base_string_type) identifier_base_string_type )argument_list )call )boolean_operator (block (expression_statement (assignment (identifier_header_id) identifier_header_id (binary_operator (binary_operator (identifier_prefix) identifier_prefix (string_'-') string_'-' )binary_operator (identifier_header_id) identifier_header_id )binary_operator )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_header_id) identifier_header_id (attribute (identifier_self) identifier_self (identifier__count_from_header_id) identifier__count_from_header_id )attribute )comparison_operator (block (expression_statement (augmented_assignment (subscript (attribute (identifier_self) identifier_self (identifier__count_from_header_id) identifier__count_from_header_id )attribute (identifier_header_id) identifier_header_id )subscript (integer_1) integer_1 )augmented_assignment )expression_statement (expression_statement (augmented_assignment (identifier_header_id) identifier_header_id (binary_operator (string_'-%s') string_'-%s' (subscript (attribute (identifier_self) identifier_self (identifier__count_from_header_id) identifier__count_from_header_id )attribute (identifier_header_id) identifier_header_id )subscript )binary_operator )augmented_assignment )expression_statement )block (else_clause (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__count_from_header_id) identifier__count_from_header_id )attribute (identifier_header_id) identifier_header_id )subscript (integer_1) integer_1 )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_header_id) identifier_header_id )return_statement )block )function_definition )module
Generate a header id attribute value from the given header HTML content. This is only called if the "header-ids" extra is enabled. Subclasses may override this for different header ids. @param text {str} The text of the header tag @param prefix {str} The requested prefix for header ids. This is the value of the "header-ids" extra key, if any. Otherwise, None. @param n {int} The <hN> tag number, i.e. `1` for an <h1> tag. @returns {str} The value for the header tag's "id" attribute. Return None to not have an id attribute and to exclude this header from the TOC (if the "toc" extra is specified).
(module (function_definition (function_name_write_mesh) function_name_write_mesh (parameters (identifier_fname) identifier_fname (identifier_vertices) identifier_vertices (identifier_faces) identifier_faces (identifier_normals) identifier_normals (identifier_texcoords) identifier_texcoords (default_parameter (identifier_name) identifier_name (string_'') string_'' )default_parameter (default_parameter (identifier_format) identifier_format (string_'obj') string_'obj' )default_parameter (default_parameter (identifier_overwrite) identifier_overwrite (False) False )default_parameter (default_parameter (identifier_reshape_faces) identifier_reshape_faces (True) True )default_parameter )parameters (block (if_statement (boolean_operator (call (attribute (identifier_op) identifier_op (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_fname) identifier_fname )argument_list )call (not_operator (identifier_overwrite) identifier_overwrite )not_operator )boolean_operator (block (raise_statement (call (identifier_IOError) identifier_IOError (argument_list (binary_operator (string_'file "%s" exists, use overwrite=True') string_'file "%s" exists, use overwrite=True' (identifier_fname) identifier_fname )binary_operator )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (identifier_format) identifier_format (parenthesized_expression (string_'obj') string_'obj' )parenthesized_expression )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Only "obj" format writing currently supported') string_'Only "obj" format writing currently supported' )argument_list )call )raise_statement )block )if_statement (expression_statement (call (attribute (identifier_WavefrontWriter) identifier_WavefrontWriter (identifier_write) identifier_write )attribute (argument_list (identifier_fname) identifier_fname (identifier_vertices) identifier_vertices (identifier_faces) identifier_faces (identifier_normals) identifier_normals (identifier_texcoords) identifier_texcoords (identifier_name) identifier_name (identifier_reshape_faces) identifier_reshape_faces )argument_list )call )expression_statement )block )function_definition )module
Write mesh data to file. Parameters ---------- fname : str Filename to write. Must end with ".obj" or ".gz". vertices : array Vertices. faces : array | None Triangle face definitions. normals : array Normals for the mesh. texcoords : array | None Texture coordinates. name : str Name of the object. format : str Currently only "obj" is supported. overwrite : bool If the file exists, overwrite it. reshape_faces : bool Reshape the `faces` array to (Nf, 3). Set to `False` if you need to write a mesh with non triangular faces.
(module (function_definition (function_name_getPositionByName) function_name_getPositionByName (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (try_statement (block (return_statement (subscript (attribute (identifier_self) identifier_self (identifier___nameToPosMap) identifier___nameToPosMap )attribute (identifier_name) identifier_name )subscript )return_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (raise_statement (call (attribute (identifier_error) identifier_error (identifier_PyAsn1Error) identifier_PyAsn1Error )attribute (argument_list (binary_operator (string_'Name %s not found') string_'Name %s not found' (tuple (identifier_name) identifier_name )tuple )binary_operator )argument_list )call )raise_statement )block )except_clause )try_statement )block )function_definition )module
Return field position by filed name. Parameters ---------- name: :py:class:`str` Field name Returns ------- : :py:class:`int` Field position in fields set Raises ------ : :class:`~pyasn1.error.PyAsn1Error` If *name* is not present or not unique within callee *NamedTypes*
(module (function_definition (function_name_rotate) function_name_rotate (parameters (identifier_self) identifier_self (identifier_azimuth) identifier_azimuth (default_parameter (identifier_axis) identifier_axis (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_target) identifier_target (attribute (identifier_self) identifier_self (identifier__target) identifier__target )attribute )assignment )expression_statement (expression_statement (assignment (identifier_y_axis) identifier_y_axis (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier__n_pose) identifier__n_pose )attribute (slice (colon) colon (integer_3) integer_3 )slice (integer_1) integer_1 )subscript (identifier_flatten) identifier_flatten )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_axis) identifier_axis (None) None )comparison_operator (block (expression_statement (assignment (identifier_y_axis) identifier_y_axis (identifier_axis) identifier_axis )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_x_rot_mat) identifier_x_rot_mat (call (attribute (identifier_transformations) identifier_transformations (identifier_rotation_matrix) identifier_rotation_matrix )attribute (argument_list (identifier_azimuth) identifier_azimuth (identifier_y_axis) identifier_y_axis (identifier_target) identifier_target )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__n_pose) identifier__n_pose )attribute (call (attribute (identifier_x_rot_mat) identifier_x_rot_mat (identifier_dot) identifier_dot )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__n_pose) identifier__n_pose )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_y_axis) identifier_y_axis (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier__pose) identifier__pose )attribute (slice (colon) colon (integer_3) integer_3 )slice (integer_1) integer_1 )subscript (identifier_flatten) identifier_flatten )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_axis) identifier_axis (None) None )comparison_operator (block (expression_statement (assignment (identifier_y_axis) identifier_y_axis (identifier_axis) identifier_axis )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_x_rot_mat) identifier_x_rot_mat (call (attribute (identifier_transformations) identifier_transformations (identifier_rotation_matrix) identifier_rotation_matrix )attribute (argument_list (identifier_azimuth) identifier_azimuth (identifier_y_axis) identifier_y_axis (identifier_target) identifier_target )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__pose) identifier__pose )attribute (call (attribute (identifier_x_rot_mat) identifier_x_rot_mat (identifier_dot) identifier_dot )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__pose) identifier__pose )attribute )argument_list )call )assignment )expression_statement )block )function_definition )module
Rotate the trackball about the "Up" axis by azimuth radians. Parameters ---------- azimuth : float The number of radians to rotate.
(module (function_definition (function_name_edit) function_name_edit (parameters (default_parameter (identifier_directory) identifier_directory (None) None )default_parameter (default_parameter (identifier_revision) identifier_revision (string_'current') string_'current' )default_parameter )parameters (block (if_statement (comparison_operator (identifier_alembic_version) identifier_alembic_version (tuple (integer_0) integer_0 (integer_8) integer_8 (integer_0) integer_0 )tuple )comparison_operator (block (expression_statement (assignment (identifier_config) identifier_config (call (attribute (attribute (subscript (attribute (identifier_current_app) identifier_current_app (identifier_extensions) identifier_extensions )attribute (string_'migrate') string_'migrate' )subscript (identifier_migrate) identifier_migrate )attribute (identifier_get_config) identifier_get_config )attribute (argument_list (identifier_directory) identifier_directory )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_command) identifier_command (identifier_edit) identifier_edit )attribute (argument_list (identifier_config) identifier_config (identifier_revision) identifier_revision )argument_list )call )expression_statement )block (else_clause (block (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (string_'Alembic 0.8.0 or greater is required') string_'Alembic 0.8.0 or greater is required' )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Edit current revision.
(module (function_definition (function_name_trim_req) function_name_trim_req (parameters (identifier_req) identifier_req )parameters (block (expression_statement (assignment (identifier_reqfirst) identifier_reqfirst (call (identifier_next) identifier_next (argument_list (call (identifier_iter) identifier_iter (argument_list (identifier_req) identifier_req )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (string_'.') string_'.' (identifier_reqfirst) identifier_reqfirst )comparison_operator (block (return_statement (dictionary (pair (subscript (call (attribute (identifier_reqfirst) identifier_reqfirst (identifier_split) identifier_split )attribute (argument_list (string_'.') string_'.' )argument_list )call (integer_0) integer_0 )subscript (subscript (identifier_req) identifier_req (identifier_reqfirst) identifier_reqfirst )subscript )pair )dictionary )return_statement )block )if_statement (return_statement (identifier_req) identifier_req )return_statement )block )function_definition )module
Trim any function off of a requisite
(module (function_definition (function_name__get_validated_stages) function_name__get_validated_stages (parameters (identifier_stages) identifier_stages )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_stages) identifier_stages (identifier_list) identifier_list )argument_list )call )not_operator (block (raise_statement (call (identifier_WorkflowBuilderException) identifier_WorkflowBuilderException (argument_list (string_"Stages must be specified as a list of dictionaries") string_"Stages must be specified as a list of dictionaries" )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_validated_stages) identifier_validated_stages (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_index) identifier_index (identifier_stage) identifier_stage )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_stages) identifier_stages )argument_list )call (block (expression_statement (call (attribute (identifier_validated_stages) identifier_validated_stages (identifier_append) identifier_append )attribute (argument_list (call (identifier__get_validated_stage) identifier__get_validated_stage (argument_list (identifier_stage) identifier_stage (identifier_index) identifier_index )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_validated_stages) identifier_validated_stages )return_statement )block )function_definition )module
Validates stages of the workflow as a list of dictionaries.
(module (function_definition (function_name_post_build) function_name_post_build (parameters (identifier_self) identifier_self (identifier_p) identifier_p (identifier_pay) identifier_pay )parameters (block (expression_statement (augmented_assignment (identifier_p) identifier_p (identifier_pay) identifier_pay )augmented_assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_type) identifier_type )attribute (list (integer_0) integer_0 (integer_0x31) integer_0x31 (integer_0x32) integer_0x32 (integer_0x22) integer_0x22 )list )comparison_operator (block (expression_statement (assignment (identifier_p) identifier_p (binary_operator (binary_operator (subscript (identifier_p) identifier_p (slice (colon) colon (integer_1) integer_1 )slice )subscript (call (identifier_chr) identifier_chr (argument_list (integer_0) integer_0 )argument_list )call )binary_operator (subscript (identifier_p) identifier_p (slice (integer_2) integer_2 (colon) colon )slice )subscript )binary_operator )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_chksum) identifier_chksum )attribute (None) None )comparison_operator (block (expression_statement (assignment (identifier_ck) identifier_ck (call (identifier_checksum) identifier_checksum (argument_list (binary_operator (subscript (identifier_p) identifier_p (slice (colon) colon (integer_2) integer_2 )slice )subscript (subscript (identifier_p) identifier_p (slice (integer_4) integer_4 (colon) colon )slice )subscript )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_p) identifier_p (binary_operator (binary_operator (subscript (identifier_p) identifier_p (slice (colon) colon (integer_2) integer_2 )slice )subscript (call (attribute (identifier_ck) identifier_ck (identifier_to_bytes) identifier_to_bytes )attribute (argument_list (integer_2) integer_2 (string_'big') string_'big' )argument_list )call )binary_operator (subscript (identifier_p) identifier_p (slice (integer_4) integer_4 (colon) colon )slice )subscript )binary_operator )assignment )expression_statement )block )if_statement (return_statement (identifier_p) identifier_p )return_statement )block )function_definition )module
Called implicitly before a packet is sent to compute and place IGMPv3 checksum. Parameters: self The instantiation of an IGMPv3 class p The IGMPv3 message in hex in network byte order pay Additional payload for the IGMPv3 message
(module (function_definition (function_name_draw_variable) function_name_draw_variable (parameters (identifier_loc) identifier_loc (identifier_scale) identifier_scale (identifier_shape) identifier_shape (identifier_skewness) identifier_skewness (identifier_nsims) identifier_nsims )parameters (block (return_statement (binary_operator (identifier_loc) identifier_loc (binary_operator (identifier_scale) identifier_scale (call (attribute (identifier_Skewt) identifier_Skewt (identifier_rvs) identifier_rvs )attribute (argument_list (identifier_shape) identifier_shape (identifier_skewness) identifier_skewness (identifier_nsims) identifier_nsims )argument_list )call )binary_operator )binary_operator )return_statement )block )function_definition )module
Draws random variables from Skew t distribution Parameters ---------- loc : float location parameter for the distribution scale : float scale parameter for the distribution shape : float tail thickness parameter for the distribution skewness : float skewness parameter for the distribution nsims : int or list number of draws to take from the distribution Returns ---------- - Random draws from the distribution
(module (function_definition (function_name_request_eval) function_name_request_eval (parameters (identifier_self) identifier_self (identifier_req) identifier_req (identifier_expression) identifier_expression )parameters (block (expression_statement (assignment (identifier_r) identifier_r (call (identifier_str) identifier_str (argument_list (call (identifier_eval) identifier_eval (argument_list (identifier_expression) identifier_expression )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__eval_result) identifier__eval_result )attribute (identifier_set_value) identifier_set_value )attribute (argument_list (identifier_r) identifier_r )argument_list )call )expression_statement (return_statement (tuple (string_"ok") string_"ok" (identifier_r) identifier_r )tuple )return_statement )block )function_definition )module
Evaluate a Python expression.