sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_format_to_http_prompt) function_name_format_to_http_prompt (parameters (identifier_context) identifier_context (default_parameter (identifier_excluded_options) identifier_excluded_options (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_cmds) identifier_cmds (call (identifier__extract_httpie_options) identifier__extract_httpie_options (argument_list (identifier_context) identifier_context (keyword_argument (identifier_quote) identifier_quote (True) True )keyword_argument (keyword_argument (identifier_join_key_value) identifier_join_key_value (True) True )keyword_argument (keyword_argument (identifier_excluded_keys) identifier_excluded_keys (identifier_excluded_options) identifier_excluded_options )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_cmds) identifier_cmds (identifier_append) identifier_append )attribute (argument_list (binary_operator (string_'cd ') string_'cd ' (call (identifier_smart_quote) identifier_smart_quote (argument_list (attribute (identifier_context) identifier_context (identifier_url) identifier_url )attribute )argument_list )call )binary_operator )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_cmds) identifier_cmds (call (identifier__extract_httpie_request_items) identifier__extract_httpie_request_items (argument_list (identifier_context) identifier_context (keyword_argument (identifier_quote) identifier_quote (True) True )keyword_argument )argument_list )call )augmented_assignment )expression_statement (return_statement (binary_operator (call (attribute (string_'\n') string_'\n' (identifier_join) identifier_join )attribute (argument_list (identifier_cmds) identifier_cmds )argument_list )call (string_'\n') string_'\n' )binary_operator )return_statement )block )function_definition )module
Format a Context object to HTTP Prompt commands.
(module (function_definition (function_name_set_type) function_name_set_type (parameters (identifier_self) identifier_self (identifier_type) identifier_type (default_parameter (identifier_header) identifier_header (string_'Content-Type') string_'Content-Type' )default_parameter (default_parameter (identifier_requote) identifier_requote (True) True )default_parameter )parameters (block (if_statement (not_operator (comparison_operator (call (attribute (identifier_type) identifier_type (identifier_count) identifier_count )attribute (argument_list (string_'/') string_'/' )argument_list )call (integer_1) integer_1 )comparison_operator )not_operator (block (raise_statement (identifier_ValueError) identifier_ValueError )raise_statement )block )if_statement (if_statement (comparison_operator (call (attribute (identifier_header) identifier_header (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_'content-type') string_'content-type' )comparison_operator (block (delete_statement (subscript (identifier_self) identifier_self (string_'mime-version') string_'mime-version' )subscript )delete_statement (expression_statement (assignment (subscript (identifier_self) identifier_self (string_'MIME-Version') string_'MIME-Version' )subscript (string_'1.0') string_'1.0' )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_header) identifier_header (identifier_self) identifier_self )comparison_operator (block (expression_statement (assignment (subscript (identifier_self) identifier_self (identifier_header) identifier_header )subscript (identifier_type) identifier_type )assignment )expression_statement (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_params) identifier_params (call (attribute (identifier_self) identifier_self (identifier_get_params) identifier_get_params )attribute (argument_list (keyword_argument (identifier_header) identifier_header (identifier_header) identifier_header )keyword_argument (keyword_argument (identifier_unquote) identifier_unquote (identifier_requote) identifier_requote )keyword_argument )argument_list )call )assignment )expression_statement (delete_statement (subscript (identifier_self) identifier_self (identifier_header) identifier_header )subscript )delete_statement (expression_statement (assignment (subscript (identifier_self) identifier_self (identifier_header) identifier_header )subscript (identifier_type) identifier_type )assignment )expression_statement (for_statement (pattern_list (identifier_p) identifier_p (identifier_v) identifier_v )pattern_list (subscript (identifier_params) identifier_params (slice (integer_1) integer_1 (colon) colon )slice )subscript (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_set_param) identifier_set_param )attribute (argument_list (identifier_p) identifier_p (identifier_v) identifier_v (identifier_header) identifier_header (identifier_requote) identifier_requote )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Set the main type and subtype for the Content-Type header. type must be a string in the form "maintype/subtype", otherwise a ValueError is raised. This method replaces the Content-Type header, keeping all the parameters in place. If requote is False, this leaves the existing header's quoting as is. Otherwise, the parameters will be quoted (the default). An alternative header can be specified in the header argument. When the Content-Type header is set, we'll always also add a MIME-Version header.
(module (function_definition (function_name_cpp_app_builder) function_name_cpp_app_builder (parameters (identifier_build_context) identifier_build_context (identifier_target) identifier_target )parameters (block (expression_statement (call (identifier_yprint) identifier_yprint (argument_list (attribute (identifier_build_context) identifier_build_context (identifier_conf) identifier_conf )attribute (string_'Build CppApp') string_'Build CppApp' (identifier_target) identifier_target )argument_list )call )expression_statement (if_statement (boolean_operator (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_executable) identifier_executable )attribute (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_main) identifier_main )attribute )boolean_operator (block (raise_statement (call (identifier_KeyError) identifier_KeyError (argument_list (string_'`main` and `executable` arguments are mutually exclusive') string_'`main` and `executable` arguments are mutually exclusive' )argument_list )call )raise_statement )block )if_statement (if_statement (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_executable) identifier_executable )attribute (block (if_statement (comparison_operator (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_executable) identifier_executable )attribute (call (attribute (attribute (identifier_target) identifier_target (identifier_artifacts) identifier_artifacts )attribute (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_AT) identifier_AT (identifier_app) identifier_app )attribute )argument_list )call )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_target) identifier_target (identifier_artifacts) identifier_artifacts )attribute (identifier_add) identifier_add )attribute (argument_list (attribute (identifier_AT) identifier_AT (identifier_app) identifier_app )attribute (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_executable) identifier_executable )attribute )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_entrypoint) identifier_entrypoint (list (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_executable) identifier_executable )attribute )list )assignment )expression_statement )block (elif_clause (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_main) identifier_main )attribute (block (expression_statement (assignment (identifier_prog) identifier_prog (subscript (attribute (identifier_build_context) identifier_build_context (identifier_targets) identifier_targets )attribute (attribute (attribute (identifier_target) identifier_target (identifier_props) identifier_props )attribute (identifier_main) identifier_main )attribute )subscript )assignment )expression_statement (expression_statement (assignment (identifier_binary) identifier_binary (subscript (call (identifier_list) identifier_list (argument_list (call (attribute (call (attribute (attribute (identifier_prog) identifier_prog (identifier_artifacts) identifier_artifacts )attribute (identifier_get) identifier_get )attribute (argument_list (attribute (identifier_AT) identifier_AT (identifier_binary) identifier_binary )attribute )argument_list )call (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_entrypoint) identifier_entrypoint (list (binary_operator (string_'/usr/src/bin/') string_'/usr/src/bin/' (identifier_binary) identifier_binary )binary_operator )list )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_KeyError) identifier_KeyError (argument_list (string_'Must specify either `main` or `executable` argument') string_'Must specify either `main` or `executable` argument' )argument_list )call )raise_statement )block )else_clause )if_statement (expression_statement (call (identifier_build_app_docker_and_bin) identifier_build_app_docker_and_bin (argument_list (identifier_build_context) identifier_build_context (identifier_target) identifier_target (keyword_argument (identifier_entrypoint) identifier_entrypoint (identifier_entrypoint) identifier_entrypoint )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Pack a C++ binary as a Docker image with its runtime dependencies. TODO(itamar): Dynamically analyze the binary and copy shared objects from its buildenv image to the runtime image, unless they're installed.
(module (function_definition (function_name_do_keys) function_name_do_keys (parameters (identifier_self) identifier_self (identifier_keys) identifier_keys )parameters (block (for_statement (identifier_inst) identifier_inst (identifier_keys) identifier_keys (block (expression_statement (assignment (identifier_typ) identifier_typ (subscript (identifier_inst) identifier_inst (string_"kty") string_"kty" )subscript )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier__usage) identifier__usage (call (identifier_harmonize_usage) identifier_harmonize_usage (argument_list (subscript (identifier_inst) identifier_inst (string_'use') string_'use' )subscript )argument_list )call )assignment )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (expression_statement (assignment (identifier__usage) identifier__usage (list (string_'') string_'' )list )assignment )expression_statement )block )except_clause (else_clause (block (delete_statement (subscript (identifier_inst) identifier_inst (string_'use') string_'use' )subscript )delete_statement )block )else_clause )try_statement (expression_statement (assignment (identifier_flag) identifier_flag (integer_0) integer_0 )assignment )expression_statement (for_statement (identifier__use) identifier__use (identifier__usage) identifier__usage (block (for_statement (identifier__typ) identifier__typ (list (identifier_typ) identifier_typ (call (attribute (identifier_typ) identifier_typ (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (call (attribute (identifier_typ) identifier_typ (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call )list (block (try_statement (block (expression_statement (assignment (identifier__key) identifier__key (call (subscript (identifier_K2C) identifier_K2C (identifier__typ) identifier__typ )subscript (argument_list (keyword_argument (identifier_use) identifier_use (identifier__use) identifier__use )keyword_argument (dictionary_splat (identifier_inst) identifier_inst )dictionary_splat )argument_list )call )assignment )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (continue_statement )continue_statement )block )except_clause (except_clause (as_pattern (identifier_JWKException) identifier_JWKException (as_pattern_target (identifier_err) identifier_err )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_warning) identifier_warning )attribute (argument_list (call (attribute (string_'While loading keys: {}') string_'While loading keys: {}' (identifier_format) identifier_format )attribute (argument_list (identifier_err) identifier_err )argument_list )call )argument_list )call )expression_statement )block )except_clause (else_clause (block (if_statement (comparison_operator (identifier__key) identifier__key (attribute (identifier_self) identifier_self (identifier__keys) identifier__keys )attribute )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__keys) identifier__keys )attribute (identifier_append) identifier_append )attribute (argument_list (identifier__key) identifier__key )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_flag) identifier_flag (integer_1) integer_1 )assignment )expression_statement (break_statement )break_statement )block )else_clause )try_statement )block )for_statement )block )for_statement (if_statement (not_operator (identifier_flag) identifier_flag )not_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_warning) identifier_warning )attribute (argument_list (call (attribute (string_'While loading keys, UnknownKeyType: {}') string_'While loading keys, UnknownKeyType: {}' (identifier_format) identifier_format )attribute (argument_list (identifier_typ) identifier_typ )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )function_definition )module
Go from JWK description to binary keys :param keys: :return:
(module (function_definition (function_name_create_event_permission) function_name_create_event_permission (parameters (identifier_self) identifier_self (identifier_lambda_name) identifier_lambda_name (identifier_principal) identifier_principal (identifier_source_arn) identifier_source_arn )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'Adding new permission to invoke Lambda function: {}') string_'Adding new permission to invoke Lambda function: {}' (identifier_format) identifier_format )attribute (argument_list (identifier_lambda_name) identifier_lambda_name )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_permission_response) identifier_permission_response (call (attribute (attribute (identifier_self) identifier_self (identifier_lambda_client) identifier_lambda_client )attribute (identifier_add_permission) identifier_add_permission )attribute (argument_list (keyword_argument (identifier_FunctionName) identifier_FunctionName (identifier_lambda_name) identifier_lambda_name )keyword_argument (keyword_argument (identifier_StatementId) identifier_StatementId (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (generator_expression (call (attribute (identifier_random) identifier_random (identifier_choice) identifier_choice )attribute (argument_list (binary_operator (attribute (identifier_string) identifier_string (identifier_ascii_uppercase) identifier_ascii_uppercase )attribute (attribute (identifier_string) identifier_string (identifier_digits) identifier_digits )attribute )binary_operator )argument_list )call (for_in_clause (identifier__) identifier__ (call (identifier_range) identifier_range (argument_list (integer_8) integer_8 )argument_list )call )for_in_clause )generator_expression )call )keyword_argument (keyword_argument (identifier_Action) identifier_Action (string_'lambda:InvokeFunction') string_'lambda:InvokeFunction' )keyword_argument (keyword_argument (identifier_Principal) identifier_Principal (identifier_principal) identifier_principal )keyword_argument (keyword_argument (identifier_SourceArn) identifier_SourceArn (identifier_source_arn) identifier_source_arn )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (subscript (identifier_permission_response) identifier_permission_response (string_'ResponseMetadata') string_'ResponseMetadata' )subscript (string_'HTTPStatusCode') string_'HTTPStatusCode' )subscript (integer_201) integer_201 )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_'Problem creating permission to invoke Lambda function') string_'Problem creating permission to invoke Lambda function' )argument_list )call )expression_statement (return_statement (None) None )return_statement )block )if_statement (return_statement (identifier_permission_response) identifier_permission_response )return_statement )block )function_definition )module
Create permissions to link to an event. Related: http://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-configure-event-source.html
(module (function_definition (function_name_construct) function_name_construct (parameters (identifier_path) identifier_path (default_parameter (identifier_name) identifier_name (None) None )default_parameter )parameters (block (expression_statement (string_"Selects an appropriate CGroup subclass for the given CGroup path.") string_"Selects an appropriate CGroup subclass for the given CGroup path." )expression_statement (expression_statement (assignment (identifier_name) identifier_name (conditional_expression (identifier_name) identifier_name (identifier_name) identifier_name (subscript (call (attribute (identifier_path) identifier_path (identifier_split) identifier_split )attribute (argument_list (string_"/") string_"/" )argument_list )call (integer_4) integer_4 )subscript )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_classes) identifier_classes (dictionary (pair (string_"memory") string_"memory" (identifier_Memory) identifier_Memory )pair (pair (string_"cpu") string_"cpu" (identifier_CPU) identifier_CPU )pair (pair (string_"cpuacct") string_"cpuacct" (identifier_CPUAcct) identifier_CPUAcct )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_constructor) identifier_constructor (call (attribute (identifier_classes) identifier_classes (identifier_get) identifier_get )attribute (argument_list (identifier_name) identifier_name (identifier_CGroup) identifier_CGroup )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (string_"Chose %s for: %s") string_"Chose %s for: %s" (attribute (identifier_constructor) identifier_constructor (identifier___name__) identifier___name__ )attribute (identifier_path) identifier_path )argument_list )call )expression_statement (return_statement (call (identifier_constructor) identifier_constructor (argument_list (identifier_path) identifier_path (identifier_name) identifier_name )argument_list )call )return_statement )block )function_definition )module
Selects an appropriate CGroup subclass for the given CGroup path.
(module (function_definition (function_name_memory_used) function_name_memory_used (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier__end_memory) identifier__end_memory )attribute (block (expression_statement (assignment (identifier_memory_used) identifier_memory_used (binary_operator (attribute (identifier_self) identifier_self (identifier__end_memory) identifier__end_memory )attribute (attribute (identifier_self) identifier_self (identifier__start_memory) identifier__start_memory )attribute )binary_operator )assignment )expression_statement (return_statement (identifier_memory_used) identifier_memory_used )return_statement )block (else_clause (block (return_statement (None) None )return_statement )block )else_clause )if_statement )block )function_definition )module
To know the allocated memory at function termination. ..versionadded:: 4.1 This property might return None if the function is still running. This function should help to show memory leaks or ram greedy code.
(module (function_definition (function_name_samples) function_name_samples (parameters (identifier_self) identifier_self (identifier_anystring) identifier_anystring (default_parameter (identifier_limit) identifier_limit (None) None )default_parameter (default_parameter (identifier_offset) identifier_offset (None) None )default_parameter (default_parameter (identifier_sortby) identifier_sortby (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_uri) identifier_uri (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier__uris) identifier__uris )attribute (string_'samples') string_'samples' )subscript (identifier_format) identifier_format )attribute (argument_list (identifier_anystring) identifier_anystring )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_params) identifier_params (dictionary (pair (string_'limit') string_'limit' (identifier_limit) identifier_limit )pair (pair (string_'offset') string_'offset' (identifier_offset) identifier_offset )pair (pair (string_'sortby') string_'sortby' (identifier_sortby) identifier_sortby )pair )dictionary )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_get_parse) identifier_get_parse )attribute (argument_list (identifier_uri) identifier_uri (identifier_params) identifier_params )argument_list )call )return_statement )block )function_definition )module
Return an object representing the samples identified by the input domain, IP, or URL
(module (function_definition (function_name_get_waiter) function_name_get_waiter (parameters (identifier_self) identifier_self (identifier_waiter_name) identifier_waiter_name )parameters (block (expression_statement (assignment (identifier_config) identifier_config (call (attribute (identifier_self) identifier_self (identifier__get_waiter_config) identifier__get_waiter_config )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_config) identifier_config )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"Waiter does not exist: %s") string_"Waiter does not exist: %s" (identifier_waiter_name) identifier_waiter_name )binary_operator )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_model) identifier_model (call (attribute (identifier_waiter) identifier_waiter (identifier_WaiterModel) identifier_WaiterModel )attribute (argument_list (identifier_config) identifier_config )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_mapping) identifier_mapping (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_name) identifier_name (attribute (identifier_model) identifier_model (identifier_waiter_names) identifier_waiter_names )attribute (block (expression_statement (assignment (subscript (identifier_mapping) identifier_mapping (call (identifier_xform_name) identifier_xform_name (argument_list (identifier_name) identifier_name )argument_list )call )subscript (identifier_name) identifier_name )assignment )expression_statement )block )for_statement (if_statement (comparison_operator (identifier_waiter_name) identifier_waiter_name (identifier_mapping) identifier_mapping )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"Waiter does not exist: %s") string_"Waiter does not exist: %s" (identifier_waiter_name) identifier_waiter_name )binary_operator )argument_list )call )raise_statement )block )if_statement (return_statement (call (attribute (identifier_waiter) identifier_waiter (identifier_create_waiter_with_client) identifier_create_waiter_with_client )attribute (argument_list (subscript (identifier_mapping) identifier_mapping (identifier_waiter_name) identifier_waiter_name )subscript (identifier_model) identifier_model (identifier_self) identifier_self (keyword_argument (identifier_loop) identifier_loop (attribute (identifier_self) identifier_self (identifier__loop) identifier__loop )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Returns an object that can wait for some condition. :type waiter_name: str :param waiter_name: The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. :returns: The specified waiter object. :rtype: botocore.waiter.Waiter
(module (function_definition (function_name__buckets_nearly_equal) function_name__buckets_nearly_equal (parameters (identifier_a_dist) identifier_a_dist (identifier_b_dist) identifier_b_dist )parameters (block (expression_statement (assignment (pattern_list (identifier_a_type) identifier_a_type (identifier_a_buckets) identifier_a_buckets )pattern_list (call (identifier__detect_bucket_option) identifier__detect_bucket_option (argument_list (identifier_a_dist) identifier_a_dist )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_b_type) identifier_b_type (identifier_b_buckets) identifier_b_buckets )pattern_list (call (identifier__detect_bucket_option) identifier__detect_bucket_option (argument_list (identifier_b_dist) identifier_b_dist )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_a_type) identifier_a_type (identifier_b_type) identifier_b_type )comparison_operator (block (return_statement (False) False )return_statement )block (elif_clause (comparison_operator (identifier_a_type) identifier_a_type (string_u'linearBuckets') string_u'linearBuckets' )comparison_operator (block (return_statement (call (identifier__linear_buckets_nearly_equal) identifier__linear_buckets_nearly_equal (argument_list (identifier_a_buckets) identifier_a_buckets (identifier_b_buckets) identifier_b_buckets )argument_list )call )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_a_type) identifier_a_type (string_u'exponentialBuckets') string_u'exponentialBuckets' )comparison_operator (block (return_statement (call (identifier__exponential_buckets_nearly_equal) identifier__exponential_buckets_nearly_equal (argument_list (identifier_a_buckets) identifier_a_buckets (identifier_b_buckets) identifier_b_buckets )argument_list )call )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_a_type) identifier_a_type (string_u'explicitBuckets') string_u'explicitBuckets' )comparison_operator (block (return_statement (call (identifier__explicit_buckets_nearly_equal) identifier__explicit_buckets_nearly_equal (argument_list (identifier_a_buckets) identifier_a_buckets (identifier_b_buckets) identifier_b_buckets )argument_list )call )return_statement )block )elif_clause (else_clause (block (return_statement (False) False )return_statement )block )else_clause )if_statement )block )function_definition )module
Determines whether two `Distributions` are nearly equal. Args: a_dist (:class:`Distribution`): an instance b_dist (:class:`Distribution`): another instance Return: boolean: `True` if the two instances are approximately equal, otherwise False
(module (function_definition (function_name_to_24bit_gray) function_name_to_24bit_gray (parameters (typed_parameter (identifier_mat) identifier_mat (type (attribute (identifier_np) identifier_np (identifier_ndarray) identifier_ndarray )attribute )type )typed_parameter )parameters (block (return_statement (call (attribute (identifier_np) identifier_np (identifier_repeat) identifier_repeat )attribute (argument_list (call (attribute (identifier_np) identifier_np (identifier_expand_dims) identifier_expand_dims )attribute (argument_list (call (identifier__normalize) identifier__normalize (argument_list (identifier_mat) identifier_mat )argument_list )call (keyword_argument (identifier_axis) identifier_axis (integer_2) integer_2 )keyword_argument )argument_list )call (integer_3) integer_3 (keyword_argument (identifier_axis) identifier_axis (integer_2) integer_2 )keyword_argument )argument_list )call )return_statement )block )function_definition )module
returns a matrix that contains RGB channels, and colors scaled from 0 to 255
(module (function_definition (function_name_checkpoint_filepath) function_name_checkpoint_filepath (parameters (identifier_checkpoint) identifier_checkpoint (identifier_pm) identifier_pm )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_checkpoint) identifier_checkpoint (identifier_str) identifier_str )argument_list )call (block (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isabs) identifier_isabs )attribute (argument_list (identifier_checkpoint) identifier_checkpoint )argument_list )call (block (if_statement (call (identifier_is_in_file_tree) identifier_is_in_file_tree (argument_list (identifier_checkpoint) identifier_checkpoint (attribute (identifier_pm) identifier_pm (identifier_outfolder) identifier_outfolder )attribute )argument_list )call (block (return_statement (identifier_checkpoint) identifier_checkpoint )return_statement )block (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (concatenated_string (string_"Absolute checkpoint path '{}' is not in pipeline output ") string_"Absolute checkpoint path '{}' is not in pipeline output " (string_"folder '{}'") string_"folder '{}'" )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_checkpoint) identifier_checkpoint (attribute (identifier_pm) identifier_pm (identifier_outfolder) identifier_outfolder )attribute )argument_list )call )argument_list )call )raise_statement )block )else_clause )if_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier__) identifier__ (identifier_ext) identifier_ext )pattern_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_splitext) identifier_splitext )attribute (argument_list (identifier_checkpoint) identifier_checkpoint )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_ext) identifier_ext (identifier_CHECKPOINT_EXTENSION) identifier_CHECKPOINT_EXTENSION )comparison_operator (block (return_statement (call (identifier_pipeline_filepath) identifier_pipeline_filepath (argument_list (identifier_pm) identifier_pm (keyword_argument (identifier_filename) identifier_filename (identifier_checkpoint) identifier_checkpoint )keyword_argument )argument_list )call )return_statement )block )if_statement )block )if_statement (try_statement (block (expression_statement (assignment (identifier_pm) identifier_pm (attribute (identifier_pm) identifier_pm (identifier_manager) identifier_manager )attribute )assignment )expression_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (pass_statement )pass_statement )block )except_clause )try_statement (expression_statement (assignment (identifier_chkpt_name) identifier_chkpt_name (call (identifier_checkpoint_filename) identifier_checkpoint_filename (argument_list (identifier_checkpoint) identifier_checkpoint (keyword_argument (identifier_pipeline_name) identifier_pipeline_name (attribute (identifier_pm) identifier_pm (identifier_name) identifier_name )attribute )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (identifier_pipeline_filepath) identifier_pipeline_filepath (argument_list (identifier_pm) identifier_pm (keyword_argument (identifier_filename) identifier_filename (identifier_chkpt_name) identifier_chkpt_name )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Create filepath for indicated checkpoint. :param str | pypiper.Stage checkpoint: Pipeline phase/stage or one's name :param pypiper.PipelineManager | pypiper.Pipeline pm: manager of a pipeline instance, relevant for output folder path. :return str: standardized checkpoint name for file, plus extension :raise ValueError: if the checkpoint is given as absolute path that does not point within pipeline output folder
(module (function_definition (function_name__get_coordinatenames) function_name__get_coordinatenames (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_validnames) identifier_validnames (tuple (string_"direction") string_"direction" (string_"spectral") string_"spectral" (string_"linear") string_"linear" (string_"stokes") string_"stokes" (string_"tabular") string_"tabular" )tuple )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__names) identifier__names )attribute (binary_operator (list (string_"") string_"" )list (call (identifier_len) identifier_len (argument_list (identifier_validnames) identifier_validnames )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_n) identifier_n (integer_0) integer_0 )assignment )expression_statement (for_statement (identifier_key) identifier_key (call (attribute (attribute (identifier_self) identifier_self (identifier__csys) identifier__csys )attribute (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call (block (for_statement (identifier_name) identifier_name (identifier_validnames) identifier_validnames (block (if_statement (call (attribute (identifier_key) identifier_key (identifier_startswith) identifier_startswith )attribute (argument_list (identifier_name) identifier_name )argument_list )call (block (expression_statement (assignment (identifier_idx) identifier_idx (call (identifier_int) identifier_int (argument_list (subscript (identifier_key) identifier_key (slice (call (identifier_len) identifier_len (argument_list (identifier_name) identifier_name )argument_list )call (colon) colon )slice )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__names) identifier__names )attribute (identifier_idx) identifier_idx )subscript (identifier_name) identifier_name )assignment )expression_statement (expression_statement (augmented_assignment (identifier_n) identifier_n (integer_1) integer_1 )augmented_assignment )expression_statement )block )if_statement )block )for_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__names) identifier__names )attribute (subscript (subscript (attribute (identifier_self) identifier_self (identifier__names) identifier__names )attribute (slice (colon) colon (identifier_n) identifier_n )slice )subscript (slice (colon) colon (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__names) identifier__names )attribute )argument_list )call (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_LookupError) identifier_LookupError (argument_list (string_"Coordinate record doesn't contain valid coordinates") string_"Coordinate record doesn't contain valid coordinates" )argument_list )call )raise_statement )block )if_statement )block )function_definition )module
Create ordered list of coordinate names
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_value) identifier_value )parameters (block (expression_statement (call (attribute (identifier__log) identifier__log (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_"ZK: Setting {path} to {value}") string_"ZK: Setting {path} to {value}" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_path) identifier_path (identifier_path) identifier_path )keyword_argument (keyword_argument (identifier_value) identifier_value (identifier_value) identifier_value )keyword_argument )argument_list )call )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_zk) identifier_zk )attribute (identifier_set) identifier_set )attribute (argument_list (identifier_path) identifier_path (identifier_value) identifier_value )argument_list )call )return_statement )block )function_definition )module
Sets and returns new data for the specified node.
(module (function_definition (function_name_get_obj) function_name_get_obj (parameters (identifier_path) identifier_path )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_path) identifier_path (identifier_str) identifier_str )argument_list )call )not_operator (block (return_statement (identifier_path) identifier_path )return_statement )block )if_statement (if_statement (call (attribute (identifier_path) identifier_path (identifier_startswith) identifier_startswith )attribute (argument_list (string_'.') string_'.' )argument_list )call (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_'relative imports are not supported') string_'relative imports are not supported' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_parts) identifier_parts (call (attribute (identifier_path) identifier_path (identifier_split) identifier_split )attribute (argument_list (string_'.') string_'.' )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_head) identifier_head (identifier_tail) identifier_tail )pattern_list (expression_list (subscript (identifier_parts) identifier_parts (integer_0) integer_0 )subscript (subscript (identifier_parts) identifier_parts (slice (integer_1) integer_1 (colon) colon )slice )subscript )expression_list )assignment )expression_statement (expression_statement (assignment (identifier_obj) identifier_obj (call (attribute (identifier_importlib) identifier_importlib (identifier_import_module) identifier_import_module )attribute (argument_list (identifier_head) identifier_head )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_name) identifier_name )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_tail) identifier_tail )argument_list )call (block (try_statement (block (expression_statement (assignment (identifier_obj) identifier_obj (call (identifier_getattr) identifier_getattr (argument_list (identifier_obj) identifier_obj (identifier_name) identifier_name )argument_list )call )assignment )expression_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (expression_statement (assignment (identifier_module) identifier_module (call (attribute (string_'.') string_'.' (identifier_join) identifier_join )attribute (argument_list (binary_operator (list (identifier_head) identifier_head )list (subscript (identifier_tail) identifier_tail (slice (colon) colon (identifier_i) identifier_i )slice )subscript )binary_operator )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_importlib) identifier_importlib (identifier_import_module) identifier_import_module )attribute (argument_list (identifier_module) identifier_module )argument_list )call )expression_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (raise_statement (call (identifier_AttributeError) identifier_AttributeError (argument_list (binary_operator (string_"object '%s' has no attribute '%s'") string_"object '%s' has no attribute '%s'" (tuple (identifier_module) identifier_module (identifier_name) identifier_name )tuple )binary_operator )argument_list )call )raise_statement )block )except_clause (else_clause (block (raise_statement (call (identifier_AttributeError) identifier_AttributeError (argument_list (binary_operator (string_"module '%s' has no attribute '%s'") string_"module '%s' has no attribute '%s'" (tuple (identifier_module) identifier_module (identifier_name) identifier_name )tuple )binary_operator )argument_list )call )raise_statement )block )else_clause )try_statement )block )except_clause )try_statement )block )for_statement (return_statement (identifier_obj) identifier_obj )return_statement )block )function_definition )module
Return obj for given dotted path. Typical inputs for `path` are 'os' or 'os.path' in which case you get a module; or 'os.path.exists' in which case you get a function from that module. Just returns the given input in case it is not a str. Note: Relative imports not supported. Raises ImportError or AttributeError as appropriate.
(module (function_definition (function_name_get_stats) function_name_get_stats (parameters (identifier_self) identifier_self (identifier_request) identifier_request (identifier_context) identifier_context )parameters (block (expression_statement (call (identifier__log_request) identifier__log_request (argument_list (identifier_request) identifier_request (identifier_context) identifier_context )argument_list )call )expression_statement (expression_statement (assignment (identifier_m) identifier_m (attribute (attribute (identifier_self) identifier_self (identifier_listener) identifier_listener )attribute (identifier_memory) identifier_memory )attribute )assignment )expression_statement (return_statement (call (attribute (identifier_clearly_pb2) identifier_clearly_pb2 (identifier_StatsMessage) identifier_StatsMessage )attribute (argument_list (keyword_argument (identifier_task_count) identifier_task_count (attribute (identifier_m) identifier_m (identifier_task_count) identifier_task_count )attribute )keyword_argument (keyword_argument (identifier_event_count) identifier_event_count (attribute (identifier_m) identifier_m (identifier_event_count) identifier_event_count )attribute )keyword_argument (keyword_argument (identifier_len_tasks) identifier_len_tasks (call (identifier_len) identifier_len (argument_list (attribute (identifier_m) identifier_m (identifier_tasks) identifier_tasks )attribute )argument_list )call )keyword_argument (keyword_argument (identifier_len_workers) identifier_len_workers (call (identifier_len) identifier_len (argument_list (attribute (identifier_m) identifier_m (identifier_workers) identifier_workers )attribute )argument_list )call )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Returns the server statistics.
(module (function_definition (function_name_retrieve_data) function_name_retrieve_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (identifier_get) identifier_get )attribute (argument_list (string_'url') string_'url' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_timeout) identifier_timeout (call (identifier_float) identifier_float (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (identifier_get) identifier_get )attribute (argument_list (string_'timeout') string_'timeout' (integer_10) integer_10 )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (attribute (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (identifier_url) identifier_url (keyword_argument (identifier_verify) identifier_verify (attribute (identifier_self) identifier_self (identifier_verify_ssl) identifier_verify_ssl )attribute )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (identifier_timeout) identifier_timeout )keyword_argument )argument_list )call (identifier_content) identifier_content )attribute )assignment )expression_statement )block )function_definition )module
retrieve data from an HTTP URL
(module (function_definition (function_name_pretty_xml) function_name_pretty_xml (parameters (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_parsed_string) identifier_parsed_string (call (attribute (identifier_minidom) identifier_minidom (identifier_parseString) identifier_parseString )attribute (argument_list (call (attribute (identifier_data) identifier_data (identifier_decode) identifier_decode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_parsed_string) identifier_parsed_string (identifier_toprettyxml) identifier_toprettyxml )attribute (argument_list (keyword_argument (identifier_indent) identifier_indent (string_'\t') string_'\t' )keyword_argument (keyword_argument (identifier_encoding) identifier_encoding (string_'utf-8') string_'utf-8' )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Return a pretty formated xml
(module (function_definition (function_name_get_urls) function_name_get_urls (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_urlpatterns) identifier_urlpatterns (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_TranslatableAdmin) identifier_TranslatableAdmin (identifier_self) identifier_self )argument_list )call (identifier_get_urls) identifier_get_urls )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (attribute (identifier_self) identifier_self (identifier__has_translatable_model) identifier__has_translatable_model )attribute (argument_list )argument_list )call )not_operator (block (return_statement (identifier_urlpatterns) identifier_urlpatterns )return_statement )block (else_clause (block (expression_statement (assignment (identifier_opts) identifier_opts (attribute (attribute (identifier_self) identifier_self (identifier_model) identifier_model )attribute (identifier__meta) identifier__meta )attribute )assignment )expression_statement (expression_statement (assignment (identifier_info) identifier_info (expression_list (attribute (identifier_opts) identifier_opts (identifier_app_label) identifier_app_label )attribute (attribute (identifier_opts) identifier_opts (identifier_model_name) identifier_model_name )attribute )expression_list )assignment )expression_statement (return_statement (binary_operator (list (call (identifier_url) identifier_url (argument_list (string_r'^(.+)/change/delete-translation/(.+)/$') string_r'^(.+)/change/delete-translation/(.+)/$' (call (attribute (attribute (identifier_self) identifier_self (identifier_admin_site) identifier_admin_site )attribute (identifier_admin_view) identifier_admin_view )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_delete_translation) identifier_delete_translation )attribute )argument_list )call (keyword_argument (identifier_name) identifier_name (call (attribute (string_'{0}_{1}_delete_translation') string_'{0}_{1}_delete_translation' (identifier_format) identifier_format )attribute (argument_list (list_splat (identifier_info) identifier_info )list_splat )argument_list )call )keyword_argument )argument_list )call )list (identifier_urlpatterns) identifier_urlpatterns )binary_operator )return_statement )block )else_clause )if_statement )block )function_definition )module
Add a delete-translation view.
(module (function_definition (function_name_hash_tree) function_name_hash_tree (parameters (typed_parameter (identifier_filepath) identifier_filepath (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_str) identifier_str )type (block (if_statement (call (identifier_isfile) identifier_isfile (argument_list (identifier_filepath) identifier_filepath )argument_list )call (block (return_statement (call (identifier_hash_file) identifier_hash_file (argument_list (identifier_filepath) identifier_filepath )argument_list )call )return_statement )block )if_statement (if_statement (call (identifier_isdir) identifier_isdir (argument_list (identifier_filepath) identifier_filepath )argument_list )call (block (expression_statement (assignment (identifier_base_dir) identifier_base_dir (identifier_filepath) identifier_filepath )assignment )expression_statement (expression_statement (assignment (identifier_md5) identifier_md5 (call (attribute (identifier_hashlib) identifier_hashlib (identifier_md5) identifier_md5 )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_root) identifier_root (identifier_dirs) identifier_dirs (identifier_files) identifier_files )pattern_list (call (identifier_walk) identifier_walk (argument_list (identifier_base_dir) identifier_base_dir )argument_list )call (block (expression_statement (call (attribute (identifier_dirs) identifier_dirs (identifier_sort) identifier_sort )attribute (argument_list )argument_list )call )expression_statement (for_statement (identifier_fname) identifier_fname (call (identifier_sorted) identifier_sorted (argument_list (identifier_files) identifier_files )argument_list )call (block (expression_statement (assignment (identifier_filepath) identifier_filepath (call (identifier_join) identifier_join (argument_list (identifier_root) identifier_root (identifier_fname) identifier_fname )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_md5) identifier_md5 (identifier_update) identifier_update )attribute (argument_list (call (attribute (call (attribute (call (identifier_relpath) identifier_relpath (argument_list (identifier_filepath) identifier_filepath (identifier_base_dir) identifier_base_dir )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_'\\') string_'\\' (string_'/') string_'/' )argument_list )call (identifier_encode) identifier_encode )attribute (argument_list (string_'utf8') string_'utf8' )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_acc_hash) identifier_acc_hash (argument_list (identifier_filepath) identifier_filepath (identifier_md5) identifier_md5 )argument_list )call )expression_statement )block )for_statement )block )for_statement (return_statement (call (attribute (identifier_md5) identifier_md5 (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )return_statement )block )if_statement (return_statement (None) None )return_statement )block )function_definition )module
Return the hexdigest MD5 hash of file or directory at `filepath`. If file - just hash file content. If directory - walk the directory, and accumulate hashes of all the relative paths + contents of files under the directory.
(module (function_definition (function_name_process_event) function_name_process_event (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (expression_statement (assignment (identifier_new_event) identifier_new_event (identifier_event) identifier_event )assignment )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier__absolute) identifier__absolute )attribute (block (expression_statement (augmented_assignment (attribute (identifier_new_event) identifier_new_event (identifier_y) identifier_y )attribute (attribute (attribute (identifier_self) identifier_self (identifier__canvas) identifier__canvas )attribute (identifier_start_line) identifier_start_line )attribute )augmented_assignment )expression_statement )block )if_statement (if_statement (boolean_operator (call (attribute (identifier_self) identifier_self (identifier_is_mouse_over) identifier_is_mouse_over )attribute (argument_list (identifier_new_event) identifier_new_event )argument_list )call (comparison_operator (attribute (identifier_event) identifier_event (identifier_buttons) identifier_buttons )attribute (integer_0) integer_0 )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__set_pos) identifier__set_pos )attribute (argument_list (binary_operator (parenthesized_expression (binary_operator (attribute (identifier_new_event) identifier_new_event (identifier_y) identifier_y )attribute (attribute (identifier_self) identifier_self (identifier__y) identifier__y )attribute )binary_operator )parenthesized_expression (parenthesized_expression (binary_operator (attribute (identifier_self) identifier_self (identifier__height) identifier__height )attribute (integer_1) integer_1 )binary_operator )parenthesized_expression )binary_operator )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )if_statement (return_statement (False) False )return_statement )block )function_definition )module
Handle input on the scroll bar. :param event: the event to be processed. :returns: True if the scroll bar handled the event.
(module (function_definition (function_name_findentry) function_name_findentry (parameters (identifier_self) identifier_self (identifier_item) identifier_item )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_item) identifier_item (identifier_str) identifier_str )argument_list )call )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (binary_operator (concatenated_string (string_'Members of this object must be strings. ') string_'Members of this object must be strings. ' (string_'You supplied \"%s\"') string_'You supplied \"%s\"' )concatenated_string (call (identifier_type) identifier_type (argument_list (identifier_item) identifier_item )argument_list )call )binary_operator )argument_list )call )raise_statement )block )if_statement (for_statement (identifier_entry) identifier_entry (identifier_self) identifier_self (block (if_statement (comparison_operator (call (attribute (identifier_item) identifier_item (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (call (attribute (identifier_entry) identifier_entry (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )comparison_operator (block (return_statement (identifier_entry) identifier_entry )return_statement )block )if_statement )block )for_statement (return_statement (None) None )return_statement )block )function_definition )module
A caseless way of checking if an item is in the list or not. It returns None or the entry.
(module (function_definition (function_name__try_import) function_name__try_import (parameters (identifier_module_name) identifier_module_name )parameters (block (try_statement (block (expression_statement (assignment (identifier_mod) identifier_mod (call (attribute (identifier_importlib) identifier_importlib (identifier_import_module) identifier_import_module )attribute (argument_list (identifier_module_name) identifier_module_name )argument_list )call )assignment )expression_statement (return_statement (identifier_mod) identifier_mod )return_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (expression_statement (assignment (identifier_err_msg) identifier_err_msg (parenthesized_expression (concatenated_string (string_"Tried importing %s but failed. See setup.py extras_require. ") string_"Tried importing %s but failed. See setup.py extras_require. " (string_"The dataset you are trying to use may have additional ") string_"The dataset you are trying to use may have additional " (string_"dependencies.") string_"dependencies." )concatenated_string )parenthesized_expression )assignment )expression_statement (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_reraise) identifier_reraise )attribute (argument_list (identifier_err_msg) identifier_err_msg )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
Try importing a module, with an informative error message on failure.
(module (function_definition (function_name_get_data) function_name_get_data (parameters (identifier_conn_objs) identifier_conn_objs (identifier_providers) identifier_providers )parameters (block (expression_statement (assignment (identifier_cld_svc_map) identifier_cld_svc_map (dictionary (pair (string_"aws") string_"aws" (identifier_nodes_aws) identifier_nodes_aws )pair (pair (string_"azure") string_"azure" (identifier_nodes_az) identifier_nodes_az )pair (pair (string_"gcp") string_"gcp" (identifier_nodes_gcp) identifier_nodes_gcp )pair (pair (string_"alicloud") string_"alicloud" (identifier_nodes_ali) identifier_nodes_ali )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_write) identifier_write )attribute (argument_list (string_"\rCollecting Info: ") string_"\rCollecting Info: " )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_flush) identifier_flush )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_busy_obj) identifier_busy_obj (call (identifier_busy_disp_on) identifier_busy_disp_on (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_collec_fn) identifier_collec_fn (list_comprehension (list (subscript (identifier_cld_svc_map) identifier_cld_svc_map (call (attribute (identifier_x) identifier_x (identifier_rstrip) identifier_rstrip )attribute (argument_list (string_'1234567890') string_'1234567890' )argument_list )call )subscript (subscript (identifier_conn_objs) identifier_conn_objs (identifier_x) identifier_x )subscript )list (for_in_clause (identifier_x) identifier_x (identifier_providers) identifier_providers )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_ngroup) identifier_ngroup (call (identifier_Group) identifier_Group (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_node_list) identifier_node_list (list )list )assignment )expression_statement (expression_statement (assignment (identifier_node_list) identifier_node_list (call (attribute (identifier_ngroup) identifier_ngroup (identifier_map) identifier_map )attribute (argument_list (identifier_get_nodes) identifier_get_nodes (identifier_collec_fn) identifier_collec_fn )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_ngroup) identifier_ngroup (identifier_join) identifier_join )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (identifier_busy_disp_off) identifier_busy_disp_off (argument_list (keyword_argument (identifier_dobj) identifier_dobj (identifier_busy_obj) identifier_busy_obj )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_write) identifier_write )attribute (argument_list (string_"\r \r") string_"\r \r" )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_write) identifier_write )attribute (argument_list (string_"\033[?25h") string_"\033[?25h" )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_flush) identifier_flush )attribute (argument_list )argument_list )call )expression_statement (return_statement (identifier_node_list) identifier_node_list )return_statement )block )function_definition )module
Refresh node data using existing connection-objects.
(module (function_definition (function_name_linkChunk) function_name_linkChunk (parameters (identifier_key) identifier_key (identifier_chunk) identifier_chunk )parameters (block (expression_statement (assignment (identifier_linkType) identifier_linkType (subscript (call (attribute (call (attribute (subscript (identifier_chunk) identifier_chunk (integer_1) integer_1 )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (identifier_split) identifier_split )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (if_statement (comparison_operator (identifier_linkType) identifier_linkType (string_'DX') string_'DX' )comparison_operator (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_xSectionLink) identifier_xSectionLink (argument_list (identifier_chunk) identifier_chunk )argument_list )call )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_linkType) identifier_linkType (string_'STRUCTURE') string_'STRUCTURE' )comparison_operator (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_structureLink) identifier_structureLink (argument_list (identifier_chunk) identifier_chunk )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_linkType) identifier_linkType (tuple (string_'RESERVOIR') string_'RESERVOIR' (string_'LAKE') string_'LAKE' )tuple )comparison_operator (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_reservoirLink) identifier_reservoirLink (argument_list (identifier_chunk) identifier_chunk )argument_list )call )assignment )expression_statement )block )elif_clause )if_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Parse LINK Chunk Method
(module (function_definition (function_name_DeleteNotifications) function_name_DeleteNotifications (parameters (identifier_self) identifier_self (identifier_session_ids) identifier_session_ids (default_parameter (identifier_start) identifier_start (None) None )default_parameter (default_parameter (identifier_end) identifier_end (None) None )default_parameter )parameters (block (if_statement (not_operator (identifier_session_ids) identifier_session_ids )not_operator (block (return_statement )return_statement )block )if_statement (for_statement (identifier_session_id) identifier_session_id (identifier_session_ids) identifier_session_ids (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_session_id) identifier_session_id (attribute (identifier_rdfvalue) identifier_rdfvalue (identifier_SessionID) identifier_SessionID )attribute )argument_list )call )not_operator (block (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (string_"Can only delete notifications for rdfvalue.SessionIDs.") string_"Can only delete notifications for rdfvalue.SessionIDs." )argument_list )call )raise_statement )block )if_statement )block )for_statement (if_statement (comparison_operator (identifier_start) identifier_start (None) None )comparison_operator (block (expression_statement (assignment (identifier_start) identifier_start (integer_0) integer_0 )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_start) identifier_start (call (identifier_int) identifier_int (argument_list (identifier_start) identifier_start )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (comparison_operator (identifier_end) identifier_end (None) None )comparison_operator (block (expression_statement (assignment (identifier_end) identifier_end (boolean_operator (attribute (identifier_self) identifier_self (identifier_frozen_timestamp) identifier_frozen_timestamp )attribute (call (attribute (attribute (identifier_rdfvalue) identifier_rdfvalue (identifier_RDFDatetime) identifier_RDFDatetime )attribute (identifier_Now) identifier_Now )attribute (argument_list )argument_list )call )boolean_operator )assignment )expression_statement )block )if_statement (for_statement (pattern_list (identifier_queue) identifier_queue (identifier_ids) identifier_ids )pattern_list (call (identifier_iteritems) identifier_iteritems (argument_list (call (attribute (identifier_collection) identifier_collection (identifier_Group) identifier_Group )attribute (argument_list (identifier_session_ids) identifier_session_ids (lambda (lambda_parameters (identifier_session_id) identifier_session_id )lambda_parameters (call (attribute (identifier_session_id) identifier_session_id (identifier_Queue) identifier_Queue )attribute (argument_list )argument_list )call )lambda )argument_list )call )argument_list )call (block (expression_statement (assignment (identifier_queue_shards) identifier_queue_shards (call (attribute (identifier_self) identifier_self (identifier_GetAllNotificationShards) identifier_GetAllNotificationShards )attribute (argument_list (identifier_queue) identifier_queue )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_data_store) identifier_data_store )attribute (identifier_DeleteNotifications) identifier_DeleteNotifications )attribute (argument_list (identifier_queue_shards) identifier_queue_shards (identifier_ids) identifier_ids (identifier_start) identifier_start (identifier_end) identifier_end )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
This deletes the notification when all messages have been processed.
(module (function_definition (function_name_dominant_sharp_ninth) function_name_dominant_sharp_ninth (parameters (identifier_note) identifier_note )parameters (block (expression_statement (assignment (identifier_res) identifier_res (call (identifier_dominant_ninth) identifier_dominant_ninth (argument_list (identifier_note) identifier_note )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_res) identifier_res (integer_4) integer_4 )subscript (call (attribute (identifier_notes) identifier_notes (identifier_augment) identifier_augment )attribute (argument_list (call (attribute (identifier_intervals) identifier_intervals (identifier_major_second) identifier_major_second )attribute (argument_list (identifier_note) identifier_note )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_res) identifier_res )return_statement )block )function_definition )module
Build a dominant sharp ninth chord on note. Example: >>> dominant_ninth('C') ['C', 'E', 'G', 'Bb', 'D#']
(module (function_definition (function_name__make_sampling_sequence) function_name__make_sampling_sequence (parameters (identifier_n) identifier_n )parameters (block (expression_statement (assignment (identifier_seq) identifier_seq (call (identifier_list) identifier_list (argument_list (call (identifier_range) identifier_range (argument_list (integer_5) integer_5 )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_i) identifier_i (integer_50) integer_50 )assignment )expression_statement (while_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_seq) identifier_seq )argument_list )call (identifier_n) identifier_n )comparison_operator (block (expression_statement (call (attribute (identifier_seq) identifier_seq (identifier_append) identifier_append )attribute (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_i) identifier_i (integer_50) integer_50 )augmented_assignment )expression_statement )block )while_statement (return_statement (identifier_seq) identifier_seq )return_statement )block )function_definition )module
Return a list containing the proposed call event sampling sequence. Return events are paired with call events and not counted separately. This is 0, 1, 2, ..., 4 plus 50, 100, 150, 200, etc. The total list size is n.
(module (function_definition (function_name_fractional_from_cartesian) function_name_fractional_from_cartesian (parameters (identifier_coordinate) identifier_coordinate (identifier_lattice_array) identifier_lattice_array )parameters (block (expression_statement (assignment (identifier_deorthogonalisation_M) identifier_deorthogonalisation_M (call (attribute (identifier_np) identifier_np (identifier_matrix) identifier_matrix )attribute (argument_list (call (attribute (attribute (identifier_np) identifier_np (identifier_linalg) identifier_linalg )attribute (identifier_inv) identifier_inv )attribute (argument_list (identifier_lattice_array) identifier_lattice_array )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_fractional) identifier_fractional (binary_operator (identifier_deorthogonalisation_M) identifier_deorthogonalisation_M (call (attribute (identifier_coordinate) identifier_coordinate (identifier_reshape) identifier_reshape )attribute (argument_list (unary_operator (integer_1) integer_1 )unary_operator (integer_1) integer_1 )argument_list )call )binary_operator )assignment )expression_statement (return_statement (call (attribute (identifier_np) identifier_np (identifier_array) identifier_array )attribute (argument_list (call (attribute (identifier_fractional) identifier_fractional (identifier_reshape) identifier_reshape )attribute (argument_list (integer_1) integer_1 (unary_operator (integer_1) integer_1 )unary_operator )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Return a fractional coordinate from a cartesian one.
(module (function_definition (function_name_spellcheck) function_name_spellcheck (parameters (identifier_contents) identifier_contents (default_parameter (identifier_technical_terms) identifier_technical_terms (None) None )default_parameter (default_parameter (identifier_spellcheck_cache) identifier_spellcheck_cache (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_contents) identifier_contents (call (attribute (identifier_spelling) identifier_spelling (identifier_filter_nonspellcheckable_tokens) identifier_filter_nonspellcheckable_tokens )attribute (argument_list (identifier_contents) identifier_contents )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_contents) identifier_contents (call (identifier__filter_disabled_regions) identifier__filter_disabled_regions (argument_list (identifier_contents) identifier_contents )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lines) identifier_lines (call (attribute (identifier_contents) identifier_contents (identifier_splitlines) identifier_splitlines )attribute (argument_list (True) True )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_user_words) identifier_user_words (identifier_valid_words) identifier_valid_words )pattern_list (call (attribute (identifier_valid_words_dictionary) identifier_valid_words_dictionary (identifier_create) identifier_create )attribute (argument_list (identifier_spellcheck_cache) identifier_spellcheck_cache )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_technical_words) identifier_technical_words (call (attribute (identifier_technical_words_dictionary) identifier_technical_words_dictionary (identifier_create) identifier_create )attribute (argument_list (identifier_technical_terms) identifier_technical_terms (identifier_spellcheck_cache) identifier_spellcheck_cache )argument_list )call )assignment )expression_statement (return_statement (call (identifier_sorted) identifier_sorted (argument_list (list_comprehension (identifier_e) identifier_e (for_in_clause (identifier_e) identifier_e (call (identifier_spellcheck_region) identifier_spellcheck_region (argument_list (identifier_lines) identifier_lines (identifier_valid_words) identifier_valid_words (identifier_technical_words) identifier_technical_words (identifier_user_words) identifier_user_words )argument_list )call )for_in_clause )list_comprehension )argument_list )call )return_statement )block )function_definition )module
Run spellcheck on the contents of a file. :technical_terms: is a path to a file containing a list of "technical" terms. These may be symbols as collected from files by using the generic linter or other such symbols. If a symbol-like term is used within contents and it does not appear in :technical_terms: then an error will result. :spellcheck_cache: is a path to a directory where graph files generated by the spellchecking engine should be stored. It is used for caching purposes between invocations, since generating the spellchecking graph is an expensive operation which can take a few seconds to complete.
(module (function_definition (function_name_setting) function_name_setting (parameters (identifier_self) identifier_self (identifier_setting_name) identifier_setting_name (default_parameter (identifier_default) identifier_default (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_keys) identifier_keys (call (attribute (identifier_setting_name) identifier_setting_name (identifier_split) identifier_split )attribute (argument_list (string_".") string_"." )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_config) identifier_config (attribute (identifier_self) identifier_self (identifier__content) identifier__content )attribute )assignment )expression_statement (for_statement (identifier_key) identifier_key (identifier_keys) identifier_keys (block (if_statement (comparison_operator (identifier_key) identifier_key (identifier_config) identifier_config )comparison_operator (block (return_statement (identifier_default) identifier_default )return_statement )block )if_statement (expression_statement (assignment (identifier_config) identifier_config (subscript (identifier_config) identifier_config (identifier_key) identifier_key )subscript )assignment )expression_statement )block )for_statement (return_statement (identifier_config) identifier_config )return_statement )block )function_definition )module
Retrieve a setting value.
(module (function_definition (function_name_validate_value) function_name_validate_value (parameters (identifier_self) identifier_self (identifier_string_value) identifier_string_value )parameters (block (expression_statement (assignment (identifier_specs) identifier_specs (attribute (identifier_self) identifier_self (identifier_specs) identifier_specs )attribute )assignment )expression_statement (if_statement (comparison_operator (string_'type') string_'type' (identifier_specs) identifier_specs )comparison_operator (block (expression_statement (assignment (identifier_value) identifier_value (call (subscript (identifier_specs) identifier_specs (string_'type') string_'type' )subscript (argument_list (identifier_string_value) identifier_string_value )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_value) identifier_value (identifier_string_value) identifier_string_value )assignment )expression_statement )block )else_clause )if_statement (if_statement (boolean_operator (comparison_operator (string_'min') string_'min' (identifier_specs) identifier_specs )comparison_operator (comparison_operator (identifier_value) identifier_value (subscript (identifier_specs) identifier_specs (string_'min') string_'min' )subscript )comparison_operator )boolean_operator (block (raise_statement (identifier_ValueError) identifier_ValueError )raise_statement )block )if_statement (if_statement (boolean_operator (comparison_operator (string_'max') string_'max' (identifier_specs) identifier_specs )comparison_operator (comparison_operator (identifier_value) identifier_value (subscript (identifier_specs) identifier_specs (string_'max') string_'max' )subscript )comparison_operator )boolean_operator (block (raise_statement (identifier_ValueError) identifier_ValueError )raise_statement )block )if_statement (if_statement (boolean_operator (comparison_operator (string_'valid') string_'valid' (identifier_specs) identifier_specs )comparison_operator (comparison_operator (identifier_value) identifier_value (subscript (identifier_specs) identifier_specs (string_'valid') string_'valid' )subscript )comparison_operator )boolean_operator (block (raise_statement (identifier_ValueError) identifier_ValueError )raise_statement )block )if_statement (return_statement (identifier_value) identifier_value )return_statement )block )function_definition )module
Validate that a value match the Property specs.
(module (function_definition (function_name_redirectLoggerStreamHandlers) function_name_redirectLoggerStreamHandlers (parameters (identifier_oldStream) identifier_oldStream (identifier_newStream) identifier_newStream )parameters (block (for_statement (identifier_handler) identifier_handler (call (identifier_list) identifier_list (argument_list (attribute (identifier_logger) identifier_logger (identifier_handlers) identifier_handlers )attribute )argument_list )call (block (if_statement (comparison_operator (attribute (identifier_handler) identifier_handler (identifier_stream) identifier_stream )attribute (identifier_oldStream) identifier_oldStream )comparison_operator (block (expression_statement (call (attribute (identifier_handler) identifier_handler (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_removeHandler) identifier_removeHandler )attribute (argument_list (identifier_handler) identifier_handler )argument_list )call )expression_statement )block )if_statement )block )for_statement (for_statement (identifier_handler) identifier_handler (attribute (identifier_logger) identifier_logger (identifier_handlers) identifier_handlers )attribute (block (if_statement (comparison_operator (attribute (identifier_handler) identifier_handler (identifier_stream) identifier_stream )attribute (identifier_newStream) identifier_newStream )comparison_operator (block (return_statement )return_statement )block )if_statement )block )for_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_addHandler) identifier_addHandler )attribute (argument_list (call (attribute (identifier_logging) identifier_logging (identifier_StreamHandler) identifier_StreamHandler )attribute (argument_list (identifier_newStream) identifier_newStream )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Redirect the stream of a stream handler to a different stream
(module (function_definition (function_name_summary) function_name_summary (parameters (identifier_args) identifier_args )parameters (block (import_from_statement (dotted_name (identifier_jcvi) identifier_jcvi (identifier_graphics) identifier_graphics (identifier_histogram) identifier_histogram )dotted_name (dotted_name (identifier_loghistogram) identifier_loghistogram )dotted_name )import_from_statement (expression_statement (assignment (identifier_p) identifier_p (call (identifier_OptionParser) identifier_OptionParser (argument_list (attribute (identifier_summary) identifier_summary (identifier___doc__) identifier___doc__ )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_opts) identifier_opts (identifier_args) identifier_args )pattern_list (call (attribute (identifier_p) identifier_p (identifier_parse_args) identifier_parse_args )attribute (argument_list (identifier_args) identifier_args )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_args) identifier_args )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (call (attribute (identifier_sys) identifier_sys (identifier_exit) identifier_exit )attribute (argument_list (not_operator (call (attribute (identifier_p) identifier_p (identifier_print_help) identifier_print_help )attribute (argument_list )argument_list )call )not_operator )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_clstrfile) identifier_clstrfile )pattern_list (identifier_args) identifier_args )assignment )expression_statement (expression_statement (assignment (identifier_cf) identifier_cf (call (identifier_ClstrFile) identifier_ClstrFile (argument_list (identifier_clstrfile) identifier_clstrfile )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (identifier_list) identifier_list (argument_list (call (attribute (identifier_cf) identifier_cf (identifier_iter_sizes) identifier_iter_sizes )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_loghistogram) identifier_loghistogram (argument_list (identifier_data) identifier_data (keyword_argument (identifier_summary) identifier_summary (True) True )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
%prog summary cdhit.clstr Parse cdhit.clstr file to get distribution of cluster sizes.
(module (function_definition (function_name__set_launcher_property) function_name__set_launcher_property (parameters (identifier_self) identifier_self (identifier_driver_arg_key) identifier_driver_arg_key (identifier_spark_property_key) identifier_spark_property_key )parameters (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (attribute (identifier_self) identifier_self (identifier__spark_launcher_args) identifier__spark_launcher_args )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_driver_arg_key) identifier_driver_arg_key (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_conf) identifier_conf )attribute (identifier__conf_dict) identifier__conf_dict )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_spark_property_key) identifier_spark_property_key )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (identifier_value) identifier_value (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__spark_launcher_args) identifier__spark_launcher_args )attribute (identifier_driver_arg_key) identifier_driver_arg_key )subscript (identifier_value) identifier_value )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_conf) identifier_conf )attribute (identifier_spark_property_key) identifier_spark_property_key )subscript (identifier_value) identifier_value )assignment )expression_statement )block )if_statement )block )function_definition )module
Handler for a special property that exists in both the launcher arguments and the spark conf dictionary. This will use the launcher argument if set falling back to the spark conf argument. If neither are set this is a noop (which means that the standard spark defaults will be used). Since `spark.driver.memory` (eg) can be set erroneously by a user on the standard spark conf, we want to be able to use that value if present. If we do not have this fall-back behavior then these settings are IGNORED when starting up the spark driver JVM under client mode (standalone, local, yarn-client or mesos-client). Parameters ---------- driver_arg_key : string Eg: "driver-memory" spark_property_key : string Eg: "spark.driver.memory"
(module (function_definition (function_name_order_by_header) function_name_order_by_header (parameters (identifier_table) identifier_table (identifier_headers) identifier_headers )parameters (block (expression_statement (assignment (identifier_ordered_table) identifier_ordered_table (list )list )assignment )expression_statement (for_statement (identifier_row) identifier_row (identifier_table) identifier_table (block (expression_statement (assignment (identifier_row) identifier_row (dictionary_comprehension (pair (identifier_k) identifier_k (identifier_v) identifier_v )pair (for_in_clause (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (identifier_row) identifier_row (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause (if_clause (comparison_operator (identifier_k) identifier_k (identifier_headers) identifier_headers )comparison_operator )if_clause )dictionary_comprehension )assignment )expression_statement (for_statement (identifier_h) identifier_h (identifier_headers) identifier_headers (block (if_statement (comparison_operator (identifier_h) identifier_h (identifier_row) identifier_row )comparison_operator (block (expression_statement (assignment (subscript (identifier_row) identifier_row (identifier_h) identifier_h )subscript (string_'') string_'' )assignment )expression_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_ordered_row) identifier_ordered_row (call (identifier_OrderedDict) identifier_OrderedDict (argument_list (call (identifier_sorted) identifier_sorted (argument_list (call (attribute (identifier_row) identifier_row (identifier_items) identifier_items )attribute (argument_list )argument_list )call (keyword_argument (identifier_key) identifier_key (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (call (attribute (identifier_headers) identifier_headers (identifier_index) identifier_index )attribute (argument_list (subscript (identifier_x) identifier_x (integer_0) integer_0 )subscript )argument_list )call )lambda )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_ordered_table) identifier_ordered_table (identifier_append) identifier_append )attribute (argument_list (identifier_ordered_row) identifier_ordered_row )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_ordered_table) identifier_ordered_table )return_statement )block )function_definition )module
Convert a list of dicts to a list or OrderedDicts ordered by headers
(module (function_definition (function_name_releaseNetToMs) function_name_releaseNetToMs (parameters )parameters (block (expression_statement (assignment (identifier_a) identifier_a (call (identifier_TpPd) identifier_TpPd (argument_list (keyword_argument (identifier_pd) identifier_pd (integer_0x3) integer_0x3 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_b) identifier_b (call (identifier_MessageType) identifier_MessageType (argument_list (keyword_argument (identifier_mesType) identifier_mesType (integer_0x2d) integer_0x2d )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_c) identifier_c (call (identifier_CauseHdr) identifier_CauseHdr (argument_list (keyword_argument (identifier_ieiC) identifier_ieiC (integer_0x08) integer_0x08 )keyword_argument (keyword_argument (identifier_eightBitC) identifier_eightBitC (integer_0x0) integer_0x0 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_d) identifier_d (call (identifier_CauseHdr) identifier_CauseHdr (argument_list (keyword_argument (identifier_ieiC) identifier_ieiC (integer_0x08) integer_0x08 )keyword_argument (keyword_argument (identifier_eightBitC) identifier_eightBitC (integer_0x0) integer_0x0 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_e) identifier_e (call (identifier_FacilityHdr) identifier_FacilityHdr (argument_list (keyword_argument (identifier_ieiF) identifier_ieiF (integer_0x1C) integer_0x1C )keyword_argument (keyword_argument (identifier_eightBitF) identifier_eightBitF (integer_0x0) integer_0x0 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_f) identifier_f (call (identifier_UserUserHdr) identifier_UserUserHdr (argument_list (keyword_argument (identifier_ieiUU) identifier_ieiUU (integer_0x7E) integer_0x7E )keyword_argument (keyword_argument (identifier_eightBitUU) identifier_eightBitUU (integer_0x0) integer_0x0 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_packet) identifier_packet (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (identifier_a) identifier_a (identifier_b) identifier_b )binary_operator (identifier_c) identifier_c )binary_operator (identifier_d) identifier_d )binary_operator (identifier_e) identifier_e )binary_operator (identifier_f) identifier_f )binary_operator )assignment )expression_statement (return_statement (identifier_packet) identifier_packet )return_statement )block )function_definition )module
RELEASE Section 9.3.18.1
(module (function_definition (function_name_make_chain) function_name_make_chain (parameters (identifier_fns) identifier_fns )parameters (block (expression_statement (assignment (identifier_chain) identifier_chain (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (identifier_x) identifier_x )lambda )assignment )expression_statement (for_statement (identifier_fn) identifier_fn (call (identifier_reversed) identifier_reversed (argument_list (identifier_fns) identifier_fns )argument_list )call (block (expression_statement (assignment (identifier_chain) identifier_chain (call (identifier_fn) identifier_fn (argument_list (identifier_chain) identifier_chain )argument_list )call )assignment )expression_statement )block )for_statement (function_definition (function_name_validator) function_name_validator (parameters (identifier_v) identifier_v )parameters (block (try_statement (block (return_statement (call (identifier_chain) identifier_chain (argument_list (identifier_v) identifier_v )argument_list )call )return_statement )block (except_clause (identifier_ReturnEarly) identifier_ReturnEarly (block (return_statement (identifier_v) identifier_v )return_statement )block )except_clause )try_statement )block )function_definition (return_statement (identifier_validator) identifier_validator )return_statement )block )function_definition )module
Take a list of chainable validators and return a chained validator The functions should be decorated with ``chainable`` decorator. Any exceptions raised by any of the validators are propagated except for ``ReturnEarly`` exception which is trapped. When ``ReturnEarly`` exception is trapped, the original value passed to the chained validator is returned as is.
(module (function_definition (function_name__run_bcbio_variation) function_name__run_bcbio_variation (parameters (identifier_vrn_file) identifier_vrn_file (identifier_rm_file) identifier_rm_file (identifier_rm_interval_file) identifier_rm_interval_file (identifier_base_dir) identifier_base_dir (identifier_sample) identifier_sample (identifier_caller) identifier_caller (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_val_config_file) identifier_val_config_file (call (identifier__create_validate_config_file) identifier__create_validate_config_file (argument_list (identifier_vrn_file) identifier_vrn_file (identifier_rm_file) identifier_rm_file (identifier_rm_interval_file) identifier_rm_interval_file (identifier_base_dir) identifier_base_dir (identifier_data) identifier_data )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_work_dir) identifier_work_dir (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_base_dir) identifier_base_dir (string_"work") string_"work" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_out) identifier_out (dictionary (pair (string_"summary") string_"summary" (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_work_dir) identifier_work_dir (string_"validate-summary.csv") string_"validate-summary.csv" )argument_list )call )pair (pair (string_"grading") string_"grading" (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_work_dir) identifier_work_dir (string_"validate-grading.yaml") string_"validate-grading.yaml" )argument_list )call )pair (pair (string_"discordant") string_"discordant" (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_work_dir) identifier_work_dir (binary_operator (string_"%s-eval-ref-discordance-annotate.vcf") string_"%s-eval-ref-discordance-annotate.vcf" (identifier_sample) identifier_sample )binary_operator )argument_list )call )pair )dictionary )assignment )expression_statement (if_statement (boolean_operator (not_operator (call (attribute (identifier_utils) identifier_utils (identifier_file_exists) identifier_file_exists )attribute (argument_list (subscript (identifier_out) identifier_out (string_"discordant") string_"discordant" )subscript )argument_list )call )not_operator (not_operator (call (attribute (identifier_utils) identifier_utils (identifier_file_exists) identifier_file_exists )attribute (argument_list (subscript (identifier_out) identifier_out (string_"grading") string_"grading" )subscript )argument_list )call )not_operator )boolean_operator (block (expression_statement (call (identifier_bcbio_variation_comparison) identifier_bcbio_variation_comparison (argument_list (identifier_val_config_file) identifier_val_config_file (identifier_base_dir) identifier_base_dir (identifier_data) identifier_data )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (subscript (identifier_out) identifier_out (string_"concordant") string_"concordant" )subscript (subscript (call (identifier_filter) identifier_filter (argument_list (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (list_comprehension (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_work_dir) identifier_work_dir (binary_operator (string_"%s-%s-concordance.vcf") string_"%s-%s-concordance.vcf" (tuple (identifier_sample) identifier_sample (identifier_x) identifier_x )tuple )binary_operator )argument_list )call (for_in_clause (identifier_x) identifier_x (list (string_"eval-ref") string_"eval-ref" (string_"ref-eval") string_"ref-eval" )list )for_in_clause )list_comprehension )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Run validation of a caller against the truth set using bcbio.variation.
(module (function_definition (function_name_rotate) function_name_rotate (parameters (identifier_self) identifier_self (identifier_shift) identifier_shift )parameters (block (expression_statement (assignment (subscript (attribute (attribute (identifier_self) identifier_self (identifier_child_corners) identifier_child_corners )attribute (identifier_values) identifier_values )attribute (slice (colon) colon )slice )subscript (call (attribute (identifier_np) identifier_np (identifier_roll) identifier_roll )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_child_corners) identifier_child_corners )attribute (identifier_values) identifier_values )attribute (identifier_shift) identifier_shift (keyword_argument (identifier_axis) identifier_axis (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_update_transform) identifier_update_transform )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Rotate 90 degrees clockwise `shift` times. If `shift` is negative, rotate counter-clockwise.
(module (function_definition (function_name__get_kind_name) function_name__get_kind_name (parameters (identifier_param_type) identifier_param_type (identifier_is_list) identifier_is_list )parameters (block (if_statement (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_param_type) identifier_param_type (identifier_bool) identifier_bool )argument_list )call (block (expression_statement (assignment (identifier_typename) identifier_typename (string_'bool') string_'bool' )assignment )expression_statement )block (elif_clause (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_param_type) identifier_param_type (attribute (identifier_six) identifier_six (identifier_integer_types) identifier_integer_types )attribute )argument_list )call (block (expression_statement (assignment (identifier_typename) identifier_typename (string_'int64') string_'int64' )assignment )expression_statement )block )elif_clause (elif_clause (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_param_type) identifier_param_type (tuple (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute (attribute (identifier_six) identifier_six (identifier_binary_type) identifier_binary_type )attribute )tuple )argument_list )call (block (expression_statement (assignment (identifier_typename) identifier_typename (string_'bytes') string_'bytes' )assignment )expression_statement )block )elif_clause (elif_clause (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_param_type) identifier_param_type (identifier_float) identifier_float )argument_list )call (block (expression_statement (assignment (identifier_typename) identifier_typename (string_'float') string_'float' )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_'Unsupported parameter type: %s') string_'Unsupported parameter type: %s' (call (identifier_str) identifier_str (argument_list (identifier_param_type) identifier_param_type )argument_list )call )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_suffix) identifier_suffix (conditional_expression (string_'list') string_'list' (identifier_is_list) identifier_is_list (string_'value') string_'value' )conditional_expression )assignment )expression_statement (return_statement (call (attribute (string_'_') string_'_' (identifier_join) identifier_join )attribute (argument_list (list (identifier_typename) identifier_typename (identifier_suffix) identifier_suffix )list )argument_list )call )return_statement )block )function_definition )module
Returns the field name given parameter type and is_list. Args: param_type: Data type of the hparam. is_list: Whether this is a list. Returns: A string representation of the field name. Raises: ValueError: If parameter type is not recognized.
(module (function_definition (function_name__GetSerializedPartitionList) function_name__GetSerializedPartitionList (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_partition_list) identifier_partition_list (call (identifier_list) identifier_list (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_part) identifier_part (attribute (identifier_self) identifier_self (identifier_partitions) identifier_partitions )attribute (block (expression_statement (call (attribute (identifier_partition_list) identifier_partition_list (identifier_append) identifier_append )attribute (argument_list (tuple (attribute (identifier_part) identifier_part (identifier_node) identifier_node )attribute (subscript (call (identifier_unpack) identifier_unpack (argument_list (string_"<L") string_"<L" (attribute (identifier_part) identifier_part (identifier_hash_value) identifier_hash_value )attribute )argument_list )call (integer_0) integer_0 )subscript )tuple )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_partition_list) identifier_partition_list )return_statement )block )function_definition )module
Gets the serialized version of the ConsistentRing. Added this helper for the test code.
(module (function_definition (function_name_get_line_number) function_name_get_line_number (parameters (identifier_line_map) identifier_line_map (identifier_offset) identifier_offset )parameters (block (for_statement (pattern_list (identifier_lineno) identifier_lineno (identifier_line_offset) identifier_line_offset )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_line_map) identifier_line_map (keyword_argument (identifier_start) identifier_start (integer_1) integer_1 )keyword_argument )argument_list )call (block (if_statement (comparison_operator (identifier_line_offset) identifier_line_offset (identifier_offset) identifier_offset )comparison_operator (block (return_statement (identifier_lineno) identifier_lineno )return_statement )block )if_statement )block )for_statement (return_statement (unary_operator (integer_1) integer_1 )unary_operator )return_statement )block )function_definition )module
Find a line number, given a line map and a character offset.
(module (function_definition (function_name_create_xml_path) function_name_create_xml_path (parameters (identifier_path) identifier_path (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (try_statement (block (with_statement (with_clause (with_item (as_pattern (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_files) identifier_files )attribute (identifier_fopen) identifier_fopen )attribute (argument_list (identifier_path) identifier_path (string_'r') string_'r' )argument_list )call (as_pattern_target (identifier_fp_) identifier_fp_ )as_pattern_target )as_pattern )with_item )with_clause (block (return_statement (call (identifier_create_xml_str) identifier_create_xml_str (argument_list (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_stringutils) identifier_stringutils )attribute (identifier_to_unicode) identifier_to_unicode )attribute (argument_list (call (attribute (identifier_fp_) identifier_fp_ (identifier_read) identifier_read )attribute (argument_list )argument_list )call )argument_list )call (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )with_statement )block (except_clause (tuple (identifier_OSError) identifier_OSError (identifier_IOError) identifier_IOError )tuple (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
Start a transient domain based on the XML-file path passed to the function :param path: path to a file containing the libvirt XML definition of the domain :param connection: libvirt connection URI, overriding defaults .. versionadded:: 2019.2.0 :param username: username to connect with, overriding defaults .. versionadded:: 2019.2.0 :param password: password to connect with, overriding defaults .. versionadded:: 2019.2.0 CLI Example: .. code-block:: bash salt '*' virt.create_xml_path <path to XML file on the node>
(module (function_definition (function_name_encode_safely) function_name_encode_safely (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_encoder) identifier_encoder (attribute (identifier_self) identifier_self (identifier_base_encoder) identifier_base_encoder )attribute )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (attribute (identifier_settings) identifier_settings (identifier_null) identifier_null )attribute )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_encoder) identifier_encoder (argument_list (call (attribute (identifier_pickle) identifier_pickle (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_data) identifier_data )argument_list )call )argument_list )call )assignment )expression_statement )block (except_clause (block (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (string_"Data could not be serialized.") string_"Data could not be serialized." (identifier_RuntimeWarning) identifier_RuntimeWarning )argument_list )call )expression_statement )block )except_clause )try_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Encode the data.
(module (function_definition (function_name_get_response_attribute_filter) function_name_get_response_attribute_filter (parameters (identifier_self) identifier_self (identifier_template_filter) identifier_template_filter (default_parameter (identifier_template_model) identifier_template_model (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_template_filter) identifier_template_filter (None) None )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (if_statement (comparison_operator (string_'Prestans-Response-Attribute-List') string_'Prestans-Response-Attribute-List' (attribute (identifier_self) identifier_self (identifier_headers) identifier_headers )attribute )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (identifier_attribute_list_str) identifier_attribute_list_str (subscript (attribute (identifier_self) identifier_self (identifier_headers) identifier_headers )attribute (string_'Prestans-Response-Attribute-List') string_'Prestans-Response-Attribute-List' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_json_deserializer) identifier_json_deserializer (call (attribute (identifier_deserializer) identifier_deserializer (identifier_JSON) identifier_JSON )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_attribute_list_dictionary) identifier_attribute_list_dictionary (call (attribute (identifier_json_deserializer) identifier_json_deserializer (identifier_loads) identifier_loads )attribute (argument_list (identifier_attribute_list_str) identifier_attribute_list_str )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_attribute_filter) identifier_attribute_filter (call (identifier_AttributeFilter) identifier_AttributeFilter (argument_list (keyword_argument (identifier_from_dictionary) identifier_from_dictionary (identifier_attribute_list_dictionary) identifier_attribute_list_dictionary )keyword_argument (keyword_argument (identifier_template_model) identifier_template_model (identifier_template_model) identifier_template_model )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_evaluated_filter) identifier_evaluated_filter (call (attribute (identifier_attribute_filter) identifier_attribute_filter (identifier_conforms_to_template_filter) identifier_conforms_to_template_filter )attribute (argument_list (identifier_template_filter) identifier_template_filter )argument_list )call )assignment )expression_statement (return_statement (identifier_evaluated_filter) identifier_evaluated_filter )return_statement )block )function_definition )module
Prestans-Response-Attribute-List can contain a client's requested definition for attributes required in the response. This should match the response_attribute_filter_template? :param template_filter: :param template_model: the expected model that this filter corresponds to :return: :rtype: None | AttributeFilter
(module (function_definition (function_name_bake) function_name_bake (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_options) identifier_options (attribute (identifier_self) identifier_self (identifier_options) identifier_options )attribute )assignment )expression_statement (expression_statement (assignment (identifier_default_exclude_list) identifier_default_exclude_list (call (attribute (identifier_options) identifier_options (identifier_pop) identifier_pop )attribute (argument_list (string_'default_exclude') string_'default_exclude' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_options_exclude_list) identifier_options_exclude_list (call (attribute (identifier_options) identifier_options (identifier_pop) identifier_pop )attribute (argument_list (string_'exclude') string_'exclude' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_excludes) identifier_excludes (binary_operator (identifier_default_exclude_list) identifier_default_exclude_list (identifier_options_exclude_list) identifier_options_exclude_list )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_x_list) identifier_x_list (call (attribute (identifier_options) identifier_options (identifier_pop) identifier_pop )attribute (argument_list (string_'x') string_'x' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_exclude_args) identifier_exclude_args (list_comprehension (call (attribute (string_'--exclude={}') string_'--exclude={}' (identifier_format) identifier_format )attribute (argument_list (identifier_exclude) identifier_exclude )argument_list )call (for_in_clause (identifier_exclude) identifier_exclude (identifier_excludes) identifier_excludes )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_x_args) identifier_x_args (call (identifier_tuple) identifier_tuple (generator_expression (tuple (string_'-x') string_'-x' (identifier_x) identifier_x )tuple (for_in_clause (identifier_x) identifier_x (identifier_x_list) identifier_x_list )for_in_clause )generator_expression )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__ansible_lint_command) identifier__ansible_lint_command )attribute (call (attribute (attribute (identifier_sh) identifier_sh (identifier_ansible_lint) identifier_ansible_lint )attribute (identifier_bake) identifier_bake )attribute (argument_list (identifier_options) identifier_options (identifier_exclude_args) identifier_exclude_args (call (identifier_sum) identifier_sum (argument_list (identifier_x_args) identifier_x_args (tuple )tuple )argument_list )call (attribute (identifier_self) identifier_self (identifier__playbook) identifier__playbook )attribute (keyword_argument (identifier__env) identifier__env (attribute (identifier_self) identifier_self (identifier_env) identifier_env )attribute )keyword_argument (keyword_argument (identifier__out) identifier__out (attribute (identifier_LOG) identifier_LOG (identifier_out) identifier_out )attribute )keyword_argument (keyword_argument (identifier__err) identifier__err (attribute (identifier_LOG) identifier_LOG (identifier_error) identifier_error )attribute )keyword_argument )argument_list )call )assignment )expression_statement )block )function_definition )module
Bake an `ansible-lint` command so it's ready to execute and returns None. :return: None
(module (function_definition (function_name_reopen) function_name_reopen (parameters (identifier_args) identifier_args )parameters (block (if_statement (not_operator (attribute (identifier_args) identifier_args (identifier_isadmin) identifier_isadmin )attribute )not_operator (block (return_statement (string_"Nope, not gonna do it.") string_"Nope, not gonna do it." )return_statement )block )if_statement (expression_statement (assignment (identifier_msg) identifier_msg (call (attribute (attribute (identifier_args) identifier_args (identifier_msg) identifier_msg )attribute (identifier_split) identifier_split )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_msg) identifier_msg )not_operator (block (return_statement (string_"Syntax: !poll reopen <pollnum>") string_"Syntax: !poll reopen <pollnum>" )return_statement )block )if_statement (if_statement (not_operator (call (attribute (subscript (identifier_msg) identifier_msg (integer_0) integer_0 )subscript (identifier_isdigit) identifier_isdigit )attribute (argument_list )argument_list )call )not_operator (block (return_statement (string_"Not a valid positve integer.") string_"Not a valid positve integer." )return_statement )block )if_statement (expression_statement (assignment (identifier_pid) identifier_pid (call (identifier_int) identifier_int (argument_list (subscript (identifier_msg) identifier_msg (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_poll) identifier_poll (call (identifier_get_open_poll) identifier_get_open_poll (argument_list (attribute (identifier_args) identifier_args (identifier_session) identifier_session )attribute (identifier_pid) identifier_pid )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_poll) identifier_poll (None) None )comparison_operator (block (return_statement (string_"That poll doesn't exist or has been deleted!") string_"That poll doesn't exist or has been deleted!" )return_statement )block )if_statement (expression_statement (assignment (attribute (identifier_poll) identifier_poll (identifier_active) identifier_active )attribute (integer_1) integer_1 )assignment )expression_statement (return_statement (binary_operator (string_"Poll %d reopened!") string_"Poll %d reopened!" (identifier_pid) identifier_pid )binary_operator )return_statement )block )function_definition )module
reopens a closed poll.
(module (function_definition (function_name_run_deferred) function_name_run_deferred (parameters (identifier_self) identifier_self (identifier_deferred) identifier_deferred )parameters (block (for_statement (pattern_list (identifier_handler) identifier_handler (identifier_scope) identifier_scope (identifier_offset) identifier_offset )pattern_list (identifier_deferred) identifier_deferred (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_scope_stack) identifier_scope_stack )attribute (identifier_scope) identifier_scope )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_offset) identifier_offset )attribute (identifier_offset) identifier_offset )assignment )expression_statement (expression_statement (call (identifier_handler) identifier_handler (argument_list )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Run the callables in deferred using their associated scope stack.
(module (function_definition (function_name_get_version) function_name_get_version (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier__) identifier__ (identifier_version) identifier_version )pattern_list (call (attribute (identifier_misc) identifier_misc (identifier_get_version) identifier_get_version )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_confdir) identifier_confdir )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_version) identifier_version (None) None )comparison_operator (block (return_statement (string_"Can't get the version.") string_"Can't get the version." )return_statement )block (else_clause (block (return_statement (binary_operator (string_"cslbot - %s") string_"cslbot - %s" (identifier_version) identifier_version )binary_operator )return_statement )block )else_clause )if_statement )block )function_definition )module
Get the version.
(module (function_definition (function_name_state_args) function_name_state_args (parameters (identifier_id_) identifier_id_ (identifier_state) identifier_state (identifier_high) identifier_high )parameters (block (expression_statement (assignment (identifier_args) identifier_args (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_id_) identifier_id_ (identifier_high) identifier_high )comparison_operator (block (return_statement (identifier_args) identifier_args )return_statement )block )if_statement (if_statement (comparison_operator (identifier_state) identifier_state (subscript (identifier_high) identifier_high (identifier_id_) identifier_id_ )subscript )comparison_operator (block (return_statement (identifier_args) identifier_args )return_statement )block )if_statement (for_statement (identifier_item) identifier_item (subscript (subscript (identifier_high) identifier_high (identifier_id_) identifier_id_ )subscript (identifier_state) identifier_state )subscript (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_item) identifier_item (identifier_dict) identifier_dict )argument_list )call )not_operator (block (continue_statement )continue_statement )block )if_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_item) identifier_item )argument_list )call (integer_1) integer_1 )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (call (attribute (identifier_args) identifier_args (identifier_add) identifier_add )attribute (argument_list (call (identifier_next) identifier_next (argument_list (call (identifier_iter) identifier_iter (argument_list (identifier_item) identifier_item )argument_list )call )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_args) identifier_args )return_statement )block )function_definition )module
Return a set of the arguments passed to the named state
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self )parameters (type (None) None )type (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier__value) identifier__value )attribute )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__value) identifier__value )attribute (True) True )assignment )expression_statement (for_statement (identifier_fut) identifier_fut (attribute (identifier_self) identifier_self (identifier__waiters) identifier__waiters )attribute (block (if_statement (not_operator (call (attribute (identifier_fut) identifier_fut (identifier_done) identifier_done )attribute (argument_list )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_fut) identifier_fut (identifier_set_result) identifier_set_result )attribute (argument_list (None) None )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )if_statement )block )function_definition )module
Set the internal flag to ``True``. All waiters are awakened. Calling `.wait` once the flag is set will not block.
(module (function_definition (function_name_build_select_fields) function_name_build_select_fields (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_field_sql) identifier_field_sql (list )list )assignment )expression_statement (for_statement (identifier_table) identifier_table (attribute (identifier_self) identifier_self (identifier_tables) identifier_tables )attribute (block (expression_statement (augmented_assignment (identifier_field_sql) identifier_field_sql (call (attribute (identifier_table) identifier_table (identifier_get_field_sql) identifier_get_field_sql )attribute (argument_list )argument_list )call )augmented_assignment )expression_statement )block )for_statement (for_statement (identifier_join_item) identifier_join_item (attribute (identifier_self) identifier_self (identifier_joins) identifier_joins )attribute (block (expression_statement (augmented_assignment (identifier_field_sql) identifier_field_sql (call (attribute (attribute (identifier_join_item) identifier_join_item (identifier_right_table) identifier_right_table )attribute (identifier_get_field_sql) identifier_get_field_sql )attribute (argument_list )argument_list )call )augmented_assignment )expression_statement )block )for_statement (expression_statement (assignment (identifier_sql) identifier_sql (call (attribute (string_'SELECT {0}{1} ') string_'SELECT {0}{1} ' (identifier_format) identifier_format )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier_get_distinct_sql) identifier_get_distinct_sql )attribute (argument_list )argument_list )call (call (attribute (string_', ') string_', ' (identifier_join) identifier_join )attribute (argument_list (identifier_field_sql) identifier_field_sql )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_sql) identifier_sql )return_statement )block )function_definition )module
Generates the sql for the SELECT portion of the query :return: the SELECT portion of the query :rtype: str
(module (function_definition (function_name_patch) function_name_patch (parameters (identifier_self) identifier_self (identifier_patch) identifier_patch )parameters (block (expression_statement (assignment (identifier_data) identifier_data (call (identifier_apply_patch) identifier_apply_patch (argument_list (call (identifier_dict) identifier_dict (argument_list (identifier_self) identifier_self )argument_list )call (identifier_patch) identifier_patch )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (argument_list (identifier_data) identifier_data (keyword_argument (identifier_model) identifier_model (attribute (identifier_self) identifier_self (identifier_model) identifier_model )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Patch record metadata. :params patch: Dictionary of record metadata. :returns: A new :class:`Record` instance.
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (default_parameter (identifier_value) identifier_value (True) True )default_parameter )parameters (block (expression_statement (assignment (identifier_value) identifier_value (boolean_operator (comparison_operator (identifier_value) identifier_value (tuple (True) True (integer_1) integer_1 )tuple )comparison_operator (parenthesized_expression (boolean_operator (parenthesized_expression (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_str) identifier_str )argument_list )call (parenthesized_expression (boolean_operator (comparison_operator (attribute (identifier_sys) identifier_sys (identifier_version) identifier_version )attribute (string_'3') string_'3' )comparison_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_unicode) identifier_unicode )argument_list )call )boolean_operator )parenthesized_expression )boolean_operator )parenthesized_expression (parenthesized_expression (comparison_operator (call (attribute (identifier_value) identifier_value (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (tuple (string_"1") string_"1" (string_"yes") string_"yes" (string_"true") string_"true" (string_"enabled") string_"enabled" )tuple )comparison_operator )parenthesized_expression )boolean_operator )parenthesized_expression )boolean_operator )assignment )expression_statement (return_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_BooleanParameter) identifier_BooleanParameter (identifier_self) identifier_self )argument_list )call (identifier_set) identifier_set )attribute (argument_list (identifier_value) identifier_value )argument_list )call )return_statement )block )function_definition )module
Set the boolean parameter
(module (function_definition (function_name_predict) function_name_predict (parameters (identifier_self) identifier_self (identifier_sequences) identifier_sequences (default_parameter (identifier_y) identifier_y (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_predictions) identifier_predictions (list )list )assignment )expression_statement (expression_statement (call (identifier_check_iter_of_sequences) identifier_check_iter_of_sequences (argument_list (identifier_sequences) identifier_sequences (keyword_argument (identifier_allow_trajectory) identifier_allow_trajectory (attribute (identifier_self) identifier_self (identifier__allow_trajectory) identifier__allow_trajectory )attribute )keyword_argument )argument_list )call )expression_statement (for_statement (identifier_X) identifier_X (identifier_sequences) identifier_sequences (block (expression_statement (call (attribute (identifier_predictions) identifier_predictions (identifier_append) identifier_append )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier_partial_predict) identifier_partial_predict )attribute (argument_list (identifier_X) identifier_X )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_predictions) identifier_predictions )return_statement )block )function_definition )module
Predict the closest cluster each sample in each sequence in sequences belongs to. In the vector quantization literature, `cluster_centers_` is called the code book and each value returned by `predict` is the index of the closest code in the code book. Parameters ---------- sequences : list of array-like, each of shape [sequence_length, n_features] A list of multivariate timeseries. Each sequence may have a different length, but they all must have the same number of features. Returns ------- Y : list of arrays, each of shape [sequence_length,] Index of the closest center each sample belongs to.
(module (function_definition (function_name__strip_value) function_name__strip_value (parameters (identifier_value) identifier_value (default_parameter (identifier_lookup) identifier_lookup (string_'exact') string_'exact' )default_parameter )parameters (block (if_statement (comparison_operator (identifier_lookup) identifier_lookup (string_'in') string_'in' )comparison_operator (block (expression_statement (assignment (identifier_stripped_value) identifier_stripped_value (list_comprehension (call (identifier__strip_object) identifier__strip_object (argument_list (identifier_el) identifier_el )argument_list )call (for_in_clause (identifier_el) identifier_el (identifier_value) identifier_value )for_in_clause )list_comprehension )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_stripped_value) identifier_stripped_value (call (identifier__strip_object) identifier__strip_object (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_stripped_value) identifier_stripped_value )return_statement )block )function_definition )module
Helper function to remove the branch and version information from the given value, which could be a single object or a list.
(module (function_definition (function_name_set_dtreat_indt) function_name_set_dtreat_indt (parameters (identifier_self) identifier_self (default_parameter (identifier_t) identifier_t (None) None )default_parameter (default_parameter (identifier_indt) identifier_indt (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_lC) identifier_lC (list (comparison_operator (identifier_indt) identifier_indt (None) None )comparison_operator (comparison_operator (identifier_t) identifier_t (None) None )comparison_operator )list )assignment )expression_statement (if_statement (call (identifier_all) identifier_all (argument_list (identifier_lC) identifier_lC )argument_list )call (block (expression_statement (assignment (identifier_msg) identifier_msg (string_"Please provide either t or indt (or none)!") string_"Please provide either t or indt (or none)!" )assignment )expression_statement (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )if_statement (if_statement (subscript (identifier_lC) identifier_lC (integer_1) integer_1 )subscript (block (expression_statement (assignment (identifier_ind) identifier_ind (call (attribute (identifier_self) identifier_self (identifier_select_t) identifier_select_t )attribute (argument_list (keyword_argument (identifier_t) identifier_t (identifier_t) identifier_t )keyword_argument (keyword_argument (identifier_out) identifier_out (identifier_bool) identifier_bool )keyword_argument )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_ind) identifier_ind (call (identifier__format_ind) identifier__format_ind (argument_list (identifier_indt) identifier_indt (keyword_argument (identifier_n) identifier_n (subscript (attribute (identifier_self) identifier_self (identifier__ddataRef) identifier__ddataRef )attribute (string_'nt') string_'nt' )subscript )keyword_argument )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__dtreat) identifier__dtreat )attribute (string_'indt') string_'indt' )subscript (identifier_ind) identifier_ind )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__ddata) identifier__ddata )attribute (string_'uptodate') string_'uptodate' )subscript (False) False )assignment )expression_statement )block )function_definition )module
Store the desired index array for the time vector If an array of indices (refering to self.ddataRef['t'] is not provided, uses self.select_t(t=t) to produce it
(module (function_definition (function_name_close) function_name_close (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__device) identifier__device )attribute (None) None )comparison_operator (block (expression_statement (assignment (identifier_ibsta) identifier_ibsta (call (attribute (attribute (identifier_self) identifier_self (identifier__lib) identifier__lib )attribute (identifier_ibonl) identifier_ibonl )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__device) identifier__device )attribute (integer_0) integer_0 )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__check_status) identifier__check_status )attribute (argument_list (identifier_ibsta) identifier_ibsta )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__device) identifier__device )attribute (None) None )assignment )expression_statement )block )if_statement )block )function_definition )module
Closes the gpib transport.
(module (function_definition (function_name__string_width) function_name__string_width (parameters (identifier_string) identifier_string (keyword_separator )keyword_separator (default_parameter (identifier__IS_ASCII) identifier__IS_ASCII (identifier__IS_ASCII) identifier__IS_ASCII )default_parameter )parameters (block (expression_statement (assignment (identifier_match) identifier_match (call (attribute (identifier__IS_ASCII) identifier__IS_ASCII (identifier_match) identifier_match )attribute (argument_list (identifier_string) identifier_string )argument_list )call )assignment )expression_statement (if_statement (identifier_match) identifier_match (block (return_statement (attribute (identifier_match) identifier_match (identifier_endpos) identifier_endpos )attribute )return_statement )block )if_statement (expression_statement (assignment (identifier_UNICODE_WIDE_CHAR_TYPE) identifier_UNICODE_WIDE_CHAR_TYPE (string_'WFA') string_'WFA' )assignment )expression_statement (expression_statement (assignment (identifier_width) identifier_width (integer_0) integer_0 )assignment )expression_statement (expression_statement (assignment (identifier_func) identifier_func (attribute (identifier_unicodedata) identifier_unicodedata (identifier_east_asian_width) identifier_east_asian_width )attribute )assignment )expression_statement (for_statement (identifier_char) identifier_char (identifier_string) identifier_string (block (expression_statement (augmented_assignment (identifier_width) identifier_width (conditional_expression (integer_2) integer_2 (comparison_operator (call (identifier_func) identifier_func (argument_list (identifier_char) identifier_char )argument_list )call (identifier_UNICODE_WIDE_CHAR_TYPE) identifier_UNICODE_WIDE_CHAR_TYPE )comparison_operator (integer_1) integer_1 )conditional_expression )augmented_assignment )expression_statement )block )for_statement (return_statement (identifier_width) identifier_width )return_statement )block )function_definition )module
Returns string's width.
(module (function_definition (function_name_get_matchers) function_name_get_matchers (parameters )parameters (block (import_from_statement (relative_import (import_prefix )import_prefix )relative_import (dotted_name (identifier_matchers) identifier_matchers )dotted_name )import_from_statement (function_definition (function_name_is_matcher_func) function_name_is_matcher_func (parameters (identifier_member) identifier_member )parameters (block (return_statement (boolean_operator (call (attribute (identifier_inspect) identifier_inspect (identifier_isfunction) identifier_isfunction )attribute (argument_list (identifier_member) identifier_member )argument_list )call (call (attribute (attribute (identifier_member) identifier_member (identifier___name__) identifier___name__ )attribute (identifier_endswith) identifier_endswith )attribute (argument_list (string_"_matcher") string_"_matcher" )argument_list )call )boolean_operator )return_statement )block )function_definition (expression_statement (assignment (identifier_members) identifier_members (call (attribute (identifier_inspect) identifier_inspect (identifier_getmembers) identifier_getmembers )attribute (argument_list (identifier_matchers) identifier_matchers (identifier_is_matcher_func) identifier_is_matcher_func )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_name) identifier_name (identifier_func) identifier_func )pattern_list (identifier_members) identifier_members (block (expression_statement (yield (identifier_func) identifier_func )yield )expression_statement )block )for_statement )block )function_definition )module
Get matcher functions from treeherder.autoclassify.matchers We classify matchers as any function treeherder.autoclassify.matchers with a name ending in _matcher. This is currently overkill but protects against the unwarey engineer adding new functions to the matchers module that shouldn't be treated as matchers.
(module (function_definition (function_name_show_data_file) function_name_show_data_file (parameters (identifier_fname) identifier_fname )parameters (block (expression_statement (assignment (identifier_txt) identifier_txt (binary_operator (binary_operator (string_'<H2>') string_'<H2>' (identifier_fname) identifier_fname )binary_operator (string_'</H2>') string_'</H2>' )binary_operator )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (identifier_fname) identifier_fname )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_txt) identifier_txt (call (attribute (identifier_web) identifier_web (identifier_read_csv_to_html_table) identifier_read_csv_to_html_table )attribute (argument_list (identifier_fname) identifier_fname (string_'Y') string_'Y' )argument_list )call )augmented_assignment )expression_statement (expression_statement (augmented_assignment (identifier_txt) identifier_txt (string_'</div>\n') string_'</div>\n' )augmented_assignment )expression_statement (return_statement (identifier_txt) identifier_txt )return_statement )block )function_definition )module
shows a data file in CSV format - all files live in CORE folder
(module (function_definition (function_name_create_toolbutton) function_name_create_toolbutton (parameters (identifier_entries) identifier_entries (default_parameter (identifier_parent) identifier_parent (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_btn) identifier_btn (call (attribute (identifier_QtGui) identifier_QtGui (identifier_QToolButton) identifier_QToolButton )attribute (argument_list (identifier_parent) identifier_parent )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_menu) identifier_menu (call (attribute (identifier_QtGui) identifier_QtGui (identifier_QMenu) identifier_QMenu )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_actions) identifier_actions (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_label) identifier_label (identifier_slot) identifier_slot )pattern_list (identifier_entries) identifier_entries (block (expression_statement (assignment (identifier_action) identifier_action (call (identifier_add_menu_action) identifier_add_menu_action (argument_list (identifier_menu) identifier_menu (identifier_label) identifier_label (identifier_slot) identifier_slot )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_actions) identifier_actions (identifier_append) identifier_append )attribute (argument_list (identifier_action) identifier_action )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_btn) identifier_btn (identifier_setPopupMode) identifier_setPopupMode )attribute (argument_list (attribute (attribute (identifier_QtGui) identifier_QtGui (identifier_QToolButton) identifier_QToolButton )attribute (identifier_MenuButtonPopup) identifier_MenuButtonPopup )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_btn) identifier_btn (identifier_setDefaultAction) identifier_setDefaultAction )attribute (argument_list (subscript (identifier_actions) identifier_actions (integer_0) integer_0 )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_btn) identifier_btn (identifier_setMenu) identifier_setMenu )attribute (argument_list (identifier_menu) identifier_menu )argument_list )call )expression_statement (return_statement (expression_list (identifier_btn) identifier_btn (identifier_actions) identifier_actions )expression_list )return_statement )block )function_definition )module
Create a toolbutton. Args: entries: List of (label, slot) tuples. Returns: `QtGui.QToolBar`.
(module (function_definition (function_name_redirect_to_unlocalized) function_name_redirect_to_unlocalized (parameters (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_endpoint) identifier_endpoint (call (attribute (attribute (identifier_request) identifier_request (identifier_endpoint) identifier_endpoint )attribute (identifier_replace) identifier_replace )attribute (argument_list (string_'_redirect') string_'_redirect' (string_'') string_'' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_kwargs) identifier_kwargs (call (identifier_multi_to_dict) identifier_multi_to_dict (argument_list (attribute (identifier_request) identifier_request (identifier_args) identifier_args )attribute )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_kwargs) identifier_kwargs (identifier_update) identifier_update )attribute (argument_list (attribute (identifier_request) identifier_request (identifier_view_args) identifier_view_args )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_'lang_code') string_'lang_code' (None) None )argument_list )call )expression_statement (return_statement (call (identifier_redirect) identifier_redirect (argument_list (call (identifier_url_for) identifier_url_for (argument_list (identifier_endpoint) identifier_endpoint (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Redirect lang-prefixed urls to no prefixed URL.
(module (function_definition (function_name_polygon) function_name_polygon (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_points) identifier_points (list )list )assignment )expression_statement (for_statement (identifier_fp) identifier_fp (subscript (attribute (identifier_self) identifier_self (identifier_points) identifier_points )attribute (slice (integer_1) integer_1 (colon) colon )slice )subscript (block (expression_statement (call (attribute (identifier_points) identifier_points (identifier_append) identifier_append )attribute (argument_list (tuple (attribute (identifier_fp) identifier_fp (identifier_lat) identifier_lat )attribute (attribute (identifier_fp) identifier_fp (identifier_lng) identifier_lng )attribute )tuple )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_points) identifier_points )return_statement )block )function_definition )module
return a polygon for the fence
(module (function_definition (function_name_register_event) function_name_register_event (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (string_'Registering event hook:') string_'Registering event hook:' (attribute (identifier_event) identifier_event (identifier_cmd) identifier_cmd )attribute (attribute (identifier_event) identifier_event (identifier_thing) identifier_thing )attribute (keyword_argument (identifier_pretty) identifier_pretty (True) True )keyword_argument (keyword_argument (identifier_lvl) identifier_lvl (identifier_verbose) identifier_verbose )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_hooks) identifier_hooks )attribute (attribute (identifier_event) identifier_event (identifier_cmd) identifier_cmd )attribute )subscript (attribute (identifier_event) identifier_event (identifier_thing) identifier_thing )attribute )assignment )expression_statement )block )function_definition )module
Registers a new command line interface event hook as command
(module (function_definition (function_name_find) function_name_find (parameters (identifier_basedir) identifier_basedir (identifier_string) identifier_string )parameters (block (expression_statement (assignment (identifier_matches) identifier_matches (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_root) identifier_root (identifier_dirnames) identifier_dirnames (identifier_filenames) identifier_filenames )pattern_list (call (attribute (identifier_os) identifier_os (identifier_walk) identifier_walk )attribute (argument_list (identifier_basedir) identifier_basedir )argument_list )call (block (for_statement (identifier_filename) identifier_filename (call (attribute (identifier_fnmatch) identifier_fnmatch (identifier_filter) identifier_filter )attribute (argument_list (identifier_filenames) identifier_filenames (identifier_string) identifier_string )argument_list )call (block (expression_statement (call (attribute (identifier_matches) identifier_matches (identifier_append) identifier_append )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_root) identifier_root (identifier_filename) identifier_filename )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )for_statement (return_statement (identifier_matches) identifier_matches )return_statement )block )function_definition )module
walk basedir and return all files matching string
(module (function_definition (function_name__copy_chunk) function_name__copy_chunk (parameters (identifier_src) identifier_src (identifier_dst) identifier_dst (identifier_length) identifier_length )parameters (block (expression_statement (string_"Copy length bytes from file src to file dst.") string_"Copy length bytes from file src to file dst." )expression_statement (expression_statement (assignment (identifier_BUFSIZE) identifier_BUFSIZE (binary_operator (integer_128) integer_128 (integer_1024) integer_1024 )binary_operator )assignment )expression_statement (while_statement (comparison_operator (identifier_length) identifier_length (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_l) identifier_l (call (identifier_min) identifier_min (argument_list (identifier_BUFSIZE) identifier_BUFSIZE (identifier_length) identifier_length )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_buf) identifier_buf (call (attribute (identifier_src) identifier_src (identifier_read) identifier_read )attribute (argument_list (identifier_l) identifier_l )argument_list )call )assignment )expression_statement (assert_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_buf) identifier_buf )argument_list )call (identifier_l) identifier_l )comparison_operator )assert_statement (expression_statement (call (attribute (identifier_dst) identifier_dst (identifier_write) identifier_write )attribute (argument_list (identifier_buf) identifier_buf )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_length) identifier_length (identifier_l) identifier_l )augmented_assignment )expression_statement )block )while_statement )block )function_definition )module
Copy length bytes from file src to file dst.
(module (function_definition (function_name_parse_rest_response) function_name_parse_rest_response (parameters (identifier_self) identifier_self (identifier_records) identifier_records (identifier_rowcount) identifier_rowcount (default_parameter (identifier_row_type) identifier_row_type (identifier_list) identifier_list )default_parameter )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_is_plain_count) identifier_is_plain_count )attribute (block (assert_statement (comparison_operator (call (identifier_list) identifier_list (argument_list (identifier_records) identifier_records )argument_list )call (list )list )comparison_operator )assert_statement (expression_statement (yield (identifier_rowcount) identifier_rowcount )yield )expression_statement )block (else_clause (block (while_statement (True) True (block (for_statement (identifier_row_deep) identifier_row_deep (identifier_records) identifier_records (block (assert_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_is_aggregation) identifier_is_aggregation )attribute (parenthesized_expression (comparison_operator (subscript (subscript (identifier_row_deep) identifier_row_deep (string_'attributes') string_'attributes' )subscript (string_'type') string_'type' )subscript (string_'AggregateResult') string_'AggregateResult' )comparison_operator )parenthesized_expression )comparison_operator )assert_statement (expression_statement (assignment (identifier_row_flat) identifier_row_flat (call (attribute (identifier_self) identifier_self (identifier__make_flat) identifier__make_flat )attribute (argument_list (identifier_row_deep) identifier_row_deep (keyword_argument (identifier_path) identifier_path (tuple )tuple )keyword_argument (keyword_argument (identifier_subroots) identifier_subroots (attribute (identifier_self) identifier_self (identifier_subroots) identifier_subroots )attribute )keyword_argument )argument_list )call )assignment )expression_statement (assert_statement (call (identifier_all) identifier_all (generator_expression (boolean_operator (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_x) identifier_x (identifier_dict) identifier_dict )argument_list )call )not_operator (subscript (identifier_x) identifier_x (string_'done') string_'done' )subscript )boolean_operator (for_in_clause (identifier_x) identifier_x (identifier_row_flat) identifier_row_flat )for_in_clause )generator_expression )call )assert_statement (if_statement (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_row_type) identifier_row_type (identifier_dict) identifier_dict )argument_list )call (block (expression_statement (yield (dictionary_comprehension (pair (identifier_k) identifier_k (call (identifier_fix_data_type) identifier_fix_data_type (argument_list (subscript (identifier_row_flat) identifier_row_flat (call (attribute (identifier_k) identifier_k (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )subscript )argument_list )call )pair (for_in_clause (identifier_k) identifier_k (attribute (identifier_self) identifier_self (identifier_aliases) identifier_aliases )attribute )for_in_clause )dictionary_comprehension )yield )expression_statement )block (else_clause (block (expression_statement (yield (list_comprehension (call (identifier_fix_data_type) identifier_fix_data_type (argument_list (subscript (identifier_row_flat) identifier_row_flat (call (attribute (identifier_k) identifier_k (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )subscript )argument_list )call (for_in_clause (identifier_k) identifier_k (attribute (identifier_self) identifier_self (identifier_aliases) identifier_aliases )attribute )for_in_clause )list_comprehension )yield )expression_statement )block )else_clause )if_statement )block )for_statement (break_statement )break_statement )block )while_statement )block )else_clause )if_statement )block )function_definition )module
Parse the REST API response to DB API cursor flat response
(module (function_definition (function_name__layout) function_name__layout (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_hist) identifier_hist )attribute )not_operator (block (expression_statement (attribute (identifier_self) identifier_self (identifier_ax) identifier_ax )attribute )expression_statement (return_statement )return_statement )block )if_statement (if_statement (comparison_operator (identifier_make_axes_locatable) identifier_make_axes_locatable (None) None )comparison_operator (block (raise_statement (call (identifier_YellowbrickValueError) identifier_YellowbrickValueError (argument_list (parenthesized_expression (concatenated_string (string_"joint plot histograms requires matplotlib 2.0.2 or greater ") string_"joint plot histograms requires matplotlib 2.0.2 or greater " (string_"please upgrade matplotlib or set hist=False on the visualizer") string_"please upgrade matplotlib or set hist=False on the visualizer" )concatenated_string )parenthesized_expression )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_divider) identifier_divider (call (identifier_make_axes_locatable) identifier_make_axes_locatable (argument_list (attribute (identifier_self) identifier_self (identifier_ax) identifier_ax )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__xhax) identifier__xhax )attribute (call (attribute (identifier_divider) identifier_divider (identifier_append_axes) identifier_append_axes )attribute (argument_list (string_"top") string_"top" (keyword_argument (identifier_size) identifier_size (integer_1) integer_1 )keyword_argument (keyword_argument (identifier_pad) identifier_pad (float_0.1) float_0.1 )keyword_argument (keyword_argument (identifier_sharex) identifier_sharex (attribute (identifier_self) identifier_self (identifier_ax) identifier_ax )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__yhax) identifier__yhax )attribute (call (attribute (identifier_divider) identifier_divider (identifier_append_axes) identifier_append_axes )attribute (argument_list (string_"right") string_"right" (keyword_argument (identifier_size) identifier_size (integer_1) integer_1 )keyword_argument (keyword_argument (identifier_pad) identifier_pad (float_0.1) float_0.1 )keyword_argument (keyword_argument (identifier_sharey) identifier_sharey (attribute (identifier_self) identifier_self (identifier_ax) identifier_ax )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier__xhax) identifier__xhax )attribute (identifier_xaxis) identifier_xaxis )attribute (identifier_tick_top) identifier_tick_top )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier__yhax) identifier__yhax )attribute (identifier_yaxis) identifier_yaxis )attribute (identifier_tick_right) identifier_tick_right )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__xhax) identifier__xhax )attribute (identifier_grid) identifier_grid )attribute (argument_list (False) False (keyword_argument (identifier_axis) identifier_axis (string_'y') string_'y' )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__yhax) identifier__yhax )attribute (identifier_grid) identifier_grid )attribute (argument_list (False) False (keyword_argument (identifier_axis) identifier_axis (string_'x') string_'x' )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Creates the grid layout for the joint plot, adding new axes for the histograms if necessary and modifying the aspect ratio. Does not modify the axes or the layout if self.hist is False or None.
(module (function_definition (function_name_cross) function_name_cross (parameters (identifier_self) identifier_self (identifier_vector) identifier_vector )parameters (block (return_statement (call (identifier_Vector) identifier_Vector (argument_list (parenthesized_expression (binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_y) identifier_y )attribute (attribute (identifier_vector) identifier_vector (identifier_z) identifier_z )attribute )binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_z) identifier_z )attribute (attribute (identifier_vector) identifier_vector (identifier_y) identifier_y )attribute )binary_operator )binary_operator )parenthesized_expression (parenthesized_expression (binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_z) identifier_z )attribute (attribute (identifier_vector) identifier_vector (identifier_x) identifier_x )attribute )binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_x) identifier_x )attribute (attribute (identifier_vector) identifier_vector (identifier_z) identifier_z )attribute )binary_operator )binary_operator )parenthesized_expression (parenthesized_expression (binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_x) identifier_x )attribute (attribute (identifier_vector) identifier_vector (identifier_y) identifier_y )attribute )binary_operator (binary_operator (attribute (identifier_self) identifier_self (identifier_y) identifier_y )attribute (attribute (identifier_vector) identifier_vector (identifier_x) identifier_x )attribute )binary_operator )binary_operator )parenthesized_expression )argument_list )call )return_statement )block )function_definition )module
Return a Vector instance as the cross product of two vectors
(module (function_definition (function_name_validate_property_directives) function_name_validate_property_directives (parameters (identifier_directives) identifier_directives )parameters (block (for_statement (identifier_directive_name) identifier_directive_name (call (attribute (identifier_six) identifier_six (identifier_iterkeys) identifier_iterkeys )attribute (argument_list (identifier_directives) identifier_directives )argument_list )call (block (if_statement (comparison_operator (identifier_directive_name) identifier_directive_name (identifier_VERTEX_ONLY_DIRECTIVES) identifier_VERTEX_ONLY_DIRECTIVES )comparison_operator (block (raise_statement (call (identifier_GraphQLCompilationError) identifier_GraphQLCompilationError (argument_list (call (attribute (string_u'Found vertex-only directive {} set on property.') string_u'Found vertex-only directive {} set on property.' (identifier_format) identifier_format )attribute (argument_list (identifier_directive_name) identifier_directive_name )argument_list )call )argument_list )call )raise_statement )block )if_statement )block )for_statement )block )function_definition )module
Validate the directives that appear at a property field.
(module (function_definition (function_name_create_user) function_name_create_user (parameters (identifier_self) identifier_self (identifier_username) identifier_username (identifier_password) identifier_password (default_parameter (identifier_admin) identifier_admin (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_text) identifier_text (call (attribute (string_"CREATE USER {0} WITH PASSWORD {1}") string_"CREATE USER {0} WITH PASSWORD {1}" (identifier_format) identifier_format )attribute (argument_list (call (identifier_quote_ident) identifier_quote_ident (argument_list (identifier_username) identifier_username )argument_list )call (call (identifier_quote_literal) identifier_quote_literal (argument_list (identifier_password) identifier_password )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (identifier_admin) identifier_admin (block (expression_statement (augmented_assignment (identifier_text) identifier_text (string_' WITH ALL PRIVILEGES') string_' WITH ALL PRIVILEGES' )augmented_assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_query) identifier_query )attribute (argument_list (identifier_text) identifier_text (keyword_argument (identifier_method) identifier_method (string_"POST") string_"POST" )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Create a new user in InfluxDB. :param username: the new username to create :type username: str :param password: the password for the new user :type password: str :param admin: whether the user should have cluster administration privileges or not :type admin: boolean
(module (function_definition (function_name__string_to_byte_list) function_name__string_to_byte_list (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_bytes_length) identifier_bytes_length (integer_16) integer_16 )assignment )expression_statement (expression_statement (assignment (identifier_m) identifier_m (call (attribute (identifier_self) identifier_self (identifier_digest) identifier_digest )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_m) identifier_m (identifier_update) identifier_update )attribute (argument_list (call (attribute (identifier_str) identifier_str (identifier_encode) identifier_encode )attribute (argument_list (identifier_data) identifier_data )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_hex_digest) identifier_hex_digest (call (attribute (identifier_m) identifier_m (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (call (identifier_list) identifier_list (generator_expression (call (identifier_int) identifier_int (argument_list (subscript (identifier_hex_digest) identifier_hex_digest (slice (binary_operator (identifier_num) identifier_num (integer_2) integer_2 )binary_operator (colon) colon (binary_operator (binary_operator (identifier_num) identifier_num (integer_2) integer_2 )binary_operator (integer_2) integer_2 )binary_operator )slice )subscript (identifier_bytes_length) identifier_bytes_length )argument_list )call (for_in_clause (identifier_num) identifier_num (call (identifier_range) identifier_range (argument_list (identifier_bytes_length) identifier_bytes_length )argument_list )call )for_in_clause )generator_expression )call )return_statement )block )function_definition )module
Creates a hex digest of the input string given to create the image, if it's not already hexadecimal Returns: Length 16 list of rgb value range integers (each representing a byte of the hex digest)
(module (function_definition (function_name_setup) function_name_setup (parameters (identifier_self) identifier_self (identifier_artifacts) identifier_artifacts (identifier_use_tsk) identifier_use_tsk (identifier_reason) identifier_reason (identifier_grr_server_url) identifier_grr_server_url (identifier_grr_username) identifier_grr_username (identifier_grr_password) identifier_grr_password (default_parameter (identifier_approvers) identifier_approvers (None) None )default_parameter (default_parameter (identifier_verify) identifier_verify (True) True )default_parameter )parameters (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_GRRHuntArtifactCollector) identifier_GRRHuntArtifactCollector (identifier_self) identifier_self )argument_list )call (identifier_setup) identifier_setup )attribute (argument_list (identifier_reason) identifier_reason (identifier_grr_server_url) identifier_grr_server_url (identifier_grr_username) identifier_grr_username (identifier_grr_password) identifier_grr_password (keyword_argument (identifier_approvers) identifier_approvers (identifier_approvers) identifier_approvers )keyword_argument (keyword_argument (identifier_verify) identifier_verify (identifier_verify) identifier_verify )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_artifacts) identifier_artifacts )attribute (list_comprehension (call (attribute (identifier_item) identifier_item (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (for_in_clause (identifier_item) identifier_item (call (attribute (call (attribute (identifier_artifacts) identifier_artifacts (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (identifier_split) identifier_split )attribute (argument_list (string_',') string_',' )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (if_statement (not_operator (identifier_artifacts) identifier_artifacts )not_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_state) identifier_state )attribute (identifier_add_error) identifier_add_error )attribute (argument_list (string_'No artifacts were specified.') string_'No artifacts were specified.' (keyword_argument (identifier_critical) identifier_critical (True) True )keyword_argument )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_use_tsk) identifier_use_tsk )attribute (identifier_use_tsk) identifier_use_tsk )assignment )expression_statement )block )function_definition )module
Initializes a GRR Hunt artifact collector. Args: artifacts: str, comma-separated list of GRR-defined artifacts. use_tsk: toggle for use_tsk flag. reason: justification for GRR access. grr_server_url: GRR server URL. grr_username: GRR username. grr_password: GRR password. approvers: str, comma-separated list of GRR approval recipients. verify: boolean, whether to verify the GRR server's x509 certificate.
(module (function_definition (function_name_match_grade_system_id) function_name_match_grade_system_id (parameters (identifier_self) identifier_self (identifier_grade_system_id) identifier_grade_system_id (identifier_match) identifier_match )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__add_match) identifier__add_match )attribute (argument_list (string_'gradeSystemId') string_'gradeSystemId' (call (identifier_str) identifier_str (argument_list (identifier_grade_system_id) identifier_grade_system_id )argument_list )call (call (identifier_bool) identifier_bool (argument_list (identifier_match) identifier_match )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Sets the grade system ``Id`` for this query. arg: grade_system_id (osid.id.Id): a grade system ``Id`` arg: match (boolean): ``true`` for a positive match, ``false`` for a negative match raise: NullArgument - ``grade_system_id`` is ``null`` *compliance: mandatory -- This method must be implemented.*
(module (function_definition (function_name_is_equivalent) function_name_is_equivalent (parameters (identifier_self) identifier_self (identifier_other) identifier_other (default_parameter (identifier_ignore) identifier_ignore (False) False )default_parameter )parameters (block (function_definition (function_name_is_equivalent_to_list_of_ipachars) function_name_is_equivalent_to_list_of_ipachars (parameters (identifier_other) identifier_other )parameters (block (expression_statement (assignment (identifier_my_ipa_chars) identifier_my_ipa_chars (attribute (attribute (identifier_self) identifier_self (identifier_canonical_representation) identifier_canonical_representation )attribute (identifier_ipa_chars) identifier_ipa_chars )attribute )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_my_ipa_chars) identifier_my_ipa_chars )argument_list )call (call (identifier_len) identifier_len (argument_list (identifier_other) identifier_other )argument_list )call )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement (for_statement (identifier_i) identifier_i (call (identifier_range) identifier_range (argument_list (call (identifier_len) identifier_len (argument_list (identifier_my_ipa_chars) identifier_my_ipa_chars )argument_list )call )argument_list )call (block (if_statement (not_operator (call (attribute (subscript (identifier_my_ipa_chars) identifier_my_ipa_chars (identifier_i) identifier_i )subscript (identifier_is_equivalent) identifier_is_equivalent )attribute (argument_list (subscript (identifier_other) identifier_other (identifier_i) identifier_i )subscript )argument_list )call )not_operator (block (return_statement (False) False )return_statement )block )if_statement )block )for_statement (return_statement (True) True )return_statement )block )function_definition (if_statement (call (identifier_is_unicode_string) identifier_is_unicode_string (argument_list (identifier_other) identifier_other )argument_list )call (block (try_statement (block (return_statement (call (identifier_is_equivalent_to_list_of_ipachars) identifier_is_equivalent_to_list_of_ipachars (argument_list (attribute (call (identifier_IPAString) identifier_IPAString (argument_list (keyword_argument (identifier_unicode_string) identifier_unicode_string (identifier_other) identifier_other )keyword_argument (keyword_argument (identifier_ignore) identifier_ignore (identifier_ignore) identifier_ignore )keyword_argument )argument_list )call (identifier_ipa_chars) identifier_ipa_chars )attribute )argument_list )call )return_statement )block (except_clause (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )if_statement (if_statement (call (identifier_is_list_of_ipachars) identifier_is_list_of_ipachars (argument_list (identifier_other) identifier_other )argument_list )call (block (try_statement (block (return_statement (call (identifier_is_equivalent_to_list_of_ipachars) identifier_is_equivalent_to_list_of_ipachars (argument_list (identifier_other) identifier_other )argument_list )call )return_statement )block (except_clause (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_other) identifier_other (identifier_IPAString) identifier_IPAString )argument_list )call (block (return_statement (call (identifier_is_equivalent_to_list_of_ipachars) identifier_is_equivalent_to_list_of_ipachars (argument_list (attribute (attribute (identifier_other) identifier_other (identifier_canonical_representation) identifier_canonical_representation )attribute (identifier_ipa_chars) identifier_ipa_chars )attribute )argument_list )call )return_statement )block )if_statement (return_statement (False) False )return_statement )block )function_definition )module
Return ``True`` if the IPA string is equivalent to the ``other`` object. The ``other`` object can be: 1. a Unicode string, 2. a list of IPAChar objects, and 3. another IPAString. :param variant other: the object to be compared against :param bool ignore: if other is a Unicode string, ignore Unicode characters not IPA valid :rtype: bool
(module (function_definition (function_name_cart2pol) function_name_cart2pol (parameters (identifier_x) identifier_x (identifier_y) identifier_y )parameters (block (expression_statement (assignment (identifier_theta) identifier_theta (call (attribute (identifier_np) identifier_np (identifier_arctan2) identifier_arctan2 )attribute (argument_list (identifier_y) identifier_y (identifier_x) identifier_x )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_rho) identifier_rho (call (attribute (identifier_np) identifier_np (identifier_hypot) identifier_hypot )attribute (argument_list (identifier_x) identifier_x (identifier_y) identifier_y )argument_list )call )assignment )expression_statement (return_statement (expression_list (identifier_theta) identifier_theta (identifier_rho) identifier_rho )expression_list )return_statement )block )function_definition )module
Cartesian to Polar coordinates conversion.
(module (function_definition (function_name_decode_base64) function_name_decode_base64 (parameters (typed_parameter (identifier_data) identifier_data (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_bytes) identifier_bytes )type (block (expression_statement (assignment (identifier_missing_padding) identifier_missing_padding (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_data) identifier_data )argument_list )call (integer_4) integer_4 )binary_operator )assignment )expression_statement (if_statement (comparison_operator (identifier_missing_padding) identifier_missing_padding (integer_0) integer_0 )comparison_operator (block (expression_statement (augmented_assignment (identifier_data) identifier_data (binary_operator (string_"=") string_"=" (parenthesized_expression (binary_operator (integer_4) integer_4 (identifier_missing_padding) identifier_missing_padding )binary_operator )parenthesized_expression )binary_operator )augmented_assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_base64) identifier_base64 (identifier_decodebytes) identifier_decodebytes )attribute (argument_list (call (attribute (identifier_data) identifier_data (identifier_encode) identifier_encode )attribute (argument_list (string_"utf-8") string_"utf-8" )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Decode base64, padding being optional. :param data: Base64 data as an ASCII byte string :returns: The decoded byte string.
(module (function_definition (function_name_approx_eq) function_name_approx_eq (parameters (typed_parameter (identifier_val) identifier_val (type (identifier_Any) identifier_Any )type )typed_parameter (typed_parameter (identifier_other) identifier_other (type (identifier_Any) identifier_Any )type )typed_parameter (keyword_separator )keyword_separator (typed_default_parameter (identifier_atol) identifier_atol (type (generic_type (identifier_Union) identifier_Union (type_parameter (type (identifier_int) identifier_int )type (type (identifier_float) identifier_float )type )type_parameter )generic_type )type (float_1e-8) float_1e-8 )typed_default_parameter )parameters (type (identifier_bool) identifier_bool )type (block (expression_statement (assignment (identifier_approx_eq_getter) identifier_approx_eq_getter (call (identifier_getattr) identifier_getattr (argument_list (identifier_val) identifier_val (string_'_approx_eq_') string_'_approx_eq_' (None) None )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_approx_eq_getter) identifier_approx_eq_getter (None) None )comparison_operator (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_approx_eq_getter) identifier_approx_eq_getter (argument_list (identifier_other) identifier_other (identifier_atol) identifier_atol )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_result) identifier_result (identifier_NotImplemented) identifier_NotImplemented )comparison_operator (block (return_statement (identifier_result) identifier_result )return_statement )block )if_statement )block )if_statement (expression_statement (assignment (identifier_other_approx_eq_getter) identifier_other_approx_eq_getter (call (identifier_getattr) identifier_getattr (argument_list (identifier_other) identifier_other (string_'_approx_eq_') string_'_approx_eq_' (None) None )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_other_approx_eq_getter) identifier_other_approx_eq_getter (None) None )comparison_operator (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_other_approx_eq_getter) identifier_other_approx_eq_getter (argument_list (identifier_val) identifier_val (identifier_atol) identifier_atol )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_result) identifier_result (identifier_NotImplemented) identifier_NotImplemented )comparison_operator (block (return_statement (identifier_result) identifier_result )return_statement )block )if_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_val) identifier_val (tuple (identifier_int) identifier_int (identifier_float) identifier_float )tuple )argument_list )call (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_other) identifier_other (tuple (identifier_int) identifier_int (identifier_float) identifier_float )tuple )argument_list )call )not_operator (block (return_statement (False) False )return_statement )block )if_statement (return_statement (call (identifier__isclose) identifier__isclose (argument_list (identifier_val) identifier_val (identifier_other) identifier_other (keyword_argument (identifier_atol) identifier_atol (identifier_atol) identifier_atol )keyword_argument )argument_list )call )return_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_val) identifier_val (identifier_complex) identifier_complex )argument_list )call (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_other) identifier_other (identifier_complex) identifier_complex )argument_list )call )not_operator (block (return_statement (False) False )return_statement )block )if_statement (return_statement (call (identifier__isclose) identifier__isclose (argument_list (identifier_val) identifier_val (identifier_other) identifier_other (keyword_argument (identifier_atol) identifier_atol (identifier_atol) identifier_atol )keyword_argument )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier__approx_eq_iterables) identifier__approx_eq_iterables (argument_list (identifier_val) identifier_val (identifier_other) identifier_other (keyword_argument (identifier_atol) identifier_atol (identifier_atol) identifier_atol )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_result) identifier_result (identifier_NotImplemented) identifier_NotImplemented )comparison_operator (block (return_statement (comparison_operator (identifier_val) identifier_val (identifier_other) identifier_other )comparison_operator )return_statement )block )if_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Approximately compares two objects. If `val` implements SupportsApproxEquality protocol then it is invoked and takes precedence over all other checks: - For primitive numeric types `int` and `float` approximate equality is delegated to math.isclose(). - For complex primitive type the real and imaginary parts are treated independently and compared using math.isclose(). - For `val` and `other` both iterable of the same length, consecutive elements are compared recursively. Types of `val` and `other` does not necessarily needs to match each other. They just need to be iterable and have the same structure. Args: val: Source object for approximate comparison. other: Target object for approximate comparison. atol: The minimum absolute tolerance. See np.isclose() documentation for details. Defaults to 1e-8 which matches np.isclose() default absolute tolerance. Returns: True if objects are approximately equal, False otherwise.
(module (function_definition (function_name_inclusion_tag) function_name_inclusion_tag (parameters (identifier_self) identifier_self (identifier_name) identifier_name (default_parameter (identifier_context_class) identifier_context_class (identifier_Context) identifier_Context )default_parameter (default_parameter (identifier_takes_context) identifier_takes_context (False) False )default_parameter )parameters (block (function_definition (function_name_tag_decorator) function_name_tag_decorator (parameters (identifier_tag_func) identifier_tag_func )parameters (block (decorated_definition (decorator (call (identifier_wraps) identifier_wraps (argument_list (identifier_tag_func) identifier_tag_func )argument_list )call )decorator (function_definition (function_name_tag_wrapper) function_name_tag_wrapper (parameters (identifier_parser) identifier_parser (identifier_token) identifier_token )parameters (block (class_definition (identifier_InclusionTagNode) identifier_InclusionTagNode (argument_list (attribute (identifier_template) identifier_template (identifier_Node) identifier_Node )attribute )argument_list (block (function_definition (function_name_render) function_name_render (parameters (identifier_self) identifier_self (identifier_context) identifier_context )parameters (block (if_statement (not_operator (call (identifier_getattr) identifier_getattr (argument_list (identifier_self) identifier_self (string_"nodelist") string_"nodelist" (False) False )argument_list )call )not_operator (block (try_statement (block (expression_statement (assignment (identifier_request) identifier_request (subscript (identifier_context) identifier_context (string_"request") string_"request" )subscript )assignment )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (expression_statement (assignment (identifier_t) identifier_t (call (identifier_get_template) identifier_get_template (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement )block )except_clause (else_clause (block (expression_statement (assignment (identifier_ts) identifier_ts (call (identifier_templates_for_device) identifier_templates_for_device (argument_list (identifier_request) identifier_request (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_t) identifier_t (call (identifier_select_template) identifier_select_template (argument_list (identifier_ts) identifier_ts )argument_list )call )assignment )expression_statement )block )else_clause )try_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_template) identifier_template )attribute (identifier_t) identifier_t )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_parts) identifier_parts (list_comprehension (call (attribute (call (attribute (identifier_template) identifier_template (identifier_Variable) identifier_Variable )attribute (argument_list (identifier_part) identifier_part )argument_list )call (identifier_resolve) identifier_resolve )attribute (argument_list (identifier_context) identifier_context )argument_list )call (for_in_clause (identifier_part) identifier_part (subscript (call (attribute (identifier_token) identifier_token (identifier_split_contents) identifier_split_contents )attribute (argument_list )argument_list )call (slice (integer_1) integer_1 (colon) colon )slice )subscript )for_in_clause )list_comprehension )assignment )expression_statement (if_statement (identifier_takes_context) identifier_takes_context (block (expression_statement (call (attribute (identifier_parts) identifier_parts (identifier_insert) identifier_insert )attribute (argument_list (integer_0) integer_0 (identifier_context) identifier_context )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_tag_func) identifier_tag_func (argument_list (list_splat (identifier_parts) identifier_parts )list_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_autoescape) identifier_autoescape (attribute (identifier_context) identifier_context (identifier_autoescape) identifier_autoescape )attribute )assignment )expression_statement (expression_statement (assignment (identifier_context) identifier_context (call (identifier_context_class) identifier_context_class (argument_list (identifier_result) identifier_result (keyword_argument (identifier_autoescape) identifier_autoescape (identifier_autoescape) identifier_autoescape )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_template) identifier_template )attribute (identifier_render) identifier_render )attribute (argument_list (identifier_context) identifier_context )argument_list )call )return_statement )block )function_definition )block )class_definition (return_statement (call (identifier_InclusionTagNode) identifier_InclusionTagNode (argument_list )argument_list )call )return_statement )block )function_definition )decorated_definition (return_statement (call (attribute (identifier_self) identifier_self (identifier_tag) identifier_tag )attribute (argument_list (identifier_tag_wrapper) identifier_tag_wrapper )argument_list )call )return_statement )block )function_definition (return_statement (identifier_tag_decorator) identifier_tag_decorator )return_statement )block )function_definition )module
Replacement for Django's ``inclusion_tag`` which looks up device specific templates at render time.
(module (function_definition (function_name_run_checks) function_name_run_checks (parameters (identifier_number_samples) identifier_number_samples (identifier_k_choices) identifier_k_choices )parameters (block (assert_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_k_choices) identifier_k_choices (identifier_int) identifier_int )argument_list )call (string_"Number of optimal trajectories should be an integer") string_"Number of optimal trajectories should be an integer" )assert_statement (if_statement (comparison_operator (identifier_k_choices) identifier_k_choices (integer_2) integer_2 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"The number of optimal trajectories must be set to 2 or more.") string_"The number of optimal trajectories must be set to 2 or more." )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (identifier_k_choices) identifier_k_choices (identifier_number_samples) identifier_number_samples )comparison_operator (block (expression_statement (assignment (identifier_msg) identifier_msg (string_"The number of optimal trajectories should be less than the \ number of samples") string_"The number of optimal trajectories should be less than the \ number of samples" )assignment )expression_statement (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )if_statement )block )function_definition )module
Runs checks on `k_choices`
(module (function_definition (function_name_remove_unused_links) function_name_remove_unused_links (parameters (identifier_self) identifier_self (identifier_used) identifier_used )parameters (block (expression_statement (assignment (identifier_unused) identifier_unused (list )list )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__execute) identifier__execute )attribute (argument_list (call (attribute (string_"SELECT * FROM {}") string_"SELECT * FROM {}" (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_LINK_STATE_TABLE) identifier_LINK_STATE_TABLE )attribute )argument_list )call )argument_list )call )expression_statement (for_statement (identifier_row) identifier_row (attribute (identifier_self) identifier_self (identifier_cursor) identifier_cursor )attribute (block (expression_statement (assignment (pattern_list (identifier_relpath) identifier_relpath (identifier_inode) identifier_inode (identifier_mtime) identifier_mtime )pattern_list (identifier_row) identifier_row )assignment )expression_statement (expression_statement (assignment (identifier_inode) identifier_inode (call (attribute (identifier_self) identifier_self (identifier__from_sqlite) identifier__from_sqlite )attribute (argument_list (identifier_inode) identifier_inode )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_path) identifier_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_root_dir) identifier_root_dir )attribute (identifier_relpath) identifier_relpath )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_path) identifier_path (identifier_used) identifier_used )comparison_operator (block (continue_statement )continue_statement )block )if_statement (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (identifier_path) identifier_path )argument_list )call )not_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_actual_inode) identifier_actual_inode (call (identifier_get_inode) identifier_get_inode (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_actual_mtime) identifier_actual_mtime (identifier__) identifier__ )pattern_list (call (identifier_get_mtime_and_size) identifier_get_mtime_and_size (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_inode) identifier_inode (identifier_actual_inode) identifier_actual_inode )comparison_operator (comparison_operator (identifier_mtime) identifier_mtime (identifier_actual_mtime) identifier_actual_mtime )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_"Removing '{}' as unused link.") string_"Removing '{}' as unused link." (identifier_format) identifier_format )attribute (argument_list (identifier_path) identifier_path )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_remove) identifier_remove (argument_list (identifier_path) identifier_path )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_unused) identifier_unused (identifier_append) identifier_append )attribute (argument_list (identifier_relpath) identifier_relpath )argument_list )call )expression_statement )block )if_statement )block )for_statement (for_statement (identifier_relpath) identifier_relpath (identifier_unused) identifier_unused (block (expression_statement (assignment (identifier_cmd) identifier_cmd (string_'DELETE FROM {} WHERE path = "{}"') string_'DELETE FROM {} WHERE path = "{}"' )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__execute) identifier__execute )attribute (argument_list (call (attribute (identifier_cmd) identifier_cmd (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_LINK_STATE_TABLE) identifier_LINK_STATE_TABLE )attribute (identifier_relpath) identifier_relpath )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Removes all saved links except the ones that are used. Args: used (list): list of used links that should not be removed.
(module (function_definition (function_name_show) function_name_show (parameters (identifier_self) identifier_self (identifier_baseAppInstance) identifier_baseAppInstance )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_from_dict_to_fields) identifier_from_dict_to_fields )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_configDict) identifier_configDict )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_ProjectConfigurationDialog) identifier_ProjectConfigurationDialog (identifier_self) identifier_self )argument_list )call (identifier_show) identifier_show )attribute (argument_list (identifier_baseAppInstance) identifier_baseAppInstance )argument_list )call )expression_statement )block )function_definition )module
Allows to show the widget as root window
(module (function_definition (function_name_getDataAtOffset) function_name_getDataAtOffset (parameters (identifier_self) identifier_self (identifier_offset) identifier_offset (identifier_size) identifier_size )parameters (block (expression_statement (assignment (identifier_data) identifier_data (call (identifier_str) identifier_str (argument_list (identifier_self) identifier_self )argument_list )call )assignment )expression_statement (return_statement (subscript (identifier_data) identifier_data (slice (identifier_offset) identifier_offset (colon) colon (binary_operator (identifier_offset) identifier_offset (identifier_size) identifier_size )binary_operator )slice )subscript )return_statement )block )function_definition )module
Gets binary data at a given offset. @type offset: int @param offset: The offset to get the data from. @type size: int @param size: The size of the data to be obtained. @rtype: str @return: The data obtained at the given offset.
(module (function_definition (function_name__parse_jing_output) function_name__parse_jing_output (parameters (identifier_output) identifier_output )parameters (block (expression_statement (assignment (identifier_output) identifier_output (call (attribute (identifier_output) identifier_output (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_values) identifier_values (list_comprehension (call (identifier__parse_jing_line) identifier__parse_jing_line (argument_list (identifier_l) identifier_l )argument_list )call (for_in_clause (identifier_l) identifier_l (call (attribute (identifier_output) identifier_output (identifier_split) identifier_split )attribute (argument_list (string_'\n') string_'\n' )argument_list )call )for_in_clause (if_clause (identifier_l) identifier_l )if_clause )list_comprehension )assignment )expression_statement (return_statement (call (identifier_tuple) identifier_tuple (argument_list (identifier_values) identifier_values )argument_list )call )return_statement )block )function_definition )module
Parse the jing output into a tuple of line, column, type and message.
(module (function_definition (function_name_getExpressionLevels) function_name_getExpressionLevels (parameters (identifier_self) identifier_self (default_parameter (identifier_threshold) identifier_threshold (float_0.0) float_0.0 )default_parameter (default_parameter (identifier_names) identifier_names (list )list )default_parameter (default_parameter (identifier_startIndex) identifier_startIndex (integer_0) integer_0 )default_parameter (default_parameter (identifier_maxResults) identifier_maxResults (integer_0) integer_0 )default_parameter )parameters (block (expression_statement (assignment (identifier_rnaQuantificationId) identifier_rnaQuantificationId (call (attribute (identifier_self) identifier_self (identifier_getLocalId) identifier_getLocalId )attribute (argument_list )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (attribute (identifier_self) identifier_self (identifier__db) identifier__db )attribute (as_pattern_target (identifier_dataSource) identifier_dataSource )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_expressionsReturned) identifier_expressionsReturned (call (attribute (identifier_dataSource) identifier_dataSource (identifier_searchExpressionLevelsInDb) identifier_searchExpressionLevelsInDb )attribute (argument_list (identifier_rnaQuantificationId) identifier_rnaQuantificationId (keyword_argument (identifier_names) identifier_names (identifier_names) identifier_names )keyword_argument (keyword_argument (identifier_threshold) identifier_threshold (identifier_threshold) identifier_threshold )keyword_argument (keyword_argument (identifier_startIndex) identifier_startIndex (identifier_startIndex) identifier_startIndex )keyword_argument (keyword_argument (identifier_maxResults) identifier_maxResults (identifier_maxResults) identifier_maxResults )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_expressionLevels) identifier_expressionLevels (list_comprehension (call (identifier_SqliteExpressionLevel) identifier_SqliteExpressionLevel (argument_list (identifier_self) identifier_self (identifier_expressionEntry) identifier_expressionEntry )argument_list )call (for_in_clause (identifier_expressionEntry) identifier_expressionEntry (identifier_expressionsReturned) identifier_expressionsReturned )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (identifier_expressionLevels) identifier_expressionLevels )return_statement )block )with_statement )block )function_definition )module
Returns the list of ExpressionLevels in this RNA Quantification.
(module (function_definition (function_name_detect) function_name_detect (parameters (identifier_byte_str) identifier_byte_str )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_byte_str) identifier_byte_str (identifier_bytearray) identifier_bytearray )argument_list )call )not_operator (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_byte_str) identifier_byte_str (identifier_bytes) identifier_bytes )argument_list )call )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (call (attribute (concatenated_string (string_'Expected object of type bytes or bytearray, got: ') string_'Expected object of type bytes or bytearray, got: ' (string_'{0}') string_'{0}' )concatenated_string (identifier_format) identifier_format )attribute (argument_list (call (identifier_type) identifier_type (argument_list (identifier_byte_str) identifier_byte_str )argument_list )call )argument_list )call )argument_list )call )raise_statement )block (else_clause (block (expression_statement (assignment (identifier_byte_str) identifier_byte_str (call (identifier_bytearray) identifier_bytearray (argument_list (identifier_byte_str) identifier_byte_str )argument_list )call )assignment )expression_statement )block )else_clause )if_statement )block )if_statement (expression_statement (assignment (identifier_detector) identifier_detector (call (identifier_UniversalDetector) identifier_UniversalDetector (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_detector) identifier_detector (identifier_feed) identifier_feed )attribute (argument_list (identifier_byte_str) identifier_byte_str )argument_list )call )expression_statement (return_statement (call (attribute (identifier_detector) identifier_detector (identifier_close) identifier_close )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray``
(module (function_definition (function_name_security_label_pivot) function_name_security_label_pivot (parameters (identifier_self) identifier_self (identifier_security_label_resource) identifier_security_label_resource )parameters (block (expression_statement (assignment (identifier_resource) identifier_resource (call (attribute (identifier_self) identifier_self (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_resource) identifier_resource (identifier__request_uri) identifier__request_uri )attribute (call (attribute (string_'{}/{}') string_'{}/{}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_security_label_resource) identifier_security_label_resource (identifier_request_uri) identifier_request_uri )attribute (attribute (identifier_resource) identifier_resource (identifier__request_uri) identifier__request_uri )attribute )argument_list )call )assignment )expression_statement (return_statement (identifier_resource) identifier_resource )return_statement )block )function_definition )module
Pivot point on security labels for this resource. This method will return all *resources* (group, indicators, task, victims, etc) for this resource that have the provided security label applied. **Example Endpoints URI's** +--------------+----------------------------------------------------------------------+ | HTTP Method | API Endpoint URI's | +==============+======================================================================+ | GET | /v2/securityLabels/{resourceId}/groups/{resourceType} | +--------------+----------------------------------------------------------------------+ | GET | /v2/securityLabels/{resourceId}/groups/{resourceType}/{uniqueId} | +--------------+----------------------------------------------------------------------+ | GET | /v2/securityLabels/{resourceId}/indicators/{resourceType} | +--------------+----------------------------------------------------------------------+ | GET | /v2/securityLabels/{resourceId}/indicators/{resourceType}/{uniqueId} | +--------------+----------------------------------------------------------------------+ Args: resource_id (string): The resource pivot id (security label name).
(module (function_definition (function_name__get_sorted_cond_keys) function_name__get_sorted_cond_keys (parameters (identifier_self) identifier_self (identifier_keys_list) identifier_keys_list )parameters (block (expression_statement (assignment (identifier_cond_list) identifier_cond_list (list )list )assignment )expression_statement (for_statement (identifier_key) identifier_key (identifier_keys_list) identifier_keys_list (block (if_statement (call (attribute (identifier_key) identifier_key (identifier_startswith) identifier_startswith )attribute (argument_list (string_'analysisservice-') string_'analysisservice-' )argument_list )call (block (expression_statement (call (attribute (identifier_cond_list) identifier_cond_list (identifier_append) identifier_append )attribute (argument_list (identifier_key) identifier_key )argument_list )call )expression_statement )block )if_statement )block )for_statement (expression_statement (call (attribute (identifier_cond_list) identifier_cond_list (identifier_sort) identifier_sort )attribute (argument_list )argument_list )call )expression_statement (return_statement (identifier_cond_list) identifier_cond_list )return_statement )block )function_definition )module
This function returns only the elements starting with 'analysisservice-' in 'keys_list'. The returned list is sorted by the index appended to the end of each element
(module (function_definition (function_name_get_writer_position) function_name_get_writer_position (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_cursor) identifier_cursor (attribute (identifier_self) identifier_self (identifier_cursor) identifier_cursor )attribute )assignment )expression_statement (expression_statement (call (attribute (identifier_cursor) identifier_cursor (identifier_execute) identifier_execute )attribute (argument_list (concatenated_string (string_'SELECT timestamp FROM gauged_writer_history ') string_'SELECT timestamp FROM gauged_writer_history ' (string_'WHERE id = %s') string_'WHERE id = %s' )concatenated_string (tuple (identifier_name) identifier_name )tuple )argument_list )call )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (attribute (identifier_cursor) identifier_cursor (identifier_fetchone) identifier_fetchone )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (conditional_expression (subscript (identifier_result) identifier_result (integer_0) integer_0 )subscript (identifier_result) identifier_result (integer_0) integer_0 )conditional_expression )return_statement )block )function_definition )module
Get the current writer position
(module (function_definition (function_name_cat) function_name_cat (parameters (identifier_dataset) identifier_dataset (identifier_query) identifier_query (identifier_bounds) identifier_bounds (identifier_indent) identifier_indent (identifier_compact) identifier_compact (identifier_dst_crs) identifier_dst_crs (identifier_pagesize) identifier_pagesize (identifier_sortby) identifier_sortby )parameters (block (expression_statement (assignment (identifier_dump_kwds) identifier_dump_kwds (dictionary (pair (string_"sort_keys") string_"sort_keys" (True) True )pair )dictionary )assignment )expression_statement (if_statement (identifier_indent) identifier_indent (block (expression_statement (assignment (subscript (identifier_dump_kwds) identifier_dump_kwds (string_"indent") string_"indent" )subscript (identifier_indent) identifier_indent )assignment )expression_statement )block )if_statement (if_statement (identifier_compact) identifier_compact (block (expression_statement (assignment (subscript (identifier_dump_kwds) identifier_dump_kwds (string_"separators") string_"separators" )subscript (tuple (string_",") string_"," (string_":") string_":" )tuple )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_table) identifier_table (call (attribute (identifier_bcdata) identifier_bcdata (identifier_validate_name) identifier_validate_name )attribute (argument_list (identifier_dataset) identifier_dataset )argument_list )call )assignment )expression_statement (for_statement (identifier_feat) identifier_feat (call (attribute (identifier_bcdata) identifier_bcdata (identifier_get_features) identifier_get_features )attribute (argument_list (identifier_table) identifier_table (keyword_argument (identifier_query) identifier_query (identifier_query) identifier_query )keyword_argument (keyword_argument (identifier_bounds) identifier_bounds (identifier_bounds) identifier_bounds )keyword_argument (keyword_argument (identifier_sortby) identifier_sortby (identifier_sortby) identifier_sortby )keyword_argument (keyword_argument (identifier_crs) identifier_crs (identifier_dst_crs) identifier_dst_crs )keyword_argument )argument_list )call (block (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_feat) identifier_feat (dictionary_splat (identifier_dump_kwds) identifier_dump_kwds )dictionary_splat )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Write DataBC features to stdout as GeoJSON feature objects.
(module (function_definition (function_name_create_vip) function_name_create_vip (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_Vip) identifier_Vip (argument_list (attribute (identifier_self) identifier_self (identifier_networkapi_url) identifier_networkapi_url )attribute (attribute (identifier_self) identifier_self (identifier_user) identifier_user )attribute (attribute (identifier_self) identifier_self (identifier_password) identifier_password )attribute (attribute (identifier_self) identifier_self (identifier_user_ldap) identifier_user_ldap )attribute )argument_list )call )return_statement )block )function_definition )module
Get an instance of vip services facade.
(module (function_definition (function_name_authorization_link) function_name_authorization_link (parameters (identifier_self) identifier_self (identifier_redirect_uri) identifier_redirect_uri )parameters (block (expression_statement (assignment (identifier_args) identifier_args (binary_operator (string_'?client_id=%s&redirect_uri=%s') string_'?client_id=%s&redirect_uri=%s' (tuple (attribute (identifier_self) identifier_self (identifier_app_key) identifier_app_key )attribute (identifier_redirect_uri) identifier_redirect_uri )tuple )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_uri) identifier_uri (call (attribute (string_"/") string_"/" (identifier_join) identifier_join )attribute (argument_list (list (identifier_BASE_URL) identifier_BASE_URL (identifier_API_VERSION) identifier_API_VERSION (identifier_OAUTH) identifier_OAUTH (identifier_args) identifier_args )list )argument_list )call )assignment )expression_statement (return_statement (identifier_uri) identifier_uri )return_statement )block )function_definition )module
Construct OAuth2 authorization link. Params: redirect_uri -> URI for receiving callback with token Returns authorization URL as string
(module (function_definition (function_name_append) function_name_append (parameters (identifier_self) identifier_self (identifier_objects) identifier_objects )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_objects) identifier_objects (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call )not_operator (block (expression_statement (assignment (identifier_objects) identifier_objects (tuple (identifier_objects) identifier_objects )tuple )assignment )expression_statement )block )if_statement (for_statement (identifier_child) identifier_child (identifier_objects) identifier_objects (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_child) identifier_child (identifier_Element) identifier_Element )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_children) identifier_children )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_child) identifier_child )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_child) identifier_child (identifier_parent) identifier_parent )attribute (identifier_self) identifier_self )assignment )expression_statement (continue_statement )continue_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_child) identifier_child (identifier_Attribute) identifier_Attribute )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_attributes) identifier_attributes )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_child) identifier_child )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_child) identifier_child (identifier_parent) identifier_parent )attribute (identifier_self) identifier_self )assignment )expression_statement (continue_statement )continue_statement )block )if_statement (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (binary_operator (string_"append %s not-valid") string_"append %s not-valid" (tuple (attribute (attribute (identifier_child) identifier_child (identifier___class__) identifier___class__ )attribute (identifier___name__) identifier___name__ )attribute )tuple )binary_operator )argument_list )call )raise_statement )block )for_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Append the specified child based on whether it is an element or an attribute. @param objects: A (single|collection) of attribute(s) or element(s) to be added as children. @type objects: (L{Element}|L{Attribute}) @return: self @rtype: L{Element}
(module (function_definition (function_name_clear_annotation_data) function_name_clear_annotation_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_genes) identifier_genes )attribute (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_annotations) identifier_annotations )attribute (list )list )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_term_annotations) identifier_term_annotations )attribute (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_gene_annotations) identifier_gene_annotations )attribute (dictionary )dictionary )assignment )expression_statement )block )function_definition )module
Clear annotation data. Parameters ---------- Returns ------- None
(module (function_definition (function_name_uptime) function_name_uptime (parameters )parameters (block (import_from_statement (dotted_name (identifier_datetime) identifier_datetime )dotted_name (dotted_name (identifier_timedelta) identifier_timedelta )dotted_name )import_from_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (string_'/proc/uptime') string_'/proc/uptime' (string_'r') string_'r' )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_uptime_seconds) identifier_uptime_seconds (call (identifier_float) identifier_float (argument_list (subscript (call (attribute (call (attribute (identifier_f) identifier_f (identifier_readline) identifier_readline )attribute (argument_list )argument_list )call (identifier_split) identifier_split )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_uptime_string) identifier_uptime_string (call (identifier_str) identifier_str (argument_list (call (identifier_timedelta) identifier_timedelta (argument_list (keyword_argument (identifier_seconds) identifier_seconds (identifier_uptime_seconds) identifier_uptime_seconds )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement )block )with_statement (expression_statement (call (attribute (identifier_bob) identifier_bob (identifier_says) identifier_says )attribute (argument_list (identifier_uptime_string) identifier_uptime_string )argument_list )call )expression_statement )block )function_definition )module
Uptime of the host machine
(module (function_definition (function_name__from_dict) function_name__from_dict (parameters (identifier_cls) identifier_cls (identifier__dict) identifier__dict )parameters (block (expression_statement (assignment (identifier_args) identifier_args (dictionary )dictionary )assignment )expression_statement (if_statement (comparison_operator (string_'expansions') string_'expansions' (identifier__dict) identifier__dict )comparison_operator (block (expression_statement (assignment (subscript (identifier_args) identifier_args (string_'expansions') string_'expansions' )subscript (list_comprehension (call (attribute (identifier_Expansion) identifier_Expansion (identifier__from_dict) identifier__from_dict )attribute (argument_list (identifier_x) identifier_x )argument_list )call (for_in_clause (identifier_x) identifier_x (parenthesized_expression (call (attribute (identifier__dict) identifier__dict (identifier_get) identifier_get )attribute (argument_list (string_'expansions') string_'expansions' )argument_list )call )parenthesized_expression )for_in_clause )list_comprehension )assignment )expression_statement )block (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Required property \'expansions\' not present in Expansions JSON') string_'Required property \'expansions\' not present in Expansions JSON' )argument_list )call )raise_statement )block )else_clause )if_statement (return_statement (call (identifier_cls) identifier_cls (argument_list (dictionary_splat (identifier_args) identifier_args )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Initialize a Expansions object from a json dictionary.
(module (function_definition (function_name_replay) function_name_replay (parameters (identifier_journal_entry) identifier_journal_entry (identifier_function) identifier_function (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_section) identifier_section (call (attribute (identifier_fiber) identifier_fiber (identifier_WovenSection) identifier_WovenSection )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_section) identifier_section (identifier_enter) identifier_enter )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_journal_mode) identifier_journal_mode (call (attribute (attribute (identifier_section) identifier_section (identifier_state) identifier_state )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_RECMODE_TAG) identifier_RECMODE_TAG (None) None )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_is_first) identifier_is_first (comparison_operator (identifier_journal_mode) identifier_journal_mode (None) None )comparison_operator )assignment )expression_statement (if_statement (identifier_is_first) identifier_is_first (block (expression_statement (assignment (subscript (attribute (identifier_section) identifier_section (identifier_state) identifier_state )attribute (identifier_RECMODE_TAG) identifier_RECMODE_TAG )subscript (attribute (identifier_JournalMode) identifier_JournalMode (identifier_replay) identifier_replay )attribute )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_section) identifier_section (identifier_state) identifier_state )attribute (identifier_JOURNAL_ENTRY_TAG) identifier_JOURNAL_ENTRY_TAG )subscript (call (identifier_IJournalReplayEntry) identifier_IJournalReplayEntry (argument_list (identifier_journal_entry) identifier_journal_entry )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_function) identifier_function (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_section) identifier_section (identifier_abort) identifier_abort )attribute (argument_list (identifier_result) identifier_result )argument_list )call )expression_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Calls method in replay context so that no journal entries are created, expected_side_effects are checked, and no asynchronous task is started. The journal entry is only used to fetch side-effects results.
(module (function_definition (function_name_resolve) function_name_resolve (parameters (identifier_checks) identifier_checks (identifier_lazy) identifier_lazy (identifier_quiet) identifier_quiet )parameters (block (expression_statement (assignment (identifier_root) identifier_root (call (identifier_get_root) identifier_get_root (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (string_'all') string_'all' (identifier_checks) identifier_checks )comparison_operator (block (expression_statement (assignment (identifier_checks) identifier_checks (call (attribute (identifier_os) identifier_os (identifier_listdir) identifier_listdir )attribute (argument_list (identifier_root) identifier_root )argument_list )call )assignment )expression_statement )block )if_statement (for_statement (identifier_check_name) identifier_check_name (call (identifier_sorted) identifier_sorted (argument_list (identifier_checks) identifier_checks )argument_list )call (block (expression_statement (assignment (identifier_pinned_reqs_file) identifier_pinned_reqs_file (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_root) identifier_root (identifier_check_name) identifier_check_name (string_'requirements.in') string_'requirements.in' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_resolved_reqs_file) identifier_resolved_reqs_file (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_root) identifier_root (identifier_check_name) identifier_check_name (string_'requirements.txt') string_'requirements.txt' )argument_list )call )assignment )expression_statement (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_pinned_reqs_file) identifier_pinned_reqs_file )argument_list )call (block (if_statement (not_operator (identifier_quiet) identifier_quiet )not_operator (block (expression_statement (call (identifier_echo_info) identifier_echo_info (argument_list (call (attribute (string_'Check `{}`:') string_'Check `{}`:' (identifier_format) identifier_format )attribute (argument_list (identifier_check_name) identifier_check_name )argument_list )call )argument_list )call )expression_statement )block )if_statement (if_statement (not_operator (identifier_quiet) identifier_quiet )not_operator (block (expression_statement (call (identifier_echo_waiting) identifier_echo_waiting (argument_list (string_' Resolving dependencies...') string_' Resolving dependencies...' )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_pre_packages) identifier_pre_packages (call (identifier_read_packages) identifier_read_packages (argument_list (identifier_resolved_reqs_file) identifier_resolved_reqs_file )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_resolve_requirements) identifier_resolve_requirements (argument_list (identifier_pinned_reqs_file) identifier_pinned_reqs_file (identifier_resolved_reqs_file) identifier_resolved_reqs_file (keyword_argument (identifier_lazy) identifier_lazy (identifier_lazy) identifier_lazy )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (attribute (identifier_result) identifier_result (identifier_code) identifier_code )attribute (block (expression_statement (call (identifier_abort) identifier_abort (argument_list (binary_operator (attribute (identifier_result) identifier_result (identifier_stdout) identifier_stdout )attribute (attribute (identifier_result) identifier_result (identifier_stderr) identifier_stderr )attribute )binary_operator )argument_list )call )expression_statement )block )if_statement (if_statement (not_operator (identifier_quiet) identifier_quiet )not_operator (block (expression_statement (assignment (identifier_post_packages) identifier_post_packages (call (identifier_read_packages) identifier_read_packages (argument_list (identifier_resolved_reqs_file) identifier_resolved_reqs_file )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_display_package_changes) identifier_display_package_changes (argument_list (identifier_pre_packages) identifier_pre_packages (identifier_post_packages) identifier_post_packages (keyword_argument (identifier_indent) identifier_indent (string_' ') string_' ' )keyword_argument )argument_list )call )expression_statement )block )if_statement )block )if_statement )block )for_statement )block )function_definition )module
Resolve transient dependencies for any number of checks. If you want to do this en masse, put `all`.