sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_init) function_name_init (parameters (identifier_module_paths) identifier_module_paths (identifier_work_db) identifier_work_db (identifier_config) identifier_config )parameters (block (expression_statement (assignment (identifier_operator_names) identifier_operator_names (call (attribute (attribute (identifier_cosmic_ray) identifier_cosmic_ray (identifier_plugins) identifier_plugins )attribute (identifier_operator_names) identifier_operator_names )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_work_db) identifier_work_db (identifier_set_config) identifier_set_config )attribute (argument_list (keyword_argument (identifier_config) identifier_config (identifier_config) identifier_config )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_work_db) identifier_work_db (identifier_clear) identifier_clear )attribute (argument_list )argument_list )call )expression_statement (for_statement (identifier_module_path) identifier_module_path (identifier_module_paths) identifier_module_paths (block (expression_statement (assignment (identifier_module_ast) identifier_module_ast (call (identifier_get_ast) identifier_get_ast (argument_list (identifier_module_path) identifier_module_path (keyword_argument (identifier_python_version) identifier_python_version (attribute (identifier_config) identifier_config (identifier_python_version) identifier_python_version )attribute )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_op_name) identifier_op_name (identifier_operator_names) identifier_operator_names (block (expression_statement (assignment (identifier_operator) identifier_operator (call (call (identifier_get_operator) identifier_get_operator (argument_list (identifier_op_name) identifier_op_name )argument_list )call (argument_list (attribute (identifier_config) identifier_config (identifier_python_version) identifier_python_version )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_visitor) identifier_visitor (call (identifier_WorkDBInitVisitor) identifier_WorkDBInitVisitor (argument_list (identifier_module_path) identifier_module_path (identifier_op_name) identifier_op_name (identifier_work_db) identifier_work_db (identifier_operator) identifier_operator )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_visitor) identifier_visitor (identifier_walk) identifier_walk )attribute (argument_list (identifier_module_ast) identifier_module_ast )argument_list )call )expression_statement )block )for_statement )block )for_statement (expression_statement (call (identifier_apply_interceptors) identifier_apply_interceptors (argument_list (identifier_work_db) identifier_work_db (call (attribute (call (attribute (identifier_config) identifier_config (identifier_sub) identifier_sub )attribute (argument_list (string_'interceptors') string_'interceptors' )argument_list )call (identifier_get) identifier_get )attribute (argument_list (string_'enabled') string_'enabled' (tuple )tuple )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Clear and initialize a work-db with work items. Any existing data in the work-db will be cleared and replaced with entirely new work orders. In particular, this means that any results in the db are removed. Args: module_paths: iterable of pathlib.Paths of modules to mutate. work_db: A `WorkDB` instance into which the work orders will be saved. config: The configuration for the new session.
(module (function_definition (function_name_dependencies) function_name_dependencies (parameters (identifier_self) identifier_self (identifier_task) identifier_task (default_parameter (identifier_params) identifier_params (dictionary )dictionary )default_parameter (dictionary_splat_pattern (identifier_options) identifier_options )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_path) identifier_path (binary_operator (string_"/tasks/%s/dependencies") string_"/tasks/%s/dependencies" (parenthesized_expression (identifier_task) identifier_task )parenthesized_expression )binary_operator )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_path) identifier_path (identifier_params) identifier_params (dictionary_splat (identifier_options) identifier_options )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Returns the compact representations of all of the dependencies of a task. Parameters ---------- task : {Id} The task to get dependencies on. [params] : {Object} Parameters for the request
(module (function_definition (function_name_cli) function_name_cli (parameters (identifier_obj) identifier_obj )parameters (block (expression_statement (assignment (identifier_client) identifier_client (subscript (identifier_obj) identifier_obj (string_'client') string_'client' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_metrics) identifier_metrics (subscript (call (attribute (identifier_client) identifier_client (identifier_mgmt_status) identifier_mgmt_status )attribute (argument_list )argument_list )call (string_'metrics') string_'metrics' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_headers) identifier_headers (dictionary (pair (string_'title') string_'title' (string_'METRIC') string_'METRIC' )pair (pair (string_'type') string_'type' (string_'TYPE') string_'TYPE' )pair (pair (string_'name') string_'name' (string_'NAME') string_'NAME' )pair (pair (string_'value') string_'value' (string_'VALUE') string_'VALUE' )pair (pair (string_'average') string_'average' (string_'AVERAGE') string_'AVERAGE' )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (call (identifier_tabulate) identifier_tabulate (argument_list (list_comprehension (dictionary (pair (string_'title') string_'title' (subscript (identifier_m) identifier_m (string_'title') string_'title' )subscript )pair (pair (string_'type') string_'type' (subscript (identifier_m) identifier_m (string_'type') string_'type' )subscript )pair (pair (string_'name') string_'name' (call (attribute (string_'{}.{}') string_'{}.{}' (identifier_format) identifier_format )attribute (argument_list (subscript (identifier_m) identifier_m (string_'group') string_'group' )subscript (subscript (identifier_m) identifier_m (string_'name') string_'name' )subscript )argument_list )call )pair (pair (string_'value') string_'value' (boolean_operator (call (attribute (identifier_m) identifier_m (identifier_get) identifier_get )attribute (argument_list (string_'value') string_'value' (None) None )argument_list )call (call (attribute (identifier_m) identifier_m (identifier_get) identifier_get )attribute (argument_list (string_'count') string_'count' (integer_0) integer_0 )argument_list )call )boolean_operator )pair (pair (string_'average') string_'average' (conditional_expression (binary_operator (binary_operator (call (identifier_int) identifier_int (argument_list (subscript (identifier_m) identifier_m (string_'totalTime') string_'totalTime' )subscript )argument_list )call (float_1.0) float_1.0 )binary_operator (call (identifier_int) identifier_int (argument_list (subscript (identifier_m) identifier_m (string_'count') string_'count' )subscript )argument_list )call )binary_operator (comparison_operator (subscript (identifier_m) identifier_m (string_'type') string_'type' )subscript (string_'timer') string_'timer' )comparison_operator (None) None )conditional_expression )pair )dictionary (for_in_clause (identifier_m) identifier_m (identifier_metrics) identifier_metrics )for_in_clause )list_comprehension (keyword_argument (identifier_headers) identifier_headers (identifier_headers) identifier_headers )keyword_argument (keyword_argument (identifier_tablefmt) identifier_tablefmt (subscript (identifier_obj) identifier_obj (string_'output') string_'output' )subscript )keyword_argument )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Display API server switch status and usage metrics.
(module (function_definition (function_name_fishrot) function_name_fishrot (parameters (default_parameter (identifier_k) identifier_k (integer_20) integer_20 )default_parameter (default_parameter (identifier_n) identifier_n (integer_100) integer_100 )default_parameter (default_parameter (identifier_dec) identifier_dec (integer_0) integer_0 )default_parameter (default_parameter (identifier_inc) identifier_inc (integer_90) integer_90 )default_parameter (default_parameter (identifier_di_block) identifier_di_block (True) True )default_parameter )parameters (block (expression_statement (assignment (identifier_directions) identifier_directions (list )list )assignment )expression_statement (expression_statement (assignment (identifier_declinations) identifier_declinations (list )list )assignment )expression_statement (expression_statement (assignment (identifier_inclinations) identifier_inclinations (list )list )assignment )expression_statement (if_statement (comparison_operator (identifier_di_block) identifier_di_block (True) True )comparison_operator (block (for_statement (identifier_data) identifier_data (call (identifier_range) identifier_range (argument_list (identifier_n) identifier_n )argument_list )call (block (expression_statement (assignment (pattern_list (identifier_d) identifier_d (identifier_i) identifier_i )pattern_list (call (attribute (identifier_pmag) identifier_pmag (identifier_fshdev) identifier_fshdev )attribute (argument_list (identifier_k) identifier_k )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_drot) identifier_drot (identifier_irot) identifier_irot )pattern_list (call (attribute (identifier_pmag) identifier_pmag (identifier_dodirot) identifier_dodirot )attribute (argument_list (identifier_d) identifier_d (identifier_i) identifier_i (identifier_dec) identifier_dec (identifier_inc) identifier_inc )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_directions) identifier_directions (identifier_append) identifier_append )attribute (argument_list (list (identifier_drot) identifier_drot (identifier_irot) identifier_irot (float_1.) float_1. )list )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_directions) identifier_directions )return_statement )block (else_clause (block (for_statement (identifier_data) identifier_data (call (identifier_range) identifier_range (argument_list (identifier_n) identifier_n )argument_list )call (block (expression_statement (assignment (pattern_list (identifier_d) identifier_d (identifier_i) identifier_i )pattern_list (call (attribute (identifier_pmag) identifier_pmag (identifier_fshdev) identifier_fshdev )attribute (argument_list (identifier_k) identifier_k )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_drot) identifier_drot (identifier_irot) identifier_irot )pattern_list (call (attribute (identifier_pmag) identifier_pmag (identifier_dodirot) identifier_dodirot )attribute (argument_list (identifier_d) identifier_d (identifier_i) identifier_i (identifier_dec) identifier_dec (identifier_inc) identifier_inc )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_declinations) identifier_declinations (identifier_append) identifier_append )attribute (argument_list (identifier_drot) identifier_drot )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_inclinations) identifier_inclinations (identifier_append) identifier_append )attribute (argument_list (identifier_irot) identifier_irot )argument_list )call )expression_statement )block )for_statement (return_statement (expression_list (identifier_declinations) identifier_declinations (identifier_inclinations) identifier_inclinations )expression_list )return_statement )block )else_clause )if_statement )block )function_definition )module
Generates Fisher distributed unit vectors from a specified distribution using the pmag.py fshdev and dodirot functions. Parameters ---------- k : kappa precision parameter (default is 20) n : number of vectors to determine (default is 100) dec : mean declination of distribution (default is 0) inc : mean inclination of distribution (default is 90) di_block : this function returns a nested list of [dec,inc,1.0] as the default if di_block = False it will return a list of dec and a list of inc Returns --------- di_block : a nested list of [dec,inc,1.0] (default) dec, inc : a list of dec and a list of inc (if di_block = False) Examples -------- >>> ipmag.fishrot(k=20, n=5, dec=40, inc=60) [[44.766285502555775, 37.440866867657235, 1.0], [33.866315796883725, 64.732532250463436, 1.0], [47.002912770597163, 54.317853800896977, 1.0], [36.762165614432547, 56.857240672884252, 1.0], [71.43950604474395, 59.825830945715431, 1.0]]
(module (function_definition (function_name_contracts_deployed_path) function_name_contracts_deployed_path (parameters (typed_parameter (identifier_chain_id) identifier_chain_id (type (identifier_int) identifier_int )type )typed_parameter (typed_default_parameter (identifier_version) identifier_version (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type (None) None )typed_default_parameter (typed_default_parameter (identifier_services) identifier_services (type (identifier_bool) identifier_bool )type (False) False )typed_default_parameter )parameters (block (expression_statement (assignment (identifier_data_path) identifier_data_path (call (identifier_contracts_data_path) identifier_contracts_data_path (argument_list (identifier_version) identifier_version )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_chain_name) identifier_chain_name (conditional_expression (subscript (identifier_ID_TO_NETWORKNAME) identifier_ID_TO_NETWORKNAME (identifier_chain_id) identifier_chain_id )subscript (comparison_operator (identifier_chain_id) identifier_chain_id (identifier_ID_TO_NETWORKNAME) identifier_ID_TO_NETWORKNAME )comparison_operator (string_'private_net') string_'private_net' )conditional_expression )assignment )expression_statement (return_statement (call (attribute (identifier_data_path) identifier_data_path (identifier_joinpath) identifier_joinpath )attribute (argument_list (string_f'deployment_{"services_" if services else ""}{chain_name}.json') string_f'deployment_{"services_" if services else ""}{chain_name}.json' )argument_list )call )return_statement )block )function_definition )module
Returns the path of the deplolyment data JSON file.
(module (function_definition (function_name__respond) function_name__respond (parameters (identifier_self) identifier_self (identifier_resp) identifier_resp )parameters (block (expression_statement (assignment (identifier_response_queue) identifier_response_queue (call (attribute (attribute (identifier_self) identifier_self (identifier__response_queues) identifier__response_queues )attribute (identifier_get) identifier_get )attribute (argument_list (keyword_argument (identifier_timeout) identifier_timeout (float_0.1) float_0.1 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_response_queue) identifier_response_queue (identifier_put) identifier_put )attribute (argument_list (identifier_resp) identifier_resp )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__completed_response_lines) identifier__completed_response_lines )attribute (list )list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__is_multiline) identifier__is_multiline )attribute (None) None )assignment )expression_statement )block )function_definition )module
Respond to the person waiting
(module (function_definition (function_name__build) function_name__build (parameters (identifier_self) identifier_self (identifier_items) identifier_items (default_parameter (identifier_chunk_size) identifier_chunk_size (integer_10000) integer_10000 )default_parameter )parameters (block (expression_statement (call (attribute (identifier__log) identifier__log (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_"_build, chunk_size={:d}") string_"_build, chunk_size={:d}" (identifier_format) identifier_format )attribute (argument_list (identifier_chunk_size) identifier_chunk_size )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (pattern_list (identifier_n) identifier_n (identifier_i) identifier_i )pattern_list (expression_list (integer_0) integer_0 (integer_0) integer_0 )expression_list )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_item) identifier_item )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_items) identifier_items )argument_list )call (block (if_statement (comparison_operator (identifier_i) identifier_i (integer_0) integer_0 )comparison_operator (block (expression_statement (call (attribute (identifier__log) identifier__log (identifier_debug) identifier_debug )attribute (argument_list (string_"_build, first item") string_"_build, first item" )argument_list )call )expression_statement )block )if_statement (if_statement (comparison_operator (integer_0) integer_0 (binary_operator (parenthesized_expression (binary_operator (identifier_i) identifier_i (integer_1) integer_1 )binary_operator )parenthesized_expression (identifier_chunk_size) identifier_chunk_size )binary_operator )comparison_operator (block (if_statement (attribute (identifier_self) identifier_self (identifier__seq) identifier__seq )attribute (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__run) identifier__run )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__run_parallel_fn) identifier__run_parallel_fn )attribute (argument_list )argument_list )call )expression_statement )block )else_clause )if_statement (if_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__status) identifier__status )attribute (identifier_has_failures) identifier_has_failures )attribute (argument_list )argument_list )call (block (break_statement )break_statement )block )if_statement (expression_statement (assignment (identifier_n) identifier_n (binary_operator (identifier_i) identifier_i (integer_1) integer_1 )binary_operator )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__queue) identifier__queue )attribute (identifier_put) identifier_put )attribute (argument_list (identifier_item) identifier_item )argument_list )call )expression_statement )block )for_statement (if_statement (attribute (identifier_self) identifier_self (identifier__seq) identifier__seq )attribute (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__run) identifier__run )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__run_parallel_fn) identifier__run_parallel_fn )attribute (argument_list )argument_list )call )expression_statement )block )else_clause )if_statement (if_statement (not_operator (call (attribute (attribute (identifier_self) identifier_self (identifier__status) identifier__status )attribute (identifier_has_failures) identifier_has_failures )attribute (argument_list )argument_list )call )not_operator (block (expression_statement (assignment (identifier_n) identifier_n (binary_operator (identifier_i) identifier_i (integer_1) integer_1 )binary_operator )assignment )expression_statement )block )if_statement (return_statement (identifier_n) identifier_n )return_statement )block )function_definition )module
Build the output, in chunks. :return: Number of items processed :rtype: int
(module (function_definition (function_name_size_limit) function_name_size_limit (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_limits) identifier_limits (list_comprehension (identifier_lim) identifier_lim (for_in_clause (identifier_lim) identifier_lim (call (attribute (identifier_current_files_rest) identifier_current_files_rest (identifier_file_size_limiters) identifier_file_size_limiters )attribute (argument_list (identifier_self) identifier_self )argument_list )call )for_in_clause (if_clause (comparison_operator (attribute (identifier_lim) identifier_lim (identifier_limit) identifier_limit )attribute (None) None )comparison_operator )if_clause )list_comprehension )assignment )expression_statement (return_statement (conditional_expression (call (identifier_min) identifier_min (argument_list (identifier_limits) identifier_limits )argument_list )call (identifier_limits) identifier_limits (None) None )conditional_expression )return_statement )block )function_definition )module
Get size limit for this bucket. The limit is based on the minimum output of the file size limiters.
(module (function_definition (function_name_alien_filter) function_name_alien_filter (parameters (identifier_packages) identifier_packages (identifier_sizes) identifier_sizes )parameters (block (expression_statement (assignment (pattern_list (identifier_cache) identifier_cache (identifier_npkg) identifier_npkg (identifier_nsize) identifier_nsize )pattern_list (expression_list (list )list (list )list (list )list )expression_list )assignment )expression_statement (for_statement (pattern_list (identifier_p) identifier_p (identifier_s) identifier_s )pattern_list (call (identifier_zip) identifier_zip (argument_list (identifier_packages) identifier_packages (identifier_sizes) identifier_sizes )argument_list )call (block (expression_statement (assignment (identifier_name) identifier_name (subscript (call (identifier_split_package) identifier_split_package (argument_list (identifier_p) identifier_p )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (if_statement (comparison_operator (identifier_name) identifier_name (identifier_cache) identifier_cache )comparison_operator (block (expression_statement (call (attribute (identifier_cache) identifier_cache (identifier_append) identifier_append )attribute (argument_list (identifier_name) identifier_name )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_npkg) identifier_npkg (identifier_append) identifier_append )attribute (argument_list (identifier_p) identifier_p )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_nsize) identifier_nsize (identifier_append) identifier_append )attribute (argument_list (identifier_s) identifier_s )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (expression_list (identifier_npkg) identifier_npkg (identifier_nsize) identifier_nsize )expression_list )return_statement )block )function_definition )module
This filter avoid list double packages from alien repository
(module (function_definition (function_name_hacking_python3x_octal_literals) function_name_hacking_python3x_octal_literals (parameters (identifier_logical_line) identifier_logical_line (identifier_tokens) identifier_tokens (identifier_noqa) identifier_noqa )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (if_statement (identifier_noqa) identifier_noqa (block (return_statement )return_statement )block )if_statement (for_statement (pattern_list (identifier_token_type) identifier_token_type (identifier_text) identifier_text (identifier__) identifier__ (identifier__) identifier__ (identifier__) identifier__ )pattern_list (identifier_tokens) identifier_tokens (block (if_statement (comparison_operator (identifier_token_type) identifier_token_type (attribute (identifier_tokenize) identifier_tokenize (identifier_NUMBER) identifier_NUMBER )attribute )comparison_operator (block (expression_statement (assignment (identifier_match) identifier_match (call (attribute (identifier_RE_OCTAL) identifier_RE_OCTAL (identifier_match) identifier_match )attribute (argument_list (identifier_text) identifier_text )argument_list )call )assignment )expression_statement (if_statement (identifier_match) identifier_match (block (expression_statement (yield (expression_list (integer_0) integer_0 (parenthesized_expression (binary_operator (concatenated_string (string_"H232: Python 3.x incompatible octal %s should be ") string_"H232: Python 3.x incompatible octal %s should be " (string_"written as 0o%s ") string_"written as 0o%s " )concatenated_string (tuple (subscript (call (attribute (identifier_match) identifier_match (identifier_group) identifier_group )attribute (argument_list (integer_0) integer_0 )argument_list )call (slice (integer_1) integer_1 (colon) colon )slice )subscript (call (attribute (identifier_match) identifier_match (identifier_group) identifier_group )attribute (argument_list (integer_1) integer_1 )argument_list )call )tuple )binary_operator )parenthesized_expression )expression_list )yield )expression_statement )block )if_statement )block )if_statement )block )for_statement )block )function_definition )module
r"""Check for octal literals in Python 3.x compatible form. As of Python 3.x, the construct "0755" has been removed. Use "0o755" instead". Okay: f(0o755) Okay: 'f(0755)' Okay: f(755) Okay: f(0) Okay: f(000) Okay: MiB = 1.0415 H232: f(0755) Okay: f(0755) # noqa
(module (function_definition (function_name_step_definition) function_name_step_definition (parameters (identifier_step_name) identifier_step_name )parameters (block (if_statement (not_operator (call (attribute (identifier_orca) identifier_orca (identifier_is_step) identifier_is_step )attribute (argument_list (identifier_step_name) identifier_step_name )argument_list )call )not_operator (block (expression_statement (call (identifier_abort) identifier_abort (argument_list (integer_404) integer_404 )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_filename) identifier_filename (identifier_lineno) identifier_lineno (identifier_source) identifier_source )pattern_list (line_continuation_\) line_continuation_\ (call (attribute (call (attribute (identifier_orca) identifier_orca (identifier_get_step) identifier_get_step )attribute (argument_list (identifier_step_name) identifier_step_name )argument_list )call (identifier_func_source_data) identifier_func_source_data )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_html) identifier_html (call (identifier_highlight) identifier_highlight (argument_list (identifier_source) identifier_source (call (identifier_PythonLexer) identifier_PythonLexer (argument_list )argument_list )call (call (identifier_HtmlFormatter) identifier_HtmlFormatter (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (identifier_jsonify) identifier_jsonify (argument_list (keyword_argument (identifier_filename) identifier_filename (identifier_filename) identifier_filename )keyword_argument (keyword_argument (identifier_lineno) identifier_lineno (identifier_lineno) identifier_lineno )keyword_argument (keyword_argument (identifier_text) identifier_text (identifier_source) identifier_source )keyword_argument (keyword_argument (identifier_html) identifier_html (identifier_html) identifier_html )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Get the source of a step function. Returned object has keys "filename", "lineno", "text" and "html". "text" is the raw text of the function, "html" has been marked up by Pygments.
(module (function_definition (function_name___parse_config) function_name___parse_config (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (attribute (identifier_self) identifier_self (identifier_should_parse_config) identifier_should_parse_config )attribute (parenthesized_expression (boolean_operator (attribute (attribute (identifier_self) identifier_self (identifier_args) identifier_args )attribute (identifier_config) identifier_config )attribute (attribute (identifier_self) identifier_self (identifier_config_file) identifier_config_file )attribute )boolean_operator )parenthesized_expression )boolean_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (call (attribute (identifier_ConfigParser) identifier_ConfigParser (identifier_SafeConfigParser) identifier_SafeConfigParser )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (identifier_read) identifier_read )attribute (argument_list (boolean_operator (attribute (attribute (identifier_self) identifier_self (identifier_args) identifier_args )attribute (identifier_config) identifier_config )attribute (attribute (identifier_self) identifier_self (identifier_config_file) identifier_config_file )attribute )boolean_operator )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Invoke the config file parser.
(module (function_definition (function_name_interruptRead) function_name_interruptRead (parameters (identifier_self) identifier_self (identifier_endpoint) identifier_endpoint (identifier_size) identifier_size (default_parameter (identifier_timeout) identifier_timeout (integer_100) integer_100 )default_parameter )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_dev) identifier_dev )attribute (identifier_read) identifier_read )attribute (argument_list (identifier_endpoint) identifier_endpoint (identifier_size) identifier_size (identifier_timeout) identifier_timeout )argument_list )call )return_statement )block )function_definition )module
r"""Performs a interrupt read request to the endpoint specified. Arguments: endpoint: endpoint number. size: number of bytes to read. timeout: operation timeout in milliseconds. (default: 100) Returns a tuple with the data read.
(module (function_definition (function_name_lookup_forward) function_name_lookup_forward (parameters (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_ip_addresses) identifier_ip_addresses (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_addresses) identifier_addresses (call (identifier_list) identifier_list (argument_list (call (identifier_set) identifier_set (generator_expression (call (identifier_str) identifier_str (argument_list (subscript (subscript (identifier_ip) identifier_ip (integer_4) integer_4 )subscript (integer_0) integer_0 )subscript )argument_list )call (for_in_clause (identifier_ip) identifier_ip (call (attribute (identifier_socket) identifier_socket (identifier_getaddrinfo) identifier_getaddrinfo )attribute (argument_list (identifier_name) identifier_name (None) None )argument_list )call )for_in_clause )generator_expression )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_addresses) identifier_addresses (None) None )comparison_operator (block (return_statement (identifier_ip_addresses) identifier_ip_addresses )return_statement )block )if_statement (for_statement (identifier_address) identifier_address (identifier_addresses) identifier_addresses (block (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (call (attribute (identifier_ipaddress) identifier_ipaddress (identifier_ip_address) identifier_ip_address )attribute (argument_list (identifier_address) identifier_address )argument_list )call )argument_list )call (attribute (identifier_ipaddress) identifier_ipaddress (identifier_IPv4Address) identifier_IPv4Address )attribute )comparison_operator (block (expression_statement (assignment (subscript (identifier_ip_addresses) identifier_ip_addresses (string_'ipv4') string_'ipv4' )subscript (identifier_address) identifier_address )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (call (attribute (identifier_ipaddress) identifier_ipaddress (identifier_ip_address) identifier_ip_address )attribute (argument_list (identifier_address) identifier_address )argument_list )call )argument_list )call (attribute (identifier_ipaddress) identifier_ipaddress (identifier_IPv6Address) identifier_IPv6Address )attribute )comparison_operator (block (expression_statement (assignment (subscript (identifier_ip_addresses) identifier_ip_addresses (string_'ipv6') string_'ipv6' )subscript (identifier_address) identifier_address )assignment )expression_statement )block )if_statement )block )for_statement (return_statement (identifier_ip_addresses) identifier_ip_addresses )return_statement )block )function_definition )module
Perform a forward lookup of a hostname.
(module (function_definition (function_name_CopyToIsoFormat) function_name_CopyToIsoFormat (parameters (identifier_cls) identifier_cls (identifier_timestamp) identifier_timestamp (default_parameter (identifier_timezone) identifier_timezone (attribute (identifier_pytz) identifier_pytz (identifier_UTC) identifier_UTC )attribute )default_parameter (default_parameter (identifier_raise_error) identifier_raise_error (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_datetime_object) identifier_datetime_object (call (attribute (identifier_cls) identifier_cls (identifier_CopyToDatetime) identifier_CopyToDatetime )attribute (argument_list (identifier_timestamp) identifier_timestamp (identifier_timezone) identifier_timezone (keyword_argument (identifier_raise_error) identifier_raise_error (identifier_raise_error) identifier_raise_error )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_datetime_object) identifier_datetime_object (identifier_isoformat) identifier_isoformat )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Copies the timestamp to an ISO 8601 formatted string. Args: timestamp: The timestamp which is an integer containing the number of micro seconds since January 1, 1970, 00:00:00 UTC. timezone: Optional timezone (instance of pytz.timezone). raise_error: Boolean that if set to True will not absorb an OverflowError if the timestamp is out of bounds. By default there will be no error raised. Returns: A string containing an ISO 8601 formatted date and time.
(module (function_definition (function_name_bind_sockets) function_name_bind_sockets (parameters (identifier_address) identifier_address (identifier_port) identifier_port )parameters (block (expression_statement (assignment (identifier_ss) identifier_ss (call (attribute (identifier_netutil) identifier_netutil (identifier_bind_sockets) identifier_bind_sockets )attribute (argument_list (keyword_argument (identifier_port) identifier_port (boolean_operator (identifier_port) identifier_port (integer_0) integer_0 )boolean_operator )keyword_argument (keyword_argument (identifier_address) identifier_address (identifier_address) identifier_address )keyword_argument )argument_list )call )assignment )expression_statement (assert_statement (call (identifier_len) identifier_len (argument_list (identifier_ss) identifier_ss )argument_list )call )assert_statement (expression_statement (assignment (identifier_ports) identifier_ports (set_comprehension (subscript (call (attribute (identifier_s) identifier_s (identifier_getsockname) identifier_getsockname )attribute (argument_list )argument_list )call (integer_1) integer_1 )subscript (for_in_clause (identifier_s) identifier_s (identifier_ss) identifier_ss )for_in_clause )set_comprehension )assignment )expression_statement (assert_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_ports) identifier_ports )argument_list )call (integer_1) integer_1 )comparison_operator (string_"Multiple ports assigned??") string_"Multiple ports assigned??" )assert_statement (expression_statement (assignment (identifier_actual_port) identifier_actual_port (call (attribute (identifier_ports) identifier_ports (identifier_pop) identifier_pop )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_port) identifier_port (block (assert_statement (comparison_operator (identifier_actual_port) identifier_actual_port (identifier_port) identifier_port )comparison_operator )assert_statement )block )if_statement (return_statement (expression_list (identifier_ss) identifier_ss (identifier_actual_port) identifier_actual_port )expression_list )return_statement )block )function_definition )module
Bind a socket to a port on an address. Args: address (str) : An address to bind a port on, e.g. ``"localhost"`` port (int) : A port number to bind. Pass 0 to have the OS automatically choose a free port. This function returns a 2-tuple with the new socket as the first element, and the port that was bound as the second. (Useful when passing 0 as a port number to bind any free port.) Returns: (socket, port)
(module (function_definition (function_name_dependencies) function_name_dependencies (parameters (identifier_self) identifier_self )parameters (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_Dependency) identifier_Dependency )type )type_parameter )generic_type )type (block (expression_statement (assignment (identifier_dependencies_str) identifier_dependencies_str (call (attribute (identifier_DB) identifier_DB (identifier_get_hash_value) identifier_get_hash_value )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_key) identifier_key )attribute (string_'dependencies') string_'dependencies' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_dependencies) identifier_dependencies (list )list )assignment )expression_statement (for_statement (identifier_dependency) identifier_dependency (call (attribute (identifier_ast) identifier_ast (identifier_literal_eval) identifier_literal_eval )attribute (argument_list (identifier_dependencies_str) identifier_dependencies_str )argument_list )call (block (expression_statement (call (attribute (identifier_dependencies) identifier_dependencies (identifier_append) identifier_append )attribute (argument_list (call (identifier_Dependency) identifier_Dependency (argument_list (identifier_dependency) identifier_dependency )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_dependencies) identifier_dependencies )return_statement )block )function_definition )module
Return the PB dependencies.
(module (function_definition (function_name__read_current_marker) function_name__read_current_marker (parameters (identifier_self) identifier_self )parameters (block (return_statement (subscript (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier__geno_values) identifier__geno_values )attribute (call (attribute (identifier_np) identifier_np (identifier_frombuffer) identifier_frombuffer )attribute (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier__bed) identifier__bed )attribute (identifier_read) identifier_read )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__nb_bytes) identifier__nb_bytes )attribute )argument_list )call (keyword_argument (identifier_dtype) identifier_dtype (attribute (identifier_np) identifier_np (identifier_uint8) identifier_uint8 )attribute )keyword_argument )argument_list )call )subscript (identifier_flatten) identifier_flatten )attribute (argument_list (keyword_argument (identifier_order) identifier_order (string_"C") string_"C" )keyword_argument )argument_list )call (slice (colon) colon (attribute (identifier_self) identifier_self (identifier__nb_samples) identifier__nb_samples )attribute )slice )subscript )return_statement )block )function_definition )module
Reads the current marker and returns its genotypes.
(module (function_definition (function_name_check) function_name_check (parameters (identifier_self) identifier_self (identifier__) identifier__ )parameters (block (try_statement (block (import_statement (dotted_name (identifier_yaml) identifier_yaml )dotted_name )import_statement )block (except_clause (block (return_statement (True) True )return_statement )block )except_clause )try_statement (try_statement (block (expression_statement (call (attribute (identifier_yaml) identifier_yaml (identifier_safe_load) identifier_safe_load )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_recipes) identifier_recipes )attribute )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (raise_statement (call (identifier_RADLParseException) identifier_RADLParseException (argument_list (binary_operator (string_"Invalid YAML code: %s.") string_"Invalid YAML code: %s." (identifier_e) identifier_e )binary_operator (keyword_argument (identifier_line) identifier_line (attribute (identifier_self) identifier_self (identifier_line) identifier_line )attribute )keyword_argument )argument_list )call )raise_statement )block )except_clause )try_statement (return_statement (True) True )return_statement )block )function_definition )module
Check this configure.
(module (function_definition (function_name_add_config_source) function_name_add_config_source (parameters (identifier_self) identifier_self (identifier_config_source) identifier_config_source (default_parameter (identifier_position) identifier_position (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_rank) identifier_rank (conditional_expression (identifier_position) identifier_position (comparison_operator (identifier_position) identifier_position (None) None )comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__config_sources) identifier__config_sources )attribute )argument_list )call )conditional_expression )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__config_sources) identifier__config_sources )attribute (identifier_insert) identifier_insert )attribute (argument_list (identifier_rank) identifier_rank (identifier_config_source) identifier_config_source )argument_list )call )expression_statement )block )function_definition )module
Add a config source to the current ConfigResolver instance. If position is not set, this source will be inserted with the lowest priority.
(module (function_definition (function_name__get_all_volumes_paths) function_name__get_all_volumes_paths (parameters (identifier_conn) identifier_conn )parameters (block (expression_statement (assignment (identifier_volumes) identifier_volumes (list_comprehension (identifier_vol) identifier_vol (for_in_clause (identifier_l) identifier_l (list_comprehension (call (attribute (identifier_obj) identifier_obj (identifier_listAllVolumes) identifier_listAllVolumes )attribute (argument_list )argument_list )call (for_in_clause (identifier_obj) identifier_obj (call (attribute (identifier_conn) identifier_conn (identifier_listAllStoragePools) identifier_listAllStoragePools )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )for_in_clause (for_in_clause (identifier_vol) identifier_vol (identifier_l) identifier_l )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (dictionary_comprehension (pair (call (attribute (identifier_vol) identifier_vol (identifier_path) identifier_path )attribute (argument_list )argument_list )call (list_comprehension (attribute (identifier_path) identifier_path (identifier_text) identifier_text )attribute (for_in_clause (identifier_path) identifier_path (call (attribute (call (attribute (identifier_ElementTree) identifier_ElementTree (identifier_fromstring) identifier_fromstring )attribute (argument_list (call (attribute (identifier_vol) identifier_vol (identifier_XMLDesc) identifier_XMLDesc )attribute (argument_list )argument_list )call )argument_list )call (identifier_findall) identifier_findall )attribute (argument_list (string_'.//backingStore/path') string_'.//backingStore/path' )argument_list )call )for_in_clause )list_comprehension )pair (for_in_clause (identifier_vol) identifier_vol (identifier_volumes) identifier_volumes )for_in_clause (if_clause (call (identifier__is_valid_volume) identifier__is_valid_volume (argument_list (identifier_vol) identifier_vol )argument_list )call )if_clause )dictionary_comprehension )return_statement )block )function_definition )module
Extract the path and backing stores path of all volumes. :param conn: libvirt connection to use
(module (function_definition (function_name__chunk) function_name__chunk (parameters (identifier_self) identifier_self (identifier_response) identifier_response (default_parameter (identifier_size) identifier_size (integer_4096) integer_4096 )default_parameter )parameters (block (expression_statement (assignment (identifier_method) identifier_method (call (attribute (attribute (identifier_response) identifier_response (identifier_headers) identifier_headers )attribute (identifier_get) identifier_get )attribute (argument_list (string_"content-encoding") string_"content-encoding" )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_method) identifier_method (string_"gzip") string_"gzip" )comparison_operator (block (expression_statement (assignment (identifier_d) identifier_d (call (attribute (identifier_zlib) identifier_zlib (identifier_decompressobj) identifier_decompressobj )attribute (argument_list (binary_operator (integer_16) integer_16 (attribute (identifier_zlib) identifier_zlib (identifier_MAX_WBITS) identifier_MAX_WBITS )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_b) identifier_b (call (attribute (identifier_response) identifier_response (identifier_read) identifier_read )attribute (argument_list (identifier_size) identifier_size )argument_list )call )assignment )expression_statement (while_statement (identifier_b) identifier_b (block (expression_statement (assignment (identifier_data) identifier_data (call (attribute (identifier_d) identifier_d (identifier_decompress) identifier_decompress )attribute (argument_list (identifier_b) identifier_b )argument_list )call )assignment )expression_statement (expression_statement (yield (identifier_data) identifier_data )yield )expression_statement (expression_statement (assignment (identifier_b) identifier_b (call (attribute (identifier_response) identifier_response (identifier_read) identifier_read )attribute (argument_list (identifier_size) identifier_size )argument_list )call )assignment )expression_statement (delete_statement (identifier_data) identifier_data )delete_statement )block )while_statement )block (else_clause (block (while_statement (True) True (block (expression_statement (assignment (identifier_chunk) identifier_chunk (call (attribute (identifier_response) identifier_response (identifier_read) identifier_read )attribute (argument_list (identifier_size) identifier_size )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_chunk) identifier_chunk )not_operator (block (break_statement )break_statement )block )if_statement (expression_statement (yield (identifier_chunk) identifier_chunk )yield )expression_statement )block )while_statement )block )else_clause )if_statement )block )function_definition )module
downloads a web response in pieces
(module (function_definition (function_name_write_to_disk) function_name_write_to_disk (parameters (identifier_filename) identifier_filename (default_parameter (identifier_delete) identifier_delete (False) False )default_parameter (default_parameter (identifier_content) identifier_content (call (identifier_get_time) identifier_get_time (argument_list )argument_list )call )default_parameter )parameters (block (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )argument_list )call )not_operator (block (return_statement )return_statement )block )if_statement (if_statement (identifier_delete) identifier_delete (block (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_lexists) identifier_lexists )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_remove) identifier_remove )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )expression_statement )block )if_statement )block (else_clause (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_filename) identifier_filename (string_'wb') string_'wb' )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_f) identifier_f (identifier_write) identifier_write )attribute (argument_list (call (attribute (identifier_content) identifier_content (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )argument_list )call )expression_statement )block )with_statement )block )else_clause )if_statement )block )function_definition )module
Write filename out to disk
(module (function_definition (function_name_create) function_name_create (parameters (identifier_self) identifier_self (identifier_ami) identifier_ami (identifier_count) identifier_count (default_parameter (identifier_config) identifier_config (None) None )default_parameter )parameters (block (return_statement (call (attribute (call (attribute (identifier_self) identifier_self (identifier_Launcher) identifier_Launcher )attribute (argument_list (keyword_argument (identifier_config) identifier_config (identifier_config) identifier_config )keyword_argument )argument_list )call (identifier_launch) identifier_launch )attribute (argument_list (identifier_ami) identifier_ami (identifier_count) identifier_count )argument_list )call )return_statement )block )function_definition )module
Create an instance using the launcher.
(module (function_definition (function_name_load_all) function_name_load_all (parameters (identifier_cls) identifier_cls (identifier_vr) identifier_vr (default_parameter (identifier_params) identifier_params (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_ob_docs) identifier_ob_docs (call (attribute (identifier_vr) identifier_vr (identifier_query) identifier_query )attribute (argument_list (attribute (identifier_cls) identifier_cls (identifier_base) identifier_base )attribute (identifier_params) identifier_params )argument_list )call )assignment )expression_statement (return_statement (list_comprehension (call (identifier_cls) identifier_cls (argument_list (identifier_vr) identifier_vr (identifier_ob) identifier_ob )argument_list )call (for_in_clause (identifier_ob) identifier_ob (identifier_ob_docs) identifier_ob_docs )for_in_clause )list_comprehension )return_statement )block )function_definition )module
Create instances of all objects found
(module (function_definition (function_name_logout) function_name_logout (parameters (identifier_request) identifier_request (default_parameter (identifier_redirect_url) identifier_redirect_url (attribute (identifier_settings) identifier_settings (identifier_LOGOUT_REDIRECT_URL) identifier_LOGOUT_REDIRECT_URL )attribute )default_parameter )parameters (block (expression_statement (call (identifier_django_logout) identifier_django_logout (argument_list (identifier_request) identifier_request )argument_list )call )expression_statement (return_statement (call (identifier_HttpResponseRedirect) identifier_HttpResponseRedirect (argument_list (call (attribute (identifier_request) identifier_request (identifier_build_absolute_uri) identifier_build_absolute_uri )attribute (argument_list (identifier_redirect_url) identifier_redirect_url )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Nothing hilariously hidden here, logs a user out. Strip this out if your application already has hooks to handle this.
(module (function_definition (function_name_next) function_name_next (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_line) identifier_line (call (attribute (attribute (identifier_self) identifier_self (identifier_filehandle) identifier_filehandle )attribute (identifier_readline) identifier_readline )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_line) identifier_line (call (attribute (identifier_line) identifier_line (identifier_decode) identifier_decode )attribute (argument_list (string_'utf-8') string_'utf-8' (string_'replace') string_'replace' )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_line) identifier_line (string_'') string_'' )comparison_operator (block (raise_statement (identifier_StopIteration) identifier_StopIteration )raise_statement )block )if_statement (expression_statement (assignment (identifier_line) identifier_line (call (attribute (identifier_line) identifier_line (identifier_rstrip) identifier_rstrip )attribute (argument_list (string_'\n') string_'\n' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_le) identifier_le (call (identifier_LogEvent) identifier_LogEvent (argument_list (identifier_line) identifier_line )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (attribute (identifier_self) identifier_self (identifier__datetime_format) identifier__datetime_format )attribute (comparison_operator (attribute (identifier_self) identifier_self (identifier__datetime_nextpos) identifier__datetime_nextpos )attribute (None) None )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (identifier_le) identifier_le (identifier_set_datetime_hint) identifier_set_datetime_hint )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__datetime_format) identifier__datetime_format )attribute (attribute (identifier_self) identifier_self (identifier__datetime_nextpos) identifier__datetime_nextpos )attribute (attribute (identifier_self) identifier_self (identifier_year_rollover) identifier_year_rollover )attribute )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_ret) identifier_ret )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__datetime_format) identifier__datetime_format )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__datetime_nextpos) identifier__datetime_nextpos )attribute (None) None )assignment )expression_statement )block )if_statement )block (elif_clause (attribute (identifier_le) identifier_le (identifier_datetime) identifier_datetime )attribute (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__datetime_format) identifier__datetime_format )attribute (attribute (identifier_le) identifier_le (identifier_datetime_format) identifier_datetime_format )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__datetime_nextpos) identifier__datetime_nextpos )attribute (attribute (identifier_le) identifier_le (identifier__datetime_nextpos) identifier__datetime_nextpos )attribute )assignment )expression_statement )block )elif_clause )if_statement (return_statement (identifier_le) identifier_le )return_statement )block )function_definition )module
Get next line, adjust for year rollover and hint datetime format.
(module (function_definition (function_name_ping) function_name_ping (parameters )parameters (block (expression_statement (assignment (identifier_r) identifier_r (call (subscript (identifier___salt__) identifier___salt__ (string_'dracr.system_info') string_'dracr.system_info' )subscript (argument_list (keyword_argument (identifier_host) identifier_host (subscript (identifier_DETAILS) identifier_DETAILS (string_'host') string_'host' )subscript )keyword_argument (keyword_argument (identifier_admin_username) identifier_admin_username (subscript (identifier_DETAILS) identifier_DETAILS (string_'admin_username') string_'admin_username' )subscript )keyword_argument (keyword_argument (identifier_admin_password) identifier_admin_password (subscript (identifier_DETAILS) identifier_DETAILS (string_'admin_password') string_'admin_password' )subscript )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (attribute (identifier_r) identifier_r (identifier_get) identifier_get )attribute (argument_list (string_'retcode') string_'retcode' (integer_0) integer_0 )argument_list )call (integer_1) integer_1 )comparison_operator (block (return_statement (False) False )return_statement )block (else_clause (block (return_statement (True) True )return_statement )block )else_clause )if_statement (try_statement (block (return_statement (call (attribute (subscript (identifier_r) identifier_r (string_'dict') string_'dict' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'ret') string_'ret' (False) False )argument_list )call )return_statement )block (except_clause (identifier_Exception) identifier_Exception (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
Is the chassis responding? :return: Returns False if the chassis didn't respond, True otherwise.
(module (function_definition (function_name_get_chinese_text) function_name_get_chinese_text (parameters )parameters (block (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (string_"data/") string_"data/" )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (string_"mkdir data/") string_"mkdir data/" )argument_list )call )expression_statement )block )if_statement (if_statement (boolean_operator (parenthesized_expression (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (string_'data/pos.txt') string_'data/pos.txt' )argument_list )call )not_operator )parenthesized_expression (line_continuation_\) line_continuation_\ (parenthesized_expression (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (string_'data/neg') string_'data/neg' )argument_list )call )not_operator )parenthesized_expression )boolean_operator (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (concatenated_string (string_"wget -q https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/example/chinese_text.zip ") string_"wget -q https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/example/chinese_text.zip " (string_"-P data/") string_"-P data/" )concatenated_string )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_chdir) identifier_chdir )attribute (argument_list (string_"./data") string_"./data" )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system )attribute (argument_list (string_"unzip -u chinese_text.zip") string_"unzip -u chinese_text.zip" )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_chdir) identifier_chdir )attribute (argument_list (string_"..") string_".." )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Download the chinese_text dataset and unzip it
(module (function_definition (function_name__on_move) function_name__on_move (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (expression_statement (assignment (identifier_w) identifier_w (call (attribute (identifier_self) identifier_self (identifier_winfo_width) identifier_winfo_width )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_h) identifier_h (call (attribute (identifier_self) identifier_self (identifier_winfo_height) identifier_winfo_height )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_x) identifier_x (call (identifier_min) identifier_min (argument_list (call (identifier_max) identifier_max (argument_list (attribute (identifier_event) identifier_event (identifier_x) identifier_x )attribute (integer_0) integer_0 )argument_list )call (identifier_w) identifier_w )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_y) identifier_y (call (identifier_min) identifier_min (argument_list (call (identifier_max) identifier_max (argument_list (attribute (identifier_event) identifier_event (identifier_y) identifier_y )attribute (integer_0) integer_0 )argument_list )call (identifier_h) identifier_h )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_coords) identifier_coords )attribute (argument_list (string_'cross_h') string_'cross_h' (integer_0) integer_0 (identifier_y) identifier_y (identifier_w) identifier_w (identifier_y) identifier_y )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_coords) identifier_coords )attribute (argument_list (string_'cross_v') string_'cross_v' (identifier_x) identifier_x (integer_0) integer_0 (identifier_x) identifier_x (identifier_h) identifier_h )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_event_generate) identifier_event_generate )attribute (argument_list (string_"<<ColorChanged>>") string_"<<ColorChanged>>" )argument_list )call )expression_statement )block )function_definition )module
Make the cross follow the cursor.
(module (function_definition (function_name_spoken_number) function_name_spoken_number (parameters (typed_parameter (identifier_num) identifier_num (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_str) identifier_str )type (block (expression_statement (assignment (identifier_ret) identifier_ret (list )list )assignment )expression_statement (for_statement (identifier_part) identifier_part (call (attribute (identifier_num) identifier_num (identifier_split) identifier_split )attribute (argument_list (string_' ') string_' ' )argument_list )call (block (if_statement (comparison_operator (identifier_part) identifier_part (identifier_FRACTIONS) identifier_FRACTIONS )comparison_operator (block (expression_statement (call (attribute (identifier_ret) identifier_ret (identifier_append) identifier_append )attribute (argument_list (subscript (identifier_FRACTIONS) identifier_FRACTIONS (identifier_part) identifier_part )subscript )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_ret) identifier_ret (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (list_comprehension (subscript (identifier_NUMBER_REPL) identifier_NUMBER_REPL (identifier_char) identifier_char )subscript (for_in_clause (identifier_char) identifier_char (identifier_part) identifier_part )for_in_clause (if_clause (comparison_operator (identifier_char) identifier_char (identifier_NUMBER_REPL) identifier_NUMBER_REPL )comparison_operator )if_clause )list_comprehension )argument_list )call )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (call (attribute (string_' and ') string_' and ' (identifier_join) identifier_join )attribute (argument_list (identifier_ret) identifier_ret )argument_list )call )return_statement )block )function_definition )module
Returns the spoken version of a number Ex: 1.2 -> one point two 1 1/2 -> one and one half
(module (function_definition (function_name_insert) function_name_insert (parameters (identifier_self) identifier_self (identifier_index) identifier_index (identifier_child) identifier_child (default_parameter (identifier_by_name_index) identifier_by_name_index (unary_operator (integer_1) integer_1 )unary_operator )default_parameter )parameters (block (if_statement (call (attribute (identifier_self) identifier_self (identifier__can_add_child) identifier__can_add_child )attribute (argument_list (identifier_child) identifier_child )argument_list )call (block (try_statement (block (if_statement (comparison_operator (identifier_by_name_index) identifier_by_name_index (unary_operator (integer_1) integer_1 )unary_operator )comparison_operator (block (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_indexes) identifier_indexes )attribute (attribute (identifier_child) identifier_child (identifier_name) identifier_name )attribute )subscript (identifier_append) identifier_append )attribute (argument_list (identifier_child) identifier_child )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_indexes) identifier_indexes )attribute (attribute (identifier_child) identifier_child (identifier_name) identifier_name )attribute )subscript (identifier_insert) identifier_insert )attribute (argument_list (identifier_by_name_index) identifier_by_name_index (identifier_child) identifier_child )argument_list )call )expression_statement )block )else_clause )if_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_indexes) identifier_indexes )attribute (attribute (identifier_child) identifier_child (identifier_name) identifier_name )attribute )subscript (list (identifier_child) identifier_child )list )assignment )expression_statement )block )except_clause )try_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_list) identifier_list )attribute (identifier_insert) identifier_insert )attribute (argument_list (identifier_index) identifier_index (identifier_child) identifier_child )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Add the child at the given index :type index: ``int`` :param index: child position :type child: :class:`Element <hl7apy.core.Element>` :param child: an instance of an :class:`Element <hl7apy.core.Element>` subclass
(module (function_definition (function_name_add_property) function_name_add_property (parameters (identifier_self) identifier_self (identifier_prop) identifier_prop )parameters (block (if_statement (identifier__debug) identifier__debug (block (expression_statement (call (attribute (identifier_Object) identifier_Object (identifier__debug) identifier__debug )attribute (argument_list (string_"add_property %r") string_"add_property %r" (identifier_prop) identifier_prop )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__properties) identifier__properties )attribute (call (identifier__copy) identifier__copy (argument_list (attribute (identifier_self) identifier_self (identifier__properties) identifier__properties )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__properties) identifier__properties )attribute (attribute (identifier_prop) identifier_prop (identifier_identifier) identifier_identifier )attribute )subscript (identifier_prop) identifier_prop )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__values) identifier__values )attribute (attribute (identifier_prop) identifier_prop (identifier_identifier) identifier_identifier )attribute )subscript (attribute (identifier_prop) identifier_prop (identifier_default) identifier_default )attribute )assignment )expression_statement )block )function_definition )module
Add a property to an object. The property is an instance of a Property or one of its derived classes. Adding a property disconnects it from the collection of properties common to all of the objects of its class.
(module (function_definition (function_name_consider_member) function_name_consider_member (parameters (identifier_name_member) identifier_name_member (identifier_member) identifier_member (identifier_module) identifier_module (default_parameter (identifier_class_) identifier_class_ (None) None )default_parameter )parameters (block (if_statement (call (attribute (identifier_name_member) identifier_name_member (identifier_startswith) identifier_startswith )attribute (argument_list (string_'_') string_'_' )argument_list )call (block (return_statement (False) False )return_statement )block )if_statement (if_statement (call (attribute (identifier_inspect) identifier_inspect (identifier_ismodule) identifier_ismodule )attribute (argument_list (identifier_member) identifier_member )argument_list )call (block (return_statement (False) False )return_statement )block )if_statement (expression_statement (assignment (identifier_real_module) identifier_real_module (call (identifier_getattr) identifier_getattr (argument_list (identifier_member) identifier_member (string_'__module__') string_'__module__' (None) None )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_real_module) identifier_real_module )not_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (comparison_operator (identifier_real_module) identifier_real_module (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute )comparison_operator (block (if_statement (boolean_operator (identifier_class_) identifier_class_ (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_member) identifier_member (string_'__get__') string_'__get__' )argument_list )call )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (comparison_operator (string_'hydpy') string_'hydpy' (identifier_real_module) identifier_real_module )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_module) identifier_module (identifier___name__) identifier___name__ )attribute (identifier_real_module) identifier_real_module )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement )block )if_statement (return_statement (True) True )return_statement )block )function_definition )module
Return |True| if the given member should be added to the substitutions. If not return |False|. Some examples based on the site-package |numpy|: >>> from hydpy.core.autodoctools import Substituter >>> import numpy A constant like |nan| should be added: >>> Substituter.consider_member( ... 'nan', numpy.nan, numpy) True Members with a prefixed underscore should not be added: >>> Substituter.consider_member( ... '_NoValue', numpy._NoValue, numpy) False Members that are actually imported modules should not be added: >>> Substituter.consider_member( ... 'warnings', numpy.warnings, numpy) False Members that are actually defined in other modules should not be added: >>> numpy.Substituter = Substituter >>> Substituter.consider_member( ... 'Substituter', numpy.Substituter, numpy) False >>> del numpy.Substituter Members that are defined in submodules of a given package (either from the standard library or from site-packages) should be added... >>> Substituter.consider_member( ... 'clip', numpy.clip, numpy) True ...but not members defined in *HydPy* submodules: >>> import hydpy >>> Substituter.consider_member( ... 'Node', hydpy.Node, hydpy) False For descriptor instances (with method `__get__`) beeing members of classes should be added: >>> from hydpy.auxs import anntools >>> Substituter.consider_member( ... 'shape_neurons', anntools.ANN.shape_neurons, ... anntools, anntools.ANN) True
(module (function_definition (function_name_get_cardinality) function_name_get_cardinality (parameters (identifier_self) identifier_self (default_parameter (identifier_node) identifier_node (None) None )default_parameter )parameters (block (if_statement (identifier_node) identifier_node (block (return_statement (subscript (attribute (call (attribute (identifier_self) identifier_self (identifier_get_cpds) identifier_get_cpds )attribute (argument_list (identifier_node) identifier_node )argument_list )call (identifier_cardinality) identifier_cardinality )attribute (integer_0) integer_0 )subscript )return_statement )block (else_clause (block (expression_statement (assignment (identifier_cardinalities) identifier_cardinalities (call (identifier_defaultdict) identifier_defaultdict (argument_list (identifier_int) identifier_int )argument_list )call )assignment )expression_statement (for_statement (identifier_cpd) identifier_cpd (attribute (identifier_self) identifier_self (identifier_cpds) identifier_cpds )attribute (block (expression_statement (assignment (subscript (identifier_cardinalities) identifier_cardinalities (attribute (identifier_cpd) identifier_cpd (identifier_variable) identifier_variable )attribute )subscript (subscript (attribute (identifier_cpd) identifier_cpd (identifier_cardinality) identifier_cardinality )attribute (integer_0) integer_0 )subscript )assignment )expression_statement )block )for_statement (return_statement (identifier_cardinalities) identifier_cardinalities )return_statement )block )else_clause )if_statement )block )function_definition )module
Returns the cardinality of the node. Throws an error if the CPD for the queried node hasn't been added to the network. Parameters ---------- node: Any hashable python object(optional). The node whose cardinality we want. If node is not specified returns a dictionary with the given variable as keys and their respective cardinality as values. Returns ------- int or dict : If node is specified returns the cardinality of the node. If node is not specified returns a dictionary with the given variable as keys and their respective cardinality as values. Examples -------- >>> from pgmpy.models import BayesianModel >>> from pgmpy.factors.discrete import TabularCPD >>> student = BayesianModel([('diff', 'grade'), ('intel', 'grade')]) >>> cpd_diff = TabularCPD('diff',2,[[0.6,0.4]]); >>> cpd_intel = TabularCPD('intel',2,[[0.7,0.3]]); >>> cpd_grade = TabularCPD('grade', 2, [[0.1, 0.9, 0.2, 0.7], ... [0.9, 0.1, 0.8, 0.3]], ... ['intel', 'diff'], [2, 2]) >>> student.add_cpds(cpd_diff,cpd_intel,cpd_grade) >>> student.get_cardinality() defaultdict(int, {'diff': 2, 'grade': 2, 'intel': 2}) >>> student.get_cardinality('intel') 2
(module (function_definition (function_name_scene_remove) function_name_scene_remove (parameters (identifier_sequence_number) identifier_sequence_number (identifier_scene_id) identifier_scene_id )parameters (block (return_statement (call (attribute (call (attribute (call (attribute (call (attribute (call (identifier_MessageWriter) identifier_MessageWriter (argument_list )argument_list )call (identifier_string) identifier_string )attribute (argument_list (string_"scene.rm") string_"scene.rm" )argument_list )call (identifier_uint64) identifier_uint64 )attribute (argument_list (identifier_sequence_number) identifier_sequence_number )argument_list )call (identifier_uint32) identifier_uint32 )attribute (argument_list (identifier_scene_id) identifier_scene_id )argument_list )call (identifier_get) identifier_get )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Create a scene.rm message
(module (function_definition (function_name_unique) function_name_unique (parameters (identifier_self) identifier_self )parameters (block (import_from_statement (dotted_name (identifier_pandas) identifier_pandas )dotted_name (dotted_name (identifier_unique) identifier_unique )dotted_name )import_from_statement (expression_statement (assignment (identifier_uniques) identifier_uniques (call (identifier_unique) identifier_unique (argument_list (call (attribute (identifier_self) identifier_self (identifier_astype) identifier_astype )attribute (argument_list (identifier_object) identifier_object )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__from_sequence) identifier__from_sequence )attribute (argument_list (identifier_uniques) identifier_uniques (keyword_argument (identifier_dtype) identifier_dtype (attribute (identifier_self) identifier_self (identifier_dtype) identifier_dtype )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Compute the ExtensionArray of unique values. Returns ------- uniques : ExtensionArray
(module (function_definition (function_name_start) function_name_start (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_started) identifier_started )attribute (True) True )comparison_operator (block (raise_statement (call (identifier_WampyError) identifier_WampyError (argument_list (string_"Router already started") string_"Router already started" )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_crossbar_config_path) identifier_crossbar_config_path (attribute (identifier_self) identifier_self (identifier_config_path) identifier_config_path )attribute )assignment )expression_statement (expression_statement (assignment (identifier_cbdir) identifier_cbdir (attribute (identifier_self) identifier_self (identifier_crossbar_directory) identifier_crossbar_directory )attribute )assignment )expression_statement (expression_statement (assignment (identifier_cmd) identifier_cmd (list (string_'crossbar') string_'crossbar' (string_'start') string_'start' (string_'--cbdir') string_'--cbdir' (identifier_cbdir) identifier_cbdir (string_'--config') string_'--config' (identifier_crossbar_config_path) identifier_crossbar_config_path )list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_proc) identifier_proc )attribute (call (attribute (identifier_subprocess) identifier_subprocess (identifier_Popen) identifier_Popen )attribute (argument_list (identifier_cmd) identifier_cmd (keyword_argument (identifier_preexec_fn) identifier_preexec_fn (attribute (identifier_os) identifier_os (identifier_setsid) identifier_setsid )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__wait_until_ready) identifier__wait_until_ready )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_"Crosbar.io is ready for connections on %s (IPV%s)") string_"Crosbar.io is ready for connections on %s (IPV%s)" (attribute (identifier_self) identifier_self (identifier_url) identifier_url )attribute (attribute (identifier_self) identifier_self (identifier_ipv) identifier_ipv )attribute )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_started) identifier_started )attribute (True) True )assignment )expression_statement )block )function_definition )module
Start Crossbar.io in a subprocess.
(module (function_definition (function_name_filter) function_name_filter (parameters (identifier_self) identifier_self (identifier_filter_func) identifier_filter_func (default_parameter (identifier_reverse) identifier_reverse (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_new_log_file) identifier_new_log_file (call (identifier_Log) identifier_Log (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_new_log_file) identifier_new_log_file (identifier_logfile) identifier_logfile )attribute (attribute (identifier_self) identifier_self (identifier_logfile) identifier_logfile )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_new_log_file) identifier_new_log_file (identifier_total_lines) identifier_total_lines )attribute (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (attribute (identifier_new_log_file) identifier_new_log_file (identifier__valid_lines) identifier__valid_lines )attribute (list )list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_new_log_file) identifier_new_log_file (identifier__invalid_lines) identifier__invalid_lines )attribute (subscript (attribute (identifier_self) identifier_self (identifier__invalid_lines) identifier__invalid_lines )attribute (slice (colon) colon )slice )subscript )assignment )expression_statement (if_statement (not_operator (identifier_reverse) identifier_reverse )not_operator (block (for_statement (identifier_i) identifier_i (attribute (identifier_self) identifier_self (identifier__valid_lines) identifier__valid_lines )attribute (block (if_statement (call (identifier_filter_func) identifier_filter_func (argument_list (identifier_i) identifier_i )argument_list )call (block (expression_statement (augmented_assignment (attribute (identifier_new_log_file) identifier_new_log_file (identifier_total_lines) identifier_total_lines )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_new_log_file) identifier_new_log_file (identifier__valid_lines) identifier__valid_lines )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement )block )if_statement )block )for_statement )block (else_clause (block (for_statement (identifier_i) identifier_i (attribute (identifier_self) identifier_self (identifier__valid_lines) identifier__valid_lines )attribute (block (if_statement (not_operator (call (identifier_filter_func) identifier_filter_func (argument_list (identifier_i) identifier_i )argument_list )call )not_operator (block (expression_statement (augmented_assignment (attribute (identifier_new_log_file) identifier_new_log_file (identifier_total_lines) identifier_total_lines )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_new_log_file) identifier_new_log_file (identifier__valid_lines) identifier__valid_lines )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )else_clause )if_statement (return_statement (identifier_new_log_file) identifier_new_log_file )return_statement )block )function_definition )module
Filter current log lines by a given filter function. This allows to drill down data out of the log file by filtering the relevant log lines to analyze. For example, filter by a given IP so only log lines for that IP are further processed with commands (top paths, http status counter...). :param filter_func: [required] Filter method, see filters.py for all available filters. :type filter_func: function :param reverse: negate the filter (so accept all log lines that return ``False``). :type reverse: boolean :returns: a new instance of Log containing only log lines that passed the filter function. :rtype: :class:`Log`
(module (function_definition (function_name_get_boundaries) function_name_get_boundaries (parameters (identifier_self) identifier_self (identifier_filter_type) identifier_filter_type (identifier_value) identifier_value )parameters (block (assert_statement (comparison_operator (identifier_filter_type) identifier_filter_type (attribute (identifier_self) identifier_self (identifier_handled_suffixes) identifier_handled_suffixes )attribute )comparison_operator )assert_statement (expression_statement (assignment (identifier_start) identifier_start (string_'-inf') string_'-inf' )assignment )expression_statement (expression_statement (assignment (identifier_end) identifier_end (string_'+inf') string_'+inf' )assignment )expression_statement (expression_statement (assignment (identifier_exclude) identifier_exclude (None) None )assignment )expression_statement (if_statement (comparison_operator (identifier_filter_type) identifier_filter_type (tuple (None) None (string_'eq') string_'eq' )tuple )comparison_operator (block (expression_statement (assignment (identifier_start) identifier_start (assignment (identifier_end) identifier_end (identifier_value) identifier_value )assignment )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_filter_type) identifier_filter_type (string_'gt') string_'gt' )comparison_operator (block (expression_statement (assignment (identifier_start) identifier_start (binary_operator (string_'(%s') string_'(%s' (identifier_value) identifier_value )binary_operator )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_filter_type) identifier_filter_type (string_'gte') string_'gte' )comparison_operator (block (expression_statement (assignment (identifier_start) identifier_start (identifier_value) identifier_value )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_filter_type) identifier_filter_type (string_'lt') string_'lt' )comparison_operator (block (expression_statement (assignment (identifier_end) identifier_end (binary_operator (string_'(%s') string_'(%s' (identifier_value) identifier_value )binary_operator )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_filter_type) identifier_filter_type (string_'lte') string_'lte' )comparison_operator (block (expression_statement (assignment (identifier_end) identifier_end (identifier_value) identifier_value )assignment )expression_statement )block )elif_clause )if_statement (return_statement (expression_list (identifier_start) identifier_start (identifier_end) identifier_end (identifier_exclude) identifier_exclude )expression_list )return_statement )block )function_definition )module
Compute the boundaries to pass to the sorted-set command depending of the filter type The third return value, ``exclude`` is always ``None`` because we can easily restrict the score to filter on in the sorted-set. For the parameters, see BaseRangeIndex.store Notes ----- For zrangebyscore: - `(` means "not included" - `-inf` alone means "from the very beginning" - `+inf` alone means "to the very end"
(module (function_definition (function_name_HMAC) function_name_HMAC (parameters (identifier_self) identifier_self (identifier_message) identifier_message (default_parameter (identifier_use_sha256) identifier_use_sha256 (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_h) identifier_h (call (attribute (identifier_self) identifier_self (identifier__NewHMAC) identifier__NewHMAC )attribute (argument_list (keyword_argument (identifier_use_sha256) identifier_use_sha256 (identifier_use_sha256) identifier_use_sha256 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_h) identifier_h (identifier_update) identifier_update )attribute (argument_list (identifier_message) identifier_message )argument_list )call )expression_statement (return_statement (call (attribute (identifier_h) identifier_h (identifier_finalize) identifier_finalize )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Calculates the HMAC for a given message.
(module (function_definition (function_name_convert_type) function_name_convert_type (parameters (identifier_df) identifier_df (identifier_columns) identifier_columns )parameters (block (expression_statement (assignment (identifier_out_df) identifier_out_df (call (attribute (identifier_df) identifier_df (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_col) identifier_col (identifier_columns) identifier_columns (block (expression_statement (assignment (identifier_column_values) identifier_column_values (call (attribute (identifier_pd) identifier_pd (identifier_Series) identifier_Series )attribute (argument_list (call (attribute (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (identifier_unique) identifier_unique )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_column_values) identifier_column_values (subscript (identifier_column_values) identifier_column_values (unary_operator (call (attribute (identifier_column_values) identifier_column_values (identifier_isnull) identifier_isnull )attribute (argument_list )argument_list )call )unary_operator )subscript )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_column_values) identifier_column_values )argument_list )call (integer_0) integer_0 )comparison_operator (block (continue_statement )continue_statement )block )if_statement (if_statement (comparison_operator (call (identifier_set) identifier_set (argument_list (attribute (identifier_column_values) identifier_column_values (identifier_values) identifier_values )attribute )argument_list )call (set (string_'True') string_'True' (string_'False') string_'False' )set )comparison_operator (block (expression_statement (assignment (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (call (attribute (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (identifier_map) identifier_map )attribute (argument_list (dictionary (pair (string_'True') string_'True' (True) True )pair (pair (string_'False') string_'False' (False) False )pair )dictionary )argument_list )call )assignment )expression_statement (continue_statement )continue_statement )block )if_statement (if_statement (comparison_operator (call (attribute (call (attribute (call (attribute (identifier_pd) identifier_pd (identifier_to_numeric) identifier_to_numeric )attribute (argument_list (identifier_column_values) identifier_column_values (keyword_argument (identifier_errors) identifier_errors (string_'coerce') string_'coerce' )keyword_argument )argument_list )call (identifier_isnull) identifier_isnull )attribute (argument_list )argument_list )call (identifier_sum) identifier_sum )attribute (argument_list )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (call (attribute (identifier_pd) identifier_pd (identifier_to_numeric) identifier_to_numeric )attribute (argument_list (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (keyword_argument (identifier_errors) identifier_errors (string_'ignore') string_'ignore' )keyword_argument )argument_list )call )assignment )expression_statement (continue_statement )continue_statement )block )if_statement (if_statement (comparison_operator (call (attribute (call (attribute (call (attribute (identifier_pd) identifier_pd (identifier_to_datetime) identifier_to_datetime )attribute (argument_list (identifier_column_values) identifier_column_values (keyword_argument (identifier_errors) identifier_errors (string_'coerce') string_'coerce' )keyword_argument )argument_list )call (identifier_isnull) identifier_isnull )attribute (argument_list )argument_list )call (identifier_sum) identifier_sum )attribute (argument_list )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (call (attribute (identifier_pd) identifier_pd (identifier_to_datetime) identifier_to_datetime )attribute (argument_list (subscript (identifier_out_df) identifier_out_df (identifier_col) identifier_col )subscript (keyword_argument (identifier_errors) identifier_errors (string_'ignore') string_'ignore' )keyword_argument (keyword_argument (identifier_infer_datetime_format) identifier_infer_datetime_format (True) True )keyword_argument )argument_list )call )assignment )expression_statement (continue_statement )continue_statement )block )if_statement )block )for_statement (return_statement (identifier_out_df) identifier_out_df )return_statement )block )function_definition )module
Helper function that attempts to convert columns into their appropriate data type.
(module (function_definition (function_name_expose) function_name_expose (parameters (identifier_rule) identifier_rule (dictionary_splat_pattern (identifier_options) identifier_options )dictionary_splat_pattern )parameters (block (function_definition (function_name_decorator) function_name_decorator (parameters (identifier_f) identifier_f )parameters (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_f) identifier_f (string_"urls") string_"urls" )argument_list )call )not_operator (block (expression_statement (assignment (attribute (identifier_f) identifier_f (identifier_urls) identifier_urls )attribute (list )list )assignment )expression_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_rule) identifier_rule (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_f) identifier_f (identifier_urls) identifier_urls )attribute (identifier_extend) identifier_extend )attribute (argument_list (identifier_rule) identifier_rule )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_f) identifier_f (identifier_urls) identifier_urls )attribute (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_rule) identifier_rule (identifier_options) identifier_options )tuple )argument_list )call )expression_statement )block )else_clause )if_statement (return_statement (identifier_f) identifier_f )return_statement )block )function_definition (return_statement (identifier_decorator) identifier_decorator )return_statement )block )function_definition )module
Decorator to add an url rule to a function
(module (function_definition (function_name_start) function_name_start (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_Syndic) identifier_Syndic (identifier_self) identifier_self )argument_list )call (identifier_start) identifier_start )attribute (argument_list )argument_list )call )expression_statement (if_statement (call (identifier_check_user) identifier_check_user (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (string_'user') string_'user' )subscript )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_action_log_info) identifier_action_log_info )attribute (argument_list (string_'Starting up') string_'Starting up' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_verify_hash_type) identifier_verify_hash_type )attribute (argument_list )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_syndic) identifier_syndic )attribute (identifier_tune_in) identifier_tune_in )attribute (argument_list )argument_list )call )expression_statement )block (except_clause (identifier_KeyboardInterrupt) identifier_KeyboardInterrupt (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_action_log_info) identifier_action_log_info )attribute (argument_list (string_'Stopping') string_'Stopping' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_shutdown) identifier_shutdown )attribute (argument_list )argument_list )call )expression_statement )block )except_clause )try_statement )block )if_statement )block )function_definition )module
Start the actual syndic. If sub-classed, don't **ever** forget to run: super(YourSubClass, self).start() NOTE: Run any required code before calling `super()`.
(module (function_definition (function_name_show_plain_text) function_name_show_plain_text (parameters (identifier_self) identifier_self (identifier_text) identifier_text )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_switch_to_plugin) identifier_switch_to_plugin )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_switch_to_plain_text) identifier_switch_to_plain_text )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_set_plain_text) identifier_set_plain_text )attribute (argument_list (identifier_text) identifier_text (keyword_argument (identifier_is_code) identifier_is_code (False) False )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Show text in plain mode
(module (function_definition (function_name_sysinfo2float) function_name_sysinfo2float (parameters (default_parameter (identifier_version_info) identifier_version_info (attribute (identifier_sys) identifier_sys (identifier_version_info) identifier_version_info )attribute )default_parameter )parameters (block (expression_statement (assignment (identifier_vers_str) identifier_vers_str (call (attribute (string_'.') string_'.' (identifier_join) identifier_join )attribute (argument_list (list_comprehension (call (identifier_str) identifier_str (argument_list (identifier_v) identifier_v )argument_list )call (for_in_clause (identifier_v) identifier_v (subscript (identifier_version_info) identifier_version_info (slice (integer_0) integer_0 (colon) colon (integer_3) integer_3 )slice )subscript )for_in_clause )list_comprehension )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_version_info) identifier_version_info (integer_3) integer_3 )subscript (string_'final') string_'final' )comparison_operator (block (expression_statement (augmented_assignment (identifier_vers_str) identifier_vers_str (binary_operator (string_'.') string_'.' (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (argument_list (list_comprehension (call (identifier_str) identifier_str (argument_list (identifier_i) identifier_i )argument_list )call (for_in_clause (identifier_i) identifier_i (subscript (identifier_version_info) identifier_version_info (slice (integer_3) integer_3 (colon) colon )slice )subscript )for_in_clause )list_comprehension )argument_list )call )binary_operator )augmented_assignment )expression_statement )block )if_statement (if_statement (identifier_IS_PYPY) identifier_IS_PYPY (block (expression_statement (augmented_assignment (identifier_vers_str) identifier_vers_str (string_'pypy') string_'pypy' )augmented_assignment )expression_statement )block (else_clause (block (try_statement (block (import_statement (dotted_name (identifier_platform) identifier_platform )dotted_name )import_statement (expression_statement (assignment (identifier_platform) identifier_platform (call (attribute (identifier_platform) identifier_platform (identifier_python_implementation) identifier_python_implementation )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_platform) identifier_platform (tuple (string_'Jython') string_'Jython' (string_'Pyston') string_'Pyston' )tuple )comparison_operator (block (expression_statement (augmented_assignment (identifier_vers_str) identifier_vers_str (identifier_platform) identifier_platform )augmented_assignment )expression_statement (pass_statement )pass_statement )block )if_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (pass_statement )pass_statement )block )except_clause (except_clause (identifier_AttributeError) identifier_AttributeError (block (pass_statement )pass_statement )block )except_clause )try_statement )block )else_clause )if_statement (return_statement (call (identifier_py_str2float) identifier_py_str2float (argument_list (identifier_vers_str) identifier_vers_str )argument_list )call )return_statement )block )function_definition )module
Convert a sys.versions_info-compatible list into a 'canonic' floating-point number which that can then be used to look up a magic number. Note that this can only be used for released version of C Python, not interim development versions, since we can't represent that as a floating-point number. For handling Pypy, pyston, jython, etc. and interim versions of C Python, use sysinfo2magic.
(module (function_definition (function_name_to_json) function_name_to_json (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_capsule) identifier_capsule (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (subscript (identifier_capsule) identifier_capsule (string_"Hierarchy") string_"Hierarchy" )subscript (list )list )assignment )expression_statement (for_statement (tuple_pattern (identifier_dying) identifier_dying (tuple_pattern (identifier_persistence) identifier_persistence (identifier_surviving) identifier_surviving (identifier_saddle) identifier_saddle )tuple_pattern )tuple_pattern (call (attribute (attribute (identifier_self) identifier_self (identifier_merge_sequence) identifier_merge_sequence )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (subscript (identifier_capsule) identifier_capsule (string_"Hierarchy") string_"Hierarchy" )subscript (identifier_append) identifier_append )attribute (argument_list (dictionary (pair (string_"Persistence") string_"Persistence" (identifier_persistence) identifier_persistence )pair (pair (string_"Dying") string_"Dying" (identifier_dying) identifier_dying )pair (pair (string_"Surviving") string_"Surviving" (identifier_surviving) identifier_surviving )pair (pair (string_"Saddle") string_"Saddle" (identifier_saddle) identifier_saddle )pair )dictionary )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (subscript (identifier_capsule) identifier_capsule (string_"Partitions") string_"Partitions" )subscript (list )list )assignment )expression_statement (expression_statement (assignment (identifier_base) identifier_base (call (attribute (identifier_np) identifier_np (identifier_array) identifier_array )attribute (argument_list (binary_operator (list (None) None )list (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_Y) identifier_Y )attribute )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_label) identifier_label (identifier_items) identifier_items )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_base_partitions) identifier_base_partitions )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (assignment (subscript (identifier_base) identifier_base (identifier_items) identifier_items )subscript (identifier_label) identifier_label )assignment )expression_statement )block )for_statement (expression_statement (assignment (subscript (identifier_capsule) identifier_capsule (string_"Partitions") string_"Partitions" )subscript (call (attribute (identifier_base) identifier_base (identifier_tolist) identifier_tolist )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_capsule) identifier_capsule (keyword_argument (identifier_separators) identifier_separators (tuple (string_",") string_"," (string_":") string_":" )tuple )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Writes the complete Morse complex merge hierarchy to a string object. @ Out, a string object storing the entire merge hierarchy of all maxima.
(module (function_definition (function_name__get_api_urls) function_name__get_api_urls (parameters (identifier_self) identifier_self (default_parameter (identifier_api_urls) identifier_api_urls (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_view_name) identifier_view_name (attribute (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (identifier___name__) identifier___name__ )attribute )assignment )expression_statement (expression_statement (assignment (identifier_api_urls) identifier_api_urls (boolean_operator (identifier_api_urls) identifier_api_urls (dictionary )dictionary )boolean_operator )assignment )expression_statement (expression_statement (assignment (subscript (identifier_api_urls) identifier_api_urls (string_"read") string_"read" )subscript (call (identifier_url_for) identifier_url_for (argument_list (binary_operator (identifier_view_name) identifier_view_name (string_".api_read") string_".api_read" )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_api_urls) identifier_api_urls (string_"delete") string_"delete" )subscript (call (identifier_url_for) identifier_url_for (argument_list (binary_operator (identifier_view_name) identifier_view_name (string_".api_delete") string_".api_delete" )binary_operator (keyword_argument (identifier_pk) identifier_pk (string_"") string_"" )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_api_urls) identifier_api_urls (string_"create") string_"create" )subscript (call (identifier_url_for) identifier_url_for (argument_list (binary_operator (identifier_view_name) identifier_view_name (string_".api_create") string_".api_create" )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_api_urls) identifier_api_urls (string_"update") string_"update" )subscript (call (identifier_url_for) identifier_url_for (argument_list (binary_operator (identifier_view_name) identifier_view_name (string_".api_update") string_".api_update" )binary_operator (keyword_argument (identifier_pk) identifier_pk (string_"") string_"" )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_api_urls) identifier_api_urls )return_statement )block )function_definition )module
Completes a dict with the CRUD urls of the API. :param api_urls: A dict with the urls {'<FUNCTION>':'<URL>',...} :return: A dict with the CRUD urls of the base API.
(module (function_definition (function_name_serve_forever) function_name_serve_forever (parameters (default_parameter (identifier_django) identifier_django (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_logger) identifier_logger (call (identifier_getLogger) identifier_getLogger (argument_list (string_"irc.dispatch") string_"irc.dispatch" )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_setLevel) identifier_setLevel )attribute (argument_list (attribute (identifier_settings) identifier_settings (identifier_LOG_LEVEL) identifier_LOG_LEVEL )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_addHandler) identifier_addHandler )attribute (argument_list (call (identifier_StreamHandler) identifier_StreamHandler (argument_list )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_app) identifier_app (call (identifier_IRCApplication) identifier_IRCApplication (argument_list (identifier_django) identifier_django )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_server) identifier_server (call (identifier_SocketIOServer) identifier_SocketIOServer (argument_list (tuple (attribute (identifier_settings) identifier_settings (identifier_HTTP_HOST) identifier_HTTP_HOST )attribute (attribute (identifier_settings) identifier_settings (identifier_HTTP_PORT) identifier_HTTP_PORT )attribute )tuple (identifier_app) identifier_app )argument_list )call )assignment )expression_statement (print_statement (binary_operator (string_"%s [Bot: %s] listening on %s:%s") string_"%s [Bot: %s] listening on %s:%s" (tuple (attribute (identifier_settings) identifier_settings (identifier_GNOTTY_VERSION_STRING) identifier_GNOTTY_VERSION_STRING )attribute (attribute (attribute (attribute (identifier_app) identifier_app (identifier_bot) identifier_bot )attribute (identifier___class__) identifier___class__ )attribute (identifier___name__) identifier___name__ )attribute (attribute (identifier_settings) identifier_settings (identifier_HTTP_HOST) identifier_HTTP_HOST )attribute (attribute (identifier_settings) identifier_settings (identifier_HTTP_PORT) identifier_HTTP_PORT )attribute )tuple )binary_operator )print_statement (expression_statement (call (attribute (identifier_server) identifier_server (identifier_serve_forever) identifier_serve_forever )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Starts the gevent-socketio server.
(module (function_definition (function_name_parse_transmission_id) function_name_parse_transmission_id (parameters (identifier_header) identifier_header (default_parameter (identifier_reference_id) identifier_reference_id (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_m) identifier_m (call (attribute (identifier__TID_PATTERN) identifier__TID_PATTERN (identifier_search) identifier_search )attribute (argument_list (identifier_header) identifier_header )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_m) identifier_m )not_operator (block (return_statement (None) None )return_statement )block )if_statement (return_statement (call (attribute (identifier_m) identifier_m (identifier_group) identifier_group )attribute (argument_list (integer_1) integer_1 )argument_list )call )return_statement )block )function_definition )module
\ Returns the transmission ID of the cable. If no transmission identifier was found, ``None`` is returned. `header` The cable's header `reference_id` The cable's reference ID.
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_column_name) identifier_column_name (default_parameter (identifier_default) identifier_default (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_column_name) identifier_column_name (attribute (attribute (identifier_self) identifier_self (identifier_table) identifier_table )attribute (identifier_default_columns) identifier_default_columns )attribute )comparison_operator (block (expression_statement (assignment (identifier_index) identifier_index (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_table) identifier_table )attribute (identifier_default_columns) identifier_default_columns )attribute (identifier_index) identifier_index )attribute (argument_list (identifier_column_name) identifier_column_name )argument_list )call )assignment )expression_statement (return_statement (call (identifier_Datum) identifier_Datum (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_cells) identifier_cells )attribute (identifier_index) identifier_index )subscript (attribute (identifier_self) identifier_self (identifier_row_num) identifier_row_num )attribute (identifier_column_name) identifier_column_name (attribute (identifier_self) identifier_self (identifier_table) identifier_table )attribute )argument_list )call )return_statement )block )if_statement (return_statement (identifier_default) identifier_default )return_statement )block )function_definition )module
Return the Datum for column_name, or default.
(module (function_definition (function_name__filenames_from_arg) function_name__filenames_from_arg (parameters (identifier_filename) identifier_filename )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_filename) identifier_filename (identifier_string_types) identifier_string_types )argument_list )call (block (expression_statement (assignment (identifier_filenames) identifier_filenames (list (identifier_filename) identifier_filename )list )assignment )expression_statement )block (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_filename) identifier_filename (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (block (expression_statement (assignment (identifier_filenames) identifier_filenames (identifier_filename) identifier_filename )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (string_'filename argument must be string, list or tuple') string_'filename argument must be string, list or tuple' )argument_list )call )raise_statement )block )else_clause )if_statement (for_statement (identifier_fn) identifier_fn (identifier_filenames) identifier_filenames (block (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (identifier_fn) identifier_fn )argument_list )call )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_'file not found: %s') string_'file not found: %s' (identifier_fn) identifier_fn )binary_operator )argument_list )call )raise_statement )block )if_statement (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_fn) identifier_fn )argument_list )call )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_'not a file: %s') string_'not a file: %s' (identifier_fn) identifier_fn )binary_operator )argument_list )call )raise_statement )block )if_statement )block )for_statement (return_statement (identifier_filenames) identifier_filenames )return_statement )block )function_definition )module
Utility function to deal with polymorphic filenames argument.
(module (function_definition (function_name_get_account_info) function_name_get_account_info (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_request) identifier_request (call (attribute (identifier_self) identifier_self (identifier__get_request) identifier__get_request )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_request) identifier_request (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_ACCOUNT_INFO_URL) identifier_ACCOUNT_INFO_URL )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier_account) identifier_account )attribute (identifier_json_data) identifier_json_data )attribute (subscript (identifier_response) identifier_response (string_"account") string_"account" )subscript )assignment )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_account) identifier_account )attribute )return_statement )block )function_definition )module
Get current account information The information then will be saved in `self.account` so that you can access the information like this: >>> hsclient = HSClient() >>> acct = hsclient.get_account_info() >>> print acct.email_address Returns: An Account object
(module (function_definition (function_name__highlight_path) function_name__highlight_path (parameters (identifier_self) identifier_self (identifier_hl_path) identifier_hl_path (identifier_tf) identifier_tf )parameters (block (expression_statement (assignment (identifier_fc) identifier_fc (call (attribute (attribute (identifier_self) identifier_self (identifier_settings) identifier_settings )attribute (identifier_get) identifier_get )attribute (argument_list (string_'row_font_color') string_'row_font_color' (string_'green') string_'green' )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_treeview) identifier_treeview )attribute (identifier_highlight_path) identifier_highlight_path )attribute (argument_list (identifier_hl_path) identifier_hl_path (identifier_tf) identifier_tf (keyword_argument (identifier_font_color) identifier_font_color (identifier_fc) identifier_fc )keyword_argument )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_logger) identifier_logger )attribute (identifier_info) identifier_info )attribute (argument_list (call (attribute (concatenated_string (string_'Error changing highlight on treeview path ') string_'Error changing highlight on treeview path ' (string_'({0}): {1}') string_'({0}): {1}' )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_hl_path) identifier_hl_path (call (identifier_str) identifier_str (argument_list (identifier_e) identifier_e )argument_list )call )argument_list )call )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
Highlight or unhighlight a single entry. Examples -------- >>> hl_path = self._get_hl_key(chname, image) >>> self._highlight_path(hl_path, True)
(module (function_definition (function_name_factorize_and_solve) function_name_factorize_and_solve (parameters (identifier_self) identifier_self (identifier_A) identifier_A (identifier_b) identifier_b )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_factorize) identifier_factorize )attribute (argument_list (identifier_A) identifier_A )argument_list )call )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_solve) identifier_solve )attribute (argument_list (identifier_b) identifier_b )argument_list )call )return_statement )block )function_definition )module
Factorizes A and solves Ax=b. Returns ------- x : vector
(module (function_definition (function_name_do_search) function_name_do_search (parameters (identifier_self) identifier_self (default_parameter (identifier_arg) identifier_arg (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_new_cats) identifier_new_cats (list )list )assignment )expression_statement (for_statement (identifier_cat) identifier_cat (attribute (identifier_self) identifier_self (identifier_cats) identifier_cats )attribute (block (expression_statement (assignment (identifier_new_cat) identifier_new_cat (call (attribute (identifier_cat) identifier_cat (identifier_search) identifier_search )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_inputs) identifier_inputs )attribute (identifier_text) identifier_text )attribute (keyword_argument (identifier_depth) identifier_depth (attribute (attribute (identifier_self) identifier_self (identifier_inputs) identifier_inputs )attribute (identifier_depth) identifier_depth )attribute )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (call (identifier_list) identifier_list (argument_list (identifier_new_cat) identifier_new_cat )argument_list )call )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (call (attribute (identifier_new_cats) identifier_new_cats (identifier_append) identifier_append )attribute (argument_list (identifier_new_cat) identifier_new_cat )argument_list )call )expression_statement )block )if_statement )block )for_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_new_cats) identifier_new_cats )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_done_callback) identifier_done_callback )attribute (argument_list (identifier_new_cats) identifier_new_cats )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_visible) identifier_visible )attribute (False) False )assignment )expression_statement )block )if_statement )block )function_definition )module
Do search and close panel
(module (function_definition (function_name_lrun) function_name_lrun (parameters (identifier_command) identifier_command (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (identifier_run) identifier_run (argument_list (call (attribute (string_'cd {0} && {1}') string_'cd {0} && {1}' (identifier_format) identifier_format )attribute (argument_list (identifier_ROOT) identifier_ROOT (identifier_command) identifier_command )argument_list )call (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
Run a local command from project root
(module (function_definition (function_name__compute_matrix) function_name__compute_matrix (parameters (identifier_cls) identifier_cls (identifier_sentences) identifier_sentences (default_parameter (identifier_weighting) identifier_weighting (string_'frequency') string_'frequency' )default_parameter (default_parameter (identifier_norm) identifier_norm (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_norm) identifier_norm (tuple (string_'l1') string_'l1' (string_'l2') string_'l2' (None) None )tuple )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Parameter "norm" can only take values "l1", "l2" or None') string_'Parameter "norm" can only take values "l1", "l2" or None' )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (call (attribute (identifier_weighting) identifier_weighting (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_'binary') string_'binary' )comparison_operator (block (expression_statement (assignment (identifier_vectorizer) identifier_vectorizer (call (identifier_CountVectorizer) identifier_CountVectorizer (argument_list (keyword_argument (identifier_min_df) identifier_min_df (integer_1) integer_1 )keyword_argument (keyword_argument (identifier_ngram_range) identifier_ngram_range (tuple (integer_1) integer_1 (integer_1) integer_1 )tuple )keyword_argument (keyword_argument (identifier_binary) identifier_binary (True) True )keyword_argument (keyword_argument (identifier_stop_words) identifier_stop_words (None) None )keyword_argument )argument_list )call )assignment )expression_statement )block (elif_clause (comparison_operator (call (attribute (identifier_weighting) identifier_weighting (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_'frequency') string_'frequency' )comparison_operator (block (expression_statement (assignment (identifier_vectorizer) identifier_vectorizer (call (identifier_CountVectorizer) identifier_CountVectorizer (argument_list (keyword_argument (identifier_min_df) identifier_min_df (integer_1) integer_1 )keyword_argument (keyword_argument (identifier_ngram_range) identifier_ngram_range (tuple (integer_1) integer_1 (integer_1) integer_1 )tuple )keyword_argument (keyword_argument (identifier_binary) identifier_binary (False) False )keyword_argument (keyword_argument (identifier_stop_words) identifier_stop_words (None) None )keyword_argument )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (call (attribute (identifier_weighting) identifier_weighting (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_'tfidf') string_'tfidf' )comparison_operator (block (expression_statement (assignment (identifier_vectorizer) identifier_vectorizer (call (identifier_TfidfVectorizer) identifier_TfidfVectorizer (argument_list (keyword_argument (identifier_min_df) identifier_min_df (integer_1) integer_1 )keyword_argument (keyword_argument (identifier_ngram_range) identifier_ngram_range (tuple (integer_1) integer_1 (integer_1) integer_1 )tuple )keyword_argument (keyword_argument (identifier_stop_words) identifier_stop_words (None) None )keyword_argument )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Parameter "method" must take one of the values "binary", "frequency" or "tfidf".') string_'Parameter "method" must take one of the values "binary", "frequency" or "tfidf".' )argument_list )call )raise_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_frequency_matrix) identifier_frequency_matrix (call (attribute (call (attribute (identifier_vectorizer) identifier_vectorizer (identifier_fit_transform) identifier_fit_transform )attribute (argument_list (identifier_sentences) identifier_sentences )argument_list )call (identifier_astype) identifier_astype )attribute (argument_list (identifier_float) identifier_float )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_norm) identifier_norm (tuple (string_'l1') string_'l1' (string_'l2') string_'l2' )tuple )comparison_operator (block (expression_statement (assignment (identifier_frequency_matrix) identifier_frequency_matrix (call (identifier_normalize) identifier_normalize (argument_list (identifier_frequency_matrix) identifier_frequency_matrix (keyword_argument (identifier_norm) identifier_norm (identifier_norm) identifier_norm )keyword_argument (keyword_argument (identifier_axis) identifier_axis (integer_1) integer_1 )keyword_argument )argument_list )call )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_norm) identifier_norm (None) None )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Parameter "norm" can only take values "l1", "l2" or None') string_'Parameter "norm" can only take values "l1", "l2" or None' )argument_list )call )raise_statement )block )elif_clause )if_statement (return_statement (identifier_frequency_matrix) identifier_frequency_matrix )return_statement )block )function_definition )module
Compute the matrix of term frequencies given a list of sentences
(module (function_definition (function_name_match_end_date) function_name_match_end_date (parameters (identifier_self) identifier_self (identifier_start) identifier_start (identifier_end) identifier_end (identifier_match) identifier_match )parameters (block (if_statement (identifier_match) identifier_match (block (if_statement (comparison_operator (identifier_end) identifier_end (identifier_start) identifier_start )comparison_operator (block (raise_statement (call (attribute (identifier_errors) identifier_errors (identifier_InvalidArgument) identifier_InvalidArgument )attribute (argument_list (string_'end date must be >= start date when match = True') string_'end date must be >= start date when match = True' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__query_terms) identifier__query_terms )attribute (string_'endDate') string_'endDate' )subscript (dictionary (pair (string_'$gte') string_'$gte' (identifier_start) identifier_start )pair (pair (string_'$lte') string_'$lte' (identifier_end) identifier_end )pair )dictionary )assignment )expression_statement )block (else_clause (block (raise_statement (call (attribute (identifier_errors) identifier_errors (identifier_InvalidArgument) identifier_InvalidArgument )attribute (argument_list (string_'match = False not currently supported') string_'match = False not currently supported' )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Matches temporals whose effective end date falls in between the given dates inclusive. arg: start (osid.calendaring.DateTime): start of date range arg: end (osid.calendaring.DateTime): end of date range arg: match (boolean): ``true`` if a positive match, ``false`` for negative match raise: InvalidArgument - ``start`` is less than ``end`` raise: NullArgument - ``start`` or ``end`` is ``null`` *compliance: mandatory -- This method must be implemented.*
(module (function_definition (function_name_attach) function_name_attach (parameters (identifier_session_type) identifier_session_type (default_parameter (identifier_address) identifier_address (None) None )default_parameter (default_parameter (identifier_port) identifier_port (None) None )default_parameter (default_parameter (identifier_path) identifier_path (None) None )default_parameter (default_parameter (identifier_argv) identifier_argv (None) None )default_parameter (default_parameter (identifier_decode) identifier_decode (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_session) identifier_session (parenthesized_expression (conditional_expression (call (identifier_tcp_session) identifier_tcp_session (argument_list (identifier_address) identifier_address (identifier_port) identifier_port )argument_list )call (comparison_operator (identifier_session_type) identifier_session_type (string_'tcp') string_'tcp' )comparison_operator (conditional_expression (call (identifier_socket_session) identifier_socket_session (argument_list (identifier_path) identifier_path )argument_list )call (comparison_operator (identifier_session_type) identifier_session_type (string_'socket') string_'socket' )comparison_operator (conditional_expression (call (identifier_stdio_session) identifier_stdio_session (argument_list )argument_list )call (comparison_operator (identifier_session_type) identifier_session_type (string_'stdio') string_'stdio' )comparison_operator (conditional_expression (call (identifier_child_session) identifier_child_session (argument_list (identifier_argv) identifier_argv )argument_list )call (comparison_operator (identifier_session_type) identifier_session_type (string_'child') string_'child' )comparison_operator (None) None )conditional_expression )conditional_expression )conditional_expression )conditional_expression )parenthesized_expression )assignment )expression_statement (if_statement (not_operator (identifier_session) identifier_session )not_operator (block (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (binary_operator (string_'Unknown session type "%s"') string_'Unknown session type "%s"' (identifier_session_type) identifier_session_type )binary_operator )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (identifier_decode) identifier_decode (None) None )comparison_operator (block (expression_statement (assignment (identifier_decode) identifier_decode (identifier_IS_PYTHON3) identifier_IS_PYTHON3 )assignment )expression_statement )block )if_statement (return_statement (call (attribute (call (attribute (identifier_Nvim) identifier_Nvim (identifier_from_session) identifier_from_session )attribute (argument_list (identifier_session) identifier_session )argument_list )call (identifier_with_decode) identifier_with_decode )attribute (argument_list (identifier_decode) identifier_decode )argument_list )call )return_statement )block )function_definition )module
Provide a nicer interface to create python api sessions. Previous machinery to create python api sessions is still there. This only creates a facade function to make things easier for the most usual cases. Thus, instead of: from pynvim import socket_session, Nvim session = tcp_session(address=<address>, port=<port>) nvim = Nvim.from_session(session) You can now do: from pynvim import attach nvim = attach('tcp', address=<address>, port=<port>) And also: nvim = attach('socket', path=<path>) nvim = attach('child', argv=<argv>) nvim = attach('stdio') When the session is not needed anymore, it is recommended to explicitly close it: nvim.close() It is also possible to use the session as a context mangager: with attach('socket', path=thepath) as nvim: print(nvim.funcs.getpid()) print(nvim.current.line) This will automatically close the session when you're done with it, or when an error occured.
(module (function_definition (function_name__open_tracing_interface) function_name__open_tracing_interface (parameters (identifier_self) identifier_self (identifier_conn_id) identifier_conn_id (identifier_callback) identifier_callback )parameters (block (try_statement (block (expression_statement (assignment (identifier_handle) identifier_handle (call (attribute (identifier_self) identifier_self (identifier__find_handle) identifier__find_handle )attribute (argument_list (identifier_conn_id) identifier_conn_id )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_services) identifier_services (subscript (subscript (attribute (identifier_self) identifier_self (identifier__connections) identifier__connections )attribute (identifier_handle) identifier_handle )subscript (string_'services') string_'services' )subscript )assignment )expression_statement )block (except_clause (tuple (identifier_ValueError) identifier_ValueError (identifier_KeyError) identifier_KeyError )tuple (block (expression_statement (call (identifier_callback) identifier_callback (argument_list (identifier_conn_id) identifier_conn_id (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute (False) False (string_'Connection closed unexpectedly before we could open the streaming interface') string_'Connection closed unexpectedly before we could open the streaming interface' )argument_list )call )expression_statement (return_statement )return_statement )block )except_clause )try_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__command_task) identifier__command_task )attribute (identifier_async_command) identifier_async_command )attribute (argument_list (list (string_'_enable_tracing') string_'_enable_tracing' (identifier_handle) identifier_handle (identifier_services) identifier_services )list (attribute (identifier_self) identifier_self (identifier__on_interface_finished) identifier__on_interface_finished )attribute (dictionary (pair (string_'connection_id') string_'connection_id' (identifier_conn_id) identifier_conn_id )pair (pair (string_'callback') string_'callback' (identifier_callback) identifier_callback )pair )dictionary )argument_list )call )expression_statement )block )function_definition )module
Enable the debug tracing interface for this IOTile device Args: conn_id (int): the unique identifier for the connection callback (callback): Callback to be called when this command finishes callback(conn_id, adapter_id, success, failure_reason)
(module (function_definition (function_name_dehydrate_point) function_name_dehydrate_point (parameters (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_dim) identifier_dim (call (identifier_len) identifier_len (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_dim) identifier_dim (integer_2) integer_2 )comparison_operator (block (return_statement (call (identifier_Structure) identifier_Structure (argument_list (string_b"X") string_b"X" (attribute (identifier_value) identifier_value (identifier_srid) identifier_srid )attribute (list_splat (identifier_value) identifier_value )list_splat )argument_list )call )return_statement )block (elif_clause (comparison_operator (identifier_dim) identifier_dim (integer_3) integer_3 )comparison_operator (block (return_statement (call (identifier_Structure) identifier_Structure (argument_list (string_b"Y") string_b"Y" (attribute (identifier_value) identifier_value (identifier_srid) identifier_srid )attribute (list_splat (identifier_value) identifier_value )list_splat )argument_list )call )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"Cannot dehydrate Point with %d dimensions") string_"Cannot dehydrate Point with %d dimensions" (identifier_dim) identifier_dim )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Dehydrator for Point data. :param value: :type value: Point :return:
(module (function_definition (function_name_construct_optional_traversal_tree) function_name_construct_optional_traversal_tree (parameters (identifier_complex_optional_roots) identifier_complex_optional_roots (identifier_location_to_optional_roots) identifier_location_to_optional_roots )parameters (block (expression_statement (assignment (identifier_tree) identifier_tree (call (identifier_OptionalTraversalTree) identifier_OptionalTraversalTree (argument_list (identifier_complex_optional_roots) identifier_complex_optional_roots )argument_list )call )assignment )expression_statement (for_statement (identifier_optional_root_locations_stack) identifier_optional_root_locations_stack (call (attribute (identifier_six) identifier_six (identifier_itervalues) identifier_itervalues )attribute (argument_list (identifier_location_to_optional_roots) identifier_location_to_optional_roots )argument_list )call (block (expression_statement (call (attribute (identifier_tree) identifier_tree (identifier_insert) identifier_insert )attribute (argument_list (call (identifier_list) identifier_list (argument_list (identifier_optional_root_locations_stack) identifier_optional_root_locations_stack )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_tree) identifier_tree )return_statement )block )function_definition )module
Return a tree of complex optional root locations. Args: complex_optional_roots: list of @optional locations (location immmediately preceding an @optional Traverse) that expand vertex fields location_to_optional_roots: dict mapping from location -> optional_roots where location is within some number of @optionals and optional_roots is a list of optional root locations preceding the successive @optional scopes within which the location resides Returns: OptionalTraversalTree object representing the tree of complex optional roots
(module (function_definition (function_name_run_std_server) function_name_run_std_server (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_config) identifier_config (call (attribute (attribute (identifier_tf) identifier_tf (identifier_estimator) identifier_estimator )attribute (identifier_RunConfig) identifier_RunConfig )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_server) identifier_server (call (attribute (attribute (identifier_tf) identifier_tf (identifier_train) identifier_train )attribute (identifier_Server) identifier_Server )attribute (argument_list (attribute (identifier_config) identifier_config (identifier_cluster_spec) identifier_cluster_spec )attribute (keyword_argument (identifier_job_name) identifier_job_name (attribute (identifier_config) identifier_config (identifier_task_type) identifier_task_type )attribute )keyword_argument (keyword_argument (identifier_task_index) identifier_task_index (attribute (identifier_config) identifier_config (identifier_task_id) identifier_task_id )attribute )keyword_argument (keyword_argument (identifier_protocol) identifier_protocol (attribute (identifier_config) identifier_config (identifier_protocol) identifier_protocol )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_server) identifier_server (identifier_join) identifier_join )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Starts a TensorFlow server and joins the serving thread. Typically used for parameter servers. Raises: ValueError: if not enough information is available in the estimator's config to create a server.
(module (function_definition (function_name__checkremove_que) function_name__checkremove_que (parameters (identifier_self) identifier_self (identifier_word) identifier_word )parameters (block (expression_statement (assignment (identifier_in_que_pass_list) identifier_in_que_pass_list (False) False )assignment )expression_statement (expression_statement (assignment (identifier_que_pass_list) identifier_que_pass_list (list (string_'atque') string_'atque' (string_'quoque') string_'quoque' (string_'neque') string_'neque' (string_'itaque') string_'itaque' (string_'absque') string_'absque' (string_'apsque') string_'apsque' (string_'abusque') string_'abusque' (string_'adaeque') string_'adaeque' (string_'adusque') string_'adusque' (string_'denique') string_'denique' (string_'deque') string_'deque' (string_'susque') string_'susque' (string_'oblique') string_'oblique' (string_'peraeque') string_'peraeque' (string_'plenisque') string_'plenisque' (string_'quandoque') string_'quandoque' (string_'quisque') string_'quisque' (string_'quaeque') string_'quaeque' (string_'cuiusque') string_'cuiusque' (string_'cuique') string_'cuique' (string_'quemque') string_'quemque' (string_'quamque') string_'quamque' (string_'quaque') string_'quaque' (string_'quique') string_'quique' (string_'quorumque') string_'quorumque' (string_'quarumque') string_'quarumque' (string_'quibusque') string_'quibusque' (string_'quosque') string_'quosque' (string_'quasque') string_'quasque' (string_'quotusquisque') string_'quotusquisque' (string_'quousque') string_'quousque' (string_'ubique') string_'ubique' (string_'undique') string_'undique' (string_'usque') string_'usque' (string_'uterque') string_'uterque' (string_'utique') string_'utique' (string_'utroque') string_'utroque' (string_'utribique') string_'utribique' (string_'torque') string_'torque' (string_'coque') string_'coque' (string_'concoque') string_'concoque' (string_'contorque') string_'contorque' (string_'detorque') string_'detorque' (string_'decoque') string_'decoque' (string_'excoque') string_'excoque' (string_'extorque') string_'extorque' (string_'obtorque') string_'obtorque' (string_'optorque') string_'optorque' (string_'retorque') string_'retorque' (string_'recoque') string_'recoque' (string_'attorque') string_'attorque' (string_'incoque') string_'incoque' (string_'intorque') string_'intorque' (string_'praetorque') string_'praetorque' )list )assignment )expression_statement (if_statement (comparison_operator (identifier_word) identifier_word (identifier_que_pass_list) identifier_que_pass_list )comparison_operator (block (expression_statement (assignment (identifier_word) identifier_word (call (attribute (identifier_re) identifier_re (identifier_sub) identifier_sub )attribute (argument_list (string_r'que$') string_r'que$' (string_'') string_'' (identifier_word) identifier_word )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_in_que_pass_list) identifier_in_que_pass_list (True) True )assignment )expression_statement )block )else_clause )if_statement (return_statement (expression_list (identifier_word) identifier_word (identifier_in_que_pass_list) identifier_in_que_pass_list )expression_list )return_statement )block )function_definition )module
If word ends in -que and if word is not in pass list, strip -que
(module (function_definition (function_name_update_firewall_rule) function_name_update_firewall_rule (parameters (identifier_self) identifier_self (identifier_firewall_rule) identifier_firewall_rule (default_parameter (identifier_body) identifier_body (None) None )default_parameter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_put) identifier_put )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_firewall_rule_path) identifier_firewall_rule_path )attribute (parenthesized_expression (identifier_firewall_rule) identifier_firewall_rule )parenthesized_expression )binary_operator (keyword_argument (identifier_body) identifier_body (identifier_body) identifier_body )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Updates a firewall rule.
(module (function_definition (function_name__PrepareAttributeContainer) function_name__PrepareAttributeContainer (parameters (identifier_self) identifier_self (identifier_attribute_container) identifier_attribute_container )parameters (block (expression_statement (assignment (identifier_attribute_values_hash) identifier_attribute_values_hash (call (identifier_hash) identifier_hash (argument_list (call (attribute (identifier_attribute_container) identifier_attribute_container (identifier_GetAttributeValuesString) identifier_GetAttributeValuesString )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_identifier) identifier_identifier (call (attribute (identifier_identifiers) identifier_identifiers (identifier_FakeIdentifier) identifier_FakeIdentifier )attribute (argument_list (identifier_attribute_values_hash) identifier_attribute_values_hash )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_attribute_container) identifier_attribute_container (identifier_SetIdentifier) identifier_SetIdentifier )attribute (argument_list (identifier_identifier) identifier_identifier )argument_list )call )expression_statement (return_statement (call (attribute (identifier_copy) identifier_copy (identifier_deepcopy) identifier_deepcopy )attribute (argument_list (identifier_attribute_container) identifier_attribute_container )argument_list )call )return_statement )block )function_definition )module
Prepares an attribute container for storage. Args: attribute_container (AttributeContainer): attribute container. Returns: AttributeContainer: copy of the attribute container to store in the fake storage.
(module (function_definition (function_name__eq_dicts) function_name__eq_dicts (parameters (identifier_d1) identifier_d1 (identifier_d2) identifier_d2 )parameters (block (if_statement (not_operator (comparison_operator (call (attribute (identifier_d1) identifier_d1 (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call (call (attribute (identifier_d2) identifier_d2 (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )comparison_operator )not_operator (block (return_statement (False) False )return_statement )block )if_statement (for_statement (pattern_list (identifier_k) identifier_k (identifier_v1) identifier_v1 )pattern_list (call (attribute (identifier_d1) identifier_d1 (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_v2) identifier_v2 (subscript (identifier_d2) identifier_d2 (identifier_k) identifier_k )subscript )assignment )expression_statement (if_statement (not_operator (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_v1) identifier_v1 )argument_list )call (call (identifier_type) identifier_type (argument_list (identifier_v2) identifier_v2 )argument_list )call )comparison_operator )not_operator (block (return_statement (False) False )return_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_v1) identifier_v1 (attribute (identifier_np) identifier_np (identifier_ndarray) identifier_ndarray )attribute )argument_list )call (block (if_statement (not_operator (call (attribute (identifier_np) identifier_np (identifier_array_equal) identifier_array_equal )attribute (argument_list (identifier_v1) identifier_v1 (identifier_v2) identifier_v2 )argument_list )call )not_operator (block (return_statement (False) False )return_statement )block )if_statement )block (else_clause (block (if_statement (not_operator (comparison_operator (identifier_v1) identifier_v1 (identifier_v2) identifier_v2 )comparison_operator )not_operator (block (return_statement (False) False )return_statement )block )if_statement )block )else_clause )if_statement )block )for_statement (return_statement (True) True )return_statement )block )function_definition )module
Returns True if d1 == d2, False otherwise
(module (function_definition (function_name_virtual_interface_list) function_name_virtual_interface_list (parameters (identifier_provider) identifier_provider (identifier_names) identifier_names (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_client) identifier_client (call (identifier__get_client) identifier__get_client (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_client) identifier_client (identifier_extra_action) identifier_extra_action )attribute (argument_list (keyword_argument (identifier_provider) identifier_provider (identifier_provider) identifier_provider )keyword_argument (keyword_argument (identifier_names) identifier_names (identifier_names) identifier_names )keyword_argument (keyword_argument (identifier_action) identifier_action (string_'virtual_interface_list') string_'virtual_interface_list' )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
List virtual interfaces on a server CLI Example: .. code-block:: bash salt minionname cloud.virtual_interface_list my-nova names=['salt-master']
(module (function_definition (function_name__param_deprecation_warning) function_name__param_deprecation_warning (parameters (identifier_schema) identifier_schema (identifier_deprecated) identifier_deprecated (identifier_context) identifier_context )parameters (block (for_statement (identifier_i) identifier_i (identifier_deprecated) identifier_deprecated (block (if_statement (comparison_operator (identifier_i) identifier_i (identifier_schema) identifier_schema )comparison_operator (block (expression_statement (assignment (identifier_msg) identifier_msg (string_'When matching {ctx}, parameter {word} is deprecated, use __{word}__ instead') string_'When matching {ctx}, parameter {word} is deprecated, use __{word}__ instead' )assignment )expression_statement (expression_statement (assignment (identifier_msg) identifier_msg (call (attribute (identifier_msg) identifier_msg (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_ctx) identifier_ctx (identifier_context) identifier_context )keyword_argument (keyword_argument (identifier_word) identifier_word (identifier_i) identifier_i )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (identifier_msg) identifier_msg (identifier_Warning) identifier_Warning )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )function_definition )module
Raises warning about using the 'old' names for some parameters. The new naming scheme just has two underscores on each end of the word for consistency
(module (function_definition (function_name_get_root_resource) function_name_get_root_resource (parameters (identifier_config) identifier_config )parameters (block (expression_statement (assignment (identifier_app_package_name) identifier_app_package_name (call (identifier_get_app_package_name) identifier_get_app_package_name (argument_list (identifier_config) identifier_config )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (attribute (identifier_config) identifier_config (identifier_registry) identifier_registry )attribute (identifier__root_resources) identifier__root_resources )attribute (identifier_setdefault) identifier_setdefault )attribute (argument_list (identifier_app_package_name) identifier_app_package_name (call (identifier_Resource) identifier_Resource (argument_list (identifier_config) identifier_config )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Returns the root resource.
(module (function_definition (function_name_split_box) function_name_split_box (parameters (identifier_fraction) identifier_fraction (identifier_x) identifier_x (identifier_y) identifier_y (identifier_w) identifier_w (identifier_h) identifier_h )parameters (block (if_statement (comparison_operator (identifier_w) identifier_w (identifier_h) identifier_h )comparison_operator (block (expression_statement (assignment (identifier_new_w) identifier_new_w (call (identifier_int) identifier_int (argument_list (binary_operator (identifier_w) identifier_w (identifier_fraction) identifier_fraction )binary_operator )argument_list )call )assignment )expression_statement (if_statement (identifier_new_w) identifier_new_w (block (return_statement (expression_list (tuple (identifier_x) identifier_x (identifier_y) identifier_y (identifier_new_w) identifier_new_w (identifier_h) identifier_h )tuple (tuple (binary_operator (identifier_x) identifier_x (identifier_new_w) identifier_new_w )binary_operator (identifier_y) identifier_y (binary_operator (identifier_w) identifier_w (identifier_new_w) identifier_new_w )binary_operator (identifier_h) identifier_h )tuple )expression_list )return_statement )block (else_clause (block (return_statement (expression_list (None) None (None) None )expression_list )return_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (assignment (identifier_new_h) identifier_new_h (call (identifier_int) identifier_int (argument_list (binary_operator (identifier_h) identifier_h (identifier_fraction) identifier_fraction )binary_operator )argument_list )call )assignment )expression_statement (if_statement (identifier_new_h) identifier_new_h (block (return_statement (expression_list (tuple (identifier_x) identifier_x (identifier_y) identifier_y (identifier_w) identifier_w (identifier_new_h) identifier_new_h )tuple (tuple (identifier_x) identifier_x (binary_operator (identifier_y) identifier_y (identifier_new_h) identifier_new_h )binary_operator (identifier_w) identifier_w (binary_operator (identifier_h) identifier_h (identifier_new_h) identifier_new_h )binary_operator )tuple )expression_list )return_statement )block (else_clause (block (return_statement (expression_list (None) None (None) None )expression_list )return_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )function_definition )module
Return set of two boxes where first is the fraction given
(module (function_definition (function_name_node_to_object) function_name_node_to_object (parameters (identifier_self) identifier_self (identifier_node) identifier_node (identifier_object) identifier_object )parameters (block (expression_statement (string_"Map a single node to one object's attributes") string_"Map a single node to one object's attributes" )expression_statement (expression_statement (assignment (identifier_attribute) identifier_attribute (call (attribute (identifier_self) identifier_self (identifier_to_lower) identifier_to_lower )attribute (argument_list (attribute (identifier_node) identifier_node (identifier_tag) identifier_tag )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_attribute) identifier_attribute (conditional_expression (string_"_yield") string_"_yield" (comparison_operator (identifier_attribute) identifier_attribute (string_"yield") string_"yield" )comparison_operator (identifier_attribute) identifier_attribute )conditional_expression )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_valueString) identifier_valueString (boolean_operator (attribute (identifier_node) identifier_node (identifier_text) identifier_text )attribute (string_"") string_"" )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (call (identifier_float) identifier_float (argument_list (identifier_valueString) identifier_valueString )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (expression_statement (assignment (identifier_value) identifier_value (attribute (identifier_node) identifier_node (identifier_text) identifier_text )attribute )assignment )expression_statement )block )except_clause )try_statement (try_statement (block (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_object) identifier_object (identifier_attribute) identifier_attribute (identifier_value) identifier_value )argument_list )call )expression_statement )block (except_clause (call (identifier_AttributeError) identifier_AttributeError (argument_list )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute (identifier_write) identifier_write )attribute (argument_list (binary_operator (string_"Attribute <%s> not supported.") string_"Attribute <%s> not supported." (identifier_attribute) identifier_attribute )binary_operator )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
Map a single node to one object's attributes
(module (function_definition (function_name_shrink) function_name_shrink (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_trim) identifier_trim (call (identifier_int) identifier_int (argument_list (binary_operator (float_0.05) float_0.05 (call (identifier_len) identifier_len (argument_list (identifier_self) identifier_self )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (if_statement (identifier_trim) identifier_trim (block (expression_statement (assignment (identifier_items) identifier_items (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_LFUCache) identifier_LFUCache (identifier_self) identifier_self )argument_list )call (identifier_items) identifier_items )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_keyfunc) identifier_keyfunc (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (subscript (subscript (identifier_x) identifier_x (integer_1) integer_1 )subscript (integer_0) integer_0 )subscript )lambda )assignment )expression_statement (expression_statement (assignment (identifier_values) identifier_values (call (identifier_sorted) identifier_sorted (argument_list (identifier_items) identifier_items (keyword_argument (identifier_key) identifier_key (identifier_keyfunc) identifier_keyfunc )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_item) identifier_item (subscript (identifier_values) identifier_values (slice (integer_0) integer_0 (colon) colon (identifier_trim) identifier_trim )slice )subscript (block (delete_statement (subscript (identifier_self) identifier_self (subscript (identifier_item) identifier_item (integer_0) integer_0 )subscript )subscript )delete_statement )block )for_statement )block )if_statement )block )function_definition )module
Shrink ca. 5% of entries.
(module (function_definition (function_name_update_beta) function_name_update_beta (parameters (identifier_self) identifier_self (identifier_beta) identifier_beta )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier__safeguard) identifier__safeguard )attribute (block (expression_statement (augmented_assignment (identifier_beta) identifier_beta (attribute (identifier_self) identifier_self (identifier_xi_restart) identifier_xi_restart )attribute )augmented_assignment )expression_statement (expression_statement (assignment (identifier_beta) identifier_beta (call (identifier_max) identifier_max (argument_list (identifier_beta) identifier_beta (attribute (identifier_self) identifier_self (identifier_min_beta) identifier_min_beta )attribute )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (identifier_beta) identifier_beta )return_statement )block )function_definition )module
r"""Update beta This method updates beta only in the case of safeguarding (should only be done in the greedy restarting strategy). Parameters ---------- beta: float The beta parameter Returns ------- float: the new value for the beta parameter
(module (function_definition (function_name_browse_home_listpage_url) function_name_browse_home_listpage_url (parameters (identifier_self) identifier_self (default_parameter (identifier_state) identifier_state (None) None )default_parameter (default_parameter (identifier_county) identifier_county (None) None )default_parameter (default_parameter (identifier_zipcode) identifier_zipcode (None) None )default_parameter (default_parameter (identifier_street) identifier_street (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_url) identifier_url (attribute (identifier_self) identifier_self (identifier_domain_browse_homes) identifier_domain_browse_homes )attribute )assignment )expression_statement (for_statement (identifier_item) identifier_item (list (identifier_state) identifier_state (identifier_county) identifier_county (identifier_zipcode) identifier_zipcode (identifier_street) identifier_street )list (block (if_statement (identifier_item) identifier_item (block (expression_statement (assignment (identifier_url) identifier_url (binary_operator (identifier_url) identifier_url (binary_operator (string_"/%s") string_"/%s" (identifier_item) identifier_item )binary_operator )binary_operator )assignment )expression_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_url) identifier_url (binary_operator (identifier_url) identifier_url (string_"/") string_"/" )binary_operator )assignment )expression_statement (return_statement (identifier_url) identifier_url )return_statement )block )function_definition )module
Construct an url of home list page by state, county, zipcode, street. Example: - https://www.zillow.com/browse/homes/ca/ - https://www.zillow.com/browse/homes/ca/los-angeles-county/ - https://www.zillow.com/browse/homes/ca/los-angeles-county/91001/ - https://www.zillow.com/browse/homes/ca/los-angeles-county/91001/tola-ave_5038895/
(module (function_definition (function_name_makeStylesheetResource) function_name_makeStylesheetResource (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_registry) identifier_registry )parameters (block (return_statement (call (identifier_StylesheetRewritingResourceWrapper) identifier_StylesheetRewritingResourceWrapper (argument_list (call (identifier_File) identifier_File (argument_list (identifier_path) identifier_path )argument_list )call (attribute (identifier_self) identifier_self (identifier_installedOfferingNames) identifier_installedOfferingNames )attribute (attribute (identifier_self) identifier_self (identifier_rootURL) identifier_rootURL )attribute )argument_list )call )return_statement )block )function_definition )module
Return a resource for the css at the given path with its urls rewritten based on self.rootURL.
(module (function_definition (function_name__find_special) function_name__find_special (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_charnames) identifier_charnames (call (attribute (identifier_self) identifier_self (identifier__get_char_names) identifier__get_char_names )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_eventdir) identifier_eventdir (call (attribute (identifier_glob) identifier_glob (identifier_glob) identifier_glob )attribute (argument_list (string_'/sys/class/input/event*') string_'/sys/class/input/event*' )argument_list )call (block (expression_statement (assignment (identifier_char_name) identifier_char_name (subscript (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_split) identifier_split )attribute (argument_list (identifier_eventdir) identifier_eventdir )argument_list )call (integer_1) integer_1 )subscript )assignment )expression_statement (if_statement (comparison_operator (identifier_char_name) identifier_char_name (identifier_charnames) identifier_charnames )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_name_file) identifier_name_file (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_eventdir) identifier_eventdir (string_'device') string_'device' (string_'name') string_'name' )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_name_file) identifier_name_file )argument_list )call (as_pattern_target (identifier_name_file) identifier_name_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_device_name) identifier_device_name (call (attribute (call (attribute (identifier_name_file) identifier_name_file (identifier_read) identifier_read )attribute (argument_list )argument_list )call (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_device_name) identifier_device_name (subscript (attribute (identifier_self) identifier_self (identifier_codes) identifier_codes )attribute (string_'specials') string_'specials' )subscript )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__parse_device_path) identifier__parse_device_path )attribute (argument_list (subscript (subscript (attribute (identifier_self) identifier_self (identifier_codes) identifier_codes )attribute (string_'specials') string_'specials' )subscript (identifier_device_name) identifier_device_name )subscript (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (string_'/dev/input') string_'/dev/input' (identifier_char_name) identifier_char_name )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )with_statement )block )for_statement )block )function_definition )module
Look for special devices.
(module (function_definition (function_name_toList) function_name_toList (parameters (identifier_value) identifier_value (default_parameter (identifier_itemcast) identifier_itemcast (None) None )default_parameter (default_parameter (identifier_delim) identifier_delim (string_',') string_',' )default_parameter )parameters (block (expression_statement (assignment (identifier_value) identifier_value (boolean_operator (identifier_value) identifier_value (string_'') string_'' )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_itemcast) identifier_itemcast (boolean_operator (identifier_itemcast) identifier_itemcast (identifier_str) identifier_str )boolean_operator )assignment )expression_statement (return_statement (list_comprehension (call (identifier_itemcast) identifier_itemcast (argument_list (identifier_item) identifier_item )argument_list )call (for_in_clause (identifier_item) identifier_item (call (attribute (identifier_value) identifier_value (identifier_split) identifier_split )attribute (argument_list (identifier_delim) identifier_delim )argument_list )call )for_in_clause (if_clause (comparison_operator (identifier_item) identifier_item (string_'') string_'' )comparison_operator )if_clause )list_comprehension )return_statement )block )function_definition )module
Returns a list of strings from the specified value. Parameters: value (str): comma delimited string to convert to list. itemcast (func): Function to cast each list item to (default str). delim (str): string delimiter (optional; default ',').
(module (function_definition (function_name_exception_format) function_name_exception_format (parameters )parameters (block (return_statement (call (attribute (string_"") string_"" (identifier_join) identifier_join )attribute (argument_list (call (attribute (identifier_traceback) identifier_traceback (identifier_format_exception) identifier_format_exception )attribute (argument_list (subscript (call (attribute (identifier_sys) identifier_sys (identifier_exc_info) identifier_exc_info )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript (subscript (call (attribute (identifier_sys) identifier_sys (identifier_exc_info) identifier_exc_info )attribute (argument_list )argument_list )call (integer_1) integer_1 )subscript (subscript (call (attribute (identifier_sys) identifier_sys (identifier_exc_info) identifier_exc_info )attribute (argument_list )argument_list )call (integer_2) integer_2 )subscript )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Convert exception info into a string suitable for display.
(module (function_definition (function_name_log_exception) function_name_log_exception (parameters (identifier_func) identifier_func (identifier_handler) identifier_handler (identifier_args) identifier_args (identifier_kwargs) identifier_kwargs )parameters (block (expression_statement (assignment (identifier_value) identifier_value (conditional_expression (subscript (identifier_args) identifier_args (integer_1) integer_1 )subscript (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_args) identifier_args )argument_list )call (integer_3) integer_3 )comparison_operator (None) None )conditional_expression )assignment )expression_statement (if_statement (comparison_operator (identifier_value) identifier_value (None) None )comparison_operator (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_tracing) identifier_tracing (call (attribute (attribute (identifier_handler) identifier_handler (identifier_settings) identifier_settings )attribute (identifier_get) identifier_get )attribute (argument_list (string_'opentracing_tracing') string_'opentracing_tracing' )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_HTTPError) identifier_HTTPError )argument_list )call )not_operator (comparison_operator (integer_500) integer_500 (attribute (identifier_value) identifier_value (identifier_status_code) identifier_status_code )attribute (integer_599) integer_599 )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_tracing) identifier_tracing (identifier__finish_tracing) identifier__finish_tracing )attribute (argument_list (identifier_handler) identifier_handler (keyword_argument (identifier_error) identifier_error (identifier_value) identifier_value )keyword_argument )argument_list )call )expression_statement )block )if_statement (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 )function_definition )module
Wrap the handler ``log_exception`` method to finish the Span for the given request, if available. This method is called when an Exception is not handled in the user code.
(module (function_definition (function_name_config_status) function_name_config_status (parameters )parameters (block (expression_statement (assignment (identifier_s) identifier_s (call (attribute (identifier_boto3) identifier_boto3 (identifier_Session) identifier_Session )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_client) identifier_client (call (attribute (identifier_s) identifier_s (identifier_client) identifier_client )attribute (argument_list (string_'config') string_'config' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_channels) identifier_channels (subscript (call (attribute (identifier_client) identifier_client (identifier_describe_delivery_channel_status) identifier_describe_delivery_channel_status )attribute (argument_list )argument_list )call (string_'DeliveryChannelsStatus') string_'DeliveryChannelsStatus' )subscript )assignment )expression_statement (for_statement (identifier_c) identifier_c (identifier_channels) identifier_channels (block (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (identifier_yaml) identifier_yaml (identifier_safe_dump) identifier_safe_dump )attribute (argument_list (dictionary (pair (subscript (identifier_c) identifier_c (string_'name') string_'name' )subscript (call (identifier_dict) identifier_dict (argument_list (keyword_argument (identifier_snapshot) identifier_snapshot (call (identifier_str) identifier_str (argument_list (call (attribute (subscript (identifier_c) identifier_c (string_'configSnapshotDeliveryInfo') string_'configSnapshotDeliveryInfo' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'lastSuccessfulTime') string_'lastSuccessfulTime' )argument_list )call )argument_list )call )keyword_argument (keyword_argument (identifier_history) identifier_history (call (identifier_str) identifier_str (argument_list (call (attribute (subscript (identifier_c) identifier_c (string_'configHistoryDeliveryInfo') string_'configHistoryDeliveryInfo' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'lastSuccessfulTime') string_'lastSuccessfulTime' )argument_list )call )argument_list )call )keyword_argument (keyword_argument (identifier_stream) identifier_stream (call (identifier_str) identifier_str (argument_list (call (attribute (subscript (identifier_c) identifier_c (string_'configStreamDeliveryInfo') string_'configStreamDeliveryInfo' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'lastStatusChangeTime') string_'lastStatusChangeTime' )argument_list )call )argument_list )call )keyword_argument )argument_list )call )pair )dictionary (keyword_argument (identifier_default_flow_style) identifier_default_flow_style (False) False )keyword_argument )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Check config status in an account.
(module (function_definition (function_name_cublasZsyrk) function_name_cublasZsyrk (parameters (identifier_handle) identifier_handle (identifier_uplo) identifier_uplo (identifier_trans) identifier_trans (identifier_n) identifier_n (identifier_k) identifier_k (identifier_alpha) identifier_alpha (identifier_A) identifier_A (identifier_lda) identifier_lda (identifier_beta) identifier_beta (identifier_C) identifier_C (identifier_ldc) identifier_ldc )parameters (block (expression_statement (assignment (identifier_status) identifier_status (call (attribute (identifier__libcublas) identifier__libcublas (identifier_cublasZsyrk_v2) identifier_cublasZsyrk_v2 )attribute (argument_list (identifier_handle) identifier_handle (subscript (identifier__CUBLAS_FILL_MODE) identifier__CUBLAS_FILL_MODE (identifier_uplo) identifier_uplo )subscript (subscript (identifier__CUBLAS_OP) identifier__CUBLAS_OP (identifier_trans) identifier_trans )subscript (identifier_n) identifier_n (identifier_k) identifier_k (call (attribute (identifier_ctypes) identifier_ctypes (identifier_byref) identifier_byref )attribute (argument_list (call (attribute (identifier_cuda) identifier_cuda (identifier_cuDoubleComplex) identifier_cuDoubleComplex )attribute (argument_list (attribute (identifier_alpha) identifier_alpha (identifier_real) identifier_real )attribute (attribute (identifier_alpha) identifier_alpha (identifier_imag) identifier_imag )attribute )argument_list )call )argument_list )call (call (identifier_int) identifier_int (argument_list (identifier_A) identifier_A )argument_list )call (identifier_lda) identifier_lda (call (attribute (identifier_ctypes) identifier_ctypes (identifier_byref) identifier_byref )attribute (argument_list (call (attribute (identifier_cuda) identifier_cuda (identifier_cuDoubleComplex) identifier_cuDoubleComplex )attribute (argument_list (attribute (identifier_beta) identifier_beta (identifier_real) identifier_real )attribute (attribute (identifier_beta) identifier_beta (identifier_imag) identifier_imag )attribute )argument_list )call )argument_list )call (call (identifier_int) identifier_int (argument_list (identifier_C) identifier_C )argument_list )call (identifier_ldc) identifier_ldc )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_cublasCheckStatus) identifier_cublasCheckStatus (argument_list (identifier_status) identifier_status )argument_list )call )expression_statement )block )function_definition )module
Rank-k operation on complex symmetric matrix.
(module (function_definition (function_name_apply_new_scoped_variable_default_value) function_name_apply_new_scoped_variable_default_value (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_new_default_value_str) identifier_new_default_value_str )parameters (block (expression_statement (assignment (identifier_data_port_id) identifier_data_port_id (subscript (call (attribute (identifier_self) identifier_self (identifier_get_list_store_row_from_cursor_selection) identifier_get_list_store_row_from_cursor_selection )attribute (argument_list )argument_list )call (attribute (identifier_self) identifier_self (identifier_ID_STORAGE_ID) identifier_ID_STORAGE_ID )attribute )subscript )assignment )expression_statement (try_statement (block (if_statement (comparison_operator (call (identifier_str) identifier_str (argument_list (attribute (subscript (attribute (attribute (attribute (identifier_self) identifier_self (identifier_model) identifier_model )attribute (identifier_state) identifier_state )attribute (identifier_scoped_variables) identifier_scoped_variables )attribute (identifier_data_port_id) identifier_data_port_id )subscript (identifier_default_value) identifier_default_value )attribute )argument_list )call (identifier_new_default_value_str) identifier_new_default_value_str )comparison_operator (block (expression_statement (assignment (attribute (subscript (attribute (attribute (attribute (identifier_self) identifier_self (identifier_model) identifier_model )attribute (identifier_state) identifier_state )attribute (identifier_scoped_variables) identifier_scoped_variables )attribute (identifier_data_port_id) identifier_data_port_id )subscript (identifier_default_value) identifier_default_value )attribute (identifier_new_default_value_str) identifier_new_default_value_str )assignment )expression_statement )block )if_statement )block (except_clause (as_pattern (tuple (identifier_TypeError) identifier_TypeError (identifier_AttributeError) identifier_AttributeError )tuple (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_error) identifier_error )attribute (argument_list (call (attribute (string_"Error while changing default value: {0}") string_"Error while changing default value: {0}" (identifier_format) identifier_format )attribute (argument_list (identifier_e) identifier_e )argument_list )call )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
Applies the new default value of the scoped variable defined by path :param str path: The path identifying the edited variable :param str new_default_value_str: New default value as string
(module (function_definition (function_name__get_kwarg) function_name__get_kwarg (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_kwargs) identifier_kwargs )parameters (block (expression_statement (assignment (identifier_at_name) identifier_at_name (call (attribute (string_'@{}') string_'@{}' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_name) identifier_name (identifier_kwargs) identifier_kwargs )comparison_operator (block (if_statement (comparison_operator (identifier_at_name) identifier_at_name (identifier_kwargs) identifier_kwargs )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_'Both {!r} and {!r} specified in kwargs') string_'Both {!r} and {!r} specified in kwargs' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name (identifier_at_name) identifier_at_name )argument_list )call )argument_list )call )raise_statement )block )if_statement (return_statement (subscript (identifier_kwargs) identifier_kwargs (identifier_name) identifier_name )subscript )return_statement )block )if_statement (if_statement (comparison_operator (identifier_at_name) identifier_at_name (identifier_kwargs) identifier_kwargs )comparison_operator (block (return_statement (subscript (identifier_kwargs) identifier_kwargs (identifier_at_name) identifier_at_name )subscript )return_statement )block )if_statement (return_statement (identifier_not_set) identifier_not_set )return_statement )block )function_definition )module
Helper to get value of a named attribute irrespective of whether it is passed with or without "@" prefix.
(module (function_definition (function_name_finger_master) function_name_finger_master (parameters (default_parameter (identifier_hash_type) identifier_hash_type (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_keyname) identifier_keyname (string_'master.pub') string_'master.pub' )assignment )expression_statement (if_statement (comparison_operator (identifier_hash_type) identifier_hash_type (None) None )comparison_operator (block (expression_statement (assignment (identifier_hash_type) identifier_hash_type (subscript (identifier___opts__) identifier___opts__ (string_'hash_type') string_'hash_type' )subscript )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_fingerprint) identifier_fingerprint (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_crypt) identifier_crypt )attribute (identifier_pem_finger) identifier_pem_finger )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (subscript (identifier___opts__) identifier___opts__ (string_'pki_dir') string_'pki_dir' )subscript (identifier_keyname) identifier_keyname )argument_list )call (keyword_argument (identifier_sum_type) identifier_sum_type (identifier_hash_type) identifier_hash_type )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (dictionary (pair (string_'local') string_'local' (dictionary (pair (identifier_keyname) identifier_keyname (identifier_fingerprint) identifier_fingerprint )pair )dictionary )pair )dictionary )return_statement )block )function_definition )module
Return the fingerprint of the master's public key hash_type The hash algorithm used to calculate the fingerprint .. code-block:: python >>> wheel.cmd('key.finger_master') {'local': {'master.pub': '5d:f6:79:43:5e:d4:42:3f:57:b8:45:a8:7e:a4:6e:ca'}}
(module (function_definition (function_name_main) function_name_main (parameters )parameters (block (expression_statement (assignment (identifier_outf) identifier_outf (string_"") string_"" )assignment )expression_statement (expression_statement (assignment (identifier_N) identifier_N (integer_100) integer_100 )assignment )expression_statement (if_statement (comparison_operator (string_'-h') string_'-h' (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (attribute (identifier_main) identifier_main (identifier___doc__) identifier___doc__ )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_sys) identifier_sys (identifier_exit) identifier_exit )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (if_statement (comparison_operator (string_'-F') string_'-F' (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute )comparison_operator (block (expression_statement (assignment (identifier_ind) identifier_ind (call (attribute (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute (identifier_index) identifier_index )attribute (argument_list (string_'-F') string_'-F' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_outf) identifier_outf (subscript (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute (binary_operator (identifier_ind) identifier_ind (integer_1) integer_1 )binary_operator )subscript )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_outf) identifier_outf (string_"") string_"" )comparison_operator (block (expression_statement (assignment (identifier_out) identifier_out (call (identifier_open) identifier_open (argument_list (identifier_outf) identifier_outf (string_'w') string_'w' )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (string_'-n') string_'-n' (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute )comparison_operator (block (expression_statement (assignment (identifier_ind) identifier_ind (call (attribute (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute (identifier_index) identifier_index )attribute (argument_list (string_'-n') string_'-n' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_N) identifier_N (call (identifier_int) identifier_int (argument_list (subscript (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute (binary_operator (identifier_ind) identifier_ind (integer_1) integer_1 )binary_operator )subscript )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_dirs) identifier_dirs (call (attribute (identifier_pmag) identifier_pmag (identifier_get_unf) identifier_get_unf )attribute (argument_list (identifier_N) identifier_N )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_outf) identifier_outf (string_'') string_'' )comparison_operator (block (for_statement (identifier_dir) identifier_dir (identifier_dirs) identifier_dirs (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_'%7.1f %7.1f') string_'%7.1f %7.1f' (tuple (subscript (identifier_dir) identifier_dir (integer_0) integer_0 )subscript (subscript (identifier_dir) identifier_dir (integer_1) integer_1 )subscript )tuple )binary_operator )argument_list )call )expression_statement )block )for_statement )block (else_clause (block (expression_statement (call (attribute (identifier_numpy) identifier_numpy (identifier_savetxt) identifier_savetxt )attribute (argument_list (identifier_outf) identifier_outf (identifier_dirs) identifier_dirs (keyword_argument (identifier_fmt) identifier_fmt (string_'%7.1f %7.1f') string_'%7.1f %7.1f' )keyword_argument )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
NAME uniform.py DESCRIPTION draws N directions from uniform distribution on a sphere SYNTAX uniform.py [-h][command line options] -h prints help message and quits -n N, specify N on the command line (default is 100) -F file, specify output file name, default is standard output
(module (function_definition (function_name_structured_iterator) function_name_structured_iterator (parameters (identifier_failure_lines) identifier_failure_lines )parameters (block (expression_statement (assignment (identifier_summary) identifier_summary (call (identifier_partial) identifier_partial (argument_list (identifier_failure_line_summary) identifier_failure_line_summary (call (identifier_TbplFormatter) identifier_TbplFormatter (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (for_statement (identifier_failure_line) identifier_failure_line (identifier_failure_lines) identifier_failure_lines (block (expression_statement (assignment (identifier_repr_str) identifier_repr_str (call (identifier_summary) identifier_summary (argument_list (identifier_failure_line) identifier_failure_line )argument_list )call )assignment )expression_statement (if_statement (identifier_repr_str) identifier_repr_str (block (expression_statement (yield (expression_list (identifier_failure_line) identifier_failure_line (identifier_repr_str) identifier_repr_str )expression_list )yield )expression_statement )block )if_statement )block )for_statement (while_statement (True) True (block (expression_statement (yield (expression_list (None) None (None) None )expression_list )yield )expression_statement )block )while_statement )block )function_definition )module
Create FailureLine, Tbpl-formatted-string tuples.
(module (function_definition (function_name_build_self_uri_list) function_name_build_self_uri_list (parameters (identifier_self_uri_list) identifier_self_uri_list )parameters (block (expression_statement (string_"parse the self-uri tags, build Uri objects") string_"parse the self-uri tags, build Uri objects" )expression_statement (expression_statement (assignment (identifier_uri_list) identifier_uri_list (list )list )assignment )expression_statement (for_statement (identifier_self_uri) identifier_self_uri (identifier_self_uri_list) identifier_self_uri_list (block (expression_statement (assignment (identifier_uri) identifier_uri (call (attribute (identifier_ea) identifier_ea (identifier_Uri) identifier_Uri )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_set_attr_if_value) identifier_set_attr_if_value )attribute (argument_list (identifier_uri) identifier_uri (string_'xlink_href') string_'xlink_href' (call (attribute (identifier_self_uri) identifier_self_uri (identifier_get) identifier_get )attribute (argument_list (string_'xlink_href') string_'xlink_href' )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_set_attr_if_value) identifier_set_attr_if_value )attribute (argument_list (identifier_uri) identifier_uri (string_'content_type') string_'content_type' (call (attribute (identifier_self_uri) identifier_self_uri (identifier_get) identifier_get )attribute (argument_list (string_'content-type') string_'content-type' )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_uri_list) identifier_uri_list (identifier_append) identifier_append )attribute (argument_list (identifier_uri) identifier_uri )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_uri_list) identifier_uri_list )return_statement )block )function_definition )module
parse the self-uri tags, build Uri objects
(module (function_definition (function_name_check_option) function_name_check_option (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_subkey) identifier_subkey (identifier_value) identifier_value )parameters (block (expression_statement (assignment (pattern_list (identifier_key) identifier_key (identifier_subkey) identifier_subkey )pattern_list (call (identifier__lower_keys) identifier__lower_keys (argument_list (identifier_key) identifier_key (identifier_subkey) identifier_subkey )argument_list )call )assignment )expression_statement (expression_statement (call (identifier__entry_must_exist) identifier__entry_must_exist (argument_list (attribute (identifier_self) identifier_self (identifier_gc) identifier_gc )attribute (identifier_key) identifier_key (identifier_subkey) identifier_subkey )argument_list )call )expression_statement (expression_statement (assignment (identifier_df) identifier_df (subscript (attribute (identifier_self) identifier_self (identifier_gc) identifier_gc )attribute (binary_operator (parenthesized_expression (comparison_operator (subscript (attribute (identifier_self) identifier_self (identifier_gc) identifier_gc )attribute (string_"k1") string_"k1" )subscript (identifier_key) identifier_key )comparison_operator )parenthesized_expression (parenthesized_expression (comparison_operator (subscript (attribute (identifier_self) identifier_self (identifier_gc) identifier_gc )attribute (string_"k2") string_"k2" )subscript (identifier_subkey) identifier_subkey )comparison_operator )parenthesized_expression )binary_operator )subscript )assignment )expression_statement (expression_statement (call (attribute (identifier_ev) identifier_ev (identifier_value_eval) identifier_value_eval )attribute (argument_list (identifier_value) identifier_value (subscript (attribute (subscript (identifier_df) identifier_df (string_"type") string_"type" )subscript (identifier_values) identifier_values )attribute (integer_0) integer_0 )subscript )argument_list )call )expression_statement (if_statement (comparison_operator (subscript (attribute (subscript (identifier_df) identifier_df (string_"values") string_"values" )subscript (identifier_values) identifier_values )attribute (integer_0) integer_0 )subscript (None) None )comparison_operator (block (return_statement (comparison_operator (identifier_value) identifier_value (subscript (attribute (subscript (identifier_df) identifier_df (string_"values") string_"values" )subscript (identifier_values) identifier_values )attribute (integer_0) integer_0 )subscript )comparison_operator )return_statement )block )if_statement (return_statement (True) True )return_statement )block )function_definition )module
Evaluate if a given value fits the option. If an option has a limited set of available values, check if the provided value is amongst them. :param str key: First identifier of the option. :param str subkey: Second identifier of the option. :param value: Value to test (type varies). :return: :class:`bool` - does ``value`` belong to the options? :raise: :NotRegisteredError: If ``key`` or ``subkey`` do not define any option. :ValueError: If the provided value is not the expected type for the option.
(module (function_definition (function_name_cut_matrix) function_name_cut_matrix (parameters (identifier_self) identifier_self (identifier_n) identifier_n )parameters (block (expression_statement (assignment (identifier_cm) identifier_cm (call (attribute (identifier_np) identifier_np (identifier_zeros) identifier_zeros )attribute (argument_list (tuple (identifier_n) identifier_n (identifier_n) identifier_n )tuple )argument_list )call )assignment )expression_statement (for_statement (identifier_part) identifier_part (attribute (identifier_self) identifier_self (identifier_partition) identifier_partition )attribute (block (expression_statement (assignment (pattern_list (identifier_from_) identifier_from_ (identifier_to) identifier_to )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_direction) identifier_direction )attribute (identifier_order) identifier_order )attribute (argument_list (attribute (identifier_part) identifier_part (identifier_mechanism) identifier_mechanism )attribute (attribute (identifier_part) identifier_part (identifier_purview) identifier_purview )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_external) identifier_external (call (identifier_tuple) identifier_tuple (argument_list (binary_operator (call (identifier_set) identifier_set (argument_list (attribute (identifier_self) identifier_self (identifier_indices) identifier_indices )attribute )argument_list )call (call (identifier_set) identifier_set (argument_list (identifier_to) identifier_to )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_cm) identifier_cm (call (attribute (identifier_np) identifier_np (identifier_ix_) identifier_ix_ )attribute (argument_list (identifier_from_) identifier_from_ (identifier_external) identifier_external )argument_list )call )subscript (integer_1) integer_1 )assignment )expression_statement )block )for_statement (return_statement (identifier_cm) identifier_cm )return_statement )block )function_definition )module
The matrix of connections that are severed by this cut.
(module (function_definition (function_name_unmatched_brackets_in_line) function_name_unmatched_brackets_in_line (parameters (identifier_self) identifier_self (identifier_text) identifier_text (default_parameter (identifier_closing_brackets_type) identifier_closing_brackets_type (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_closing_brackets_type) identifier_closing_brackets_type (None) None )comparison_operator (block (expression_statement (assignment (identifier_opening_brackets) identifier_opening_brackets (call (attribute (attribute (identifier_self) identifier_self (identifier_BRACKETS_LEFT) identifier_BRACKETS_LEFT )attribute (identifier_values) identifier_values )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_closing_brackets) identifier_closing_brackets (call (attribute (attribute (identifier_self) identifier_self (identifier_BRACKETS_RIGHT) identifier_BRACKETS_RIGHT )attribute (identifier_values) identifier_values )attribute (argument_list )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_closing_brackets) identifier_closing_brackets (list (identifier_closing_brackets_type) identifier_closing_brackets_type )list )assignment )expression_statement (expression_statement (assignment (identifier_opening_brackets) identifier_opening_brackets (list (subscript (dictionary (pair (string_')') string_')' (string_'(') string_'(' )pair (pair (string_'}') string_'}' (string_'{') string_'{' )pair (pair (string_']') string_']' (string_'[') string_'[' )pair )dictionary (identifier_closing_brackets_type) identifier_closing_brackets_type )subscript )list )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_block) identifier_block (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_editor) identifier_editor )attribute (identifier_textCursor) identifier_textCursor )attribute (argument_list )argument_list )call (identifier_block) identifier_block )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_line_pos) identifier_line_pos (call (attribute (identifier_block) identifier_block (identifier_position) identifier_position )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_pos) identifier_pos (identifier_char) identifier_char )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_text) identifier_text )argument_list )call (block (if_statement (comparison_operator (identifier_char) identifier_char (identifier_opening_brackets) identifier_opening_brackets )comparison_operator (block (expression_statement (assignment (identifier_match) identifier_match (call (attribute (attribute (identifier_self) identifier_self (identifier_editor) identifier_editor )attribute (identifier_find_brace_match) identifier_find_brace_match )attribute (argument_list (binary_operator (identifier_line_pos) identifier_line_pos (identifier_pos) identifier_pos )binary_operator (identifier_char) identifier_char (keyword_argument (identifier_forward) identifier_forward (True) True )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (parenthesized_expression (comparison_operator (identifier_match) identifier_match (None) None )comparison_operator )parenthesized_expression (parenthesized_expression (comparison_operator (identifier_match) identifier_match (binary_operator (identifier_line_pos) identifier_line_pos (call (identifier_len) identifier_len (argument_list (identifier_text) identifier_text )argument_list )call )binary_operator )comparison_operator )parenthesized_expression )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement )block )if_statement (if_statement (comparison_operator (identifier_char) identifier_char (identifier_closing_brackets) identifier_closing_brackets )comparison_operator (block (expression_statement (assignment (identifier_match) identifier_match (call (attribute (attribute (identifier_self) identifier_self (identifier_editor) identifier_editor )attribute (identifier_find_brace_match) identifier_find_brace_match )attribute (argument_list (binary_operator (identifier_line_pos) identifier_line_pos (identifier_pos) identifier_pos )binary_operator (identifier_char) identifier_char (keyword_argument (identifier_forward) identifier_forward (False) False )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (parenthesized_expression (comparison_operator (identifier_match) identifier_match (None) None )comparison_operator )parenthesized_expression (parenthesized_expression (comparison_operator (identifier_match) identifier_match (identifier_line_pos) identifier_line_pos )comparison_operator )parenthesized_expression )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement )block )if_statement )block )for_statement (return_statement (False) False )return_statement )block )function_definition )module
Checks if there is an unmatched brackets in the 'text'. The brackets type can be general or specified by closing_brackets_type (')', ']' or '}')
(module (function_definition (function_name_registercls) function_name_registercls (parameters (identifier_self) identifier_self (identifier_data_types) identifier_data_types (default_parameter (identifier_schemacls) identifier_schemacls (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_schemacls) identifier_schemacls (None) None )comparison_operator (block (return_statement (lambda (lambda_parameters (identifier_schemacls) identifier_schemacls )lambda_parameters (call (attribute (identifier_self) identifier_self (identifier_registercls) identifier_registercls )attribute (argument_list (keyword_argument (identifier_data_types) identifier_data_types (identifier_data_types) identifier_data_types )keyword_argument (keyword_argument (identifier_schemacls) identifier_schemacls (identifier_schemacls) identifier_schemacls )keyword_argument )argument_list )call )lambda )return_statement )block )if_statement (for_statement (identifier_data_type) identifier_data_type (identifier_data_types) identifier_data_types (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__schbytype) identifier__schbytype )attribute (identifier_data_type) identifier_data_type )subscript (identifier_schemacls) identifier_schemacls )assignment )expression_statement )block )for_statement (return_statement (identifier_schemacls) identifier_schemacls )return_statement )block )function_definition )module
Register schema class with associated data_types. Can be used such as a decorator. :param list data_types: data types to associate with schema class. :param type schemacls: schema class to register. :return: schemacls. :rtype: type
(module (function_definition (function_name_table_describe) function_name_table_describe (parameters (identifier_table_name) identifier_table_name )parameters (block (expression_statement (assignment (identifier_desc) identifier_desc (call (attribute (call (attribute (call (attribute (identifier_orca) identifier_orca (identifier_get_table) identifier_get_table )attribute (argument_list (identifier_table_name) identifier_table_name )argument_list )call (identifier_to_frame) identifier_to_frame )attribute (argument_list )argument_list )call (identifier_describe) identifier_describe )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (tuple (call (attribute (identifier_desc) identifier_desc (identifier_to_json) identifier_to_json )attribute (argument_list (keyword_argument (identifier_orient) identifier_orient (string_'split') string_'split' )keyword_argument (keyword_argument (identifier_date_format) identifier_date_format (string_'iso') string_'iso' )keyword_argument )argument_list )call (integer_200) integer_200 (dictionary (pair (string_'Content-Type') string_'Content-Type' (string_'application/json') string_'application/json' )pair )dictionary )tuple )return_statement )block )function_definition )module
Return summary statistics of a table as JSON. Includes all columns. Uses Pandas' "split" JSON format.
(module (function_definition (function_name__update_trial_queue) function_name__update_trial_queue (parameters (identifier_self) identifier_self (default_parameter (identifier_blocking) identifier_blocking (False) False )default_parameter (default_parameter (identifier_timeout) identifier_timeout (integer_600) integer_600 )default_parameter )parameters (block (expression_statement (assignment (identifier_trials) identifier_trials (call (attribute (attribute (identifier_self) identifier_self (identifier__search_alg) identifier__search_alg )attribute (identifier_next_trials) identifier_next_trials )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (identifier_blocking) identifier_blocking (not_operator (identifier_trials) identifier_trials )not_operator )boolean_operator (block (expression_statement (assignment (identifier_start) identifier_start (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (while_statement (parenthesized_expression (boolean_operator (boolean_operator (not_operator (identifier_trials) identifier_trials )not_operator (not_operator (call (attribute (identifier_self) identifier_self (identifier_is_finished) identifier_is_finished )attribute (argument_list )argument_list )call )not_operator )boolean_operator (comparison_operator (binary_operator (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call (identifier_start) identifier_start )binary_operator (identifier_timeout) identifier_timeout )comparison_operator )boolean_operator )parenthesized_expression (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (string_"Blocking for next trial...") string_"Blocking for next trial..." )argument_list )call )expression_statement (expression_statement (assignment (identifier_trials) identifier_trials (call (attribute (attribute (identifier_self) identifier_self (identifier__search_alg) identifier__search_alg )attribute (identifier_next_trials) identifier_next_trials )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_time) identifier_time (identifier_sleep) identifier_sleep )attribute (argument_list (integer_1) integer_1 )argument_list )call )expression_statement )block )while_statement )block )if_statement (for_statement (identifier_trial) identifier_trial (identifier_trials) identifier_trials (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_add_trial) identifier_add_trial )attribute (argument_list (identifier_trial) identifier_trial )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Adds next trials to queue if possible. Note that the timeout is currently unexposed to the user. Args: blocking (bool): Blocks until either a trial is available or is_finished (timeout or search algorithm finishes). timeout (int): Seconds before blocking times out.
(module (function_definition (function_name__zip_with_scalars) function_name__zip_with_scalars (parameters (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_zipped) identifier_zipped (list )list )assignment )expression_statement (for_statement (identifier_arg) identifier_arg (identifier_args) identifier_args (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_arg) identifier_arg (attribute (identifier_prettytensor) identifier_prettytensor (identifier_PrettyTensor) identifier_PrettyTensor )attribute )argument_list )call (block (expression_statement (call (attribute (identifier_zipped) identifier_zipped (identifier_append) identifier_append )attribute (argument_list (conditional_expression (identifier_arg) identifier_arg (call (attribute (identifier_arg) identifier_arg (identifier_is_sequence) identifier_is_sequence )attribute (argument_list )argument_list )call (call (attribute (identifier_itertools) identifier_itertools (identifier_repeat) identifier_repeat )attribute (argument_list (identifier_arg) identifier_arg )argument_list )call )conditional_expression )argument_list )call )expression_statement )block (elif_clause (parenthesized_expression (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_arg) identifier_arg (attribute (identifier_collections) identifier_collections (identifier_Sequence) identifier_Sequence )attribute )argument_list )call (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_arg) identifier_arg (attribute (attribute (identifier_tf) identifier_tf (identifier_compat) identifier_compat )attribute (identifier_bytes_or_text_types) identifier_bytes_or_text_types )attribute )argument_list )call )not_operator )boolean_operator )parenthesized_expression (block (expression_statement (call (attribute (identifier_zipped) identifier_zipped (identifier_append) identifier_append )attribute (argument_list (identifier_arg) identifier_arg )argument_list )call )expression_statement )block )elif_clause (else_clause (block (expression_statement (call (attribute (identifier_zipped) identifier_zipped (identifier_append) identifier_append )attribute (argument_list (call (attribute (identifier_itertools) identifier_itertools (identifier_repeat) identifier_repeat )attribute (argument_list (identifier_arg) identifier_arg )argument_list )call )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (assert_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_args) identifier_args )argument_list )call (call (identifier_len) identifier_len (argument_list (identifier_zipped) identifier_zipped )argument_list )call )comparison_operator )assert_statement (return_statement (call (identifier_zip) identifier_zip (argument_list (list_splat (identifier_zipped) identifier_zipped )list_splat )argument_list )call )return_statement )block )function_definition )module
Zips across args in order and replaces non-iterables with repeats.
(module (function_definition (function_name_camelcase_to_underscores) function_name_camelcase_to_underscores (parameters (identifier_argument) identifier_argument )parameters (block (expression_statement (assignment (identifier_result) identifier_result (string_'') string_'' )assignment )expression_statement (expression_statement (assignment (identifier_prev_char_title) identifier_prev_char_title (True) True )assignment )expression_statement (if_statement (not_operator (identifier_argument) identifier_argument )not_operator (block (return_statement (identifier_argument) identifier_argument )return_statement )block )if_statement (for_statement (pattern_list (identifier_index) identifier_index (identifier_char) identifier_char )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_argument) identifier_argument )argument_list )call (block (try_statement (block (expression_statement (assignment (identifier_next_char_title) identifier_next_char_title (call (attribute (subscript (identifier_argument) identifier_argument (binary_operator (identifier_index) identifier_index (integer_1) integer_1 )binary_operator )subscript (identifier_istitle) identifier_istitle )attribute (argument_list )argument_list )call )assignment )expression_statement )block (except_clause (identifier_IndexError) identifier_IndexError (block (expression_statement (assignment (identifier_next_char_title) identifier_next_char_title (True) True )assignment )expression_statement )block )except_clause )try_statement (expression_statement (assignment (identifier_upper_to_lower) identifier_upper_to_lower (boolean_operator (call (attribute (identifier_char) identifier_char (identifier_istitle) identifier_istitle )attribute (argument_list )argument_list )call (not_operator (identifier_next_char_title) identifier_next_char_title )not_operator )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_lower_to_upper) identifier_lower_to_upper (boolean_operator (call (attribute (identifier_char) identifier_char (identifier_istitle) identifier_istitle )attribute (argument_list )argument_list )call (not_operator (identifier_prev_char_title) identifier_prev_char_title )not_operator )boolean_operator )assignment )expression_statement (if_statement (boolean_operator (identifier_index) identifier_index (parenthesized_expression (boolean_operator (identifier_upper_to_lower) identifier_upper_to_lower (identifier_lower_to_upper) identifier_lower_to_upper )boolean_operator )parenthesized_expression )boolean_operator (block (expression_statement (augmented_assignment (identifier_result) identifier_result (string_"_") string_"_" )augmented_assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_prev_char_title) identifier_prev_char_title (call (attribute (identifier_char) identifier_char (identifier_istitle) identifier_istitle )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (attribute (identifier_char) identifier_char (identifier_isspace) identifier_isspace )attribute (argument_list )argument_list )call )not_operator (block (expression_statement (augmented_assignment (identifier_result) identifier_result (call (attribute (identifier_char) identifier_char (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )augmented_assignment )expression_statement )block )if_statement )block )for_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Converts a camelcase param like theNewAttribute to the equivalent python underscore variable like the_new_attribute
(module (function_definition (function_name_to_str) function_name_to_str (parameters (identifier_instance) identifier_instance (default_parameter (identifier_encoding) identifier_encoding (string_'utf-8') string_'utf-8' )default_parameter )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_instance) identifier_instance (identifier_str) identifier_str )argument_list )call (block (return_statement (identifier_instance) identifier_instance )return_statement )block (elif_clause (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_instance) identifier_instance (string_'decode') string_'decode' )argument_list )call (block (return_statement (call (attribute (identifier_instance) identifier_instance (identifier_decode) identifier_decode )attribute (argument_list (identifier_encoding) identifier_encoding )argument_list )call )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_instance) identifier_instance (identifier_list) identifier_list )argument_list )call (block (return_statement (call (identifier_list) identifier_list (argument_list (list_comprehension (call (identifier_to_str) identifier_to_str (argument_list (identifier_item) identifier_item (identifier_encoding) identifier_encoding )argument_list )call (for_in_clause (identifier_item) identifier_item (identifier_instance) identifier_instance )for_in_clause )list_comprehension )argument_list )call )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_instance) identifier_instance (identifier_tuple) identifier_tuple )argument_list )call (block (return_statement (call (identifier_tuple) identifier_tuple (argument_list (list_comprehension (call (identifier_to_str) identifier_to_str (argument_list (identifier_item) identifier_item (identifier_encoding) identifier_encoding )argument_list )call (for_in_clause (identifier_item) identifier_item (identifier_instance) identifier_instance )for_in_clause )list_comprehension )argument_list )call )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_instance) identifier_instance (identifier_dict) identifier_dict )argument_list )call (block (return_statement (call (identifier_dict) identifier_dict (argument_list (list_comprehension (tuple (call (identifier_to_str) identifier_to_str (argument_list (identifier_key) identifier_key (identifier_encoding) identifier_encoding )argument_list )call (call (identifier_to_str) identifier_to_str (argument_list (identifier_value) identifier_value (identifier_encoding) identifier_encoding )argument_list )call )tuple (for_in_clause (pattern_list (identifier_key) identifier_key (identifier_value) identifier_value )pattern_list (call (attribute (identifier_instance) identifier_instance (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )argument_list )call )return_statement )block )elif_clause (else_clause (block (return_statement (identifier_instance) identifier_instance )return_statement )block )else_clause )if_statement )block )function_definition )module
Convert an instance recursively to string.
(module (function_definition (function_name__domain_event_block_job_cb) function_name__domain_event_block_job_cb (parameters (identifier_conn) identifier_conn (identifier_domain) identifier_domain (identifier_disk) identifier_disk (identifier_job_type) identifier_job_type (identifier_status) identifier_status (identifier_opaque) identifier_opaque )parameters (block (expression_statement (call (identifier__salt_send_domain_event) identifier__salt_send_domain_event (argument_list (identifier_opaque) identifier_opaque (identifier_conn) identifier_conn (identifier_domain) identifier_domain (subscript (identifier_opaque) identifier_opaque (string_'event') string_'event' )subscript (dictionary (pair (string_'disk') string_'disk' (identifier_disk) identifier_disk )pair (pair (string_'type') string_'type' (call (identifier__get_libvirt_enum_string) identifier__get_libvirt_enum_string (argument_list (string_'VIR_DOMAIN_BLOCK_JOB_TYPE_') string_'VIR_DOMAIN_BLOCK_JOB_TYPE_' (identifier_job_type) identifier_job_type )argument_list )call )pair (pair (string_'status') string_'status' (call (identifier__get_libvirt_enum_string) identifier__get_libvirt_enum_string (argument_list (string_'VIR_DOMAIN_BLOCK_JOB_') string_'VIR_DOMAIN_BLOCK_JOB_' (identifier_status) identifier_status )argument_list )call )pair )dictionary )argument_list )call )expression_statement )block )function_definition )module
Domain block job events handler
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_country_code) identifier_country_code )parameters (block (return_statement (call (identifier_AvailablePhoneNumberCountryContext) identifier_AvailablePhoneNumberCountryContext (argument_list (attribute (identifier_self) identifier_self (identifier__version) identifier__version )attribute (keyword_argument (identifier_account_sid) identifier_account_sid (subscript (attribute (identifier_self) identifier_self (identifier__solution) identifier__solution )attribute (string_'account_sid') string_'account_sid' )subscript )keyword_argument (keyword_argument (identifier_country_code) identifier_country_code (identifier_country_code) identifier_country_code )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Constructs a AvailablePhoneNumberCountryContext :param country_code: The ISO country code of the country to fetch available phone number information about :returns: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryContext :rtype: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryContext