sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_parser) identifier_parser
(identifier_args) identifier_args
)pattern_list
(call
(identifier_parser_factory) identifier_parser_factory
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier_action_runner) identifier_action_runner
(argument_list
(identifier_parser) identifier_parser
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_uncaught) identifier_uncaught
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_unhandled) identifier_unhandled
(argument_list
(identifier_uncaught) identifier_uncaught
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Entrypoint, sweet Entrypoint |
(module
(function_definition
(function_name_encode_setid) function_name_encode_setid
(parameters
(identifier_uint128) identifier_uint128
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_hi) identifier_hi
(identifier_lo) identifier_lo
)pattern_list
(call
(identifier_divmod) identifier_divmod
(argument_list
(identifier_uint128) identifier_uint128
(binary_operator
(integer_2) integer_2
(integer_64) integer_64
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(subscript
(call
(identifier_b32encode) identifier_b32encode
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'<QQ') string_'<QQ'
(identifier_lo) identifier_lo
(identifier_hi) identifier_hi
)argument_list
)call
)argument_list
)call
(slice
(colon) colon
(unary_operator
(integer_6) integer_6
)unary_operator
)slice
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Encode uint128 setid as stripped b32encoded string |
(module
(function_definition
(function_name___to_browser) function_name___to_browser
(parameters
(identifier_self) identifier_self
(identifier_message_no) identifier_message_no
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(identifier_self) identifier_self
(identifier___to_file) identifier___to_file
)attribute
(argument_list
(identifier_message_no) identifier_message_no
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'General') string_'General'
(string_'browser_command') string_'browser_command'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(attribute
(identifier_ConfigParser) identifier_ConfigParser
(identifier_NoOptionError) identifier_NoOptionError
)attribute
(identifier_AttributeError) identifier_AttributeError
)tuple
(block
(print_statement
(string_'Incorrect or missing .ini file. See --help.') string_'Incorrect or missing .ini file. See --help.'
)print_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_5) integer_5
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_command) identifier_command
)argument_list
)call
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command_list) identifier_command_list
(call
(attribute
(identifier_command) identifier_command
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(identifier_command_list) identifier_command_list
(keyword_argument
(identifier_stdout) identifier_stdout
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_OSError) identifier_OSError
(block
(print_statement
(string_'Unable to execute the browsercommand:') string_'Unable to execute the browsercommand:'
)print_statement
(print_statement
(identifier_command) identifier_command
)print_statement
(print_statement
(string_'Exiting!') string_'Exiting!'
)print_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_21) integer_21
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Write a single message to file and open the file in a
browser |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_process) identifier_process
)attribute
(identifier_appendproctitle) identifier_appendproctitle
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_halite) identifier_halite
(identifier_start) identifier_start
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_hopts) identifier_hopts
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Fire up halite! |
(module
(function_definition
(function_name_show_env) function_name_show_env
(parameters
(identifier_self) identifier_self
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dialog_manager) identifier_dialog_manager
)attribute
(identifier_show) identifier_show
)attribute
(argument_list
(call
(identifier_RemoteEnvDialog) identifier_RemoteEnvDialog
(argument_list
(identifier_env) identifier_env
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Show environment variables. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_alias_name) identifier_alias_name
(default_parameter
(identifier_timeout) identifier_timeout
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_URI) identifier_URI
)attribute
(string_"/") string_"/"
)binary_operator
(identifier_alias_name) identifier_alias_name
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_uri) identifier_uri
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Revokes a certificate signed by the internal CA. If client certificate to be revoked is RabbitMQ_readonly,
then the internal CA root certificate, RabbitMQ client certificate and RabbitMQ server certificate will be
regenerated. This will invalidate the previous version of RabbitMQ client certificate and the RabbitMQ server
will be restarted to read the latest certificates.
Args:
alias_name (str): Alias name.
timeout:
Timeout in seconds. Wait for task completion by default. The timeout does not abort the operation
in OneView, just stop waiting for its completion. |
(module
(function_definition
(function_name_block) function_name_block
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_warn_only) identifier_warn_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__state) identifier__state
)attribute
(string_"not finished") string_"not finished"
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__return_code) identifier__return_code
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_proc) identifier_proc
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(identifier_self) identifier_self
(identifier_cwd) identifier_cwd
)attribute
)keyword_argument
(keyword_argument
(identifier_env) identifier_env
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier__stdout) identifier__stdout
)attribute
(attribute
(identifier_self) identifier_self
(identifier__stderr) identifier__stderr
)attribute
)pattern_list
(call
(attribute
(identifier_proc) identifier_proc
(identifier_communicate) identifier_communicate
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__return_code) identifier__return_code
)attribute
(attribute
(identifier_proc) identifier_proc
(identifier_returncode) identifier_returncode
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__state) identifier__state
)attribute
(identifier_FINISHED) identifier_FINISHED
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_warn_only) identifier_warn_only
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_raise_for_error) identifier_raise_for_error
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | blocked executation. |
(module
(function_definition
(function_name_config_read) function_name_config_read
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_config_file) identifier_config_file
(parenthesized_expression
(call
(attribute
(string_u"{0}config.ini") string_u"{0}config.ini"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_CONFIG_DIR) identifier_CONFIG_DIR
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_config_file) identifier_config_file
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_config_make) identifier_config_make
(argument_list
(identifier_config_file) identifier_config_file
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(identifier_configparser) identifier_configparser
(identifier_ConfigParser) identifier_ConfigParser
)attribute
(argument_list
(keyword_argument
(identifier_allow_no_value) identifier_allow_no_value
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_config_file) identifier_config_file
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"Error reading config file: {}") string_"Error reading config file: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_config_file) identifier_config_file
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_providers) identifier_providers
(call
(identifier_config_prov) identifier_config_prov
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_cred) identifier_cred
(identifier_to_remove) identifier_to_remove
)tuple_pattern
(call
(identifier_config_cred) identifier_config_cred
(argument_list
(identifier_config) identifier_config
(identifier_providers) identifier_providers
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_to_remove) identifier_to_remove
(block
(expression_statement
(call
(attribute
(identifier_providers) identifier_providers
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_cred) identifier_cred
(identifier_providers) identifier_providers
)expression_list
)return_statement
)block
)function_definition
)module | Read config info from config file. |
(module
(function_definition
(function_name_get_calling_file) function_name_get_calling_file
(parameters
(default_parameter
(identifier_file_path) identifier_file_path
(None) None
)default_parameter
(default_parameter
(identifier_result) identifier_result
(string_'name') string_'name'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_file_path) identifier_file_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(subscript
(subscript
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_stack) identifier_stack
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(identifier_file_path) identifier_file_path
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(call
(attribute
(subscript
(call
(attribute
(identifier_path) identifier_path
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(string_'name') string_'name'
)comparison_operator
(block
(return_statement
(identifier_name) identifier_name
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_result) identifier_result
(string_'path') string_'path'
)comparison_operator
(block
(return_statement
(identifier_path) identifier_path
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(expression_list
(identifier_path) identifier_path
(identifier_name) identifier_name
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieve file_name or file_path of calling Python script |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_can_update) identifier_can_update
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_handle_error) identifier_handle_error
)attribute
(argument_list
(integer_910) integer_910
(list
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tc_requests) identifier_tc_requests
)attribute
(identifier_download) identifier_download
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_type) identifier_api_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_sub_type) identifier_api_sub_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Downloads the signature.
Returns: |
(module
(function_definition
(function_name__time_query_parms) function_name__time_query_parms
(parameters
(identifier_begin_time) identifier_begin_time
(identifier_end_time) identifier_end_time
)parameters
(block
(expression_statement
(assignment
(identifier_query_parms) identifier_query_parms
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_begin_time) identifier_begin_time
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_begin_ts) identifier_begin_ts
(call
(identifier_timestamp_from_datetime) identifier_timestamp_from_datetime
(argument_list
(identifier_begin_time) identifier_begin_time
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_qp) identifier_qp
(call
(attribute
(string_'begin-time={}') string_'begin-time={}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_begin_ts) identifier_begin_ts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_query_parms) identifier_query_parms
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_qp) identifier_qp
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_end_time) identifier_end_time
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_end_ts) identifier_end_ts
(call
(identifier_timestamp_from_datetime) identifier_timestamp_from_datetime
(argument_list
(identifier_end_time) identifier_end_time
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_qp) identifier_qp
(call
(attribute
(string_'end-time={}') string_'end-time={}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_end_ts) identifier_end_ts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_query_parms) identifier_query_parms
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_qp) identifier_qp
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_query_parms_str) identifier_query_parms_str
(call
(attribute
(string_'&') string_'&'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_query_parms) identifier_query_parms
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_query_parms_str) identifier_query_parms_str
(block
(expression_statement
(assignment
(identifier_query_parms_str) identifier_query_parms_str
(binary_operator
(string_'?') string_'?'
(identifier_query_parms_str) identifier_query_parms_str
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_query_parms_str) identifier_query_parms_str
)return_statement
)block
)function_definition
)module | Return the URI query paramterer string for the specified begin time
and end time. |
(module
(function_definition
(function_name_event_date) function_name_event_date
(parameters
(identifier_self) identifier_self
(identifier_event_date) identifier_event_date
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__group_data) identifier__group_data
)attribute
(string_'eventDate') string_'eventDate'
)subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__utils) identifier__utils
)attribute
(identifier_format_datetime) identifier_format_datetime
)attribute
(argument_list
(identifier_event_date) identifier_event_date
(keyword_argument
(identifier_date_format) identifier_date_format
(string_'%Y-%m-%dT%H:%M:%SZ') string_'%Y-%m-%dT%H:%M:%SZ'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set the Events "event date" value. |
(module
(function_definition
(function_name_version) function_name_version
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(binary_operator
(string_"%s.%s") string_"%s.%s"
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___module__) identifier___module__
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(string_"%s [%s]") string_"%s [%s]"
(tuple
(attribute
(identifier_settings) identifier_settings
(identifier_GNOTTY_VERSION_STRING) identifier_GNOTTY_VERSION_STRING
)attribute
(identifier_name) identifier_name
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Shows version information. |
(module
(function_definition
(function_name_init_app) function_name_init_app
(parameters
(identifier_self) identifier_self
(identifier_app) identifier_app
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__key) identifier__key
)attribute
(boolean_operator
(call
(attribute
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_CONF_KEY) identifier_CONF_KEY
)argument_list
)call
(call
(identifier_getenv) identifier_getenv
(argument_list
(identifier_CONF_KEY) identifier_CONF_KEY
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__key) identifier__key
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__endpoint_uri) identifier__endpoint_uri
)attribute
(call
(attribute
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_CONF_ENDPOINT_URI) identifier_CONF_ENDPOINT_URI
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sender) identifier_sender
(call
(identifier_AsynchronousSender) identifier_AsynchronousSender
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__endpoint_uri) identifier__endpoint_uri
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_queue) identifier_queue
(call
(identifier_AsynchronousQueue) identifier_AsynchronousQueue
(argument_list
(identifier_sender) identifier_sender
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__channel) identifier__channel
)attribute
(call
(identifier_TelemetryChannel) identifier_TelemetryChannel
(argument_list
(None) None
(identifier_queue) identifier_queue
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init_request_logging) identifier__init_request_logging
)attribute
(argument_list
(identifier_app) identifier_app
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init_trace_logging) identifier__init_trace_logging
)attribute
(argument_list
(identifier_app) identifier_app
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init_exception_logging) identifier__init_exception_logging
)attribute
(argument_list
(identifier_app) identifier_app
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initializes the extension for the provided Flask application.
Args:
app (flask.Flask). the Flask application for which to initialize the extension. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_file_object) identifier_file_object
(list_splat_pattern
(identifier_transformers) identifier_transformers
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ignore_remaining_data) identifier_ignore_remaining_data
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"ignore_remaining_data") string_"ignore_remaining_data"
(False) False
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_marshaller) identifier_marshaller
(call
(identifier_JavaObjectUnmarshaller) identifier_JavaObjectUnmarshaller
(argument_list
(identifier_file_object) identifier_file_object
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"use_numpy_arrays") string_"use_numpy_arrays"
(False) False
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_transformer) identifier_transformer
(identifier_transformers) identifier_transformers
(block
(expression_statement
(call
(attribute
(identifier_marshaller) identifier_marshaller
(identifier_add_transformer) identifier_add_transformer
)attribute
(argument_list
(identifier_transformer) identifier_transformer
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_marshaller) identifier_marshaller
(identifier_add_transformer) identifier_add_transformer
)attribute
(argument_list
(call
(identifier_DefaultObjectTransformer) identifier_DefaultObjectTransformer
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_marshaller) identifier_marshaller
(identifier_readObject) identifier_readObject
)attribute
(argument_list
(keyword_argument
(identifier_ignore_remaining_data) identifier_ignore_remaining_data
(identifier_ignore_remaining_data) identifier_ignore_remaining_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deserializes Java primitive data and objects serialized using
ObjectOutputStream from a file-like object.
:param file_object: A file-like object
:param transformers: Custom transformers to use
:param ignore_remaining_data: If True, don't log an error when unused
trailing bytes are remaining
:return: The deserialized object |
(module
(function_definition
(function_name_image_feature_engineering) function_name_image_feature_engineering
(parameters
(identifier_features) identifier_features
(identifier_feature_tensors_dict) identifier_feature_tensors_dict
)parameters
(block
(expression_statement
(assignment
(identifier_engineered_features) identifier_engineered_features
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_feature_tensor) identifier_feature_tensor
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_feature_tensors_dict) identifier_feature_tensors_dict
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_name) identifier_name
(identifier_features) identifier_features
)comparison_operator
(comparison_operator
(subscript
(subscript
(identifier_features) identifier_features
(identifier_name) identifier_name
)subscript
(string_'transform') string_'transform'
)subscript
(identifier_IMAGE_TRANSFORM) identifier_IMAGE_TRANSFORM
)comparison_operator
)boolean_operator
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_name_scope) identifier_name_scope
)attribute
(argument_list
(identifier_name) identifier_name
(string_'Wx_plus_b') string_'Wx_plus_b'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_hidden) identifier_hidden
(call
(attribute
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_contrib) identifier_contrib
)attribute
(identifier_layers) identifier_layers
)attribute
(identifier_fully_connected) identifier_fully_connected
)attribute
(argument_list
(identifier_feature_tensor) identifier_feature_tensor
(identifier_IMAGE_HIDDEN_TENSOR_SIZE) identifier_IMAGE_HIDDEN_TENSOR_SIZE
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_engineered_features) identifier_engineered_features
(identifier_name) identifier_name
)subscript
(identifier_hidden) identifier_hidden
)assignment
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_engineered_features) identifier_engineered_features
(identifier_name) identifier_name
)subscript
(identifier_feature_tensor) identifier_feature_tensor
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_engineered_features) identifier_engineered_features
)return_statement
)block
)function_definition
)module | Add a hidden layer on image features.
Args:
features: features dict
feature_tensors_dict: dict of feature-name: tensor |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__autosettings_path) identifier__autosettings_path
)attribute
(None) None
)comparison_operator
(block
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_gui_settings_dir) identifier_gui_settings_dir
(call
(attribute
(attribute
(identifier__os) identifier__os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier__cwd) identifier__cwd
(string_'egg_settings') string_'egg_settings'
)argument_list
)call
)assignment
)expression_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_gui_settings_dir) identifier_gui_settings_dir
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier__os) identifier__os
(identifier_mkdir) identifier_mkdir
)attribute
(argument_list
(identifier_gui_settings_dir) identifier_gui_settings_dir
)argument_list
)call
)expression_statement
)block
)if_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
(identifier_gui_settings_dir) identifier_gui_settings_dir
(attribute
(identifier_self) identifier_self
(identifier__autosettings_path) identifier__autosettings_path
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier__d) identifier__d
(identifier_databox) identifier_databox
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_keys) identifier_keys
(identifier_dictionary) identifier_dictionary
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_dictionary) identifier_get_dictionary
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(identifier_keys) identifier_keys
(block
(expression_statement
(call
(attribute
(identifier_d) identifier_d
(identifier_insert_header) identifier_insert_header
)attribute
(argument_list
(identifier_k) identifier_k
(subscript
(identifier_dictionary) identifier_dictionary
(identifier_k) identifier_k
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_d) identifier_d
(identifier_save_file) identifier_save_file
)attribute
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_force_overwrite) identifier_force_overwrite
(True) True
)keyword_argument
(keyword_argument
(identifier_header_only) identifier_header_only
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(binary_operator
(string_'Warning: could not save ') string_'Warning: could not save '
(call
(attribute
(identifier_path) identifier_path
(identifier___repr__) identifier___repr__
)attribute
(argument_list
)argument_list
)call
)binary_operator
(string_' once. Could be that this is being called too rapidly.') string_' once. Could be that this is being called too rapidly.'
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Saves all the parameters to a text file using the databox
functionality. If path=None, saves to self._autosettings_path. If
self._autosettings_path=None, does not save. |
(module
(function_definition
(function_name__modify_eni_properties) function_name__modify_eni_properties
(parameters
(identifier_eni_id) identifier_eni_id
(default_parameter
(identifier_properties) identifier_properties
(None) None
)default_parameter
(default_parameter
(identifier_vm_) identifier_vm_
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_properties) identifier_properties
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_SaltCloudException) identifier_SaltCloudException
(argument_list
(string_'ENI properties must be a dictionary') string_'ENI properties must be a dictionary'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'Action') string_'Action'
(string_'ModifyNetworkInterfaceAttribute') string_'ModifyNetworkInterfaceAttribute'
)pair
(pair
(string_'NetworkInterfaceId') string_'NetworkInterfaceId'
(identifier_eni_id) identifier_eni_id
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_properties) identifier_properties
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_aws) identifier_aws
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_params) identifier_params
(keyword_argument
(identifier_return_root) identifier_return_root
(True) True
)keyword_argument
(keyword_argument
(identifier_location) identifier_location
(call
(identifier_get_location) identifier_get_location
(argument_list
(identifier_vm_) identifier_vm_
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_provider) identifier_provider
(call
(identifier_get_provider) identifier_get_provider
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_opts) identifier_opts
(identifier___opts__) identifier___opts__
)keyword_argument
(keyword_argument
(identifier_sigver) identifier_sigver
(string_'4') string_'4'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_result) identifier_result
(identifier_dict) identifier_dict
)argument_list
)call
(call
(attribute
(identifier_result) identifier_result
(identifier_get) identifier_get
)attribute
(argument_list
(string_'error') string_'error'
)argument_list
)call
)boolean_operator
(block
(raise_statement
(call
(identifier_SaltCloudException) identifier_SaltCloudException
(argument_list
(call
(attribute
(string_'Could not change interface <{0}> attributes <\'{1}\'>') string_'Could not change interface <{0}> attributes <\'{1}\'>'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_eni_id) identifier_eni_id
(identifier_properties) identifier_properties
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Change properties of the interface
with id eni_id to the values in properties dict |
(module
(function_definition
(function_name_is_system_rpm) function_name_is_system_rpm
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_sys_rpm_paths) identifier_sys_rpm_paths
(list
(string_'/usr/bin/rpm') string_'/usr/bin/rpm'
(string_'/bin/rpm') string_'/bin/rpm'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_matched) identifier_matched
(False) False
)assignment
)expression_statement
(for_statement
(identifier_sys_rpm_path) identifier_sys_rpm_path
(identifier_sys_rpm_paths) identifier_sys_rpm_paths
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rpm_path) identifier_rpm_path
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_sys_rpm_path) identifier_sys_rpm_path
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_matched) identifier_matched
(True) True
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_matched) identifier_matched
)return_statement
)block
)function_definition
)module | Check if the RPM is system RPM. |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'StackInABoxService ({0}): Reset') string_'StackInABoxService ({0}): Reset'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___id) identifier___id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
(call
(attribute
(string_'/{0}') string_'/{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'StackInABoxService ({0}): Hosting Service {1}') string_'StackInABoxService ({0}): Hosting Service {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___id) identifier___id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reset the service to its' initial state. |
(module
(function_definition
(function_name_find_gsc_offset) function_name_find_gsc_offset
(parameters
(identifier_image) identifier_image
(default_parameter
(identifier_input_catalog) identifier_input_catalog
(string_'GSC1') string_'GSC1'
)default_parameter
(default_parameter
(identifier_output_catalog) identifier_output_catalog
(string_'GAIA') string_'GAIA'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_serviceType) identifier_serviceType
(string_"GSCConvert/GSCconvert.aspx") string_"GSCConvert/GSCconvert.aspx"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_spec_str) identifier_spec_str
(string_"TRANSFORM={}-{}&IPPPSSOOT={}") string_"TRANSFORM={}-{}&IPPPSSOOT={}"
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'rootname') string_'rootname'
(call
(attribute
(identifier_pf) identifier_pf
(identifier_getheader) identifier_getheader
)attribute
(argument_list
(identifier_image) identifier_image
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ippssoot) identifier_ippssoot
(call
(attribute
(call
(attribute
(identifier_pf) identifier_pf
(identifier_getval) identifier_getval
)attribute
(argument_list
(identifier_image) identifier_image
(string_'rootname') string_'rootname'
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ippssoot) identifier_ippssoot
(call
(attribute
(call
(attribute
(identifier_fu) identifier_fu
(identifier_buildNewRootname) identifier_buildNewRootname
)attribute
(argument_list
(identifier_image) identifier_image
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_spec) identifier_spec
(call
(attribute
(identifier_spec_str) identifier_spec_str
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_input_catalog) identifier_input_catalog
(identifier_output_catalog) identifier_output_catalog
(identifier_ippssoot) identifier_ippssoot
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_serviceUrl) identifier_serviceUrl
(call
(attribute
(string_"{}/{}?{}") string_"{}/{}?{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_SERVICELOCATION) identifier_SERVICELOCATION
(identifier_serviceType) identifier_serviceType
(identifier_spec) identifier_spec
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rawcat) identifier_rawcat
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_serviceUrl) identifier_serviceUrl
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_rawcat) identifier_rawcat
(identifier_ok) identifier_ok
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Problem accessing service with:\n{{}") string_"Problem accessing service with:\n{{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_serviceUrl) identifier_serviceUrl
)argument_list
)call
)argument_list
)call
)expression_statement
(raise_statement
(identifier_ValueError) identifier_ValueError
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_delta_ra) identifier_delta_ra
(assignment
(identifier_delta_dec) identifier_delta_dec
(None) None
)assignment
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tree) identifier_tree
(call
(identifier_BytesIO) identifier_BytesIO
(argument_list
(attribute
(identifier_rawcat) identifier_rawcat
(identifier_content) identifier_content
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier__) identifier__
(identifier_element) identifier_element
)pattern_list
(call
(attribute
(identifier_etree) identifier_etree
(identifier_iterparse) identifier_iterparse
)attribute
(argument_list
(identifier_tree) identifier_tree
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_tag) identifier_tag
)attribute
(string_'deltaRA') string_'deltaRA'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_delta_ra) identifier_delta_ra
(call
(identifier_float) identifier_float
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_tag) identifier_tag
)attribute
(string_'deltaDEC') string_'deltaDEC'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_delta_dec) identifier_delta_dec
(call
(identifier_float) identifier_float
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_delta_ra) identifier_delta_ra
(identifier_delta_dec) identifier_delta_dec
)expression_list
)return_statement
)block
)function_definition
)module | Find the GSC to GAIA offset based on guide star coordinates
Parameters
----------
image : str
Filename of image to be processed.
Returns
-------
delta_ra, delta_dec : tuple of floats
Offset in decimal degrees of image based on correction to guide star
coordinates relative to GAIA. |
(module
(function_definition
(function_name_get_init_args) function_name_get_init_args
(parameters
(identifier_inst_type) identifier_inst_type
(typed_parameter
(identifier_init_args) identifier_init_args
(type
(identifier_dict) identifier_dict
)type
)typed_parameter
(default_parameter
(identifier_add_kwargs) identifier_add_kwargs
(False) False
)default_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_List) identifier_List
)type
(type
(identifier_Dict) identifier_Dict
)type
)type_parameter
)generic_type
)type
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(call
(attribute
(attribute
(call
(identifier_signature) identifier_signature
(argument_list
(identifier_inst_type) identifier_inst_type
)argument_list
)call
(identifier_parameters) identifier_parameters
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args_keys) identifier_args_keys
(list_comprehension
(attribute
(identifier_p) identifier_p
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_p) identifier_p
(identifier_parameters) identifier_parameters
)for_in_clause
(line_continuation_\) line_continuation_\
(if_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_p) identifier_p
(identifier_kind) identifier_kind
)attribute
(list
(attribute
(identifier_Parameter) identifier_Parameter
(identifier_POSITIONAL_ONLY) identifier_POSITIONAL_ONLY
)attribute
(attribute
(identifier_Parameter) identifier_Parameter
(identifier_POSITIONAL_OR_KEYWORD) identifier_POSITIONAL_OR_KEYWORD
)attribute
)list
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(identifier_p) identifier_p
(identifier_default) identifier_default
)attribute
(attribute
(identifier_Parameter) identifier_Parameter
(identifier_empty) identifier_empty
)attribute
)comparison_operator
)boolean_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(list_comprehension
(subscript
(identifier_init_args) identifier_init_args
(identifier_key) identifier_key
)subscript
(for_in_clause
(identifier_key) identifier_key
(identifier_args_keys) identifier_args_keys
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(conditional_expression
(call
(identifier__get_var_kwargs) identifier__get_var_kwargs
(argument_list
(identifier_parameters) identifier_parameters
(identifier_args_keys) identifier_args_keys
(identifier_init_args) identifier_init_args
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_add_kwargs) identifier_add_kwargs
(line_continuation_\) line_continuation_\
(call
(identifier__get_kwargs) identifier__get_kwargs
(argument_list
(identifier_parameters) identifier_parameters
(identifier_init_args) identifier_init_args
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_key_error) identifier_key_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_msg_format) identifier_msg_format
(string_'parameter with key "{0}" is not found in node args') string_'parameter with key "{0}" is not found in node args'
)assignment
)expression_statement
(raise_statement
(call
(identifier_RenderingError) identifier_RenderingError
(argument_list
(call
(attribute
(identifier_msg_format) identifier_msg_format
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(attribute
(identifier_key_error) identifier_key_error
(identifier_args) identifier_args
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(tuple
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)tuple
)return_statement
)block
)function_definition
)module | Returns tuple with args and kwargs to pass it to inst_type constructor |
(module
(function_definition
(function_name_jwt_grant) function_name_jwt_grant
(parameters
(identifier_request) identifier_request
(identifier_token_uri) identifier_token_uri
(identifier_assertion) identifier_assertion
)parameters
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(dictionary
(pair
(string_'assertion') string_'assertion'
(identifier_assertion) identifier_assertion
)pair
(pair
(string_'grant_type') string_'grant_type'
(identifier__JWT_GRANT_TYPE) identifier__JWT_GRANT_TYPE
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response_data) identifier_response_data
(call
(identifier__token_endpoint_request) identifier__token_endpoint_request
(argument_list
(identifier_request) identifier_request
(identifier_token_uri) identifier_token_uri
(identifier_body) identifier_body
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_access_token) identifier_access_token
(subscript
(identifier_response_data) identifier_response_data
(string_'access_token') string_'access_token'
)subscript
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_caught_exc) identifier_caught_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_new_exc) identifier_new_exc
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_RefreshError) identifier_RefreshError
)attribute
(argument_list
(string_'No access token in response.') string_'No access token in response.'
(identifier_response_data) identifier_response_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_raise_from) identifier_raise_from
)attribute
(argument_list
(identifier_new_exc) identifier_new_exc
(identifier_caught_exc) identifier_caught_exc
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_expiry) identifier_expiry
(call
(identifier__parse_expiry) identifier__parse_expiry
(argument_list
(identifier_response_data) identifier_response_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_access_token) identifier_access_token
(identifier_expiry) identifier_expiry
(identifier_response_data) identifier_response_data
)expression_list
)return_statement
)block
)function_definition
)module | Implements the JWT Profile for OAuth 2.0 Authorization Grants.
For more details, see `rfc7523 section 4`_.
Args:
request (google.auth.transport.Request): A callable used to make
HTTP requests.
token_uri (str): The OAuth 2.0 authorizations server's token endpoint
URI.
assertion (str): The OAuth 2.0 assertion.
Returns:
Tuple[str, Optional[datetime], Mapping[str, str]]: The access token,
expiration, and additional data returned by the token endpoint.
Raises:
google.auth.exceptions.RefreshError: If the token endpoint returned
an error.
.. _rfc7523 section 4: https://tools.ietf.org/html/rfc7523#section-4 |
(module
(function_definition
(function_name_limit) function_name_limit
(parameters
(identifier_self) identifier_self
(identifier_v) identifier_v
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(attribute
(identifier_six) identifier_six
(identifier_integer_types) identifier_integer_types
)attribute
)argument_list
)call
)boolean_operator
)parenthesized_expression
)not_operator
(block
(raise_statement
(identifier_TypeError) identifier_TypeError
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_v) identifier_v
(attribute
(identifier_self) identifier_self
(identifier__limit) identifier__limit
)attribute
)comparison_operator
(block
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_v) identifier_v
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_QueryException) identifier_QueryException
(argument_list
(string_"Negative limit is not allowed") string_"Negative limit is not allowed"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_clone) identifier_clone
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_clone) identifier_clone
(identifier__limit) identifier__limit
)attribute
(identifier_v) identifier_v
)assignment
)expression_statement
(return_statement
(identifier_clone) identifier_clone
)return_statement
)block
)function_definition
)module | Sets the limit on the number of results returned
CQL has a default limit of 10,000 |
(module
(function_definition
(function_name_rank_member) function_name_rank_member
(parameters
(identifier_self) identifier_self
(identifier_member) identifier_member
(identifier_score) identifier_score
(default_parameter
(identifier_member_data) identifier_member_data
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rank_member_in) identifier_rank_member_in
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_leaderboard_name) identifier_leaderboard_name
)attribute
(identifier_member) identifier_member
(identifier_score) identifier_score
(identifier_member_data) identifier_member_data
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Rank a member in the leaderboard.
@param member [String] Member name.
@param score [float] Member score.
@param member_data [String] Optional member data. |
(module
(function_definition
(function_name_mutate_json_record) function_name_mutate_json_record
(parameters
(identifier_self) identifier_self
(identifier_json_record) identifier_json_record
)parameters
(block
(for_statement
(identifier_attr_name) identifier_attr_name
(identifier_json_record) identifier_json_record
(block
(expression_statement
(assignment
(identifier_attr) identifier_attr
(subscript
(identifier_json_record) identifier_json_record
(identifier_attr_name) identifier_attr_name
)subscript
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_attr) identifier_attr
(identifier_datetime) identifier_datetime
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_json_record) identifier_json_record
(identifier_attr_name) identifier_attr_name
)subscript
(call
(attribute
(identifier_attr) identifier_attr
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_json_record) identifier_json_record
)return_statement
)block
)function_definition
)module | Override it to convert fields of `json_record` to needed types.
Default implementation converts `datetime` to string in ISO8601 format. |
(module
(function_definition
(function_name__chk_docopts) function_name__chk_docopts
(parameters
(identifier_self) identifier_self
(identifier_kws) identifier_kws
)parameters
(block
(expression_statement
(assignment
(identifier_outfile) identifier_outfile
(subscript
(identifier_kws) identifier_kws
(string_'outfile') string_'outfile'
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_kws) identifier_kws
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(subscript
(identifier_kws) identifier_kws
(string_'obo') string_'obo'
)subscript
)argument_list
)call
(string_"go-basic.obo") string_"go-basic.obo"
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(subscript
(identifier_kws) identifier_kws
(string_'outfile') string_'outfile'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_dflt_outfile) identifier_dflt_outfile
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__err) identifier__err
)attribute
(argument_list
(string_"NO GO IDS SPECFIED") string_"NO GO IDS SPECFIED"
(keyword_argument
(identifier_err) identifier_err
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'obo') string_'obo'
(identifier_outfile) identifier_outfile
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__err) identifier__err
)attribute
(argument_list
(call
(attribute
(string_"BAD outfile({O})") string_"BAD outfile({O})"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_O) identifier_O
(identifier_outfile) identifier_outfile
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'gaf') string_'gaf'
(identifier_kws) identifier_kws
)comparison_operator
(comparison_operator
(string_'gene2go') string_'gene2go'
(identifier_kws) identifier_kws
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__err) identifier__err
)attribute
(argument_list
(string_"SPECIFY ANNOTAIONS FROM ONE FILE") string_"SPECIFY ANNOTAIONS FROM ONE FILE"
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'gene2go') string_'gene2go'
(identifier_kws) identifier_kws
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'taxid') string_'taxid'
(identifier_kws) identifier_kws
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__err) identifier__err
)attribute
(argument_list
(string_"SPECIFIY taxid WHEN READ NCBI'S gene2go FILE") string_"SPECIFIY taxid WHEN READ NCBI'S gene2go FILE"
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Check for common user command-line errors. |
(module
(function_definition
(function_name_save_matpower) function_name_save_matpower
(parameters
(identifier_self) identifier_self
(identifier_fd) identifier_fd
)parameters
(block
(import_from_statement
(dotted_name
(identifier_pylon) identifier_pylon
(identifier_io) identifier_io
)dotted_name
(dotted_name
(identifier_MATPOWERWriter) identifier_MATPOWERWriter
)dotted_name
)import_from_statement
(expression_statement
(call
(attribute
(call
(identifier_MATPOWERWriter) identifier_MATPOWERWriter
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_fd) identifier_fd
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Serialize the case as a MATPOWER data file. |
(module
(function_definition
(function_name_validate_digit) function_name_validate_digit
(parameters
(identifier_value) identifier_value
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(not_operator
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_isdigit) identifier_isdigit
)attribute
(argument_list
)argument_list
)call
)not_operator
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_start) identifier_start
)comparison_operator
)boolean_operator
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_end) identifier_end
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'%s must be a digit from %s to %s') string_'%s must be a digit from %s to %s'
(tuple
(identifier_value) identifier_value
(identifier_start) identifier_start
(identifier_end) identifier_end
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | validate if a digit is valid |
(module
(function_definition
(function_name_remove_folder) function_name_remove_folder
(parameters
(identifier_self) identifier_self
(identifier_tree) identifier_tree
(identifier_prefix) identifier_prefix
)parameters
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_child) identifier_child
(identifier_tree) identifier_tree
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tree) identifier_tree
(attribute
(identifier_tree) identifier_tree
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_child) identifier_child
(identifier_folders) identifier_folders
)attribute
)not_operator
(not_operator
(attribute
(identifier_child) identifier_child
(identifier_files) identifier_files
)attribute
)not_operator
)boolean_operator
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
)subscript
)delete_statement
(if_statement
(identifier_tree) identifier_tree
(block
(delete_statement
(subscript
(attribute
(identifier_tree) identifier_tree
(identifier_folders) identifier_folders
)attribute
(call
(attribute
(identifier_prefix) identifier_prefix
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)subscript
)delete_statement
)block
)if_statement
)block
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(not_operator
(identifier_tree) identifier_tree
)not_operator
(attribute
(identifier_tree) identifier_tree
(identifier_folders) identifier_folders
)attribute
)boolean_operator
(attribute
(identifier_tree) identifier_tree
(identifier_files) identifier_files
)attribute
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module | Used to remove any empty folders
If this folder is empty then it is removed. If the parent is empty as a
result, then the parent is also removed, and so on. |
(module
(function_definition
(function_name_debug) function_name_debug
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_i) identifier_i
(type
(identifier_int) identifier_int
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_head) identifier_head
(binary_operator
(binary_operator
(string_"[") string_"["
(call
(attribute
(identifier_colors) identifier_colors
(identifier_yellow) identifier_yellow
)attribute
(argument_list
(string_"debug") string_"debug"
)argument_list
)call
)binary_operator
(string_"]") string_"]"
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_i) identifier_i
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_head) identifier_head
(binary_operator
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(string_" ") string_" "
)binary_operator
(identifier_head) identifier_head
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_head) identifier_head
)return_statement
)block
)function_definition
)module | Returns a debug message |
(module
(function_definition
(function_name_insert_child) function_name_insert_child
(parameters
(identifier_self) identifier_self
(identifier_child_pid) identifier_child_pid
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_child_limits) identifier__check_child_limits
)attribute
(argument_list
(identifier_child_pid) identifier_child_pid
)argument_list
)call
)expression_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_begin_nested) identifier_begin_nested
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_child_pid) identifier_child_pid
(identifier_PersistentIdentifier) identifier_PersistentIdentifier
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_child_pid) identifier_child_pid
(call
(identifier_resolve_pid) identifier_resolve_pid
(argument_list
(identifier_child_pid) identifier_child_pid
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_PIDRelation) identifier_PIDRelation
(identifier_create) identifier_create
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__resolved_pid) identifier__resolved_pid
)attribute
(identifier_child_pid) identifier_child_pid
(attribute
(attribute
(identifier_self) identifier_self
(identifier_relation_type) identifier_relation_type
)attribute
(identifier_id) identifier_id
)attribute
(None) None
)argument_list
)call
)return_statement
)block
)with_statement
)block
(except_clause
(identifier_IntegrityError) identifier_IntegrityError
(block
(raise_statement
(call
(identifier_PIDRelationConsistencyError) identifier_PIDRelationConsistencyError
(argument_list
(string_"PID Relation already exists.") string_"PID Relation already exists."
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Add the given PID to the list of children PIDs. |
(module
(function_definition
(function_name_list_state) function_name_list_state
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_paging_controls) identifier_paging_controls
(call
(attribute
(identifier_self) identifier_self
(identifier__get_paging_controls) identifier__get_paging_controls
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_head) identifier_head
(identifier_root) identifier_root
)pattern_list
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__head_to_root) identifier__head_to_root
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_request) identifier_request
(identifier_url) identifier_url
)attribute
(identifier_query) identifier_query
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'head') string_'head'
(None) None
)argument_list
)call
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_validator_query) identifier_validator_query
(call
(attribute
(identifier_client_state_pb2) identifier_client_state_pb2
(identifier_ClientStateListRequest) identifier_ClientStateListRequest
)attribute
(argument_list
(keyword_argument
(identifier_state_root) identifier_state_root
(identifier_root) identifier_root
)keyword_argument
(keyword_argument
(identifier_address) identifier_address
(call
(attribute
(attribute
(attribute
(identifier_request) identifier_request
(identifier_url) identifier_url
)attribute
(identifier_query) identifier_query
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'address') string_'address'
(None) None
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_sorting) identifier_sorting
(call
(attribute
(identifier_self) identifier_self
(identifier__get_sorting_message) identifier__get_sorting_message
)attribute
(argument_list
(identifier_request) identifier_request
(string_"default") string_"default"
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_paging) identifier_paging
(call
(attribute
(identifier_self) identifier_self
(identifier__make_paging_message) identifier__make_paging_message
)attribute
(argument_list
(identifier_paging_controls) identifier_paging_controls
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__query_validator) identifier__query_validator
)attribute
(argument_list
(attribute
(identifier_Message) identifier_Message
(identifier_CLIENT_STATE_LIST_REQUEST) identifier_CLIENT_STATE_LIST_REQUEST
)attribute
(attribute
(identifier_client_state_pb2) identifier_client_state_pb2
(identifier_ClientStateListResponse) identifier_ClientStateListResponse
)attribute
(identifier_validator_query) identifier_validator_query
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__wrap_paginated_response) identifier__wrap_paginated_response
)attribute
(argument_list
(keyword_argument
(identifier_request) identifier_request
(identifier_request) identifier_request
)keyword_argument
(keyword_argument
(identifier_response) identifier_response
(identifier_response) identifier_response
)keyword_argument
(keyword_argument
(identifier_controls) identifier_controls
(identifier_paging_controls) identifier_paging_controls
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_response) identifier_response
(identifier_get) identifier_get
)attribute
(argument_list
(string_'entries') string_'entries'
(list
)list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_head) identifier_head
(identifier_head) identifier_head
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetches list of data entries, optionally filtered by address prefix.
Request:
query:
- head: The id of the block to use as the head of the chain
- address: Return entries whose addresses begin with this
prefix
Response:
data: An array of leaf objects with address and data keys
head: The head used for this query (most recent if unspecified)
link: The link to this exact query, including head block
paging: Paging info and nav, like total resources and a next link |
(module
(function_definition
(function_name_context) function_name_context
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(attribute
(identifier__ACTION_CONTEXT) identifier__ACTION_CONTEXT
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(yield
(identifier_self) identifier_self
)yield
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier__ACTION_CONTEXT) identifier__ACTION_CONTEXT
(identifier_reset) identifier_reset
)attribute
(argument_list
(identifier_parent) identifier_parent
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Create a context manager that ensures code runs within action's context.
The action does NOT finish when the context is exited. |
(module
(function_definition
(function_name_parse_alert) function_name_parse_alert
(parameters
(identifier_output) identifier_output
)parameters
(block
(for_statement
(identifier_x) identifier_x
(call
(attribute
(identifier_output) identifier_output
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_ALERT_PATTERN) identifier_ALERT_PATTERN
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(expression_statement
(assignment
(identifier_rec) identifier_rec
(dictionary
(pair
(string_'timestamp') string_'timestamp'
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'timestamp') string_'timestamp'
)argument_list
)call
(string_'%m/%d/%y-%H:%M:%S.%f') string_'%m/%d/%y-%H:%M:%S.%f'
)argument_list
)call
)pair
(pair
(string_'sid') string_'sid'
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'sid') string_'sid'
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'revision') string_'revision'
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'revision') string_'revision'
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'priority') string_'priority'
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'priority') string_'priority'
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'message') string_'message'
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'message') string_'message'
)argument_list
)call
)pair
(pair
(string_'source') string_'source'
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'src') string_'src'
)argument_list
)call
)pair
(pair
(string_'destination') string_'destination'
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'dest') string_'dest'
)argument_list
)call
)pair
(pair
(string_'protocol') string_'protocol'
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'protocol') string_'protocol'
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'classtype') string_'classtype'
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_rec) identifier_rec
(string_'classtype') string_'classtype'
)subscript
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'classtype') string_'classtype'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(yield
(identifier_rec) identifier_rec
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Parses the supplied output and yields any alerts.
Example alert format:
01/28/14-22:26:04.885446 [**] [1:1917:11] INDICATOR-SCAN UPnP service discover attempt [**] [Classification: Detection of a Network Scan] [Priority: 3] {UDP} 10.1.1.132:58650 -> 239.255.255.250:1900
:param output: A string containing the output of running snort
:returns: Generator of snort alert dicts |
(module
(function_definition
(function_name_set_row_gap) function_name_set_row_gap
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(string_'px') string_'px'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_value) identifier_value
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'pxpx') string_'pxpx'
(string_'px') string_'px'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_style) identifier_style
)attribute
(string_'grid-row-gap') string_'grid-row-gap'
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Sets the gap value between rows
Args:
value (int or str): gap value (i.e. 10 or "10px") |
(module
(function_definition
(function_name_conditional_expected_average_profit) function_name_conditional_expected_average_profit
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_frequency) identifier_frequency
(None) None
)default_parameter
(default_parameter
(identifier_monetary_value) identifier_monetary_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_monetary_value) identifier_monetary_value
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_monetary_value) identifier_monetary_value
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(string_"monetary_value") string_"monetary_value"
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_frequency) identifier_frequency
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_frequency) identifier_frequency
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(string_"frequency") string_"frequency"
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_p) identifier_p
(identifier_q) identifier_q
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__unload_params) identifier__unload_params
)attribute
(argument_list
(string_"p") string_"p"
(string_"q") string_"q"
(string_"v") string_"v"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_individual_weight) identifier_individual_weight
(binary_operator
(binary_operator
(identifier_p) identifier_p
(identifier_frequency) identifier_frequency
)binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(identifier_p) identifier_p
(identifier_frequency) identifier_frequency
)binary_operator
(identifier_q) identifier_q
)binary_operator
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_population_mean) identifier_population_mean
(binary_operator
(binary_operator
(identifier_v) identifier_v
(identifier_p) identifier_p
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_q) identifier_q
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_individual_weight) identifier_individual_weight
)binary_operator
)parenthesized_expression
(identifier_population_mean) identifier_population_mean
)binary_operator
(binary_operator
(identifier_individual_weight) identifier_individual_weight
(identifier_monetary_value) identifier_monetary_value
)binary_operator
)binary_operator
)return_statement
)block
)function_definition
)module | Conditional expectation of the average profit.
This method computes the conditional expectation of the average profit
per transaction for a group of one or more customers.
Parameters
----------
frequency: array_like, optional
a vector containing the customers' frequencies.
Defaults to the whole set of frequencies used for fitting the model.
monetary_value: array_like, optional
a vector containing the customers' monetary values.
Defaults to the whole set of monetary values used for
fitting the model.
Returns
-------
array_like:
The conditional expectation of the average profit per transaction |
(module
(function_definition
(function_name__ParseDistributedTrackingIdentifier) function_name__ParseDistributedTrackingIdentifier
(parameters
(identifier_self) identifier_self
(identifier_parser_mediator) identifier_parser_mediator
(identifier_uuid_object) identifier_uuid_object
(identifier_origin) identifier_origin
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_uuid_object) identifier_uuid_object
(identifier_version) identifier_version
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_event_data) identifier_event_data
(call
(attribute
(identifier_windows_events) identifier_windows_events
(identifier_WindowsDistributedLinkTrackingEventData) identifier_WindowsDistributedLinkTrackingEventData
)attribute
(argument_list
(identifier_uuid_object) identifier_uuid_object
(identifier_origin) identifier_origin
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_date_time) identifier_date_time
(call
(attribute
(identifier_dfdatetime_uuid_time) identifier_dfdatetime_uuid_time
(identifier_UUIDTime) identifier_UUIDTime
)attribute
(argument_list
(keyword_argument
(identifier_timestamp) identifier_timestamp
(attribute
(identifier_uuid_object) identifier_uuid_object
(identifier_time) identifier_time
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_event) identifier_event
(call
(attribute
(identifier_time_events) identifier_time_events
(identifier_DateTimeValuesEvent) identifier_DateTimeValuesEvent
)attribute
(argument_list
(identifier_date_time) identifier_date_time
(attribute
(identifier_definitions) identifier_definitions
(identifier_TIME_DESCRIPTION_CREATION) identifier_TIME_DESCRIPTION_CREATION
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser_mediator) identifier_parser_mediator
(identifier_ProduceEventWithEventData) identifier_ProduceEventWithEventData
)attribute
(argument_list
(identifier_event) identifier_event
(identifier_event_data) identifier_event_data
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_'{{{0!s}}}') string_'{{{0!s}}}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_uuid_object) identifier_uuid_object
)argument_list
)call
)return_statement
)block
)function_definition
)module | Extracts data from a Distributed Tracking identifier.
Args:
parser_mediator (ParserMediator): mediates interactions between parsers
and other components, such as storage and dfvfs.
uuid_object (uuid.UUID): UUID of the Distributed Tracking identifier.
origin (str): origin of the event (event source).
Returns:
str: UUID string of the Distributed Tracking identifier. |
(module
(function_definition
(function_name_allow_port) function_name_allow_port
(parameters
(identifier_port) identifier_port
(default_parameter
(identifier_proto) identifier_proto
(string_'tcp') string_'tcp'
)default_parameter
(default_parameter
(identifier_direction) identifier_direction
(string_'both') string_'both'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ports) identifier_ports
(call
(identifier_get_ports) identifier_get_ports
(argument_list
(keyword_argument
(identifier_proto) identifier_proto
(identifier_proto) identifier_proto
)keyword_argument
(keyword_argument
(identifier_direction) identifier_direction
(identifier_direction) identifier_direction
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_direction) identifier_direction
(call
(attribute
(identifier_direction) identifier_direction
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__validate_direction_and_proto) identifier__validate_direction_and_proto
(argument_list
(identifier_direction) identifier_direction
(identifier_proto) identifier_proto
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_directions) identifier_directions
(call
(identifier_build_directions) identifier_build_directions
(argument_list
(identifier_direction) identifier_direction
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_direction) identifier_direction
(identifier_directions) identifier_directions
(block
(expression_statement
(assignment
(identifier__ports) identifier__ports
(subscript
(identifier_ports) identifier_ports
(identifier_direction) identifier_direction
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__ports) identifier__ports
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_port) identifier_port
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_results) identifier_results
(call
(identifier_allow_ports) identifier_allow_ports
(argument_list
(identifier__ports) identifier__ports
(keyword_argument
(identifier_proto) identifier_proto
(identifier_proto) identifier_proto
)keyword_argument
(keyword_argument
(identifier_direction) identifier_direction
(identifier_direction) identifier_direction
)keyword_argument
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Like allow_ports, but it will append to the
existing entry instead of replacing it.
Takes a single port instead of a list of ports.
CLI Example:
.. code-block:: bash
salt '*' csf.allow_port 22 proto='tcp' direction='in' |
(module
(function_definition
(function_name__save) function_name__save
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier___modified_flag) identifier___modified_flag
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___filename_rep) identifier___filename_rep
)attribute
(identifier_update_id_counter) identifier_update_id_counter
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_indexfilename) identifier_indexfilename
(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___dir) identifier___dir
)attribute
(string_"index.dat") string_"index.dat"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__write_file) identifier__write_file
)attribute
(argument_list
(identifier_indexfilename) identifier_indexfilename
(tuple
(attribute
(identifier_self) identifier_self
(identifier___index) identifier___index
)attribute
(attribute
(identifier_self) identifier_self
(identifier___filename_rep) identifier___filename_rep
)attribute
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___modified_flag) identifier___modified_flag
)attribute
(False) False
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | save the cache index, in case it was modified.
Saves the index table and the file name repository in the file
`index.dat` |
(module
(function_definition
(function_name_order_by) function_name_order_by
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_field_names) identifier_field_names
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_self) identifier_self
(identifier__clone) identifier__clone
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier__clear_ordering) identifier__clear_ordering
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__insert_ordering) identifier__insert_ordering
)attribute
(argument_list
(identifier_obj) identifier_obj
(list_splat
(identifier_field_names) identifier_field_names
)list_splat
)argument_list
)call
)expression_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Returns a new QuerySet instance with the ordering changed.
We have a special field "_random" |
(module
(function_definition
(function_name_check_updates) function_name_check_updates
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_startup) identifier_startup
(False) False
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_spyder) identifier_spyder
(identifier_workers) identifier_workers
(identifier_updates) identifier_updates
)dotted_name
(dotted_name
(identifier_WorkerUpdates) identifier_WorkerUpdates
)dotted_name
)import_from_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_check_updates_action) identifier_check_updates_action
)attribute
(identifier_setDisabled) identifier_setDisabled
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
(identifier_terminate) identifier_terminate
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
(call
(identifier_QThread) identifier_QThread
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_worker_updates) identifier_worker_updates
)attribute
(call
(identifier_WorkerUpdates) identifier_WorkerUpdates
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_startup) identifier_startup
(identifier_startup) identifier_startup
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker_updates) identifier_worker_updates
)attribute
(identifier_sig_ready) identifier_sig_ready
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__check_updates_ready) identifier__check_updates_ready
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker_updates) identifier_worker_updates
)attribute
(identifier_sig_ready) identifier_sig_ready
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
(identifier_quit) identifier_quit
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker_updates) identifier_worker_updates
)attribute
(identifier_moveToThread) identifier_moveToThread
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
(identifier_started) identifier_started
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker_updates) identifier_worker_updates
)attribute
(identifier_start) identifier_start
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_thread_updates) identifier_thread_updates
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Check for spyder updates on github releases using a QThread. |
(module
(function_definition
(function_name_add_metadata_defaults) function_name_add_metadata_defaults
(parameters
(identifier_md) identifier_md
)parameters
(block
(expression_statement
(assignment
(identifier_defaults) identifier_defaults
(dictionary
(pair
(string_"batch") string_"batch"
(None) None
)pair
(pair
(string_"phenotype") string_"phenotype"
(string_"") string_""
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_defaults) identifier_defaults
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_k) identifier_k
(identifier_md) identifier_md
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_md) identifier_md
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_md) identifier_md
)return_statement
)block
)function_definition
)module | Central location for defaults for algorithm inputs. |
(module
(function_definition
(function_name_add_batch_parser) function_name_add_batch_parser
(parameters
(identifier_subparsers) identifier_subparsers
(identifier_parent_parser) identifier_parent_parser
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_subparsers) identifier_subparsers
(identifier_add_parser) identifier_add_parser
)attribute
(argument_list
(string_'batch') string_'batch'
(keyword_argument
(identifier_help) identifier_help
(string_'Displays information about batches and submit new batches') string_'Displays information about batches and submit new batches'
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(concatenated_string
(string_'Provides subcommands to display Batch information and ') string_'Provides subcommands to display Batch information and '
(string_'submit Batches to the validator via the REST API.') string_'submit Batches to the validator via the REST API.'
)concatenated_string
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_grand_parsers) identifier_grand_parsers
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_subparsers) identifier_add_subparsers
)attribute
(argument_list
(keyword_argument
(identifier_title) identifier_title
(string_'subcommands') string_'subcommands'
)keyword_argument
(keyword_argument
(identifier_dest) identifier_dest
(string_'subcommand') string_'subcommand'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_grand_parsers) identifier_grand_parsers
(identifier_required) identifier_required
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(identifier_add_batch_list_parser) identifier_add_batch_list_parser
(argument_list
(identifier_grand_parsers) identifier_grand_parsers
(identifier_parent_parser) identifier_parent_parser
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_add_batch_show_parser) identifier_add_batch_show_parser
(argument_list
(identifier_grand_parsers) identifier_grand_parsers
(identifier_parent_parser) identifier_parent_parser
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_add_batch_status_parser) identifier_add_batch_status_parser
(argument_list
(identifier_grand_parsers) identifier_grand_parsers
(identifier_parent_parser) identifier_parent_parser
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_add_batch_submit_parser) identifier_add_batch_submit_parser
(argument_list
(identifier_grand_parsers) identifier_grand_parsers
(identifier_parent_parser) identifier_parent_parser
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds arguments parsers for the batch list, batch show and batch status
commands
Args:
subparsers: Add parsers to this subparser object
parent_parser: The parent argparse.ArgumentParser object |
(module
(function_definition
(function_name__warn_on_old_config) function_name__warn_on_old_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_old_sections) identifier_old_sections
(list
(string_'Allowed Applications') string_'Allowed Applications'
(string_'Ignored Applications') string_'Ignored Applications'
)list
)assignment
)expression_statement
(for_statement
(identifier_old_section) identifier_old_section
(identifier_old_sections) identifier_old_sections
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__parser) identifier__parser
)attribute
(identifier_has_section) identifier_has_section
)attribute
(argument_list
(identifier_old_section) identifier_old_section
)argument_list
)call
(block
(expression_statement
(call
(identifier_error) identifier_error
(argument_list
(call
(attribute
(concatenated_string
(string_"Old config file detected. Aborting.\n") string_"Old config file detected. Aborting.\n"
(string_"\n") string_"\n"
(string_"An old section (e.g. [Allowed Applications]") string_"An old section (e.g. [Allowed Applications]"
(string_" or [Ignored Applications] has been detected") string_" or [Ignored Applications] has been detected"
(string_" in your {} file.\n") string_" in your {} file.\n"
(string_"I'd rather do nothing than do something you") string_"I'd rather do nothing than do something you"
(string_" do not want me to do.\n") string_" do not want me to do.\n"
(string_"\n") string_"\n"
(string_"Please read the up to date documentation on") string_"Please read the up to date documentation on"
(string_" <https://github.com/lra/mackup> and migrate") string_" <https://github.com/lra/mackup> and migrate"
(string_" your configuration file.") string_" your configuration file."
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_MACKUP_CONFIG_FILE) identifier_MACKUP_CONFIG_FILE
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Warn the user if an old config format is detected. |
(module
(function_definition
(function_name_update_cache) function_name_update_cache
(parameters
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
(default_parameter
(identifier_cache_file) identifier_cache_file
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_cache_file) identifier_cache_file
)not_operator
(block
(expression_statement
(assignment
(identifier_cache_file) identifier_cache_file
(call
(identifier_find_config) identifier_find_config
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cache_config) identifier_cache_config
(call
(attribute
(attribute
(identifier_devpipeline_configure) identifier_devpipeline_configure
(identifier_parser) identifier_parser
)attribute
(identifier_read_config) identifier_read_config
)attribute
(argument_list
(identifier_cache_file) identifier_cache_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cache) identifier_cache
(call
(attribute
(attribute
(identifier_devpipeline_configure) identifier_devpipeline_configure
(identifier_cache) identifier_cache
)attribute
(identifier__CachedConfig) identifier__CachedConfig
)attribute
(argument_list
(identifier_cache_config) identifier_cache_config
(identifier_cache_file) identifier_cache_file
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_force) identifier_force
(call
(identifier__is_outdated) identifier__is_outdated
(argument_list
(identifier_cache_file) identifier_cache_file
(identifier_cache) identifier_cache
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_cache) identifier_cache
(call
(attribute
(attribute
(identifier_devpipeline_configure) identifier_devpipeline_configure
(identifier_config) identifier_config
)attribute
(identifier_process_config) identifier_process_config
)attribute
(argument_list
(call
(attribute
(identifier_cache_config) identifier_cache_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_"DEFAULT") string_"DEFAULT"
(string_"dp.build_config") string_"dp.build_config"
)argument_list
)call
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_cache_file) identifier_cache_file
)argument_list
)call
(string_"build.cache") string_"build.cache"
(keyword_argument
(identifier_profiles) identifier_profiles
(call
(attribute
(identifier_cache_config) identifier_cache_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_"DEFAULT") string_"DEFAULT"
(string_"dp.profile_name") string_"dp.profile_name"
(keyword_argument
(identifier_fallback) identifier_fallback
(None) None
)keyword_argument
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_overrides) identifier_overrides
(call
(attribute
(identifier_cache_config) identifier_cache_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_"DEFAULT") string_"DEFAULT"
(string_"dp.overrides") string_"dp.overrides"
(keyword_argument
(identifier_fallback) identifier_fallback
(None) None
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_devpipeline_core) identifier_devpipeline_core
(identifier_sanitizer) identifier_sanitizer
)attribute
(identifier_sanitize) identifier_sanitize
)attribute
(argument_list
(identifier_cache) identifier_cache
(lambda
(lambda_parameters
(identifier_n) identifier_n
(identifier_m) identifier_m
)lambda_parameters
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"{} [{}]") string_"{} [{}]"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_m) identifier_m
(identifier_n) identifier_n
)argument_list
)call
)argument_list
)call
)lambda
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_cache) identifier_cache
)return_statement
)block
)function_definition
)module | Load a build cache, updating it if necessary.
A cache is considered outdated if any of its inputs have changed.
Arguments
force -- Consider a cache outdated regardless of whether its inputs have
been modified. |
(module
(function_definition
(function_name_load_data) function_name_load_data
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_digits) identifier_digits
(call
(identifier_load_digits) identifier_load_digits
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_X_train) identifier_X_train
(identifier_X_test) identifier_X_test
(identifier_y_train) identifier_y_train
(identifier_y_test) identifier_y_test
)pattern_list
(call
(identifier_train_test_split) identifier_train_test_split
(argument_list
(attribute
(identifier_digits) identifier_digits
(identifier_data) identifier_data
)attribute
(attribute
(identifier_digits) identifier_digits
(identifier_target) identifier_target
)attribute
(keyword_argument
(identifier_random_state) identifier_random_state
(integer_99) integer_99
)keyword_argument
(keyword_argument
(identifier_test_size) identifier_test_size
(float_0.25) float_0.25
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ss) identifier_ss
(call
(identifier_StandardScaler) identifier_StandardScaler
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_X_train) identifier_X_train
(call
(attribute
(identifier_ss) identifier_ss
(identifier_fit_transform) identifier_fit_transform
)attribute
(argument_list
(identifier_X_train) identifier_X_train
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_X_test) identifier_X_test
(call
(attribute
(identifier_ss) identifier_ss
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_X_test) identifier_X_test
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_X_train) identifier_X_train
(identifier_X_test) identifier_X_test
(identifier_y_train) identifier_y_train
(identifier_y_test) identifier_y_test
)expression_list
)return_statement
)block
)function_definition
)module | Load dataset, use 20newsgroups dataset |
(module
(function_definition
(function_name__vertical_x) function_name__vertical_x
(parameters
(identifier_axis) identifier_axis
(default_parameter
(identifier_ticks) identifier_ticks
(None) None
)default_parameter
(default_parameter
(identifier_max_width) identifier_max_width
(integer_5) integer_5
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_ticks) identifier_ticks
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ticks) identifier_ticks
(call
(attribute
(identifier_axis) identifier_axis
(identifier_get_xticks) identifier_get_xticks
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(parenthesized_expression
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_ticks) identifier_ticks
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_rint) identifier_rint
)attribute
(argument_list
(identifier_ticks) identifier_ticks
)argument_list
)call
)comparison_operator
)parenthesized_expression
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ticks) identifier_ticks
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_rint) identifier_rint
)attribute
(argument_list
(identifier_ticks) identifier_ticks
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_max) identifier_max
(argument_list
(list_comprehension
(call
(identifier_len) identifier_len
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_tick) identifier_tick
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_tick) identifier_tick
(identifier_ticks) identifier_ticks
)for_in_clause
)list_comprehension
)argument_list
)call
(identifier_max_width) identifier_max_width
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_axis) identifier_axis
(identifier_set_xticklabels) identifier_set_xticklabels
)attribute
(argument_list
(identifier_ticks) identifier_ticks
(keyword_argument
(identifier_rotation) identifier_rotation
(string_'vertical') string_'vertical'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Switch labels to vertical if they are long. |
(module
(function_definition
(function_name_read_dataset) function_name_read_dataset
(parameters
(identifier_args) identifier_args
(identifier_dataset) identifier_dataset
)parameters
(block
(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
(subscript
(call
(identifier_vars) identifier_vars
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(identifier_dataset) identifier_dataset
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'reading data from {}') string_'reading data from {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_examples) identifier_examples
(list_comprehension
(call
(attribute
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\t') string_'\t'
)argument_list
)call
(for_in_clause
(identifier_line) identifier_line
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_args) identifier_args
(identifier_max_num_examples) identifier_max_num_examples
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_examples) identifier_examples
(subscript
(identifier_examples) identifier_examples
(slice
(colon) colon
(attribute
(identifier_args) identifier_args
(identifier_max_num_examples) identifier_max_num_examples
)attribute
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dataset) identifier_dataset
(call
(attribute
(attribute
(identifier_gluon) identifier_gluon
(identifier_data) identifier_data
)attribute
(identifier_SimpleDataset) identifier_SimpleDataset
)attribute
(argument_list
(list_comprehension
(tuple
(subscript
(identifier_e) identifier_e
(integer_0) integer_0
)subscript
(subscript
(identifier_e) identifier_e
(integer_1) integer_1
)subscript
(subscript
(identifier_LABEL_TO_IDX) identifier_LABEL_TO_IDX
(subscript
(identifier_e) identifier_e
(integer_2) integer_2
)subscript
)subscript
)tuple
(for_in_clause
(identifier_e) identifier_e
(identifier_examples) identifier_examples
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dataset) identifier_dataset
(call
(attribute
(identifier_dataset) identifier_dataset
(identifier_transform) identifier_transform
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_s1) identifier_s1
(identifier_s2) identifier_s2
(identifier_label) identifier_label
)lambda_parameters
(tuple
(binary_operator
(list
(string_'NULL') string_'NULL'
)list
(call
(attribute
(call
(attribute
(identifier_s1) identifier_s1
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)binary_operator
(binary_operator
(list
(string_'NULL') string_'NULL'
)list
(call
(attribute
(call
(attribute
(identifier_s2) identifier_s2
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)binary_operator
(identifier_label) identifier_label
)tuple
)lambda
(keyword_argument
(identifier_lazy) identifier_lazy
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'read {} examples') string_'read {} examples'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_dataset) identifier_dataset
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_dataset) identifier_dataset
)return_statement
)block
)function_definition
)module | Read dataset from tokenized files. |
(module
(function_definition
(function_name_writeline) function_name_writeline
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_crlf) identifier_crlf
(string_"\r\n") string_"\r\n"
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_read_thread) identifier_read_thread
)attribute
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_read_thread) identifier_read_thread
)attribute
(identifier_has_error) identifier_has_error
)attribute
(argument_list
)argument_list
)call
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Error writing PIPE") string_"Error writing PIPE"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_proc) identifier_proc
)attribute
(identifier_poll) identifier_poll
)attribute
(argument_list
)argument_list
)call
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Process stopped") string_"Process stopped"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier___print_io) identifier___print_io
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_extra) identifier_extra
(dictionary
(pair
(string_'type') string_'type'
(string_'-->') string_'-->'
)pair
)dictionary
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_proc) identifier_proc
)attribute
(identifier_stdin) identifier_stdin
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(binary_operator
(identifier_data) identifier_data
(identifier_crlf) identifier_crlf
)binary_operator
(string_'ascii') string_'ascii'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_proc) identifier_proc
)attribute
(identifier_stdin) identifier_stdin
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Writeline implementation.
:param data: Data to write
:param crlf: Line end characters, defailt is \r\n
:return: Nothing
:raises: RuntimeError if errors happen while writing to PIPE or process stops. |
(module
(function_definition
(function_name_ngram_similarity) function_name_ngram_similarity
(parameters
(identifier_samegrams) identifier_samegrams
(identifier_allgrams) identifier_allgrams
(default_parameter
(identifier_warp) identifier_warp
(float_1.0) float_1.0
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(identifier_warp) identifier_warp
(float_1.0) float_1.0
)binary_operator
)argument_list
)call
(float_1e-9) float_1e-9
)comparison_operator
(block
(expression_statement
(assignment
(identifier_similarity) identifier_similarity
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_samegrams) identifier_samegrams
)argument_list
)call
(identifier_allgrams) identifier_allgrams
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_diffgrams) identifier_diffgrams
(call
(identifier_float) identifier_float
(argument_list
(binary_operator
(identifier_allgrams) identifier_allgrams
(identifier_samegrams) identifier_samegrams
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_similarity) identifier_similarity
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_allgrams) identifier_allgrams
(identifier_warp) identifier_warp
)binary_operator
(binary_operator
(identifier_diffgrams) identifier_diffgrams
(identifier_warp) identifier_warp
)binary_operator
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_allgrams) identifier_allgrams
(identifier_warp) identifier_warp
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_similarity) identifier_similarity
)return_statement
)block
)function_definition
)module | Similarity for two sets of n-grams.
:note: ``similarity = (a**e - d**e)/a**e`` where `a` is \
"all n-grams", `d` is "different n-grams" and `e` is the warp.
:param samegrams: number of n-grams shared by the two strings.
:param allgrams: total of the distinct n-grams across the two strings.
:return: similarity in the range 0.0 to 1.0.
>>> from ngram import NGram
>>> NGram.ngram_similarity(5, 10)
0.5
>>> NGram.ngram_similarity(5, 10, warp=2)
0.75
>>> NGram.ngram_similarity(5, 10, warp=3)
0.875
>>> NGram.ngram_similarity(2, 4, warp=2)
0.75
>>> NGram.ngram_similarity(3, 4)
0.75 |
(module
(function_definition
(function_name_register_endpoint) function_name_register_endpoint
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_app) identifier_app
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_is_running_from_reloader) identifier_is_running_from_reloader
(argument_list
)argument_list
)call
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'DEBUG_METRICS') string_'DEBUG_METRICS'
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_app) identifier_app
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_app) identifier_app
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_app) identifier_app
)attribute
(identifier_current_app) identifier_current_app
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(decorated_definition
(decorator
(call
(attribute
(identifier_app) identifier_app
(identifier_route) identifier_route
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)decorator
(decorator
(call
(attribute
(identifier_self) identifier_self
(identifier_do_not_track) identifier_do_not_track
)attribute
(argument_list
)argument_list
)call
)decorator
(function_definition
(function_name_prometheus_metrics) function_name_prometheus_metrics
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_prometheus_client) identifier_prometheus_client
)dotted_name
(dotted_name
(identifier_multiprocess) identifier_multiprocess
)dotted_name
(dotted_name
(identifier_CollectorRegistry) identifier_CollectorRegistry
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(string_'prometheus_multiproc_dir') string_'prometheus_multiproc_dir'
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_registry) identifier_registry
(call
(identifier_CollectorRegistry) identifier_CollectorRegistry
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_registry) identifier_registry
(attribute
(identifier_self) identifier_self
(identifier_registry) identifier_registry
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(string_'name[]') string_'name[]'
(attribute
(identifier_request) identifier_request
(identifier_args) identifier_args
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_registry) identifier_registry
(call
(attribute
(identifier_registry) identifier_registry
(identifier_restricted_registry) identifier_restricted_registry
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_args) identifier_args
)attribute
(identifier_getlist) identifier_getlist
)attribute
(argument_list
(string_'name[]') string_'name[]'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'prometheus_multiproc_dir') string_'prometheus_multiproc_dir'
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_multiprocess) identifier_multiprocess
(identifier_MultiProcessCollector) identifier_MultiProcessCollector
)attribute
(argument_list
(identifier_registry) identifier_registry
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Content-Type') string_'Content-Type'
(identifier_CONTENT_TYPE_LATEST) identifier_CONTENT_TYPE_LATEST
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(expression_list
(call
(identifier_generate_latest) identifier_generate_latest
(argument_list
(identifier_registry) identifier_registry
)argument_list
)call
(integer_200) integer_200
(identifier_headers) identifier_headers
)expression_list
)return_statement
)block
)function_definition
)decorated_definition
)block
)function_definition
)module | Register the metrics endpoint on the Flask application.
:param path: the path of the endpoint
:param app: the Flask application to register the endpoint on
(by default it is the application registered with this class) |
(module
(function_definition
(function_name_setOverlayWidthInMeters) function_name_setOverlayWidthInMeters
(parameters
(identifier_self) identifier_self
(identifier_ulOverlayHandle) identifier_ulOverlayHandle
(identifier_fWidthInMeters) identifier_fWidthInMeters
)parameters
(block
(expression_statement
(assignment
(identifier_fn) identifier_fn
(attribute
(attribute
(identifier_self) identifier_self
(identifier_function_table) identifier_function_table
)attribute
(identifier_setOverlayWidthInMeters) identifier_setOverlayWidthInMeters
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_fn) identifier_fn
(argument_list
(identifier_ulOverlayHandle) identifier_ulOverlayHandle
(identifier_fWidthInMeters) identifier_fWidthInMeters
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across |
(module
(function_definition
(function_name__norm_squared) function_name__norm_squared
(parameters
(typed_parameter
(identifier_args) identifier_args
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(identifier_float) identifier_float
)type
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(identifier__state_shard) identifier__state_shard
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(identifier_state) identifier_state
)argument_list
)call
(integer_2) integer_2
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the norm for each state shard. |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_is_active) identifier_is_active
)attribute
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Can not open an already open stream.") string_"Can not open an already open stream."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_request_generator) identifier_request_generator
(call
(identifier__RequestQueueGenerator) identifier__RequestQueueGenerator
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__request_queue) identifier__request_queue
)attribute
(keyword_argument
(identifier_initial_request) identifier_initial_request
(attribute
(identifier_self) identifier_self
(identifier__initial_request) identifier__initial_request
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_call) identifier_call
(call
(attribute
(identifier_self) identifier_self
(identifier__start_rpc) identifier__start_rpc
)attribute
(argument_list
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_request_generator) identifier_request_generator
)argument_list
)call
(keyword_argument
(identifier_metadata) identifier_metadata
(attribute
(identifier_self) identifier_self
(identifier__rpc_metadata) identifier__rpc_metadata
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request_generator) identifier_request_generator
(identifier_call) identifier_call
)attribute
(identifier_call) identifier_call
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_call) identifier_call
(string_"_wrapped") string_"_wrapped"
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_call) identifier_call
(identifier__wrapped) identifier__wrapped
)attribute
(identifier_add_done_callback) identifier_add_done_callback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__on_call_done) identifier__on_call_done
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_call) identifier_call
(identifier_add_done_callback) identifier_add_done_callback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__on_call_done) identifier__on_call_done
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__request_generator) identifier__request_generator
)attribute
(identifier_request_generator) identifier_request_generator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_call) identifier_call
)attribute
(identifier_call) identifier_call
)assignment
)expression_statement
)block
)function_definition
)module | Opens the stream. |
(module
(function_definition
(function_name_randomize) function_name_randomize
(parameters
(default_parameter
(identifier_length) identifier_length
(integer_6) integer_6
)default_parameter
(default_parameter
(identifier_choices) identifier_choices
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_choices) identifier_choices
)argument_list
)call
(identifier_str) identifier_str
)comparison_operator
(block
(expression_statement
(assignment
(identifier_choices) identifier_choices
(call
(identifier_list) identifier_list
(argument_list
(identifier_choices) identifier_choices
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_choices) identifier_choices
(boolean_operator
(identifier_choices) identifier_choices
(identifier_ascii_lowercase) identifier_ascii_lowercase
)boolean_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_choice) identifier_choice
(argument_list
(identifier_choices) identifier_choices
)argument_list
)call
(for_in_clause
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(identifier_length) identifier_length
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Returns a random string of the given length. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_WorkflowsMissingModel) identifier_WorkflowsMissingModel
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_begin_nested) identifier_begin_nested
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Delete a workflow object.
If `force` is ``False``, the record is soft-deleted, i.e. the record
stays in the database. This ensures e.g. that the same record
identifier cannot be used twice, and that you can still retrieve the
history of an object. If `force` is True, the record is completely
removed from the database.
:param force: Completely remove record from database. |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
(identifier_VERSION_3) identifier_VERSION_3
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__caveat_data) identifier__caveat_data
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_'cannot serialize pre-version3 macaroon with ') string_'cannot serialize pre-version3 macaroon with '
(string_'external caveat data') string_'external caveat data'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__macaroon) identifier__macaroon
)attribute
(identifier_serialize) identifier_serialize
)attribute
(argument_list
(call
(attribute
(identifier_json_serializer) identifier_json_serializer
(identifier_JsonSerializer) identifier_JsonSerializer
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_serialized) identifier_serialized
(dictionary
(pair
(string_'m') string_'m'
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__macaroon) identifier__macaroon
)attribute
(identifier_serialize) identifier_serialize
)attribute
(argument_list
(call
(attribute
(identifier_json_serializer) identifier_json_serializer
(identifier_JsonSerializer) identifier_JsonSerializer
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'v') string_'v'
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__namespace) identifier__namespace
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_serialized) identifier_serialized
(string_'ns') string_'ns'
)subscript
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__namespace) identifier__namespace
)attribute
(identifier_serialize_text) identifier_serialize_text
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_caveat_data) identifier_caveat_data
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_id) identifier_id
(attribute
(identifier_self) identifier_self
(identifier__caveat_data) identifier__caveat_data
)attribute
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(call
(attribute
(identifier_base64) identifier_base64
(identifier_b64encode) identifier_b64encode
)attribute
(argument_list
(identifier_id) identifier_id
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(attribute
(identifier_base64) identifier_base64
(identifier_b64encode) identifier_b64encode
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__caveat_data) identifier__caveat_data
)attribute
(identifier_id) identifier_id
)subscript
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_caveat_data) identifier_caveat_data
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_caveat_data) identifier_caveat_data
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_serialized) identifier_serialized
(string_'cdata') string_'cdata'
)subscript
(identifier_caveat_data) identifier_caveat_data
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_serialized) identifier_serialized
)return_statement
)block
)function_definition
)module | Return a dict representation of the macaroon data in JSON format.
@return a dict |
(module
(function_definition
(function_name_data_shape) function_name_data_shape
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
)not_operator
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_nx) identifier_nx
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
(string_'nx') string_'nx'
)subscript
(string_'value') string_'value'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ny) identifier_ny
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
(string_'ny') string_'ny'
)subscript
(string_'value') string_'value'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nz) identifier_nz
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
(string_'nz') string_'nz'
)subscript
(string_'value') string_'value'
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
)except_clause
(else_clause
(block
(return_statement
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_int) identifier_int
(argument_list
(identifier_n) identifier_n
)argument_list
)call
(for_in_clause
(identifier_n) identifier_n
(tuple
(identifier_nx) identifier_nx
(identifier_ny) identifier_ny
(identifier_nz) identifier_nz
)tuple
)for_in_clause
)generator_expression
)call
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Shape tuple of the whole data block as determined from `header`.
If no header is available (i.e., before it has been initialized),
or any of the header entries ``'nx', 'ny', 'nz'`` is missing,
-1 is returned, which makes reshaping a no-op.
Otherwise, the returned shape is ``(nx, ny, nz)``.
Note: this is the shape of the data as defined by the header.
For a non-trivial axis ordering, the shape of actual data will
be different.
See Also
--------
data_storage_shape
data_axis_order |
(module
(function_definition
(function_name_output_row) function_name_output_row
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(string_"Output a scoring row.") string_"Output a scoring row."
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"%10s %4d %0.3f %0.3f %0.3f") string_"%10s %4d %0.3f %0.3f %0.3f"
(tuple
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_gold) identifier_gold
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_precision) identifier_precision
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_recall) identifier_recall
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_fscore) identifier_fscore
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Output a scoring row. |
(module
(function_definition
(function_name_get_mutations) function_name_get_mutations
(parameters
(identifier_study_id) identifier_study_id
(identifier_gene_list) identifier_gene_list
(default_parameter
(identifier_mutation_type) identifier_mutation_type
(None) None
)default_parameter
(default_parameter
(identifier_case_id) identifier_case_id
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_genetic_profile) identifier_genetic_profile
(subscript
(call
(identifier_get_genetic_profiles) identifier_get_genetic_profiles
(argument_list
(identifier_study_id) identifier_study_id
(string_'mutation') string_'mutation'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_gene_list_str) identifier_gene_list_str
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_gene_list) identifier_gene_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'cmd') string_'cmd'
(string_'getMutationData') string_'getMutationData'
)pair
(pair
(string_'case_set_id') string_'case_set_id'
(identifier_study_id) identifier_study_id
)pair
(pair
(string_'genetic_profile_id') string_'genetic_profile_id'
(identifier_genetic_profile) identifier_genetic_profile
)pair
(pair
(string_'gene_list') string_'gene_list'
(identifier_gene_list_str) identifier_gene_list_str
)pair
(pair
(string_'skiprows') string_'skiprows'
(unary_operator
(integer_1) integer_1
)unary_operator
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(identifier_send_request) identifier_send_request
(argument_list
(dictionary_splat
(identifier_data) identifier_data
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_case_id) identifier_case_id
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(subscript
(identifier_df) identifier_df
(comparison_operator
(subscript
(identifier_df) identifier_df
(string_'case_id') string_'case_id'
)subscript
(identifier_case_id) identifier_case_id
)comparison_operator
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier__filter_data_frame) identifier__filter_data_frame
(argument_list
(identifier_df) identifier_df
(list
(string_'gene_symbol') string_'gene_symbol'
(string_'amino_acid_change') string_'amino_acid_change'
)list
(string_'mutation_type') string_'mutation_type'
(identifier_mutation_type) identifier_mutation_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mutations) identifier_mutations
(dictionary
(pair
(string_'gene_symbol') string_'gene_symbol'
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(subscript
(identifier_res) identifier_res
(string_'gene_symbol') string_'gene_symbol'
)subscript
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'amino_acid_change') string_'amino_acid_change'
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(subscript
(identifier_res) identifier_res
(string_'amino_acid_change') string_'amino_acid_change'
)subscript
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_mutations) identifier_mutations
)return_statement
)block
)function_definition
)module | Return mutations as a list of genes and list of amino acid changes.
Parameters
----------
study_id : str
The ID of the cBio study.
Example: 'cellline_ccle_broad' or 'paad_icgc'
gene_list : list[str]
A list of genes with their HGNC symbols.
Example: ['BRAF', 'KRAS']
mutation_type : Optional[str]
The type of mutation to filter to.
mutation_type can be one of: missense, nonsense, frame_shift_ins,
frame_shift_del, splice_site
case_id : Optional[str]
The case ID within the study to filter to.
Returns
-------
mutations : tuple[list]
A tuple of two lists, the first one containing a list of genes, and
the second one a list of amino acid changes in those genes. |
(module
(function_definition
(function_name_url_for) function_name_url_for
(parameters
(identifier_obj) identifier_obj
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(call
(identifier_flask_url_for) identifier_flask_url_for
(argument_list
(identifier_obj) identifier_obj
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_default_view) identifier_default_view
)attribute
(identifier_url_for) identifier_url_for
)attribute
(argument_list
(identifier_obj) identifier_obj
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_obj) identifier_obj
(string_"_url") string_"_url"
)argument_list
)call
(block
(return_statement
(attribute
(identifier_obj) identifier_obj
(identifier__url) identifier__url
)attribute
)return_statement
)block
(elif_clause
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_obj) identifier_obj
(string_"url") string_"url"
)argument_list
)call
(block
(return_statement
(attribute
(identifier_obj) identifier_obj
(identifier_url) identifier_url
)attribute
)return_statement
)block
)elif_clause
)if_statement
)block
)except_clause
)try_statement
(raise_statement
(call
(identifier_BuildError) identifier_BuildError
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
(identifier_kw) identifier_kw
(string_"GET") string_"GET"
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Polymorphic variant of Flask's `url_for` function.
Behaves like the original function when the first argument is a
string. When it's an object, it |
(module
(function_definition
(function_name_compare_lists) function_name_compare_lists
(parameters
(default_parameter
(identifier_old) identifier_old
(None) None
)default_parameter
(default_parameter
(identifier_new) identifier_new
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_new) identifier_new
(block
(if_statement
(comparison_operator
(identifier_item) identifier_item
(identifier_old) identifier_old
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'new') string_'new'
)subscript
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_item) identifier_item
(identifier_old) identifier_old
(block
(if_statement
(comparison_operator
(identifier_item) identifier_item
(identifier_new) identifier_new
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'old') string_'old'
)subscript
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Compare before and after results from various salt functions, returning a
dict describing the changes that were made |
(module
(function_definition
(function_name__configure_buffer_sizes) function_name__configure_buffer_sizes
(parameters
)parameters
(block
(global_statement
(identifier_PIPE_BUF_BYTES) identifier_PIPE_BUF_BYTES
)global_statement
(global_statement
(identifier_OS_PIPE_SZ) identifier_OS_PIPE_SZ
)global_statement
(expression_statement
(assignment
(identifier_PIPE_BUF_BYTES) identifier_PIPE_BUF_BYTES
(integer_65536) integer_65536
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_OS_PIPE_SZ) identifier_OS_PIPE_SZ
(None) None
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_fcntl) identifier_fcntl
(string_'F_SETPIPE_SZ') string_'F_SETPIPE_SZ'
)argument_list
)call
)not_operator
(block
(import_statement
(dotted_name
(identifier_platform) identifier_platform
)dotted_name
)import_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_platform) identifier_platform
(identifier_system) identifier_system
)attribute
(argument_list
)argument_list
)call
(string_'Linux') string_'Linux'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_fcntl) identifier_fcntl
(identifier_F_SETPIPE_SZ) identifier_F_SETPIPE_SZ
)attribute
(integer_1031) integer_1031
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(string_'/proc/sys/fs/pipe-max-size') string_'/proc/sys/fs/pipe-max-size'
(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_OS_PIPE_SZ) identifier_OS_PIPE_SZ
(call
(identifier_min) identifier_min
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(binary_operator
(integer_1024) integer_1024
(integer_1024) integer_1024
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_PIPE_BUF_BYTES) identifier_PIPE_BUF_BYTES
(call
(identifier_max) identifier_max
(argument_list
(identifier_OS_PIPE_SZ) identifier_OS_PIPE_SZ
(identifier_PIPE_BUF_BYTES) identifier_PIPE_BUF_BYTES
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Set up module globals controlling buffer sizes |
(module
(function_definition
(function_name_get_dimension_by_name) function_name_get_dimension_by_name
(parameters
(identifier_dimension_name) identifier_dimension_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(if_statement
(comparison_operator
(identifier_dimension_name) identifier_dimension_name
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dimension_name) identifier_dimension_name
(string_'') string_''
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dimension) identifier_dimension
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_DBSession) identifier_DBSession
)attribute
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_Dimension) identifier_Dimension
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(call
(attribute
(identifier_func) identifier_func
(identifier_lower) identifier_lower
)attribute
(argument_list
(attribute
(identifier_Dimension) identifier_Dimension
(identifier_name) identifier_name
)attribute
)argument_list
)call
(call
(attribute
(identifier_func) identifier_func
(identifier_lower) identifier_lower
)attribute
(argument_list
(call
(attribute
(identifier_dimension_name) identifier_dimension_name
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)comparison_operator
)argument_list
)call
(identifier_one) identifier_one
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_get_dimension) identifier_get_dimension
(argument_list
(attribute
(identifier_dimension) identifier_dimension
(identifier_id) identifier_id
)attribute
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_NoResultFound) identifier_NoResultFound
(block
(raise_statement
(call
(identifier_ResourceNotFoundError) identifier_ResourceNotFoundError
(argument_list
(binary_operator
(string_"Dimension %s not found") string_"Dimension %s not found"
(parenthesized_expression
(identifier_dimension_name) identifier_dimension_name
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Given a dimension name returns all its data. Used in convert functions |
(module
(function_definition
(function_name_show_driver) function_name_show_driver
(parameters
(identifier_devname) identifier_devname
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(attribute
(identifier_ethtool) identifier_ethtool
(identifier_get_module) identifier_get_module
)attribute
(argument_list
(identifier_devname) identifier_devname
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Driver information not implemented on %s') string_'Driver information not implemented on %s'
(identifier_devname) identifier_devname
)argument_list
)call
)expression_statement
(return_statement
(string_'Not implemented') string_'Not implemented'
)return_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_businfo) identifier_businfo
(call
(attribute
(identifier_ethtool) identifier_ethtool
(identifier_get_businfo) identifier_get_businfo
)attribute
(argument_list
(identifier_devname) identifier_devname
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Bus information no available on %s') string_'Bus information no available on %s'
(identifier_devname) identifier_devname
)argument_list
)call
)expression_statement
(return_statement
(string_'Not available') string_'Not available'
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'driver') string_'driver'
(identifier_module) identifier_module
)pair
(pair
(string_'bus_info') string_'bus_info'
(identifier_businfo) identifier_businfo
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Queries the specified network device for associated driver information
CLI Example:
.. code-block:: bash
salt '*' ethtool.show_driver <devname> |
(module
(function_definition
(function_name__notify_fn) function_name__notify_fn
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__notifyrunning) identifier__notifyrunning
)attribute
(True) True
)assignment
)expression_statement
(while_statement
(attribute
(identifier_self) identifier_self
(identifier__notifyrunning) identifier__notifyrunning
)attribute
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_IHCController) identifier_IHCController
(identifier__mutex) identifier__mutex
)attribute
)with_item
)with_clause
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__newnotifyids) identifier__newnotifyids
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_enable_runtime_notifications) identifier_enable_runtime_notifications
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__newnotifyids) identifier__newnotifyids
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__newnotifyids) identifier__newnotifyids
)attribute
(list
)list
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_changes) identifier_changes
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_wait_for_resource_value_changes) identifier_wait_for_resource_value_changes
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_changes) identifier_changes
(False) False
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_re_authenticate) identifier_re_authenticate
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_ihcid) identifier_ihcid
(identifier_changes) identifier_changes
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_changes) identifier_changes
(identifier_ihcid) identifier_ihcid
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ihcid) identifier_ihcid
(attribute
(identifier_self) identifier_self
(identifier__ihcevents) identifier__ihcevents
)attribute
)comparison_operator
(block
(for_statement
(identifier_callback) identifier_callback
(subscript
(attribute
(identifier_self) identifier_self
(identifier__ihcevents) identifier__ihcevents
)attribute
(identifier_ihcid) identifier_ihcid
)subscript
(block
(expression_statement
(call
(identifier_callback) identifier_callback
(argument_list
(identifier_ihcid) identifier_ihcid
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exp) identifier_exp
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_re_authenticate) identifier_re_authenticate
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)while_statement
)block
)function_definition
)module | The notify thread function. |
(module
(function_definition
(function_name_inMicrolensRegion_main) function_name_inMicrolensRegion_main
(parameters
(default_parameter
(identifier_args) identifier_args
(None) None
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_argparse) identifier_argparse
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentParser) identifier_ArgumentParser
)attribute
(argument_list
(keyword_argument
(identifier_description) identifier_description
(concatenated_string
(string_"Check if a celestial coordinate is ") string_"Check if a celestial coordinate is "
(string_"inside the K2C9 microlensing superstamp.") string_"inside the K2C9 microlensing superstamp."
)concatenated_string
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'ra') string_'ra'
(keyword_argument
(identifier_nargs) identifier_nargs
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_float) identifier_float
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_"Right Ascension in decimal degrees (J2000).") string_"Right Ascension in decimal degrees (J2000)."
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'dec') string_'dec'
(keyword_argument
(identifier_nargs) identifier_nargs
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_float) identifier_float
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_"Declination in decimal degrees (J2000).") string_"Declination in decimal degrees (J2000)."
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_inMicrolensRegion) identifier_inMicrolensRegion
(argument_list
(subscript
(attribute
(identifier_args) identifier_args
(identifier_ra) identifier_ra
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_args) identifier_args
(identifier_dec) identifier_dec
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Yes! The coordinate is inside the K2C9 superstamp.") string_"Yes! The coordinate is inside the K2C9 superstamp."
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Sorry, the coordinate is NOT inside the K2C9 superstamp.") string_"Sorry, the coordinate is NOT inside the K2C9 superstamp."
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Exposes K2visible to the command line. |
(module
(function_definition
(function_name_create_tarfile) function_name_create_tarfile
(parameters
(typed_parameter
(identifier_files) identifier_files
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_tar_path) identifier_tar_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_tarfile) identifier_tarfile
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_tar_path) identifier_tar_path
(string_"w:gz") string_"w:gz"
)argument_list
)call
(as_pattern_target
(identifier_tar) identifier_tar
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_f) identifier_f
(identifier_files) identifier_files
(block
(expression_statement
(call
(attribute
(identifier_tar) identifier_tar
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Create a tar file based on the list of files passed |
(module
(function_definition
(function_name_model_fields) function_name_model_fields
(parameters
(identifier_model) identifier_model
(default_parameter
(identifier_allow_pk) identifier_allow_pk
(False) False
)default_parameter
(default_parameter
(identifier_only) identifier_only
(None) None
)default_parameter
(default_parameter
(identifier_exclude) identifier_exclude
(None) None
)default_parameter
(default_parameter
(identifier_field_args) identifier_field_args
(None) None
)default_parameter
(default_parameter
(identifier_converter) identifier_converter
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_converter) identifier_converter
(boolean_operator
(identifier_converter) identifier_converter
(call
(identifier_ModelConverter) identifier_ModelConverter
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_field_args) identifier_field_args
(boolean_operator
(identifier_field_args) identifier_field_args
(dictionary
)dictionary
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_model_fields) identifier_model_fields
(call
(identifier_list) identifier_list
(argument_list
(attribute
(attribute
(identifier_model) identifier_model
(identifier__meta) identifier__meta
)attribute
(identifier_sorted_fields) identifier_sorted_fields
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_allow_pk) identifier_allow_pk
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_model_fields) identifier_model_fields
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_only) identifier_only
(block
(expression_statement
(assignment
(identifier_model_fields) identifier_model_fields
(list_comprehension
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(identifier_model_fields) identifier_model_fields
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_x) identifier_x
(identifier_name) identifier_name
)attribute
(identifier_only) identifier_only
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
(elif_clause
(identifier_exclude) identifier_exclude
(block
(expression_statement
(assignment
(identifier_model_fields) identifier_model_fields
(list_comprehension
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(identifier_model_fields) identifier_model_fields
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_x) identifier_x
(identifier_name) identifier_name
)attribute
(identifier_exclude) identifier_exclude
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_field_dict) identifier_field_dict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_model_field) identifier_model_field
(identifier_model_fields) identifier_model_fields
(block
(expression_statement
(assignment
(pattern_list
(identifier_name) identifier_name
(identifier_field) identifier_field
)pattern_list
(call
(attribute
(identifier_converter) identifier_converter
(identifier_convert) identifier_convert
)attribute
(argument_list
(identifier_model) identifier_model
(identifier_model_field) identifier_model_field
(call
(attribute
(identifier_field_args) identifier_field_args
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_model_field) identifier_model_field
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_field_dict) identifier_field_dict
(identifier_name) identifier_name
)subscript
(identifier_field) identifier_field
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_field_dict) identifier_field_dict
)return_statement
)block
)function_definition
)module | Generate a dictionary of fields for a given Peewee model.
See `model_form` docstring for description of parameters. |
(module
(function_definition
(function_name_receive) function_name_receive
(parameters
(identifier_self) identifier_self
(identifier_content) identifier_content
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_connection_context) identifier_connection_context
)attribute
(call
(identifier_DjangoChannelConnectionContext) identifier_DjangoChannelConnectionContext
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_message) identifier_message
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_subscription_server) identifier_subscription_server
)attribute
(call
(identifier_DjangoChannelSubscriptionServer) identifier_DjangoChannelSubscriptionServer
(argument_list
(attribute
(identifier_graphene_settings) identifier_graphene_settings
(identifier_SCHEMA) identifier_SCHEMA
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_subscription_server) identifier_subscription_server
)attribute
(identifier_on_open) identifier_on_open
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_connection_context) identifier_connection_context
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_subscription_server) identifier_subscription_server
)attribute
(identifier_handle) identifier_handle
)attribute
(argument_list
(identifier_content) identifier_content
(attribute
(identifier_self) identifier_self
(identifier_connection_context) identifier_connection_context
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Called when a message is received with either text or bytes
filled out. |
(module
(function_definition
(function_name_add_specification) function_name_add_specification
(parameters
(identifier_self) identifier_self
(identifier_specification) identifier_specification
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_specification) identifier_specification
(identifier_name) identifier_name
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier___specs) identifier___specs
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'WStrictURIQuery object already has specification for parameter "%s" ') string_'WStrictURIQuery object already has specification for parameter "%s" '
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___specs) identifier___specs
)attribute
(identifier_name) identifier_name
)subscript
(identifier_specification) identifier_specification
)assignment
)expression_statement
)block
)function_definition
)module | Add a new query parameter specification. If this object already has a specification for the
specified parameter - exception is raised. No checks for the specified or any parameter are made
regarding specification appending
:param specification: new specification that will be added
:return: None |
(module
(function_definition
(function_name___xinclude_libxml2) function_name___xinclude_libxml2
(parameters
(identifier_target) identifier_target
(identifier_source) identifier_source
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(attribute
(identifier_libxml2) identifier_libxml2
(identifier_readFile) identifier_readFile
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_source) identifier_source
(integer_0) integer_0
)subscript
)argument_list
)call
(None) None
(attribute
(identifier_libxml2) identifier_libxml2
(identifier_XML_PARSE_NOENT) identifier_XML_PARSE_NOENT
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_doc) identifier_doc
(identifier_xincludeProcessFlags) identifier_xincludeProcessFlags
)attribute
(argument_list
(attribute
(identifier_libxml2) identifier_libxml2
(identifier_XML_PARSE_NOENT) identifier_XML_PARSE_NOENT
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_doc) identifier_doc
(identifier_saveFile) identifier_saveFile
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_target) identifier_target
(integer_0) integer_0
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_doc) identifier_doc
(identifier_freeDoc) identifier_freeDoc
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Resolving XIncludes, using the libxml2 module. |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_cls) identifier_cls
(identifier_grammar_filename) identifier_grammar_filename
(default_parameter
(identifier_rel_to) identifier_rel_to
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_rel_to) identifier_rel_to
(block
(expression_statement
(assignment
(identifier_basepath) identifier_basepath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_rel_to) identifier_rel_to
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_grammar_filename) identifier_grammar_filename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_basepath) identifier_basepath
(identifier_grammar_filename) identifier_grammar_filename
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_grammar_filename) identifier_grammar_filename
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf8') string_'utf8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_f) identifier_f
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Create an instance of Lark with the grammar given by its filename
If rel_to is provided, the function will find the grammar filename in relation to it.
Example:
>>> Lark.open("grammar_file.lark", rel_to=__file__, parser="lalr")
Lark(...) |
(module
(function_definition
(function_name_fetch) function_name_fetch
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_w) identifier_w
(identifier_h) identifier_h
)parameters
(block
(if_statement
(not_operator
(call
(identifier_at_least_libvips) identifier_at_least_libvips
(argument_list
(integer_8) integer_8
(integer_8) integer_8
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_Error) identifier_Error
(argument_list
(string_'libvips too old') string_'libvips too old'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_psize) identifier_psize
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_new) identifier_new
)attribute
(argument_list
(string_'size_t *') string_'size_t *'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pointer) identifier_pointer
(call
(attribute
(identifier_vips_lib) identifier_vips_lib
(identifier_vips_region_fetch) identifier_vips_region_fetch
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pointer) identifier_pointer
)attribute
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_w) identifier_w
(identifier_h) identifier_h
(identifier_psize) identifier_psize
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pointer) identifier_pointer
(attribute
(identifier_ffi) identifier_ffi
(identifier_NULL) identifier_NULL
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_Error) identifier_Error
(argument_list
(string_'unable to fetch from region') string_'unable to fetch from region'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pointer) identifier_pointer
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_gc) identifier_gc
)attribute
(argument_list
(identifier_pointer) identifier_pointer
(attribute
(identifier_glib_lib) identifier_glib_lib
(identifier_g_free) identifier_g_free
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_buffer) identifier_buffer
)attribute
(argument_list
(identifier_pointer) identifier_pointer
(subscript
(identifier_psize) identifier_psize
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fill a region with pixel data.
Pixels are filled with data!
Returns:
Pixel data.
Raises:
:class:`.Error` |
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_attrs) identifier_attrs
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_collect) identifier_collect
)attribute
(argument_list
(identifier_attrs) identifier_attrs
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_missing_implementations) identifier_add_missing_implementations
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fill_attrs) identifier_fill_attrs
)attribute
(argument_list
(identifier_attrs) identifier_attrs
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Perform all actions on a given attribute dict. |
(module
(function_definition
(function_name___validate_path_parameters) function_name___validate_path_parameters
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
(identifier_path_parameters) identifier_path_parameters
)parameters
(block
(for_statement
(identifier_param) identifier_param
(identifier_path_parameters) identifier_path_parameters
(block
(expression_statement
(assignment
(identifier_segment_list) identifier_segment_list
(call
(attribute
(identifier_param) identifier_param
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_segment_list) identifier_segment_list
(integer_0) integer_0
)subscript
(attribute
(identifier_field) identifier_field
(identifier_name) identifier_name
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_'Subfield %r can\'t come from field %r.') string_'Subfield %r can\'t come from field %r.'
(tuple
(identifier_param) identifier_param
(attribute
(identifier_field) identifier_field
(identifier_name) identifier_name
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___validate_simple_subfield) identifier___validate_simple_subfield
)attribute
(argument_list
(attribute
(identifier_field) identifier_field
(identifier_name) identifier_name
)attribute
(identifier_field) identifier_field
(subscript
(identifier_segment_list) identifier_segment_list
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Verifies that all path parameters correspond to an existing subfield.
Args:
field: An instance of a subclass of messages.Field. Should be the root
level property name in each path parameter in path_parameters. For
example, if the field is called 'foo', then each path parameter should
begin with 'foo.'.
path_parameters: A list of Strings representing URI parameter variables.
Raises:
TypeError: If one of the path parameters does not start with field.name. |
(module
(function_definition
(function_name_group_shelf_fqfn) function_name_group_shelf_fqfn
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__group_shelf_fqfn) identifier__group_shelf_fqfn
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__group_shelf_fqfn) identifier__group_shelf_fqfn
)attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tcex) identifier_tcex
)attribute
(identifier_args) identifier_args
)attribute
(identifier_tc_temp_path) identifier_tc_temp_path
)attribute
(call
(attribute
(string_'groups-{}') string_'groups-{}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_uuid) identifier_uuid
(identifier_uuid4) identifier_uuid4
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_saved_groups) identifier_saved_groups
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__group_shelf_fqfn) identifier__group_shelf_fqfn
)attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tcex) identifier_tcex
)attribute
(identifier_args) identifier_args
)attribute
(identifier_tc_temp_path) identifier_tc_temp_path
)attribute
(string_'groups-saved') string_'groups-saved'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__group_shelf_fqfn) identifier__group_shelf_fqfn
)attribute
)return_statement
)block
)function_definition
)module | Return groups shelf fully qualified filename.
For testing/debugging a previous shelf file can be copied into the tc_temp_path directory
instead of creating a new shelf file. |
(module
(function_definition
(function_name___call_api) function_name___call_api
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_api_url) identifier_api_url
(identifier_FORECAST_URL) identifier_FORECAST_URL
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_params) identifier_params
)not_operator
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'key') string_'key'
(attribute
(identifier_self) identifier_self
(identifier_api_key) identifier_api_key
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_payload) identifier_payload
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_"%s/%s") string_"%s/%s"
(tuple
(identifier_api_url) identifier_api_url
(identifier_path) identifier_path
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sess) identifier_sess
(call
(attribute
(identifier_self) identifier_self
(identifier___retry_session) identifier___retry_session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_sess) identifier_sess
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_params) identifier_params
(identifier_payload) identifier_payload
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_req) identifier_req
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_APIException) identifier_APIException
(argument_list
(string_"DataPoint has not returned any data, this could be due to an incorrect API key") string_"DataPoint has not returned any data, this could be due to an incorrect API key"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_call_response) identifier_call_response
)attribute
(identifier_data) identifier_data
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_req) identifier_req
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(subscript
(list_comprehension
(subscript
(identifier_data) identifier_data
(identifier_m) identifier_m
)subscript
(for_in_clause
(identifier_m) identifier_m
(tuple
(string_"message") string_"message"
(string_"error_message") string_"error_message"
(string_"status") string_"status"
)tuple
)for_in_clause
(line_continuation_\) line_continuation_\
(if_clause
(comparison_operator
(identifier_m) identifier_m
(identifier_data) identifier_data
)comparison_operator
)if_clause
)list_comprehension
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Call the datapoint api using the requests module |
(module
(function_definition
(function_name__dehex) function_name__dehex
(parameters
(identifier_s) identifier_s
)parameters
(block
(import_statement
(dotted_name
(identifier_re) identifier_re
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_binascii) identifier_binascii
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_br'[^a-fA-F\d]') string_br'[^a-fA-F\d]'
(string_b'') string_b''
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_binascii) identifier_binascii
(identifier_unhexlify) identifier_unhexlify
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)return_statement
)block
)function_definition
)module | Liberally convert from hex string to binary string. |
(module
(function_definition
(function_name_hosting_devices_assigned_to_cfg_agent) function_name_hosting_devices_assigned_to_cfg_agent
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
(identifier_ids) identifier_ids
(identifier_host) identifier_host
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__host_notification) identifier__host_notification
)attribute
(argument_list
(identifier_context) identifier_context
(string_'hosting_devices_assigned_to_cfg_agent') string_'hosting_devices_assigned_to_cfg_agent'
(dictionary
(pair
(string_'hosting_device_ids') string_'hosting_device_ids'
(identifier_ids) identifier_ids
)pair
)dictionary
(identifier_host) identifier_host
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Notify cfg agent to now handle some hosting devices.
This notification relieves the cfg agent in <host> of responsibility
to monitor and configure hosting devices with id specified in <ids>. |
(module
(function_definition
(function_name_show_tables) function_name_show_tables
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier__State) identifier__State
(identifier_connection) identifier_connection
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__State) identifier__State
(identifier_reflect_metadata) identifier_reflect_metadata
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(attribute
(identifier__State) identifier__State
(identifier_metadata) identifier_metadata
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_select) identifier_select
(argument_list
(string_'name, sql from sqlite_master where type="table"') string_'name, sql from sqlite_master where type="table"'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary_comprehension
(pair
(subscript
(identifier_row) identifier_row
(string_'name') string_'name'
)subscript
(subscript
(identifier_row) identifier_row
(string_'sql') string_'sql'
)subscript
)pair
(for_in_clause
(identifier_row) identifier_row
(identifier_response) identifier_response
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Return the names of the tables currently in the database. |
(module
(function_definition
(function_name_binary_dumps) function_name_binary_dumps
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_alt_format) identifier_alt_format
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(string_b'') string_b''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier__binary_dump_gen) identifier__binary_dump_gen
(argument_list
(identifier_obj) identifier_obj
(keyword_argument
(identifier_alt_format) identifier_alt_format
(identifier_alt_format) identifier_alt_format
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Serialize ``obj`` to a binary VDF formatted ``bytes``. |
(module
(function_definition
(function_name__compute_quads) function_name__compute_quads
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
(identifier_data) identifier_data
(identifier_mapping) identifier_mapping
)parameters
(block
(expression_statement
(assignment
(identifier_quad_mapping) identifier_quad_mapping
(dictionary
(pair
(string_'left') string_'left'
(string_'x0') string_'x0'
)pair
(pair
(string_'right') string_'right'
(string_'x1') string_'x1'
)pair
(pair
(string_'bottom') string_'bottom'
(string_'y0') string_'y0'
)pair
(pair
(string_'top') string_'top'
(string_'y1') string_'y1'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_quad_data) identifier_quad_data
(call
(identifier_dict) identifier_dict
(argument_list
(subscript
(identifier_data) identifier_data
(string_'scatter_1') string_'scatter_1'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_quad_data) identifier_quad_data
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'x0') string_'x0'
(list
)list
)pair
(pair
(string_'x1') string_'x1'
(list
)list
)pair
(pair
(string_'y0') string_'y0'
(list
)list
)pair
(pair
(string_'y1') string_'y1'
(list
)list
)pair
)dictionary
)argument_list
)call
)expression_statement
(for_statement
(identifier_node) identifier_node
(subscript
(attribute
(identifier_element) identifier_element
(identifier__sankey) identifier__sankey
)attribute
(string_'nodes') string_'nodes'
)subscript
(block
(expression_statement
(call
(attribute
(subscript
(identifier_quad_data) identifier_quad_data
(string_'x0') string_'x0'
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_node) identifier_node
(string_'x0') string_'x0'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_quad_data) identifier_quad_data
(string_'y0') string_'y0'
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_node) identifier_node
(string_'y0') string_'y0'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_quad_data) identifier_quad_data
(string_'x1') string_'x1'
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_node) identifier_node
(string_'x1') string_'x1'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_quad_data) identifier_quad_data
(string_'y1') string_'y1'
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_node) identifier_node
(string_'y1') string_'y1'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_data) identifier_data
(string_'scatter_1') string_'scatter_1'
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_quad_data) identifier_quad_data
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'quad_1') string_'quad_1'
)subscript
(subscript
(identifier_data) identifier_data
(string_'scatter_1') string_'scatter_1'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_mapping) identifier_mapping
(string_'quad_1') string_'quad_1'
)subscript
(identifier_quad_mapping) identifier_quad_mapping
)assignment
)expression_statement
)block
)function_definition
)module | Computes the node quad glyph data.x |
(module
(function_definition
(function_name_architecture) function_name_architecture
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_arch) identifier_arch
(dictionary
(pair
(string_'class') string_'class'
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
)pair
(pair
(string_'n_in') string_'n_in'
(attribute
(identifier_self) identifier_self
(identifier_n_in) identifier_n_in
)attribute
)pair
(pair
(string_'n_units') string_'n_units'
(attribute
(identifier_self) identifier_self
(identifier_n_units) identifier_n_units
)attribute
)pair
(pair
(string_'activation_function') string_'activation_function'
(conditional_expression
(attribute
(identifier_self) identifier_self
(identifier_activation_function) identifier_activation_function
)attribute
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'activation_function') string_'activation_function'
)argument_list
)call
(None) None
)conditional_expression
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_arch) identifier_arch
)return_statement
)block
)function_definition
)module | Returns a dictionary describing the architecture of the layer. |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(identifier_record) identifier_record
(call
(attribute
(identifier_self) identifier_self
(identifier_prepare) identifier_prepare
)attribute
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_handler) identifier_handler
(attribute
(identifier_self) identifier_self
(identifier_handlers) identifier_handlers
)attribute
(block
(expression_statement
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Handle an item.
This just loops through the handlers offering them the record
to handle. |
(module
(function_definition
(function_name_createComment) function_name_createComment
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__makeApiCall) identifier__makeApiCall
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_funcinfo) identifier_funcinfo
)attribute
(string_"createComment") string_"createComment"
)subscript
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Post a comment on a given GitHub Issue or Pull Request
For a given Issue or Pull Request of a repository, this will write a new message.
This method takes input: ``v1/create-comment.json#``
This method is ``experimental`` |
(module
(function_definition
(function_name_Cinv) function_name_Cinv
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_linalg) identifier_linalg
)attribute
(identifier_inv) identifier_inv
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_c) identifier_c
)attribute
)argument_list
)call
)return_statement
)block
(except_clause
(attribute
(attribute
(attribute
(identifier_np) identifier_np
(identifier_linalg) identifier_linalg
)attribute
(identifier_linalg) identifier_linalg
)attribute
(identifier_LinAlgError) identifier_LinAlgError
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Warning: non-invertible noise covariance matrix c.') string_'Warning: non-invertible noise covariance matrix c.'
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_eye) identifier_eye
)attribute
(argument_list
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_c) identifier_c
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Inverse of the noise covariance. |
(module
(function_definition
(function_name_resize_psf) function_name_resize_psf
(parameters
(identifier_psf) identifier_psf
(identifier_input_pixel_scale) identifier_input_pixel_scale
(identifier_output_pixel_scale) identifier_output_pixel_scale
(default_parameter
(identifier_order) identifier_order
(integer_3) integer_3
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_ndimage) identifier_ndimage
)dotted_name
(dotted_name
(identifier_zoom) identifier_zoom
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_ratio) identifier_ratio
(binary_operator
(identifier_input_pixel_scale) identifier_input_pixel_scale
(identifier_output_pixel_scale) identifier_output_pixel_scale
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(identifier_zoom) identifier_zoom
(argument_list
(identifier_psf) identifier_psf
(identifier_ratio) identifier_ratio
(keyword_argument
(identifier_order) identifier_order
(identifier_order) identifier_order
)keyword_argument
)argument_list
)call
(binary_operator
(identifier_ratio) identifier_ratio
(integer_2) integer_2
)binary_operator
)binary_operator
)return_statement
)block
)function_definition
)module | Resize a PSF using spline interpolation of the requested order.
Parameters
----------
psf : 2D `~numpy.ndarray`
The 2D data array of the PSF.
input_pixel_scale : float
The pixel scale of the input ``psf``. The units must
match ``output_pixel_scale``.
output_pixel_scale : float
The pixel scale of the output ``psf``. The units must
match ``input_pixel_scale``.
order : float, optional
The order of the spline interpolation (0-5). The default is 3.
Returns
-------
result : 2D `~numpy.ndarray`
The resampled/interpolated 2D data array. |
(module
(function_definition
(function_name_psychrometric_vapor_pressure_wet) function_name_psychrometric_vapor_pressure_wet
(parameters
(identifier_dry_bulb_temperature) identifier_dry_bulb_temperature
(identifier_wet_bulb_temperature) identifier_wet_bulb_temperature
(identifier_pressure) identifier_pressure
(default_parameter
(identifier_psychrometer_coefficient) identifier_psychrometer_coefficient
(binary_operator
(float_6.21e-4) float_6.21e-4
(attribute
(identifier_units) identifier_units
(identifier_kelvin) identifier_kelvin
)attribute
)binary_operator
)default_parameter
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(return_statement
(parenthesized_expression
(binary_operator
(call
(identifier_saturation_vapor_pressure) identifier_saturation_vapor_pressure
(argument_list
(identifier_wet_bulb_temperature) identifier_wet_bulb_temperature
)argument_list
)call
(binary_operator
(binary_operator
(identifier_psychrometer_coefficient) identifier_psychrometer_coefficient
(identifier_pressure) identifier_pressure
)binary_operator
(call
(attribute
(parenthesized_expression
(binary_operator
(identifier_dry_bulb_temperature) identifier_dry_bulb_temperature
(identifier_wet_bulb_temperature) identifier_wet_bulb_temperature
)binary_operator
)parenthesized_expression
(identifier_to) identifier_to
)attribute
(argument_list
(string_'kelvin') string_'kelvin'
)argument_list
)call
)binary_operator
)binary_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | r"""Calculate the vapor pressure with wet bulb and dry bulb temperatures.
This uses a psychrometric relationship as outlined in [WMO8-2014]_, with
coefficients from [Fan1987]_.
Parameters
----------
dry_bulb_temperature: `pint.Quantity`
Dry bulb temperature
wet_bulb_temperature: `pint.Quantity`
Wet bulb temperature
pressure: `pint.Quantity`
Total atmospheric pressure
psychrometer_coefficient: `pint.Quantity`, optional
Psychrometer coefficient. Defaults to 6.21e-4 K^-1.
Returns
-------
`pint.Quantity`
Vapor pressure
Notes
-----
.. math:: e' = e'_w(T_w) - A p (T - T_w)
* :math:`e'` is vapor pressure
* :math:`e'_w(T_w)` is the saturation vapor pressure with respect to water at temperature
:math:`T_w`
* :math:`p` is the pressure of the wet bulb
* :math:`T` is the temperature of the dry bulb
* :math:`T_w` is the temperature of the wet bulb
* :math:`A` is the psychrometer coefficient
Psychrometer coefficient depends on the specific instrument being used and the ventilation
of the instrument.
See Also
--------
saturation_vapor_pressure |
(module
(function_definition
(function_name_flags) function_name_flags
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_index) identifier_index
(identifier_isValid) identifier_isValid
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(attribute
(identifier_Qt) identifier_Qt
(identifier_ItemIsEnabled) identifier_ItemIsEnabled
)attribute
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_Qt) identifier_Qt
(identifier_ItemFlags) identifier_ItemFlags
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_QAbstractTableModel) identifier_QAbstractTableModel
(identifier_flags) identifier_flags
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_index) identifier_index
)argument_list
)call
(attribute
(identifier_Qt) identifier_Qt
(identifier_ItemIsEditable) identifier_ItemIsEditable
)attribute
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Overriding method flags |
(module
(function_definition
(function_name_rm) function_name_rm
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_self) identifier_self
(identifier__sendRequest) identifier__sendRequest
)attribute
(argument_list
(string_"DELETE") string_"DELETE"
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(tuple
(integer_200) integer_200
(integer_204) integer_204
)tuple
)comparison_operator
)parenthesized_expression
)not_operator
(block
(raise_statement
(call
(identifier_YaDiskException) identifier_YaDiskException
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_content) identifier_content
)attribute
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Delete file or directory. |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(identifier_rownr) identifier_rownr
(identifier_value) identifier_value
(default_parameter
(identifier_matchingfields) identifier_matchingfields
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__put) identifier__put
)attribute
(argument_list
(identifier_rownr) identifier_rownr
(identifier_value) identifier_value
(identifier_matchingfields) identifier_matchingfields
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Put the values into the given row.
The value should be a dict (as returned by method :func:`get`.
The names of the fields in the dict should match the names of the
columns used in the `tablerow` object.
`matchingfields=True` means that the value may contain more fields
and only fields matching a column name will be used. |
(module
(function_definition
(function_name_parse_cuda_device) function_name_parse_cuda_device
(parameters
(typed_parameter
(identifier_cuda_device) identifier_cuda_device
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_int) identifier_int
)type
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(block
(function_definition
(function_name_from_list) function_name_from_list
(parameters
(identifier_strings) identifier_strings
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_strings) identifier_strings
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(identifier_d) identifier_d
)argument_list
)call
(for_in_clause
(identifier_d) identifier_d
(identifier_strings) identifier_strings
)for_in_clause
)list_comprehension
)return_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_strings) identifier_strings
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_strings) identifier_strings
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cuda_device) identifier_cuda_device
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(call
(identifier_from_list) identifier_from_list
(argument_list
(call
(attribute
(identifier_re) identifier_re
(identifier_split) identifier_split
)attribute
(argument_list
(string_r',\s*') string_r',\s*'
(identifier_cuda_device) identifier_cuda_device
)argument_list
)call
)argument_list
)call
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cuda_device) identifier_cuda_device
(identifier_int) identifier_int
)argument_list
)call
(block
(return_statement
(identifier_cuda_device) identifier_cuda_device
)return_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cuda_device) identifier_cuda_device
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(call
(identifier_from_list) identifier_from_list
(argument_list
(identifier_cuda_device) identifier_cuda_device
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(identifier_cuda_device) identifier_cuda_device
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Disambiguates single GPU and multiple GPU settings for cuda_device param. |
(module
(function_definition
(function_name__compile_set) function_name__compile_set
(parameters
(identifier_self) identifier_self
(identifier_schema) identifier_schema
)parameters
(block
(expression_statement
(assignment
(identifier_type_) identifier_type_
(call
(identifier_type) identifier_type
(argument_list
(identifier_schema) identifier_schema
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_type_name) identifier_type_name
(attribute
(identifier_type_) identifier_type_
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(function_definition
(function_name_validate_set) function_name_validate_set
(parameters
(identifier_path) identifier_path
(identifier_data) identifier_data
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(identifier_type_) identifier_type_
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_er) identifier_er
(identifier_Invalid) identifier_Invalid
)attribute
(argument_list
(binary_operator
(string_'expected a %s') string_'expected a %s'
(identifier_type_name) identifier_type_name
)binary_operator
(identifier_path) identifier_path
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier__compiled) identifier__compiled
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier__compile) identifier__compile
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(for_in_clause
(identifier_s) identifier_s
(identifier_schema) identifier_schema
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_errors) identifier_errors
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_value) identifier_value
(identifier_data) identifier_data
(block
(for_statement
(identifier_validate) identifier_validate
(identifier__compiled) identifier__compiled
(block
(try_statement
(block
(expression_statement
(call
(identifier_validate) identifier_validate
(argument_list
(identifier_path) identifier_path
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
(except_clause
(attribute
(identifier_er) identifier_er
(identifier_Invalid) identifier_Invalid
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_invalid) identifier_invalid
(call
(attribute
(identifier_er) identifier_er
(identifier_Invalid) identifier_Invalid
)attribute
(argument_list
(binary_operator
(string_'invalid value in %s') string_'invalid value in %s'
(identifier_type_name) identifier_type_name
)binary_operator
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_invalid) identifier_invalid
)argument_list
)call
)expression_statement
)block
)else_clause
)for_statement
)block
)for_statement
(if_statement
(identifier_errors) identifier_errors
(block
(raise_statement
(call
(attribute
(identifier_er) identifier_er
(identifier_MultipleInvalid) identifier_MultipleInvalid
)attribute
(argument_list
(identifier_errors) identifier_errors
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
(return_statement
(identifier_validate_set) identifier_validate_set
)return_statement
)block
)function_definition
)module | Validate a set.
A set is an unordered collection of unique elements.
>>> validator = Schema({int})
>>> validator(set([42])) == set([42])
True
>>> with raises(er.Invalid, 'expected a set'):
... validator(42)
>>> with raises(er.MultipleInvalid, 'invalid value in set'):
... validator(set(['a'])) |
(module
(function_definition
(function_name__QueryHash) function_name__QueryHash
(parameters
(identifier_self) identifier_self
(identifier_nsrl_socket) identifier_nsrl_socket
(identifier_digest) identifier_digest
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(call
(attribute
(string_'QUERY {0:s}\n') string_'QUERY {0:s}\n'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_digest) identifier_digest
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_UnicodeDecodeError) identifier_UnicodeDecodeError
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_'Unable to encode digest: {0!s} to ASCII.') string_'Unable to encode digest: {0!s} to ASCII.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_digest) identifier_digest
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_nsrl_socket) identifier_nsrl_socket
(identifier_sendall) identifier_sendall
)attribute
(argument_list
(identifier_query) identifier_query
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_nsrl_socket) identifier_nsrl_socket
(identifier_recv) identifier_recv
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__RECEIVE_BUFFER_SIZE) identifier__RECEIVE_BUFFER_SIZE
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_socket) identifier_socket
(identifier_error) identifier_error
)attribute
(as_pattern_target
(identifier_exception) identifier_exception
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_'Unable to query nsrlsvr with error: {0!s}.') string_'Unable to query nsrlsvr with error: {0!s}.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_response) identifier_response
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_response) identifier_response
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(identifier_response) identifier_response
(string_b'OK 1') string_b'OK 1'
)comparison_operator
)return_statement
)block
)function_definition
)module | Queries nsrlsvr for a specific hash.
Args:
nsrl_socket (socket._socketobject): socket of connection to nsrlsvr.
digest (str): hash to look up.
Returns:
bool: True if the hash was found, False if not or None on error. |
(module
(function_definition
(function_name_rounding) function_name_rounding
(parameters
(identifier_price) identifier_price
(identifier_currency) identifier_currency
)parameters
(block
(expression_statement
(assignment
(identifier_currency) identifier_currency
(call
(identifier_validate_currency) identifier_validate_currency
(argument_list
(identifier_currency) identifier_currency
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_price) identifier_price
(call
(identifier_validate_price) identifier_validate_price
(argument_list
(identifier_price) identifier_price
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_decimals) identifier_decimals
(argument_list
(identifier_currency) identifier_currency
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_price) identifier_price
)argument_list
)call
(call
(identifier_decimals) identifier_decimals
(argument_list
(identifier_currency) identifier_currency
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(identifier_price) identifier_price
(call
(identifier_decimals) identifier_decimals
(argument_list
(identifier_currency) identifier_currency
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | rounding currency value based on its max decimal digits |
(module
(function_definition
(function_name_attach) function_name_attach
(parameters
(identifier_self) identifier_self
(identifier_api_object) identifier_api_object
(default_parameter
(identifier_on_cloud) identifier_on_cloud
(False) False
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_on_cloud) identifier_on_cloud
)attribute
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_api_object) identifier_api_object
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_api_object) identifier_api_object
(string_'attachments') string_'attachments'
(None) None
)argument_list
)call
)boolean_operator
(block
(if_statement
(identifier_on_cloud) identifier_on_cloud
(block
(if_statement
(not_operator
(attribute
(identifier_api_object) identifier_api_object
(identifier_object_id) identifier_object_id
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_'A valid object id is needed in order to attach a file') string_'A valid object id is needed in order to attach a file'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_api_object) identifier_api_object
(identifier_build_url) identifier_build_url
)attribute
(argument_list
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__endpoints) identifier__endpoints
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'attach') string_'attach'
)argument_list
)call
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(attribute
(identifier_api_object) identifier_api_object
(identifier_object_id) identifier_object_id
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_api_object) identifier_api_object
(identifier_con) identifier_con
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier_to_api_data) identifier_to_api_data
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_attachment_type) identifier_attachment_type
)attribute
(string_'file') string_'file'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_api_object) identifier_api_object
(identifier_attachments) identifier_attachments
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(list
(dictionary
(pair
(string_'attachment_id') string_'attachment_id'
(attribute
(identifier_self) identifier_self
(identifier_attachment_id) identifier_attachment_id
)attribute
)pair
(pair
(string_'path') string_'path'
(conditional_expression
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_attachment) identifier_attachment
)attribute
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_attachment) identifier_attachment
)attribute
(None) None
)conditional_expression
)pair
(pair
(string_'name') string_'name'
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)pair
(pair
(string_'content') string_'content'
(attribute
(identifier_self) identifier_self
(identifier_content) identifier_content
)attribute
)pair
(pair
(string_'on_disk') string_'on_disk'
(attribute
(identifier_self) identifier_self
(identifier_on_disk) identifier_on_disk
)attribute
)pair
)dictionary
)list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_'Only file attachments can be attached') string_'Only file attachments can be attached'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Attach this attachment to an existing api_object. This
BaseAttachment object must be an orphan BaseAttachment created for the
sole purpose of attach it to something and therefore run this method.
:param api_object: object to attach to
:param on_cloud: if the attachment is on cloud or not
:return: Success / Failure
:rtype: bool |
(module
(function_definition
(function_name_commands) function_name_commands
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(tuple_pattern
(attribute
(identifier_self) identifier_self
(identifier__commands) identifier__commands
)attribute
(identifier_value) identifier_value
)tuple_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_get_cached_attr_set) identifier_get_cached_attr_set
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__commands) identifier__commands
)attribute
(string_'commands') string_'commands'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Returns a list of commands that are supported by the motor
controller. Possible values are `run-forever`, `run-to-abs-pos`, `run-to-rel-pos`,
`run-timed`, `run-direct`, `stop` and `reset`. Not all commands may be supported.
- `run-forever` will cause the motor to run until another command is sent.
- `run-to-abs-pos` will run to an absolute position specified by `position_sp`
and then stop using the action specified in `stop_action`.
- `run-to-rel-pos` will run to a position relative to the current `position` value.
The new position will be current `position` + `position_sp`. When the new
position is reached, the motor will stop using the action specified by `stop_action`.
- `run-timed` will run the motor for the amount of time specified in `time_sp`
and then stop the motor using the action specified by `stop_action`.
- `run-direct` will run the motor at the duty cycle specified by `duty_cycle_sp`.
Unlike other run commands, changing `duty_cycle_sp` while running *will*
take effect immediately.
- `stop` will stop any of the run commands before they are complete using the
action specified by `stop_action`.
- `reset` will reset all of the motor parameter attributes to their default value.
This will also have the effect of stopping the motor. |
(module
(function_definition
(function_name_snapshot) function_name_snapshot
(parameters
(identifier_domain) identifier_domain
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_suffix) identifier_suffix
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(boolean_operator
(identifier_name) identifier_name
(comparison_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_domain) identifier_domain
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(concatenated_string
(string_'Virtual Machine {name} is already defined. ') string_'Virtual Machine {name} is already defined. '
(string_'Please choose another name for the snapshot') string_'Please choose another name for the snapshot'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_name) identifier_name
)not_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(string_"{domain}-{tsnap}") string_"{domain}-{tsnap}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_domain) identifier_domain
(identifier_domain) identifier_domain
)keyword_argument
(keyword_argument
(identifier_tsnap) identifier_tsnap
(call
(attribute
(identifier_time) identifier_time
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%Y%m%d-%H%M%S') string_'%Y%m%d-%H%M%S'
(call
(attribute
(identifier_time) identifier_time
(identifier_localtime) identifier_localtime
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_suffix) identifier_suffix
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(string_"{name}-{suffix}") string_"{name}-{suffix}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_suffix) identifier_suffix
(identifier_suffix) identifier_suffix
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(attribute
(identifier_ElementTree) identifier_ElementTree
(identifier_Element) identifier_Element
)attribute
(argument_list
(string_'domainsnapshot') string_'domainsnapshot'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n_name) identifier_n_name
(call
(attribute
(identifier_ElementTree) identifier_ElementTree
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_doc) identifier_doc
(string_'name') string_'name'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_n_name) identifier_n_name
(identifier_text) identifier_text
)attribute
(identifier_name) identifier_name
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier___get_conn) identifier___get_conn
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier__get_domain) identifier__get_domain
(argument_list
(identifier_conn) identifier_conn
(identifier_domain) identifier_domain
)argument_list
)call
(identifier_snapshotCreateXML) identifier_snapshotCreateXML
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_stringutils) identifier_stringutils
)attribute
(identifier_to_str) identifier_to_str
)attribute
(argument_list
(call
(attribute
(identifier_ElementTree) identifier_ElementTree
(identifier_tostring) identifier_tostring
)attribute
(argument_list
(identifier_doc) identifier_doc
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_conn) identifier_conn
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Create a snapshot of a VM.
:param domain: domain name
:param name: Name of the snapshot. If the name is omitted, then will be used original domain
name with ISO 8601 time as a suffix.
:param suffix: Add suffix for the new name. Useful in states, where such snapshots
can be distinguished from manually created.
: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
.. versionadded:: 2016.3.0
CLI Example:
.. code-block:: bash
salt '*' virt.snapshot <domain> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.