sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_show) function_name_show
(parameters
(identifier_self) identifier_self
(identifier_func_name) identifier_func_name
(identifier_values) identifier_values
(default_parameter
(identifier_labels) identifier_labels
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_self) identifier_self
(identifier_Stanza) identifier_Stanza
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_indent) identifier_indent
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_func_name) identifier_func_name
(string_'<module>') string_'<module>'
)comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_in_console) identifier_in_console
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_func_name) identifier_func_name
(string_'<console>') string_'<console>'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_add) identifier_add
)attribute
(argument_list
(list
(binary_operator
(identifier_func_name) identifier_func_name
(string_': ') string_': '
)binary_operator
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_reprs) identifier_reprs
(call
(identifier_map) identifier_map
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_safe_repr) identifier_safe_repr
)attribute
(identifier_values) identifier_values
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_labels) identifier_labels
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(string_'') string_''
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_label) identifier_label
(identifier_repr) identifier_repr
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_labels) identifier_labels
(identifier_reprs) identifier_reprs
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_add) identifier_add
)attribute
(argument_list
(list
(binary_operator
(identifier_label) identifier_label
(string_'=') string_'='
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_CYAN) identifier_CYAN
)attribute
(identifier_repr) identifier_repr
(attribute
(identifier_self) identifier_self
(identifier_NORMAL) identifier_NORMAL
)attribute
)list
(identifier_sep) identifier_sep
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_sep) identifier_sep
(string_', ') string_', '
)assignment
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_repr) identifier_repr
(identifier_reprs) identifier_reprs
(block
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_add) identifier_add
)attribute
(argument_list
(list
(attribute
(identifier_self) identifier_self
(identifier_CYAN) identifier_CYAN
)attribute
(identifier_repr) identifier_repr
(attribute
(identifier_self) identifier_self
(identifier_NORMAL) identifier_NORMAL
)attribute
)list
(identifier_sep) identifier_sep
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_sep) identifier_sep
(string_', ') string_', '
)assignment
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_writer) identifier_writer
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_s) identifier_s
(identifier_chunks) identifier_chunks
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Prints out nice representations of the given values. |
(module
(function_definition
(function_name_copy_to_tmp) function_name_copy_to_tmp
(parameters
(identifier_source) identifier_source
)parameters
(block
(expression_statement
(assignment
(identifier_tmp_dir) identifier_tmp_dir
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_mkdtemp) identifier_mkdtemp
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_pathlib) identifier_pathlib
(identifier_Path) identifier_Path
)attribute
(argument_list
(identifier_source) identifier_source
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dirname) identifier_dirname
(boolean_operator
(attribute
(identifier_p) identifier_p
(identifier_name) identifier_name
)attribute
(string_'temp') string_'temp'
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_dir) identifier_new_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
(identifier_dirname) identifier_dirname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_source) identifier_source
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copytree) identifier_copytree
)attribute
(argument_list
(identifier_source) identifier_source
(identifier_new_dir) identifier_new_dir
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy2) identifier_copy2
)attribute
(argument_list
(identifier_source) identifier_source
(identifier_new_dir) identifier_new_dir
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_new_dir) identifier_new_dir
)return_statement
)block
)function_definition
)module | Copies ``source`` to a temporary directory, and returns the copied
location.
If source is a file, the copied location is also a file. |
(module
(function_definition
(function_name_send_document) function_name_send_document
(parameters
(identifier_self) identifier_self
(identifier_document) identifier_document
(default_parameter
(identifier_caption) identifier_caption
(string_"") string_""
)default_parameter
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bot) identifier_bot
)attribute
(identifier_api_call) identifier_api_call
)attribute
(argument_list
(string_"sendDocument") string_"sendDocument"
(keyword_argument
(identifier_chat_id) identifier_chat_id
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_document) identifier_document
(identifier_document) identifier_document
)keyword_argument
(keyword_argument
(identifier_caption) identifier_caption
(identifier_caption) identifier_caption
)keyword_argument
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Send a general file.
:param document: Object containing the document data
:param str caption: Document caption (optional)
:param options: Additional sendDocument options (see
https://core.telegram.org/bots/api#senddocument)
:Example:
>>> with open("file.doc", "rb") as f:
>>> await chat.send_document(f) |
(module
(function_definition
(function_name_coldesc) function_name_coldesc
(parameters
(identifier_self) identifier_self
(identifier_columnname) identifier_columnname
(default_parameter
(identifier_actual) identifier_actual
(True) True
)default_parameter
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_casacore) identifier_casacore
(identifier_tables) identifier_tables
(identifier_tableutil) identifier_tableutil
)dotted_name
(identifier_pt) identifier_pt
)aliased_import
)import_statement
(return_statement
(call
(attribute
(identifier_pt) identifier_pt
(identifier_makecoldesc) identifier_makecoldesc
)attribute
(argument_list
(identifier_columnname) identifier_columnname
(call
(attribute
(identifier_self) identifier_self
(identifier_getcoldesc) identifier_getcoldesc
)attribute
(argument_list
(identifier_columnname) identifier_columnname
(identifier_actual) identifier_actual
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Make the description of a column.
Make the description object of the given column as
:func:`makecoldesc` is doing with the description given by
:func:`getcoldesc`. |
(module
(function_definition
(function_name_gen_paula_etree) function_name_gen_paula_etree
(parameters
(identifier_paula_id) identifier_paula_id
)parameters
(block
(expression_statement
(assignment
(identifier_E) identifier_E
(call
(identifier_ElementMaker) identifier_ElementMaker
(argument_list
(keyword_argument
(identifier_nsmap) identifier_nsmap
(identifier_NSMAP) identifier_NSMAP
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tree) identifier_tree
(call
(identifier_E) identifier_E
(argument_list
(string_'paula') string_'paula'
(keyword_argument
(identifier_version) identifier_version
(string_'1.1') string_'1.1'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tree) identifier_tree
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_E) identifier_E
(argument_list
(string_'header') string_'header'
(keyword_argument
(identifier_paula_id) identifier_paula_id
(identifier_paula_id) identifier_paula_id
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_E) identifier_E
(identifier_tree) identifier_tree
)expression_list
)return_statement
)block
)function_definition
)module | creates an element tree representation of an empty PAULA XML file. |
(module
(function_definition
(function_name_linear_interpolate_rank) function_name_linear_interpolate_rank
(parameters
(identifier_tensor1) identifier_tensor1
(identifier_tensor2) identifier_tensor2
(identifier_coeffs) identifier_coeffs
(default_parameter
(identifier_rank) identifier_rank
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier__) identifier__
(identifier_num_channels) identifier_num_channels
)pattern_list
(call
(attribute
(identifier_common_layers) identifier_common_layers
(identifier_shape_list) identifier_shape_list
)attribute
(argument_list
(identifier_tensor1) identifier_tensor1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_diff_sq_sum) identifier_diff_sq_sum
(call
(attribute
(identifier_tf) identifier_tf
(identifier_reduce_sum) identifier_reduce_sum
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_tensor1) identifier_tensor1
(identifier_tensor2) identifier_tensor2
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
(keyword_argument
(identifier_axis) identifier_axis
(tuple
(integer_0) integer_0
(integer_1) integer_1
(integer_2) integer_2
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_feature_ranks) identifier_feature_ranks
)pattern_list
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_math) identifier_math
)attribute
(identifier_top_k) identifier_top_k
)attribute
(argument_list
(identifier_diff_sq_sum) identifier_diff_sq_sum
(keyword_argument
(identifier_k) identifier_k
(identifier_rank) identifier_rank
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_feature_rank) identifier_feature_rank
(subscript
(identifier_feature_ranks) identifier_feature_ranks
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_channel_inds) identifier_channel_inds
(call
(attribute
(identifier_tf) identifier_tf
(identifier_range) identifier_range
)attribute
(argument_list
(identifier_num_channels) identifier_num_channels
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_tf) identifier_tf
(identifier_int32) identifier_int32
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_channel_mask) identifier_channel_mask
(call
(attribute
(identifier_tf) identifier_tf
(identifier_equal) identifier_equal
)attribute
(argument_list
(identifier_channel_inds) identifier_channel_inds
(identifier_feature_rank) identifier_feature_rank
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ones_t) identifier_ones_t
(call
(attribute
(identifier_tf) identifier_tf
(identifier_ones) identifier_ones
)attribute
(argument_list
(identifier_num_channels) identifier_num_channels
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_tf) identifier_tf
(identifier_float32) identifier_float32
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zeros_t) identifier_zeros_t
(call
(attribute
(identifier_tf) identifier_tf
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_num_channels) identifier_num_channels
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_tf) identifier_tf
(identifier_float32) identifier_float32
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_interp_tensors) identifier_interp_tensors
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_coeff) identifier_coeff
(identifier_coeffs) identifier_coeffs
(block
(expression_statement
(assignment
(identifier_curr_coeff) identifier_curr_coeff
(call
(attribute
(identifier_tf) identifier_tf
(identifier_where) identifier_where
)attribute
(argument_list
(identifier_channel_mask) identifier_channel_mask
(binary_operator
(identifier_coeff) identifier_coeff
(identifier_ones_t) identifier_ones_t
)binary_operator
(identifier_zeros_t) identifier_zeros_t
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_interp_tensor) identifier_interp_tensor
(binary_operator
(identifier_tensor1) identifier_tensor1
(binary_operator
(identifier_curr_coeff) identifier_curr_coeff
(parenthesized_expression
(binary_operator
(identifier_tensor2) identifier_tensor2
(identifier_tensor1) identifier_tensor1
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_interp_tensors) identifier_interp_tensors
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_interp_tensor) identifier_interp_tensor
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_concat) identifier_concat
)attribute
(argument_list
(identifier_interp_tensors) identifier_interp_tensors
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Linearly interpolate channel at "rank" between two tensors.
The channels are ranked according to their L2 norm between tensor1[channel]
and tensor2[channel].
Args:
tensor1: 4-D Tensor, NHWC
tensor2: 4-D Tensor, NHWC
coeffs: list of floats.
rank: integer.
Returns:
interp_latents: list of interpolated 4-D Tensors, shape=(NHWC) |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__choice) identifier__choice
)attribute
(call
(identifier_IPAddress) identifier_IPAddress
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_ValueError) identifier_ValueError
(identifier_AddrFormatError) identifier_AddrFormatError
)tuple
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_error_message) identifier_error_message
)attribute
(binary_operator
(string_'%s is not a valid IP address.') string_'%s is not a valid IP address.'
(identifier_value) identifier_value
)binary_operator
)assignment
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__choice) identifier__choice
)attribute
(identifier_is_netmask) identifier_is_netmask
)attribute
(argument_list
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_error_message) identifier_error_message
)attribute
(binary_operator
(string_'%s is not a valid IP netmask.') string_'%s is not a valid IP netmask.'
(identifier_value) identifier_value
)binary_operator
)assignment
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a boolean if the value is a valid netmask. |
(module
(function_definition
(function_name_start_processing_handler) function_name_start_processing_handler
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Event %s: starting Volatility process(es).") string_"Event %s: starting Volatility process(es)."
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
(for_statement
(identifier_snapshot) identifier_snapshot
(attribute
(identifier_self) identifier_self
(identifier_snapshots) identifier_snapshots
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_snapshot) identifier_process_snapshot
)attribute
(argument_list
(identifier_snapshot) identifier_snapshot
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_processing_done) identifier_processing_done
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Asynchronous handler starting the Volatility processes. |
(module
(function_definition
(function_name_history) function_name_history
(parameters
(identifier_namespace_module) identifier_namespace_module
)parameters
(block
(for_statement
(identifier_path) identifier_path
(call
(identifier_get_namespace_history) identifier_get_namespace_history
(argument_list
(identifier_namespace_module) identifier_namespace_module
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_h) identifier_h
(call
(identifier_get_bel_resource_hash) identifier_get_bel_resource_hash
(argument_list
(call
(attribute
(identifier_path) identifier_path
(identifier_as_posix) identifier_as_posix
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_'{}\t{}') string_'{}\t{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_h) identifier_h
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Hash all versions on Artifactory. |
(module
(function_definition
(function_name__feed_to_kafka) function_name__feed_to_kafka
(parameters
(identifier_self) identifier_self
(identifier_json_item) identifier_json_item
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_MethodTimer) identifier_MethodTimer
(identifier_timeout) identifier_timeout
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(string_'KAFKA_FEED_TIMEOUT') string_'KAFKA_FEED_TIMEOUT'
)subscript
(False) False
)argument_list
)call
)decorator
(function_definition
(function_name__feed) function_name__feed
(parameters
(identifier_json_item) identifier_json_item
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"Sending json to kafka at ") string_"Sending json to kafka at "
(call
(identifier_str) identifier_str
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(string_'KAFKA_PRODUCER_TOPIC') string_'KAFKA_PRODUCER_TOPIC'
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_future) identifier_future
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_producer) identifier_producer
)attribute
(identifier_send) identifier_send
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(string_'KAFKA_PRODUCER_TOPIC') string_'KAFKA_PRODUCER_TOPIC'
)subscript
(identifier_json_item) identifier_json_item
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_add_callback) identifier_add_callback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__kafka_success) identifier__kafka_success
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_add_errback) identifier_add_errback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__kafka_failure) identifier__kafka_failure
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_producer) identifier_producer
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Lost connection to Kafka") string_"Lost connection to Kafka"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__spawn_kafka_connection_thread) identifier__spawn_kafka_connection_thread
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)decorated_definition
(return_statement
(call
(identifier__feed) identifier__feed
(argument_list
(identifier_json_item) identifier_json_item
)argument_list
)call
)return_statement
)block
)function_definition
)module | Sends a request to Kafka
:param json_item: The json item to send
:returns: A boolean indicating whther the data was sent successfully or not |
(module
(function_definition
(function_name__buf_append) function_name__buf_append
(parameters
(identifier_self) identifier_self
(identifier_string) identifier_string
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__buf) identifier__buf
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__buf) identifier__buf
)attribute
(identifier_string) identifier_string
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__buf) identifier__buf
)attribute
(identifier_string) identifier_string
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Replace string directly without appending to an empty string,
avoiding type issues. |
(module
(function_definition
(function_name_pending_work_items) function_name_pending_work_items
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Iterable of all pending work items.") string_"Iterable of all pending work items."
)expression_statement
(expression_statement
(assignment
(identifier_pending) identifier_pending
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"SELECT * FROM work_items WHERE job_id NOT IN (SELECT job_id FROM results)") string_"SELECT * FROM work_items WHERE job_id NOT IN (SELECT job_id FROM results)"
)argument_list
)call
)assignment
)expression_statement
(return_statement
(generator_expression
(call
(identifier__row_to_work_item) identifier__row_to_work_item
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(for_in_clause
(identifier_p) identifier_p
(identifier_pending) identifier_pending
)for_in_clause
)generator_expression
)return_statement
)block
)function_definition
)module | Iterable of all pending work items. |
(module
(function_definition
(function_name_add_cors) function_name_add_cors
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_allowed_origins) identifier_allowed_origins
(default_parameter
(identifier_allowed_headers) identifier_allowed_headers
(None) None
)default_parameter
(default_parameter
(identifier_allowed_methods) identifier_allowed_methods
(None) None
)default_parameter
(default_parameter
(identifier_max_age) identifier_max_age
(None) None
)default_parameter
(default_parameter
(identifier_allow_credentials) identifier_allow_credentials
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_has_path) identifier_has_path
)attribute
(argument_list
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier__OPTIONS_METHOD) identifier__OPTIONS_METHOD
)attribute
)argument_list
)call
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_allowed_origins) identifier_allowed_origins
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Invalid input. Value for AllowedOrigins is required") string_"Invalid input. Value for AllowedOrigins is required"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_allowed_methods) identifier_allowed_methods
)not_operator
(block
(expression_statement
(assignment
(identifier_allowed_methods) identifier_allowed_methods
(call
(attribute
(identifier_self) identifier_self
(identifier__make_cors_allowed_methods_for_path) identifier__make_cors_allowed_methods_for_path
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_allowed_methods) identifier_allowed_methods
(call
(attribute
(string_"'{}'") string_"'{}'"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_allowed_methods) identifier_allowed_methods
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_allow_credentials) identifier_allow_credentials
(True) True
)comparison_operator
(block
(expression_statement
(assignment
(identifier_allow_credentials) identifier_allow_credentials
(False) False
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_path) identifier_add_path
)attribute
(argument_list
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier__OPTIONS_METHOD) identifier__OPTIONS_METHOD
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_get_path) identifier_get_path
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__OPTIONS_METHOD) identifier__OPTIONS_METHOD
)attribute
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__options_method_response_for_cors) identifier__options_method_response_for_cors
)attribute
(argument_list
(identifier_allowed_origins) identifier_allowed_origins
(identifier_allowed_headers) identifier_allowed_headers
(identifier_allowed_methods) identifier_allowed_methods
(identifier_max_age) identifier_max_age
(identifier_allow_credentials) identifier_allow_credentials
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Add CORS configuration to this path. Specifically, we will add a OPTIONS response config to the Swagger that
will return headers required for CORS. Since SAM uses aws_proxy integration, we cannot inject the headers
into the actual response returned from Lambda function. This is something customers have to implement
themselves.
If OPTIONS method is already present for the Path, we will skip adding CORS configuration
Following this guide:
https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html#enable-cors-for-resource-using-swagger-importer-tool
:param string path: Path to add the CORS configuration to.
:param string/dict allowed_origins: Comma separate list of allowed origins.
Value can also be an intrinsic function dict.
:param string/dict allowed_headers: Comma separated list of allowed headers.
Value can also be an intrinsic function dict.
:param string/dict allowed_methods: Comma separated list of allowed methods.
Value can also be an intrinsic function dict.
:param integer/dict max_age: Maximum duration to cache the CORS Preflight request. Value is set on
Access-Control-Max-Age header. Value can also be an intrinsic function dict.
:param bool/None allow_credentials: Flags whether request is allowed to contain credentials.
:raises ValueError: When values for one of the allowed_* variables is empty |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_path) identifier_path
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_"r") string_"r"
)argument_list
)call
(as_pattern_target
(identifier_fobj) identifier_fobj
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_analytics) identifier_analytics
(call
(identifier_Analytics) identifier_Analytics
(argument_list
(keyword_argument
(identifier_info) identifier_info
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_fobj) identifier_fobj
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_unlink) identifier_unlink
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(return_statement
(identifier_analytics) identifier_analytics
)return_statement
)block
)function_definition
)module | Loads analytics report from json file specified by path.
Args:
path (str): path to json file with analytics report. |
(module
(function_definition
(function_name_apply_scaling) function_name_apply_scaling
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_copy) identifier_copy
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_copy) identifier_copy
(block
(return_statement
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_multiplier) identifier_multiplier
)attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
)binary_operator
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_multiplier) identifier_multiplier
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(attribute
(identifier_self) identifier_self
(identifier_multiplier) identifier_multiplier
)attribute
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)return_statement
)block
)function_definition
)module | Scale pixel values to there true DN.
:param copy: whether to apply the scalling to a copy of the pixel data
and leave the orginial unaffected
:returns: a scalled version of the pixel data |
(module
(function_definition
(function_name_remove_reference) function_name_remove_reference
(parameters
(identifier_type_) identifier_type_
)parameters
(block
(expression_statement
(assignment
(identifier_nake_type) identifier_nake_type
(call
(identifier_remove_alias) identifier_remove_alias
(argument_list
(identifier_type_) identifier_type_
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_is_reference) identifier_is_reference
(argument_list
(identifier_nake_type) identifier_nake_type
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_type_) identifier_type_
)return_statement
)block
)if_statement
(return_statement
(attribute
(identifier_nake_type) identifier_nake_type
(identifier_base) identifier_base
)attribute
)return_statement
)block
)function_definition
)module | removes reference from the type definition
If type is not reference type, it will be returned as is. |
(module
(function_definition
(function_name_cas) function_name_cas
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
(identifier_new_value) identifier_new_value
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_run_script) identifier_run_script
)attribute
(argument_list
(string_'cas') string_'cas'
(keyword_argument
(identifier_keys) identifier_keys
(list
(identifier_key) identifier_key
)list
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(list
(identifier_value) identifier_value
(identifier_new_value) identifier_new_value
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform an atomic compare-and-set on the value in "key", using a prefix
match on the provided value. |
(module
(function_definition
(function_name__run_event_methods) function_name__run_event_methods
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
(default_parameter
(identifier_stage) identifier_stage
(None) None
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_inspect) identifier_inspect
)dotted_name
)import_statement
(import_from_statement
(dotted_name
(identifier_ambry) identifier_ambry
(identifier_bundle) identifier_bundle
(identifier_events) identifier_events
)dotted_name
(dotted_name
(identifier__runable_for_event) identifier__runable_for_event
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_funcs) identifier_funcs
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_func_name) identifier_func_name
(identifier_f) identifier_f
)pattern_list
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getmembers) identifier_getmembers
)attribute
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_predicate) identifier_predicate
(attribute
(identifier_inspect) identifier_inspect
(identifier_ismethod) identifier_ismethod
)attribute
)keyword_argument
)argument_list
)call
(block
(if_statement
(call
(identifier__runable_for_event) identifier__runable_for_event
(argument_list
(identifier_f) identifier_f
(identifier_tag) identifier_tag
(identifier_stage) identifier_stage
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_funcs) identifier_funcs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_func) identifier_func
(identifier_funcs) identifier_funcs
(block
(expression_statement
(call
(identifier_func) identifier_func
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Run code in the bundle that is marked with events. |
(module
(function_definition
(function_name_execute_command) function_name_execute_command
(parameters
(identifier_self) identifier_self
(typed_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
(typed_default_parameter
(identifier_timeout) identifier_timeout
(type
(identifier_NumType) identifier_NumType
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_SMTPResponse) identifier_SMTPResponse
)type
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(binary_operator
(call
(attribute
(string_b" ") string_b" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(string_b"\r\n") string_b"\r\n"
)binary_operator
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_write_and_drain) identifier_write_and_drain
)attribute
(argument_list
(identifier_command) identifier_command
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_read_response) identifier_read_response
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Sends an SMTP command along with any args to the server, and returns
a response. |
(module
(function_definition
(function_name_export_wallet) function_name_export_wallet
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_von_wallet) identifier_von_wallet
(type
(identifier_Wallet) identifier_Wallet
)type
)typed_parameter
(typed_parameter
(identifier_path) identifier_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'WalletManager.export_wallet >>> von_wallet %s, path %s') string_'WalletManager.export_wallet >>> von_wallet %s, path %s'
(identifier_von_wallet) identifier_von_wallet
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_von_wallet) identifier_von_wallet
(identifier_handle) identifier_handle
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'WalletManager.export_wallet <!< Wallet %s is closed') string_'WalletManager.export_wallet <!< Wallet %s is closed'
(attribute
(identifier_von_wallet) identifier_von_wallet
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_WalletState) identifier_WalletState
(argument_list
(call
(attribute
(string_'Wallet {} is closed') string_'Wallet {} is closed'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_von_wallet) identifier_von_wallet
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(await
(call
(attribute
(identifier_wallet) identifier_wallet
(identifier_export_wallet) identifier_export_wallet
)attribute
(argument_list
(attribute
(identifier_von_wallet) identifier_von_wallet
(identifier_handle) identifier_handle
)attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(dictionary
(pair
(string_'path') string_'path'
(identifier_path) identifier_path
)pair
(dictionary_splat
(attribute
(identifier_von_wallet) identifier_von_wallet
(identifier_access_creds) identifier_access_creds
)attribute
)dictionary_splat
)dictionary
)argument_list
)call
)argument_list
)call
)await
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'WalletManager.export_wallet <<<') string_'WalletManager.export_wallet <<<'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Export an existing VON anchor wallet. Raise WalletState if wallet is closed.
:param von_wallet: open wallet
:param path: path to which to export wallet |
(module
(function_definition
(function_name_keep_scan) function_name_keep_scan
(parameters
(identifier_cls) identifier_cls
(identifier_result_key) identifier_result_key
(identifier_token) identifier_token
)parameters
(block
(function_definition
(function_name__scan) function_name__scan
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)return_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_scan) identifier_scan
)attribute
(argument_list
(identifier_result_key) identifier_result_key
(identifier__scan) identifier__scan
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Define a property that is set to the list of lines that contain the
given token. Uses the get method of the log file. |
(module
(function_definition
(function_name_analog_write) function_name_analog_write
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
)parameters
(block
(expression_statement
(assignment
(identifier_pin) identifier_pin
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_command) identifier_command
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_command) identifier_command
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_core) identifier_core
)attribute
(identifier_analog_write) identifier_analog_write
)attribute
(argument_list
(identifier_pin) identifier_pin
(identifier_value) identifier_value
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | This method writes a value to an analog pin.
It is used to set the output of a PWM pin or the angle of a Servo.
:param command: {"method": "analog_write", "params": [PIN, WRITE_VALUE]}
:returns: No return message. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_cls) identifier_cls
(identifier_func_hint) identifier_func_hint
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_Func) identifier_Func
(argument_list
(identifier_func_hint) identifier_func_hint
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_func_hint) identifier_func_hint
(attribute
(identifier_cls) identifier_cls
(identifier__func_from_name) identifier__func_from_name
)attribute
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__func_from_name) identifier__func_from_name
)attribute
(identifier_func_hint) identifier_func_hint
)subscript
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_func_hint) identifier_func_hint
(attribute
(identifier_cls) identifier_cls
(identifier__func_hash) identifier__func_hash
)attribute
)comparison_operator
(block
(return_statement
(identifier_func_hint) identifier_func_hint
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(string_"unknown hash function") string_"unknown hash function"
(identifier_func_hint) identifier_func_hint
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Return a registered hash function matching the given hint.
The hint may be a `Func` member, a function name (with hyphens or
underscores), or its code. A `Func` member is returned for standard
multihash functions and an integer code for application-specific ones.
If no matching function is registered, a `KeyError` is raised.
>>> fm = FuncReg.get(Func.sha2_256)
>>> fnu = FuncReg.get('sha2_256')
>>> fnh = FuncReg.get('sha2-256')
>>> fc = FuncReg.get(0x12)
>>> fm == fnu == fnh == fc
True |
(module
(function_definition
(function_name_relabel) function_name_relabel
(parameters
(identifier_self) identifier_self
(identifier_catalogue) identifier_catalogue
)parameters
(block
(for_statement
(pattern_list
(identifier_work) identifier_work
(identifier_label) identifier_label
)pattern_list
(call
(attribute
(identifier_catalogue) identifier_catalogue
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__matches) identifier__matches
)attribute
(identifier_loc) identifier_loc
)attribute
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__matches) identifier__matches
)attribute
(attribute
(identifier_constants) identifier_constants
(identifier_WORK_FIELDNAME) identifier_WORK_FIELDNAME
)attribute
)subscript
(identifier_work) identifier_work
)comparison_operator
(attribute
(identifier_constants) identifier_constants
(identifier_LABEL_FIELDNAME) identifier_LABEL_FIELDNAME
)attribute
)subscript
(identifier_label) identifier_label
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Relabels results rows according to `catalogue`.
A row whose work is labelled in the catalogue will have its
label set to the label in the catalogue. Rows whose works are
not labelled in the catalogue will be unchanged.
:param catalogue: mapping of work names to labels
:type catalogue: `Catalogue` |
(module
(function_definition
(function_name___construct_lda_model) function_name___construct_lda_model
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_repos_of_interest) identifier_repos_of_interest
(call
(attribute
(identifier_self) identifier_self
(identifier___get_interests) identifier___get_interests
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cleaned_tokens) identifier_cleaned_tokens
(call
(attribute
(identifier_self) identifier_self
(identifier___clean_and_tokenize) identifier___clean_and_tokenize
)attribute
(argument_list
(identifier_repos_of_interest) identifier_repos_of_interest
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_cleaned_tokens) identifier_cleaned_tokens
)not_operator
(block
(expression_statement
(assignment
(identifier_cleaned_tokens) identifier_cleaned_tokens
(list
(list
(string_"zkfgzkfgzkfgzkfgzkfgzkfg") string_"zkfgzkfgzkfgzkfgzkfgzkfg"
)list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dictionary) identifier_dictionary
(call
(attribute
(identifier_corpora) identifier_corpora
(identifier_Dictionary) identifier_Dictionary
)attribute
(argument_list
(identifier_cleaned_tokens) identifier_cleaned_tokens
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_corpus) identifier_corpus
(list_comprehension
(call
(attribute
(identifier_dictionary) identifier_dictionary
(identifier_doc2bow) identifier_doc2bow
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
(for_in_clause
(identifier_text) identifier_text
(identifier_cleaned_tokens) identifier_cleaned_tokens
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lda_model) identifier_lda_model
)attribute
(call
(attribute
(attribute
(identifier_models) identifier_models
(identifier_ldamodel) identifier_ldamodel
)attribute
(identifier_LdaModel) identifier_LdaModel
)attribute
(argument_list
(identifier_corpus) identifier_corpus
(keyword_argument
(identifier_num_topics) identifier_num_topics
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_id2word) identifier_id2word
(identifier_dictionary) identifier_dictionary
)keyword_argument
(keyword_argument
(identifier_passes) identifier_passes
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Method to create LDA model to procure list of topics from.
We do that by first fetching the descriptions of repositories user has
shown interest in. We tokenize the hence fetched descriptions to
procure list of cleaned tokens by dropping all the stop words and
language names from it.
We use the cleaned and sanitized token list to train LDA model from
which we hope to procure topics of interests to the authenticated user. |
(module
(function_definition
(function_name__download_items) function_name__download_items
(parameters
(identifier_db) identifier_db
(identifier_last_id) identifier_last_id
)parameters
(block
(expression_statement
(assignment
(identifier_MAX_RETRY) identifier_MAX_RETRY
(integer_20) integer_20
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_MAX_DOC_ID) identifier_MAX_DOC_ID
(integer_10000000) integer_10000000
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_not_found_cnt) identifier_not_found_cnt
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_doc_id) identifier_doc_id
(call
(identifier_xrange) identifier_xrange
(argument_list
(identifier_last_id) identifier_last_id
(identifier_MAX_DOC_ID) identifier_MAX_DOC_ID
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_doc_id) identifier_doc_id
(integer_1) integer_1
)augmented_assignment
)expression_statement
(print_statement
(binary_operator
(string_"Downloading %d..") string_"Downloading %d.."
(parenthesized_expression
(identifier_doc_id) identifier_doc_id
)parenthesized_expression
)binary_operator
)print_statement
(if_statement
(comparison_operator
(identifier_not_found_cnt) identifier_not_found_cnt
(identifier_MAX_RETRY) identifier_MAX_RETRY
)comparison_operator
(block
(print_statement
(string_"It looks like this is an end:") string_"It looks like this is an end:"
(binary_operator
(identifier_doc_id) identifier_doc_id
(identifier_MAX_RETRY) identifier_MAX_RETRY
)binary_operator
)print_statement
(break_statement
)break_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_record) identifier_record
(call
(identifier__download) identifier__download
(argument_list
(identifier_doc_id) identifier_doc_id
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_DocumentNotFoundException) identifier_DocumentNotFoundException
(identifier_InvalidAlephBaseException) identifier_InvalidAlephBaseException
)tuple
(block
(print_statement
(string_"\tnot found, skipping") string_"\tnot found, skipping"
)print_statement
(expression_statement
(augmented_assignment
(identifier_not_found_cnt) identifier_not_found_cnt
(integer_1) integer_1
)augmented_assignment
)expression_statement
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_not_found_cnt) identifier_not_found_cnt
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_db) identifier_db
(binary_operator
(string_"item_%d") string_"item_%d"
(identifier_doc_id) identifier_doc_id
)binary_operator
)subscript
(identifier_record) identifier_record
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_db) identifier_db
(string_"last_id") string_"last_id"
)subscript
(conditional_expression
(binary_operator
(identifier_doc_id) identifier_doc_id
(identifier_MAX_RETRY) identifier_MAX_RETRY
)binary_operator
(comparison_operator
(identifier_doc_id) identifier_doc_id
(identifier_MAX_RETRY) identifier_MAX_RETRY
)comparison_operator
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_doc_id) identifier_doc_id
(integer_100) integer_100
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_db) identifier_db
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Download items from the aleph and store them in `db`. Start from `last_id`
if specified.
Args:
db (obj): Dictionary-like object used as DB.
last_id (int): Start from this id. |
(module
(function_definition
(function_name_run_queue) function_name_run_queue
(parameters
(identifier_self) identifier_self
(identifier_options) identifier_options
(identifier_todo) identifier_todo
)parameters
(block
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_logging_debug) identifier_logging_debug
)attribute
(argument_list
(string_'AutoBatcher(%s): %d items') string_'AutoBatcher(%s): %d items'
(attribute
(attribute
(identifier_self) identifier_self
(identifier__todo_tasklet) identifier__todo_tasklet
)attribute
(identifier___name__) identifier___name__
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_todo) identifier_todo
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_batch_fut) identifier_batch_fut
(call
(attribute
(identifier_self) identifier_self
(identifier__todo_tasklet) identifier__todo_tasklet
)attribute
(argument_list
(identifier_todo) identifier_todo
(identifier_options) identifier_options
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__running) identifier__running
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_batch_fut) identifier_batch_fut
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_batch_fut) identifier_batch_fut
(identifier_add_callback) identifier_add_callback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__finished_callback) identifier__finished_callback
)attribute
(identifier_batch_fut) identifier_batch_fut
(identifier_todo) identifier_todo
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Actually run the _todo_tasklet. |
(module
(function_definition
(function_name_pillars) function_name_pillars
(parameters
(identifier_opts) identifier_opts
(identifier_functions) identifier_functions
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_LazyLoader) identifier_LazyLoader
(argument_list
(call
(identifier__module_dirs) identifier__module_dirs
(argument_list
(identifier_opts) identifier_opts
(string_'pillar') string_'pillar'
)argument_list
)call
(identifier_opts) identifier_opts
(keyword_argument
(identifier_tag) identifier_tag
(string_'pillar') string_'pillar'
)keyword_argument
(keyword_argument
(identifier_pack) identifier_pack
(dictionary
(pair
(string_'__salt__') string_'__salt__'
(identifier_functions) identifier_functions
)pair
(pair
(string_'__context__') string_'__context__'
(identifier_context) identifier_context
)pair
(pair
(string_'__utils__') string_'__utils__'
(call
(identifier_utils) identifier_utils
(argument_list
(identifier_opts) identifier_opts
)argument_list
)call
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_ret) identifier_ret
(identifier_pack) identifier_pack
)attribute
(string_'__ext_pillar__') string_'__ext_pillar__'
)subscript
(identifier_ret) identifier_ret
)assignment
)expression_statement
(return_statement
(call
(identifier_FilterDictWrapper) identifier_FilterDictWrapper
(argument_list
(identifier_ret) identifier_ret
(string_'.ext_pillar') string_'.ext_pillar'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the pillars modules |
(module
(function_definition
(function_name_add_tag) function_name_add_tag
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
)parameters
(block
(if_statement
(comparison_operator
(identifier_tag) identifier_tag
(attribute
(identifier_self) identifier_self
(identifier__tags) identifier__tags
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__tags) identifier__tags
)attribute
(identifier_tag) identifier_tag
)subscript
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | add a tag to the tag list |
(module
(function_definition
(function_name__calculate_sunrise_hour_angle) function_name__calculate_sunrise_hour_angle
(parameters
(identifier_self) identifier_self
(identifier_solar_dec) identifier_solar_dec
(default_parameter
(identifier_depression) identifier_depression
(float_0.833) float_0.833
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_hour_angle_arg) identifier_hour_angle_arg
(call
(attribute
(identifier_math) identifier_math
(identifier_degrees) identifier_degrees
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_acos) identifier_acos
)attribute
(argument_list
(binary_operator
(binary_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_cos) identifier_cos
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(binary_operator
(integer_90) integer_90
(identifier_depression) identifier_depression
)binary_operator
)argument_list
)call
)argument_list
)call
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_cos) identifier_cos
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_latitude) identifier_latitude
)attribute
)argument_list
)call
)argument_list
)call
(call
(attribute
(identifier_math) identifier_math
(identifier_cos) identifier_cos
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(identifier_solar_dec) identifier_solar_dec
)argument_list
)call
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
(binary_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_tan) identifier_tan
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_latitude) identifier_latitude
)attribute
)argument_list
)call
)argument_list
)call
(call
(attribute
(identifier_math) identifier_math
(identifier_tan) identifier_tan
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(identifier_solar_dec) identifier_solar_dec
)argument_list
)call
)argument_list
)call
)binary_operator
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_hour_angle_arg) identifier_hour_angle_arg
)return_statement
)block
)function_definition
)module | Calculate hour angle for sunrise time in degrees. |
(module
(function_definition
(function_name_print_with_pager) function_name_print_with_pager
(parameters
(identifier_output) identifier_output
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_isatty) identifier_isatty
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_pager) identifier_pager
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(list
(string_'less') string_'less'
(string_'-F') string_'-F'
(string_'-r') string_'-r'
(string_'-S') string_'-S'
(string_'-X') string_'-X'
(string_'-K') string_'-K'
)list
(keyword_argument
(identifier_stdin) identifier_stdin
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_pager) identifier_pager
(identifier_stdin) identifier_stdin
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_output) identifier_output
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_pager) identifier_pager
(identifier_stdin) identifier_stdin
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_pager) identifier_pager
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Print the output to `stdout` using less when in a tty. |
(module
(function_definition
(function_name_config_dirs) function_name_config_dirs
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_paths) identifier_paths
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_platform) identifier_platform
(identifier_system) identifier_system
)attribute
(argument_list
)argument_list
)call
(string_'Darwin') string_'Darwin'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_MAC_DIR) identifier_MAC_DIR
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_UNIX_DIR_FALLBACK) identifier_UNIX_DIR_FALLBACK
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_xdg_config_dirs) identifier_xdg_config_dirs
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_platform) identifier_platform
(identifier_system) identifier_system
)attribute
(argument_list
)argument_list
)call
(string_'Windows') string_'Windows'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_WINDOWS_DIR_FALLBACK) identifier_WINDOWS_DIR_FALLBACK
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_WINDOWS_DIR_VAR) identifier_WINDOWS_DIR_VAR
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_WINDOWS_DIR_VAR) identifier_WINDOWS_DIR_VAR
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_UNIX_DIR_FALLBACK) identifier_UNIX_DIR_FALLBACK
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_paths) identifier_paths
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_xdg_config_dirs) identifier_xdg_config_dirs
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_path) identifier_path
(identifier_paths) identifier_paths
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_path) identifier_path
(identifier_out) identifier_out
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Return a platform-specific list of candidates for user
configuration directories on the system.
The candidates are in order of priority, from highest to lowest. The
last element is the "fallback" location to be used when no
higher-priority config file exists. |
(module
(function_definition
(function_name_citation_count) function_name_citation_count
(parameters
(identifier_papers) identifier_papers
(default_parameter
(identifier_key) identifier_key
(string_'ayjid') string_'ayjid'
)default_parameter
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_verbose) identifier_verbose
(block
(print_statement
(binary_operator
(binary_operator
(string_"Generating citation counts for ") string_"Generating citation counts for "
(call
(identifier_unicode) identifier_unicode
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_papers) identifier_papers
)argument_list
)call
)argument_list
)call
)binary_operator
(string_" papers...") string_" papers..."
)binary_operator
)print_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_counts) identifier_counts
(call
(identifier_Counter) identifier_Counter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_P) identifier_P
(identifier_papers) identifier_papers
(block
(if_statement
(comparison_operator
(subscript
(identifier_P) identifier_P
(string_'citations') string_'citations'
)subscript
(None) None
)comparison_operator
(block
(for_statement
(identifier_p) identifier_p
(subscript
(identifier_P) identifier_P
(string_'citations') string_'citations'
)subscript
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_counts) identifier_counts
(subscript
(identifier_p) identifier_p
(identifier_key) identifier_key
)subscript
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_counts) identifier_counts
)return_statement
)block
)function_definition
)module | Generates citation counts for all of the papers cited by papers.
Parameters
----------
papers : list
A list of :class:`.Paper` instances.
key : str
Property to use as node key. Default is 'ayjid' (recommended).
verbose : bool
If True, prints status messages.
Returns
-------
counts : dict
Citation counts for all papers cited by papers. |
(module
(function_definition
(function_name_modify_ack_deadline) function_name_modify_ack_deadline
(parameters
(identifier_self) identifier_self
(identifier_items) identifier_items
)parameters
(block
(expression_statement
(assignment
(identifier_ack_ids) identifier_ack_ids
(list_comprehension
(attribute
(identifier_item) identifier_item
(identifier_ack_id) identifier_ack_id
)attribute
(for_in_clause
(identifier_item) identifier_item
(identifier_items) identifier_items
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_seconds) identifier_seconds
(list_comprehension
(attribute
(identifier_item) identifier_item
(identifier_seconds) identifier_seconds
)attribute
(for_in_clause
(identifier_item) identifier_item
(identifier_items) identifier_items
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_types) identifier_types
(identifier_StreamingPullRequest) identifier_StreamingPullRequest
)attribute
(argument_list
(keyword_argument
(identifier_modify_deadline_ack_ids) identifier_modify_deadline_ack_ids
(identifier_ack_ids) identifier_ack_ids
)keyword_argument
(keyword_argument
(identifier_modify_deadline_seconds) identifier_modify_deadline_seconds
(identifier_seconds) identifier_seconds
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__manager) identifier__manager
)attribute
(identifier_send) identifier_send
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Modify the ack deadline for the given messages.
Args:
items(Sequence[ModAckRequest]): The items to modify. |
(module
(function_definition
(function_name_percentile_for_in) function_name_percentile_for_in
(parameters
(identifier_self) identifier_self
(identifier_leaderboard_name) identifier_leaderboard_name
(identifier_member) identifier_member
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_check_member_in) identifier_check_member_in
)attribute
(argument_list
(identifier_leaderboard_name) identifier_leaderboard_name
(identifier_member) identifier_member
)argument_list
)call
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_responses) identifier_responses
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_redis_connection) identifier_redis_connection
)attribute
(identifier_pipeline) identifier_pipeline
)attribute
(argument_list
)argument_list
)call
(identifier_zcard) identifier_zcard
)attribute
(argument_list
(identifier_leaderboard_name) identifier_leaderboard_name
)argument_list
)call
(identifier_zrevrank) identifier_zrevrank
)attribute
(argument_list
(identifier_leaderboard_name) identifier_leaderboard_name
(identifier_member) identifier_member
)argument_list
)call
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_percentile) identifier_percentile
(call
(attribute
(identifier_math) identifier_math
(identifier_ceil) identifier_ceil
)attribute
(argument_list
(parenthesized_expression
(binary_operator
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(parenthesized_expression
(binary_operator
(binary_operator
(subscript
(identifier_responses) identifier_responses
(integer_0) integer_0
)subscript
(subscript
(identifier_responses) identifier_responses
(integer_1) integer_1
)subscript
)binary_operator
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_responses) identifier_responses
(integer_0) integer_0
)subscript
)argument_list
)call
)binary_operator
(integer_100) integer_100
)binary_operator
)parenthesized_expression
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_order) identifier_order
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ASC) identifier_ASC
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(integer_100) integer_100
(identifier_percentile) identifier_percentile
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_percentile) identifier_percentile
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieve the percentile for a member in the named leaderboard.
@param leaderboard_name [String] Name of the leaderboard.
@param member [String] Member name.
@return the percentile for a member in the named leaderboard. |
(module
(function_definition
(function_name_grid_search) function_name_grid_search
(parameters
(identifier_grid_scores) identifier_grid_scores
(identifier_change) identifier_change
(default_parameter
(identifier_subset) identifier_subset
(None) None
)default_parameter
(default_parameter
(identifier_kind) identifier_kind
(string_'line') string_'line'
)default_parameter
(default_parameter
(identifier_cmap) identifier_cmap
(None) None
)default_parameter
(default_parameter
(identifier_ax) identifier_ax
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_change) identifier_change
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(parenthesized_expression
(concatenated_string
(string_'change can\'t be None, you need to select at least') string_'change can\'t be None, you need to select at least'
(string_' one value to make the plot.') string_' one value to make the plot.'
)concatenated_string
)parenthesized_expression
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_ax) identifier_ax
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ax) identifier_ax
(call
(attribute
(identifier_plt) identifier_plt
(identifier_gca) identifier_gca
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_cmap) identifier_cmap
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cmap) identifier_cmap
(call
(identifier_default_heatmap) identifier_default_heatmap
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_change) identifier_change
(identifier_string_types) identifier_string_types
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_change) identifier_change
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier__grid_search_single) identifier__grid_search_single
(argument_list
(identifier_grid_scores) identifier_grid_scores
(identifier_change) identifier_change
(identifier_subset) identifier_subset
(identifier_kind) identifier_kind
(identifier_ax) identifier_ax
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_change) identifier_change
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(return_statement
(call
(identifier__grid_search_double) identifier__grid_search_double
(argument_list
(identifier_grid_scores) identifier_grid_scores
(identifier_change) identifier_change
(identifier_subset) identifier_subset
(identifier_cmap) identifier_cmap
(identifier_ax) identifier_ax
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'change must have length 1 or 2 or be a string') string_'change must have length 1 or 2 or be a string'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Plot results from a sklearn grid search by changing two parameters at most.
Parameters
----------
grid_scores : list of named tuples
Results from a sklearn grid search (get them using the
`grid_scores_` parameter)
change : str or iterable with len<=2
Parameter to change
subset : dictionary-like
parameter-value(s) pairs to subset from grid_scores.
(e.g. ``{'n_estimartors': [1, 10]}``), if None all combinations will be
used.
kind : ['line', 'bar']
This only applies whe change is a single parameter. Changes the
type of plot
cmap : matplotlib Colormap
This only applies when change are two parameters. Colormap used for
the matrix. If None uses a modified version of matplotlib's OrRd
colormap.
ax: matplotlib Axes
Axes object to draw the plot onto, otherwise uses current Axes
Returns
-------
ax: matplotlib Axes
Axes containing the plot
Examples
--------
.. plot:: ../../examples/grid_search.py |
(module
(function_definition
(function_name__apply) function_name__apply
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_ctx) identifier_ctx
(type
(identifier_ExtensionContext) identifier_ExtensionContext
)type
)typed_parameter
)parameters
(type
(identifier_AugmentedDict) identifier_AugmentedDict
)type
(block
(function_definition
(function_name_process) function_name_process
(parameters
(typed_parameter
(identifier_pattern) identifier_pattern
(type
(generic_type
(identifier_Pattern) identifier_Pattern
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier__str) identifier__str
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_Any) identifier_Any
)type
(block
(expression_statement
(assignment
(identifier__match) identifier__match
(call
(attribute
(identifier_pattern) identifier_pattern
(identifier_match) identifier_match
)attribute
(argument_list
(identifier__str) identifier__str
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier__match) identifier__match
(None) None
)comparison_operator
(block
(return_statement
(identifier__str) identifier__str
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_placeholder) identifier_placeholder
(identifier_external_path) identifier_external_path
)pattern_list
(expression_list
(call
(attribute
(identifier__match) identifier__match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(call
(attribute
(identifier__match) identifier__match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)expression_list
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_locator) identifier_locator
)attribute
(argument_list
(identifier_external_path) identifier_external_path
(conditional_expression
(call
(identifier_cast) identifier_cast
(argument_list
(identifier_str) identifier_str
(attribute
(identifier_ctx) identifier_ctx
(identifier_document) identifier_document
)attribute
)argument_list
)call
(call
(attribute
(identifier_Validator) identifier_Validator
(identifier_is_file) identifier_is_file
)attribute
(argument_list
(keyword_argument
(identifier_document) identifier_document
(attribute
(identifier_ctx) identifier_ctx
(identifier_document) identifier_document
)attribute
)keyword_argument
)argument_list
)call
(None) None
)conditional_expression
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_fhandle) identifier_fhandle
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_fhandle) identifier_fhandle
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(return_statement
(call
(attribute
(identifier__str) identifier__str
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_placeholder) identifier_placeholder
(identifier_content) identifier_content
)argument_list
)call
)return_statement
)block
)function_definition
(expression_statement
(assignment
(pattern_list
(identifier_node_key) identifier_node_key
(identifier_node_value) identifier_node_value
)pattern_list
(attribute
(identifier_ctx) identifier_ctx
(identifier_node) identifier_node
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__pattern) identifier__pattern
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___pattern__) identifier___pattern__
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(identifier_node_key) identifier_node_key
(call
(identifier_process) identifier_process
(argument_list
(identifier__pattern) identifier__pattern
(identifier_node_value) identifier_node_value
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Performs the actual loading of an external resource into the current model.
Args:
ctx: The processing context.
Returns:
Returns a dictionary that gets incorporated into the actual model. |
(module
(function_definition
(function_name_dict) function_name_dict
(parameters
(identifier_cls) identifier_cls
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwds) identifier_kwds
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_args) identifier_args
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"Too many positional arguments") string_"Too many positional arguments"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vals) identifier_vals
(list
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_x_keys) identifier_x_keys
(attribute
(identifier_x) identifier_x
(identifier_keys) identifier_keys
)attribute
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(identifier_x) identifier_x
(block
(expression_statement
(call
(attribute
(identifier_keys) identifier_keys
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_vals) identifier_vals
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(call
(identifier_x_keys) identifier_x_keys
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vals) identifier_vals
(list_comprehension
(subscript
(identifier_x) identifier_x
(identifier_k) identifier_k
)subscript
(for_in_clause
(identifier_k) identifier_k
(identifier_keys) identifier_keys
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)else_clause
)try_statement
(return_statement
(call
(identifier_q) identifier_q
(argument_list
(string_'!') string_'!'
(identifier_keys) identifier_keys
(identifier_vals) identifier_vals
)argument_list
)call
)return_statement
)block
(else_clause
(block
(if_statement
(identifier_kwds) identifier_kwds
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vals) identifier_vals
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_kwds) identifier_kwds
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_keys) identifier_keys
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_vals) identifier_vals
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_q) identifier_q
(argument_list
(string_'!') string_'!'
(identifier_keys) identifier_keys
(identifier_vals) identifier_vals
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_q) identifier_q
(argument_list
(string_'()!()') string_'()!()'
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Construct a q dictionary
K.dict() -> new empty q dictionary (q('()!()')
K.dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs
K.dict(iterable) -> new dictionary initialized from an iterable
yielding (key, value) pairs
K.dict(**kwargs) -> new dictionary initialized with the name=value
pairs in the keyword argument list.
For example: K.dict(one=1, two=2) |
(module
(function_definition
(function_name_create_address) function_name_create_address
(parameters
(identifier_customer_id) identifier_customer_id
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_Address) identifier_Address
(call
(attribute
(identifier_client) identifier_client
(identifier_model) identifier_model
)attribute
(argument_list
(string_'party.address') string_'party.address'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Country) identifier_Country
(call
(attribute
(identifier_client) identifier_client
(identifier_model) identifier_model
)attribute
(argument_list
(string_'country.country') string_'country.country'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Subdivision) identifier_Subdivision
(call
(attribute
(identifier_client) identifier_client
(identifier_model) identifier_model
)attribute
(argument_list
(string_'country.subdivision') string_'country.subdivision'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_country) identifier_country
)pattern_list
(call
(attribute
(identifier_Country) identifier_Country
(identifier_find) identifier_find
)attribute
(argument_list
(list
(tuple
(string_'code') string_'code'
(string_'=') string_'='
(subscript
(identifier_data) identifier_data
(string_'country') string_'country'
)subscript
)tuple
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_state) identifier_state
)pattern_list
(call
(attribute
(identifier_Subdivision) identifier_Subdivision
(identifier_find) identifier_find
)attribute
(argument_list
(list
(tuple
(string_'code') string_'code'
(string_'ilike') string_'ilike'
(binary_operator
(string_'%-') string_'%-'
(subscript
(identifier_data) identifier_data
(string_'state') string_'state'
)subscript
)binary_operator
)tuple
(tuple
(string_'country') string_'country'
(string_'=') string_'='
(subscript
(identifier_country) identifier_country
(string_'id') string_'id'
)subscript
)tuple
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_address) identifier_address
)pattern_list
(call
(attribute
(identifier_Address) identifier_Address
(identifier_create) identifier_create
)attribute
(argument_list
(list
(dictionary
(pair
(string_'party') string_'party'
(identifier_customer_id) identifier_customer_id
)pair
(pair
(string_'name') string_'name'
(subscript
(identifier_data) identifier_data
(string_'name') string_'name'
)subscript
)pair
(pair
(string_'street') string_'street'
(subscript
(identifier_data) identifier_data
(string_'street') string_'street'
)subscript
)pair
(pair
(string_'street_bis') string_'street_bis'
(subscript
(identifier_data) identifier_data
(string_'street_bis') string_'street_bis'
)subscript
)pair
(pair
(string_'city') string_'city'
(subscript
(identifier_data) identifier_data
(string_'city') string_'city'
)subscript
)pair
(pair
(string_'zip') string_'zip'
(subscript
(identifier_data) identifier_data
(string_'zip') string_'zip'
)subscript
)pair
(pair
(string_'country') string_'country'
(subscript
(identifier_country) identifier_country
(string_'id') string_'id'
)subscript
)pair
(pair
(string_'subdivision') string_'subdivision'
(subscript
(identifier_state) identifier_state
(string_'id') string_'id'
)subscript
)pair
)dictionary
)list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_address) identifier_address
(string_'id') string_'id'
)subscript
)return_statement
)block
)function_definition
)module | Create an address and return the id |
(module
(function_definition
(function_name_training_env) function_name_training_env
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_sagemaker_containers) identifier_sagemaker_containers
)dotted_name
(dotted_name
(identifier__env) identifier__env
)dotted_name
)import_from_statement
(return_statement
(call
(attribute
(identifier__env) identifier__env
(identifier_TrainingEnv) identifier_TrainingEnv
)attribute
(argument_list
(keyword_argument
(identifier_resource_config) identifier_resource_config
(call
(attribute
(identifier__env) identifier__env
(identifier_read_resource_config) identifier_read_resource_config
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_input_data_config) identifier_input_data_config
(call
(attribute
(identifier__env) identifier__env
(identifier_read_input_data_config) identifier_read_input_data_config
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_hyperparameters) identifier_hyperparameters
(call
(attribute
(identifier__env) identifier__env
(identifier_read_hyperparameters) identifier_read_hyperparameters
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a TrainingEnv.
Returns:
TrainingEnv: an instance of TrainingEnv |
(module
(function_definition
(function_name_validate_request) function_name_validate_request
(parameters
(identifier_self) identifier_self
(identifier_iface_name) identifier_iface_name
(identifier_func_name) identifier_func_name
(identifier_params) identifier_params
)parameters
(block
(expression_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_interface) identifier_interface
)attribute
(argument_list
(identifier_iface_name) identifier_iface_name
)argument_list
)call
(identifier_function) identifier_function
)attribute
(argument_list
(identifier_func_name) identifier_func_name
)argument_list
)call
(identifier_validate_params) identifier_validate_params
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Validates that the given params match the expected length and types for this
interface and function.
Returns two element tuple: (bool, string)
- `bool` - True if valid, False if not
- `string` - Description of validation error, or None if valid
:Parameters:
iface_name
Name of interface
func_name
Name of function
params
List of params to validate against this function |
(module
(function_definition
(function_name_unsubscribe_user_from_discussion) function_name_unsubscribe_user_from_discussion
(parameters
(identifier_recID) identifier_recID
(identifier_uid) identifier_uid
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(assignment
(identifier_params) identifier_params
(tuple
(identifier_recID) identifier_recID
(identifier_uid) identifier_uid
)tuple
)assignment
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier_run_sql) identifier_run_sql
(argument_list
(identifier_query) identifier_query
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)if_statement
(return_statement
(integer_0) integer_0
)return_statement
)block
)function_definition
)module | Unsubscribe users from a discussion.
:param recID: record ID corresponding to the discussion we want to
unsubscribe the user
:param uid: user id
:return 1 if successful, 0 if not |
(module
(function_definition
(function_name__change_kind) function_name__change_kind
(parameters
(identifier_self) identifier_self
(identifier_post_uid) identifier_post_uid
)parameters
(block
(expression_statement
(assignment
(identifier_post_data) identifier_post_data
(call
(attribute
(identifier_self) identifier_self
(identifier_get_post_data) identifier_get_post_data
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'admin post update: {0}') string_'admin post update: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_post_data) identifier_post_data
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_MPost) identifier_MPost
(identifier_update_misc) identifier_update_misc
)attribute
(argument_list
(identifier_post_uid) identifier_post_uid
(keyword_argument
(identifier_kind) identifier_kind
(subscript
(identifier_post_data) identifier_post_data
(string_'kcat') string_'kcat'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_update_category) identifier_update_category
(argument_list
(identifier_post_uid) identifier_post_uid
(identifier_post_data) identifier_post_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_redirect) identifier_redirect
)attribute
(argument_list
(call
(attribute
(string_'/{0}/{1}') string_'/{0}/{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_router_post) identifier_router_post
(subscript
(identifier_post_data) identifier_post_data
(string_'kcat') string_'kcat'
)subscript
)subscript
(identifier_post_uid) identifier_post_uid
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | To modify the category of the post, and kind. |
(module
(function_definition
(function_name__clean_tag) function_name__clean_tag
(parameters
(identifier_t) identifier_t
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(identifier__scored_patt) identifier__scored_patt
(identifier_sub) identifier_sub
)attribute
(argument_list
(keyword_argument
(identifier_string) identifier_string
(identifier_t) identifier_t
)keyword_argument
(keyword_argument
(identifier_repl) identifier_repl
(string_'') string_''
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_t) identifier_t
(string_'_country_') string_'_country_'
)comparison_operator
(call
(attribute
(identifier_t) identifier_t
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'_country:') string_'_country:'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'nnp_country') string_'nnp_country'
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_t) identifier_t
(string_'vpb') string_'vpb'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'vb') string_'vb'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_t) identifier_t
(string_'nnd') string_'nnd'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'nns') string_'nns'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_t) identifier_t
(string_'nns_root:') string_'nns_root:'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'nns') string_'nns'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_t) identifier_t
(string_'root:zygote') string_'root:zygote'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'nn') string_'nn'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(attribute
(identifier_t) identifier_t
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'root:') string_'root:'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'uh') string_'uh'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_t) identifier_t
(tuple
(string_'abbr_united_states_marine_corps') string_'abbr_united_states_marine_corps'
(string_'abbr_orange_juice') string_'abbr_orange_juice'
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_"abbreviation") string_"abbreviation"
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_t) identifier_t
(string_'+abbreviation') string_'+abbreviation'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'abbreviation') string_'abbreviation'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(attribute
(identifier_t) identifier_t
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'fw_misspelling:') string_'fw_misspelling:'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(string_'fw') string_'fw'
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_t) identifier_t
)return_statement
)block
)function_definition
)module | Fix up some garbage errors. |
(module
(function_definition
(function_name___verify_server_version) function_name___verify_server_version
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_compare_versions) identifier_compare_versions
(argument_list
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier__lib_major_version) identifier__lib_major_version
(identifier__lib_minor_version) identifier__lib_minor_version
)list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_product_version) identifier_product_version
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_'Client version {} connecting to server with newer minor release {}.') string_'Client version {} connecting to server with newer minor release {}.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier__lib_full_version) identifier__lib_full_version
(attribute
(identifier_self) identifier_self
(identifier_product_version) identifier_product_version
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_compare_versions) identifier_compare_versions
(argument_list
(identifier__lib_major_version) identifier__lib_major_version
(attribute
(identifier_self) identifier_self
(identifier_product_version) identifier_product_version
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidSwimlaneProductVersion) identifier_InvalidSwimlaneProductVersion
(argument_list
(identifier_self) identifier_self
(call
(attribute
(string_'{}.0') string_'{}.0'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier__lib_major_version) identifier__lib_major_version
)argument_list
)call
(call
(attribute
(string_'{}.0') string_'{}.0'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier__lib_major_version) identifier__lib_major_version
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Verify connected to supported server product version
Notes:
Logs warning if connecting to a newer minor server version
Raises:
swimlane.exceptions.InvalidServerVersion: If server major version is higher than package major version |
(module
(function_definition
(function_name__set_property) function_name__set_property
(parameters
(identifier_xml_root) identifier_xml_root
(identifier_name) identifier_name
(identifier_value) identifier_value
(default_parameter
(identifier_properties) identifier_properties
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_properties) identifier_properties
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_properties) identifier_properties
(call
(attribute
(identifier_xml_root) identifier_xml_root
(identifier_find) identifier_find
)attribute
(argument_list
(string_"properties") string_"properties"
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_prop) identifier_prop
(identifier_properties) identifier_properties
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_prop) identifier_prop
(identifier_get) identifier_get
)attribute
(argument_list
(string_"name") string_"name"
)argument_list
)call
(identifier_name) identifier_name
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_prop) identifier_prop
(identifier_set) identifier_set
)attribute
(argument_list
(string_"value") string_"value"
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_unicode_str) identifier_get_unicode_str
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_etree) identifier_etree
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_properties) identifier_properties
(string_"property") string_"property"
(dictionary
(pair
(string_"name") string_"name"
(identifier_name) identifier_name
)pair
(pair
(string_"value") string_"value"
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_unicode_str) identifier_get_unicode_str
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)else_clause
)for_statement
)block
)function_definition
)module | Sets property to specified value. |
(module
(function_definition
(function_name_index_map) function_name_index_map
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_entry) identifier_entry
(identifier_text_fn) identifier_text_fn
)tuple_pattern
(identifier_data) identifier_data
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(identifier_text_fn) identifier_text_fn
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Got %s") string_"Got %s"
(attribute
(identifier_entry) identifier_entry
(identifier_filename) identifier_filename
)attribute
)argument_list
)call
)expression_statement
(for_statement
(identifier_s) identifier_s
(call
(identifier_split_into_sentences) identifier_split_into_sentences
(argument_list
(identifier_text) identifier_text
)argument_list
)call
(block
(for_statement
(identifier_w) identifier_w
(call
(identifier_split_into_words) identifier_split_into_words
(argument_list
(call
(attribute
(identifier_s) identifier_s
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(yield
(tuple
(identifier_w) identifier_w
(attribute
(identifier_entry) identifier_entry
(identifier_filename) identifier_filename
)attribute
)tuple
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Index demo map function. |
(module
(function_definition
(function_name_startup_script) function_name_startup_script
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_script_file) identifier_script_file
(attribute
(identifier_self) identifier_self
(identifier_script_file) identifier_script_file
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_script_file) identifier_script_file
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_script_file) identifier_script_file
(string_"rb") string_"rb"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
(keyword_argument
(identifier_errors) identifier_errors
(string_"replace") string_"replace"
)keyword_argument
)argument_list
)call
)return_statement
)block
)with_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_VPCSError) identifier_VPCSError
(argument_list
(call
(attribute
(string_'Cannot read the startup script file "{}": {}') string_'Cannot read the startup script file "{}": {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_script_file) identifier_script_file
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the content of the current startup script |
(module
(function_definition
(function_name__session_check) function_name__session_check
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_SESSION_FILE) identifier_SESSION_FILE
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Session file does not exist") string_"Session file does not exist"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_SESSION_FILE) identifier_SESSION_FILE
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_cookies) identifier_cookies
(call
(attribute
(attribute
(identifier_requests) identifier_requests
(identifier_utils) identifier_utils
)attribute
(identifier_cookiejar_from_dict) identifier_cookiejar_from_dict
)attribute
(argument_list
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_cookies) identifier_cookies
)attribute
(identifier_cookies) identifier_cookies
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Loaded cookies from session file") string_"Loaded cookies from session file"
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_url) identifier_url
(attribute
(identifier_self) identifier_self
(identifier_TEST_URL) identifier_TEST_URL
)attribute
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_HEADERS) identifier_HEADERS
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_TEST_KEY) identifier_TEST_KEY
)attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_content) identifier_content
)attribute
)argument_list
)call
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Session file appears invalid") string_"Session file appears invalid"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__is_authenticated) identifier__is_authenticated
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__process_state) identifier__process_state
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Attempt to authenticate the user through a session file.
This process is done to avoid having to authenticate the user every
single time. It uses a session file that is saved when a valid session
is captured and then reused. Because sessions can expire, we need to
test the session prior to calling the user authenticated. Right now
that is done with a test string found in an unauthenticated session.
This approach is not an ideal method, but it works. |
(module
(function_definition
(function_name_getCredentials) function_name_getCredentials
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_username) identifier_username
(identifier_password) identifier_password
(identifier_public_key) identifier_public_key
(identifier_private_key) identifier_private_key
)tuple_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_getCredentialValues) identifier_getCredentialValues
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_public_key) identifier_public_key
(identifier_private_key) identifier_private_key
)boolean_operator
(block
(return_statement
(call
(identifier_UserKeyCredential) identifier_UserKeyCredential
(argument_list
(identifier_username) identifier_username
(identifier_public_key) identifier_public_key
(identifier_private_key) identifier_private_key
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_username) identifier_username
(identifier_password) identifier_password
)boolean_operator
(block
(return_statement
(call
(identifier_UserPassCredential) identifier_UserPassCredential
(argument_list
(identifier_username) identifier_username
(identifier_password) identifier_password
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return UserKeyCredential or UserPassCredential. |
(module
(function_definition
(function_name_bicluster_similarity) function_name_bicluster_similarity
(parameters
(identifier_self) identifier_self
(identifier_reference_model) identifier_reference_model
)parameters
(block
(expression_statement
(assignment
(identifier_similarity_score) identifier_similarity_score
(call
(identifier_consensus_score) identifier_consensus_score
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_biclusters_) identifier_biclusters_
)attribute
(attribute
(identifier_reference_model) identifier_reference_model
(identifier_biclusters_) identifier_biclusters_
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_similarity_score) identifier_similarity_score
)return_statement
)block
)function_definition
)module | Calculates the similarity between the current model of biclusters and the reference model of biclusters
:param reference_model: The reference model of biclusters
:return: Returns the consensus score(Hochreiter et. al., 2010), i.e. the similarity of two sets of biclusters. |
(module
(function_definition
(function_name_getNamedItem) function_name_getNamedItem
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_Attr) identifier_Attr
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
(None) None
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get ``Attr`` object which has ``name``.
If does not have ``name`` attr, return None. |
(module
(function_definition
(function_name_get_one_dimensional_kernel) function_name_get_one_dimensional_kernel
(parameters
(identifier_self) identifier_self
(identifier_dim) identifier_dim
)parameters
(block
(expression_statement
(assignment
(identifier_oneDkernel) identifier_oneDkernel
(call
(identifier_GridRBF) identifier_GridRBF
(argument_list
(keyword_argument
(identifier_input_dim) identifier_input_dim
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_variance) identifier_variance
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_variance) identifier_variance
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_originalDimensions) identifier_originalDimensions
(identifier_dim) identifier_dim
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_oneDkernel) identifier_oneDkernel
)return_statement
)block
)function_definition
)module | Specially intended for Grid regression. |
(module
(function_definition
(function_name__update_alignment) function_name__update_alignment
(parameters
(identifier_self) identifier_self
(identifier_alignment) identifier_alignment
)parameters
(block
(expression_statement
(assignment
(identifier_states) identifier_states
(dictionary
(pair
(string_"top") string_"top"
(integer_2) integer_2
)pair
(pair
(string_"middle") string_"middle"
(integer_0) integer_0
)pair
(pair
(string_"bottom") string_"bottom"
(integer_1) integer_1
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_alignment_tb) identifier_alignment_tb
)attribute
(identifier_state) identifier_state
)attribute
(subscript
(identifier_states) identifier_states
(identifier_alignment) identifier_alignment
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_alignment_tb) identifier_alignment_tb
)attribute
(identifier_toggle) identifier_toggle
)attribute
(argument_list
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_alignment_tb) identifier_alignment_tb
)attribute
(identifier_Refresh) identifier_Refresh
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Updates vertical text alignment button
Parameters
----------
alignment: String in ["top", "middle", "right"]
\tSwitches button to untoggled if False and toggled if True |
(module
(function_definition
(function_name_update_aliases) function_name_update_aliases
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_changed) identifier_changed
(False) False
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_api) identifier_api
)attribute
(identifier_get_room_state) identifier_get_room_state
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_room_id) identifier_room_id
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_MatrixRequestError) identifier_MatrixRequestError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(for_statement
(identifier_chunk) identifier_chunk
(identifier_response) identifier_response
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_chunk) identifier_chunk
(identifier_get) identifier_get
)attribute
(argument_list
(string_'content') string_'content'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_content) identifier_content
(block
(if_statement
(comparison_operator
(string_'aliases') string_'aliases'
(identifier_content) identifier_content
)comparison_operator
(block
(expression_statement
(assignment
(identifier_aliases) identifier_aliases
(subscript
(identifier_content) identifier_content
(string_'aliases') string_'aliases'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_aliases) identifier_aliases
(attribute
(identifier_self) identifier_self
(identifier_aliases) identifier_aliases
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_aliases) identifier_aliases
)attribute
(identifier_aliases) identifier_aliases
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changed) identifier_changed
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_chunk) identifier_chunk
(identifier_get) identifier_get
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
(string_'m.room.canonical_alias') string_'m.room.canonical_alias'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_canonical_alias) identifier_canonical_alias
(subscript
(identifier_content) identifier_content
(string_'alias') string_'alias'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_canonical_alias) identifier_canonical_alias
)attribute
(identifier_canonical_alias) identifier_canonical_alias
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_canonical_alias) identifier_canonical_alias
)attribute
(identifier_canonical_alias) identifier_canonical_alias
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changed) identifier_changed
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_changed) identifier_changed
(attribute
(identifier_self) identifier_self
(identifier_aliases) identifier_aliases
)attribute
)boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_canonical_alias) identifier_canonical_alias
)attribute
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_canonical_alias) identifier_canonical_alias
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_aliases) identifier_aliases
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_changed) identifier_changed
)return_statement
)block
)function_definition
)module | Get aliases information from room state
Returns:
boolean: True if the aliases changed, False if not |
(module
(function_definition
(function_name_connect_ec2_endpoint) function_name_connect_ec2_endpoint
(parameters
(identifier_url) identifier_url
(default_parameter
(identifier_aws_access_key_id) identifier_aws_access_key_id
(None) None
)default_parameter
(default_parameter
(identifier_aws_secret_access_key) identifier_aws_secret_access_key
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_from_statement
(dotted_name
(identifier_boto) identifier_boto
(identifier_ec2) identifier_ec2
(identifier_regioninfo) identifier_regioninfo
)dotted_name
(dotted_name
(identifier_RegionInfo) identifier_RegionInfo
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_purl) identifier_purl
(call
(attribute
(identifier_urlparse) identifier_urlparse
(identifier_urlparse) identifier_urlparse
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'port') string_'port'
)subscript
(attribute
(identifier_purl) identifier_purl
(identifier_port) identifier_port
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'host') string_'host'
)subscript
(attribute
(identifier_purl) identifier_purl
(identifier_hostname) identifier_hostname
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'path') string_'path'
)subscript
(attribute
(identifier_purl) identifier_purl
(identifier_path) identifier_path
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(string_'is_secure') string_'is_secure'
(identifier_kwargs) identifier_kwargs
)comparison_operator
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'is_secure') string_'is_secure'
)subscript
(parenthesized_expression
(comparison_operator
(attribute
(identifier_purl) identifier_purl
(identifier_scheme) identifier_scheme
)attribute
(string_"https") string_"https"
)comparison_operator
)parenthesized_expression
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'region') string_'region'
)subscript
(call
(identifier_RegionInfo) identifier_RegionInfo
(argument_list
(keyword_argument
(identifier_name) identifier_name
(attribute
(identifier_purl) identifier_purl
(identifier_hostname) identifier_hostname
)attribute
)keyword_argument
(keyword_argument
(identifier_endpoint) identifier_endpoint
(attribute
(identifier_purl) identifier_purl
(identifier_hostname) identifier_hostname
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'aws_access_key_id') string_'aws_access_key_id'
)subscript
(identifier_aws_access_key_id) identifier_aws_access_key_id
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'aws_secret_access_key') string_'aws_secret_access_key'
)subscript
(identifier_aws_secret_access_key) identifier_aws_secret_access_key
)assignment
)expression_statement
(return_statement
(parenthesized_expression
(call
(identifier_connect_ec2) identifier_connect_ec2
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Connect to an EC2 Api endpoint. Additional arguments are passed
through to connect_ec2.
:type url: string
:param url: A url for the ec2 api endpoint to connect to
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.ec2.connection.EC2Connection`
:return: A connection to Eucalyptus server |
(module
(function_definition
(function_name_format_specifier) function_name_format_specifier
(parameters
(identifier_ireq) identifier_ireq
)parameters
(block
(expression_statement
(assignment
(identifier_specs) identifier_specs
(conditional_expression
(attribute
(attribute
(identifier_ireq) identifier_ireq
(identifier_specifier) identifier_specifier
)attribute
(identifier__specs) identifier__specs
)attribute
(comparison_operator
(attribute
(identifier_ireq) identifier_ireq
(identifier_req) identifier_req
)attribute
(None) None
)comparison_operator
(list
)list
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_specs) identifier_specs
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_specs) identifier_specs
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(attribute
(identifier_x) identifier_x
(identifier__spec) identifier__spec
)attribute
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(boolean_operator
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_str) identifier_str
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(for_in_clause
(identifier_s) identifier_s
(identifier_specs) identifier_specs
)for_in_clause
)generator_expression
)call
(string_"<any>") string_"<any>"
)boolean_operator
)return_statement
)block
)function_definition
)module | Generic formatter for pretty printing the specifier part of
InstallRequirements to the terminal. |
(module
(function_definition
(function_name_connect_with_password) function_name_connect_with_password
(parameters
(identifier_self) identifier_self
(identifier_ssh) identifier_ssh
(identifier_username) identifier_username
(identifier_password) identifier_password
(identifier_address) identifier_address
(identifier_port) identifier_port
(identifier_sock) identifier_sock
(default_parameter
(identifier_timeout) identifier_timeout
(integer_20) integer_20
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_ssh) identifier_ssh
(identifier_connect) identifier_connect
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(identifier_username) identifier_username
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
(keyword_argument
(identifier_hostname) identifier_hostname
(identifier_address) identifier_address
)keyword_argument
(keyword_argument
(identifier_port) identifier_port
(identifier_port) identifier_port
)keyword_argument
(keyword_argument
(identifier_sock) identifier_sock
(identifier_sock) identifier_sock
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create an ssh session to a remote host with a username and password
:type username: str
:param username: username used for ssh authentication
:type password: str
:param password: password used for ssh authentication
:type address: str
:param address: remote server address
:type port: int
:param port: remote server port |
(module
(function_definition
(function_name_plotdata) function_name_plotdata
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_part) identifier_part
(string_'re') string_'re'
)default_parameter
(default_parameter
(identifier_scale) identifier_scale
(string_'log') string_'log'
)default_parameter
(default_parameter
(identifier_steps) identifier_steps
(integer_50) integer_50
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_scale) identifier_scale
(string_'log') string_'log'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(attribute
(identifier_np) identifier_np
(identifier_logspace) identifier_logspace
)attribute
(argument_list
(call
(identifier_log) identifier_log
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scale_min) identifier_scale_min
)attribute
)argument_list
)call
(call
(identifier_log) identifier_log
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scale_max) identifier_scale_max
)attribute
)argument_list
)call
(identifier_steps) identifier_steps
(keyword_argument
(identifier_base) identifier_base
(identifier_e) identifier_e
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_scale) identifier_scale
(string_'linear') string_'linear'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(attribute
(identifier_np) identifier_np
(identifier_linspace) identifier_linspace
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scale_min) identifier_scale_min
)attribute
(attribute
(identifier_self) identifier_self
(identifier_scale_max) identifier_scale_max
)attribute
(identifier_steps) identifier_steps
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier_self) identifier_self
(identifier_fun) identifier_fun
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list_comprehension
(subscript
(identifier_d) identifier_d
(identifier_key) identifier_key
)subscript
(for_in_clause
(identifier_d) identifier_d
(identifier_y) identifier_y
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_part) identifier_part
(string_'re') string_'re'
)comparison_operator
(block
(return_statement
(expression_list
(identifier_x) identifier_x
(attribute
(identifier_y) identifier_y
(identifier_real) identifier_real
)attribute
)expression_list
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_part) identifier_part
(string_'im') string_'im'
)comparison_operator
(block
(return_statement
(expression_list
(identifier_x) identifier_x
(attribute
(identifier_y) identifier_y
(identifier_imag) identifier_imag
)attribute
)expression_list
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Return a tuple of arrays x, y that can be fed to plt.plot,
where x is the scale in GeV and y is the parameter of interest.
Parameters:
- key: dicionary key of the parameter to be plotted (e.g. a WCxf
coefficient name or a SM parameter like 'g')
- part: plot the real part 're' (default) or the imaginary part 'im'
- scale: 'log'; make the x steps logarithmically distributed; for
'linear', linearly distributed
- steps: steps in x to take (default: 50) |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_id) identifier_id
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_objects) identifier_objects
)attribute
(identifier_id) identifier_id
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_objects) identifier_objects
)attribute
(identifier_id) identifier_id
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_prepare_save) identifier_prepare_save
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
(identifier_id) identifier_id
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_post_save) identifier_post_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_id) identifier_id
)return_statement
)block
)function_definition
)module | Save this entry.
If the entry does not have an :attr:`id`, a new id will be assigned,
and the :attr:`id` attribute set accordingly.
Pre-save processing of the fields saved can be done by
overriding the :meth:`prepare_save` method.
Additional actions to be done after the save operation
has been completed can be added by defining the
:meth:`post_save` method. |
(module
(function_definition
(function_name_filter_silenced) function_name_filter_silenced
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_stashes) identifier_stashes
(list
(tuple
(string_'client') string_'client'
(call
(attribute
(string_'/silence/{}') string_'/silence/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_event) identifier_event
)attribute
(string_'client') string_'client'
)subscript
(string_'name') string_'name'
)subscript
)argument_list
)call
)tuple
(tuple
(string_'check') string_'check'
(call
(attribute
(string_'/silence/{}/{}') string_'/silence/{}/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_event) identifier_event
)attribute
(string_'client') string_'client'
)subscript
(string_'name') string_'name'
)subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_event) identifier_event
)attribute
(string_'check') string_'check'
)subscript
(string_'name') string_'name'
)subscript
)argument_list
)call
)tuple
(tuple
(string_'check') string_'check'
(call
(attribute
(string_'/silence/all/{}') string_'/silence/all/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_event) identifier_event
)attribute
(string_'check') string_'check'
)subscript
(string_'name') string_'name'
)subscript
)argument_list
)call
)tuple
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_scope) identifier_scope
(identifier_path) identifier_path
)pattern_list
(identifier_stashes) identifier_stashes
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stash_exists) identifier_stash_exists
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bail) identifier_bail
)attribute
(argument_list
(binary_operator
(identifier_scope) identifier_scope
(string_' alerts silenced') string_' alerts silenced'
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Determine whether a check is silenced and shouldn't handle. |
(module
(function_definition
(function_name__database) function_name__database
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_writable) identifier_writable
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(identifier_MEMORY_DB_NAME) identifier_MEMORY_DB_NAME
)comparison_operator
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_inmemory_db) identifier_inmemory_db
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_inmemory_db) identifier_inmemory_db
)attribute
(call
(attribute
(identifier_xapian) identifier_xapian
(identifier_inmemory_open) identifier_inmemory_open
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_inmemory_db) identifier_inmemory_db
)attribute
)return_statement
)block
)if_statement
(if_statement
(identifier_writable) identifier_writable
(block
(expression_statement
(assignment
(identifier_database) identifier_database
(call
(attribute
(identifier_xapian) identifier_xapian
(identifier_WritableDatabase) identifier_WritableDatabase
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(attribute
(identifier_xapian) identifier_xapian
(identifier_DB_CREATE_OR_OPEN) identifier_DB_CREATE_OR_OPEN
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_database) identifier_database
(call
(attribute
(identifier_xapian) identifier_xapian
(identifier_Database) identifier_Database
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_xapian) identifier_xapian
(identifier_DatabaseOpeningError) identifier_DatabaseOpeningError
)attribute
(block
(raise_statement
(call
(identifier_InvalidIndexError) identifier_InvalidIndexError
(argument_list
(binary_operator
(string_'Unable to open index at %s') string_'Unable to open index at %s'
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_database) identifier_database
)return_statement
)block
)function_definition
)module | Private method that returns a xapian.Database for use.
Optional arguments:
``writable`` -- Open the database in read/write mode (default=False)
Returns an instance of a xapian.Database or xapian.WritableDatabase |
(module
(function_definition
(function_name__detect) function_name__detect
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_c) identifier_c
(attribute
(attribute
(identifier_self) identifier_self
(identifier_slither) identifier_slither
)attribute
(identifier_contracts_derived) identifier_contracts_derived
)attribute
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_self) identifier_self
(identifier_detect_uninitialized) identifier_detect_uninitialized
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_variable) identifier_variable
(identifier_functions) identifier_functions
)pattern_list
(identifier_ret) identifier_ret
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(string_"{}.{} ({}) is never initialized. It is used in:\n") string_"{}.{} ({}) is never initialized. It is used in:\n"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_info) identifier_info
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_variable) identifier_variable
(identifier_contract) identifier_contract
)attribute
(identifier_name) identifier_name
)attribute
(attribute
(identifier_variable) identifier_variable
(identifier_name) identifier_name
)attribute
(attribute
(identifier_variable) identifier_variable
(identifier_source_mapping_str) identifier_source_mapping_str
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(identifier_functions) identifier_functions
(block
(expression_statement
(augmented_assignment
(identifier_info) identifier_info
(call
(attribute
(string_"\t- {} ({})\n") string_"\t- {} ({})\n"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_f) identifier_f
(identifier_name) identifier_name
)attribute
(attribute
(identifier_f) identifier_f
(identifier_source_mapping_str) identifier_source_mapping_str
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_source) identifier_source
(list
(attribute
(identifier_variable) identifier_variable
(identifier_source_mapping) identifier_source_mapping
)attribute
)list
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_source) identifier_source
(list_comprehension
(attribute
(identifier_f) identifier_f
(identifier_source_mapping) identifier_source_mapping
)attribute
(for_in_clause
(identifier_f) identifier_f
(identifier_functions) identifier_functions
)for_in_clause
)list_comprehension
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_self) identifier_self
(identifier_generate_json_result) identifier_generate_json_result
)attribute
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_variable_to_json) identifier_add_variable_to_json
)attribute
(argument_list
(identifier_variable) identifier_variable
(identifier_json) identifier_json
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_functions_to_json) identifier_add_functions_to_json
)attribute
(argument_list
(identifier_functions) identifier_functions
(identifier_json) identifier_json
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_json) identifier_json
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Detect uninitialized state variables
Recursively visit the calls
Returns:
dict: [contract name] = set(state variable uninitialized) |
(module
(function_definition
(function_name_capture) function_name_capture
(parameters
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pattern) identifier_pattern
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_pattern) identifier_pattern
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(function_definition
(function_name_munge) function_name_munge
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_pattern) identifier_pattern
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_match) identifier_match
)not_operator
(block
(return_statement
(identifier_NONE) identifier_NONE
)return_statement
)block
)if_statement
(for_statement
(identifier_group) identifier_group
(list
(boolean_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)boolean_operator
(integer_1) integer_1
)list
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(identifier_group) identifier_group
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_NONE) identifier_NONE
)return_statement
)block
)function_definition
(return_statement
(call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_munge) identifier_munge
)attribute
(identifier_attach) identifier_attach
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(argument_list
(identifier_munge) identifier_munge
)argument_list
)call
)return_statement
)block
)function_definition
)module | Hooks munge to capture a value based on a regex. |
(module
(function_definition
(function_name_stops) function_name_stops
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_stops) identifier_stops
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_stop_time) identifier_stop_time
(call
(attribute
(identifier_self) identifier_self
(identifier_stop_times) identifier_stop_times
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_stops) identifier_stops
(call
(attribute
(identifier_stop_time) identifier_stop_time
(identifier_stops) identifier_stops
)attribute
(argument_list
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_stops) identifier_stops
)return_statement
)block
)function_definition
)module | Return all stops visited by trips for this agency. |
(module
(function_definition
(function_name_get_raw_data) function_name_get_raw_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier___report_kind) identifier___report_kind
)attribute
(identifier_HidP_Output) identifier_HidP_Output
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier___report_kind) identifier___report_kind
)attribute
(identifier_HidP_Feature) identifier_HidP_Feature
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_HIDError) identifier_HIDError
(argument_list
(string_"Only for output or feature reports") string_"Only for output or feature reports"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___prepare_raw_data) identifier___prepare_raw_data
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_helpers) identifier_helpers
(identifier_ReadOnlyList) identifier_ReadOnlyList
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___raw_data) identifier___raw_data
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get raw HID report based on internal report item settings,
creates new c_ubytes storage |
(module
(function_definition
(function_name_loadFromTemplate) function_name_loadFromTemplate
(parameters
(identifier_template) identifier_template
(default_parameter
(identifier_stim) identifier_stim
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_stim) identifier_stim
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_stim) identifier_stim
(call
(identifier_StimulusModel) identifier_StimulusModel
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_stim) identifier_stim
(identifier_setRepCount) identifier_setRepCount
)attribute
(argument_list
(subscript
(identifier_template) identifier_template
(string_'reps') string_'reps'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_stim) identifier_stim
(identifier_setUserTag) identifier_setUserTag
)attribute
(argument_list
(call
(attribute
(identifier_template) identifier_template
(identifier_get) identifier_get
)attribute
(argument_list
(string_'user_tag') string_'user_tag'
(string_'') string_''
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_component_classes) identifier_component_classes
(call
(identifier_get_stimuli_models) identifier_get_stimuli_models
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_comp_doc) identifier_comp_doc
(subscript
(identifier_template) identifier_template
(string_'components') string_'components'
)subscript
(block
(expression_statement
(assignment
(identifier_comp) identifier_comp
(call
(identifier_get_component) identifier_get_component
(argument_list
(subscript
(identifier_comp_doc) identifier_comp_doc
(string_'stim_type') string_'stim_type'
)subscript
(identifier_component_classes) identifier_component_classes
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_comp) identifier_comp
(identifier_loadState) identifier_loadState
)attribute
(argument_list
(identifier_comp_doc) identifier_comp_doc
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_stim) identifier_stim
(identifier_insertComponent) identifier_insertComponent
)attribute
(argument_list
(identifier_comp) identifier_comp
(list_splat
(subscript
(identifier_comp_doc) identifier_comp_doc
(string_'index') string_'index'
)subscript
)list_splat
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_autoparams) identifier_autoparams
(subscript
(identifier_template) identifier_template
(string_'autoparameters') string_'autoparameters'
)subscript
)assignment
)expression_statement
(for_statement
(identifier_p) identifier_p
(identifier_autoparams) identifier_autoparams
(block
(expression_statement
(assignment
(identifier_selection) identifier_selection
(subscript
(identifier_p) identifier_p
(string_'selection') string_'selection'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_component_selection) identifier_component_selection
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_index) identifier_index
(identifier_selection) identifier_selection
(block
(expression_statement
(assignment
(identifier_component) identifier_component
(call
(attribute
(identifier_stim) identifier_stim
(identifier_component) identifier_component
)attribute
(argument_list
(list_splat
(identifier_index) identifier_index
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_component_selection) identifier_component_selection
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_component) identifier_component
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_p) identifier_p
(string_'selection') string_'selection'
)subscript
(identifier_component_selection) identifier_component_selection
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_stim) identifier_stim
(identifier_autoParams) identifier_autoParams
)attribute
(argument_list
)argument_list
)call
(identifier_setParameterList) identifier_setParameterList
)attribute
(argument_list
(identifier_autoparams) identifier_autoparams
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_stim) identifier_stim
(identifier_setReorderFunc) identifier_setReorderFunc
)attribute
(argument_list
(call
(identifier_order_function) identifier_order_function
(argument_list
(subscript
(identifier_template) identifier_template
(string_'reorder') string_'reorder'
)subscript
)argument_list
)call
(subscript
(identifier_template) identifier_template
(string_'reorder') string_'reorder'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_stim) identifier_stim
(identifier_setStimType) identifier_setStimType
)attribute
(argument_list
(subscript
(identifier_template) identifier_template
(string_'testtype') string_'testtype'
)subscript
)argument_list
)call
)expression_statement
(return_statement
(identifier_stim) identifier_stim
)return_statement
)block
)function_definition
)module | Loads the stimlus to the state provided by a template
:param template: dict that includes all info nesessary to recreate stim
:type template: dict
:param stim: Stimulus to apply to, creates a new model if None
:type stim: StimulusModel |
(module
(function_definition
(function_name_parse_stage_name) function_name_parse_stage_name
(parameters
(identifier_stage) identifier_stage
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_stage) identifier_stage
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(identifier_stage) identifier_stage
)return_statement
)block
)if_statement
(try_statement
(block
(return_statement
(attribute
(identifier_stage) identifier_stage
(identifier_name) identifier_name
)attribute
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(try_statement
(block
(return_statement
(attribute
(identifier_stage) identifier_stage
(identifier___name__) identifier___name__
)attribute
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_"Unsupported stage type: {}") string_"Unsupported stage type: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_stage) identifier_stage
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Determine the name of a stage.
The stage may be provided already as a name, as a Stage object, or as a
callable with __name__ (e.g., function).
:param str | pypiper.Stage | function stage: Object representing a stage,
from which to obtain name.
:return str: Name of putative pipeline Stage. |
(module
(function_definition
(function_name_build_histogram) function_name_build_histogram
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_colorscale) identifier_colorscale
(None) None
)default_parameter
(default_parameter
(identifier_nbins) identifier_nbins
(integer_10) integer_10
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_colorscale) identifier_colorscale
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_colorscale) identifier_colorscale
(identifier_colorscale_default) identifier_colorscale_default
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_colorscale) identifier_colorscale
(call
(identifier__colors_to_rgb) identifier__colors_to_rgb
(argument_list
(identifier_colorscale) identifier_colorscale
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_h_min) identifier_h_min
(identifier_h_max) identifier_h_max
)pattern_list
(expression_list
(integer_0) integer_0
(integer_1) integer_1
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_hist) identifier_hist
(identifier_bin_edges) identifier_bin_edges
)pattern_list
(call
(attribute
(identifier_np) identifier_np
(identifier_histogram) identifier_histogram
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_range) identifier_range
(tuple
(identifier_h_min) identifier_h_min
(identifier_h_max) identifier_h_max
)tuple
)keyword_argument
(keyword_argument
(identifier_bins) identifier_bins
(identifier_nbins) identifier_nbins
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bin_mids) identifier_bin_mids
(call
(attribute
(identifier_np) identifier_np
(identifier_mean) identifier_mean
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_bin_edges) identifier_bin_edges
(subscript
(identifier_bin_edges) identifier_bin_edges
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_histogram) identifier_histogram
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_max_bucket_value) identifier_max_bucket_value
(call
(identifier_max) identifier_max
(argument_list
(identifier_hist) identifier_hist
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sum_bucket_value) identifier_sum_bucket_value
(call
(identifier_sum) identifier_sum
(argument_list
(identifier_hist) identifier_hist
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_bar) identifier_bar
(identifier_mid) identifier_mid
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_hist) identifier_hist
(identifier_bin_mids) identifier_bin_mids
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_height) identifier_height
(call
(attribute
(identifier_np) identifier_np
(identifier_floor) identifier_floor
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_bar) identifier_bar
(identifier_max_bucket_value) identifier_max_bucket_value
)binary_operator
)parenthesized_expression
(integer_100) integer_100
)binary_operator
)parenthesized_expression
(float_0.5) float_0.5
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_perc) identifier_perc
(call
(identifier_round) identifier_round
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_bar) identifier_bar
(identifier_sum_bucket_value) identifier_sum_bucket_value
)binary_operator
)parenthesized_expression
(float_100.0) float_100.0
)binary_operator
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_color) identifier_color
(call
(identifier__map_val2color) identifier__map_val2color
(argument_list
(identifier_mid) identifier_mid
(float_0.0) float_0.0
(float_1.0) float_1.0
(identifier_colorscale) identifier_colorscale
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_histogram) identifier_histogram
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_"height") string_"height"
(identifier_height) identifier_height
)pair
(pair
(string_"perc") string_"perc"
(identifier_perc) identifier_perc
)pair
(pair
(string_"color") string_"color"
(identifier_color) identifier_color
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_histogram) identifier_histogram
)return_statement
)block
)function_definition
)module | Build histogram of data based on values of color_function |
(module
(function_definition
(function_name_clear_context) function_name_clear_context
(parameters
(identifier_pid_file) identifier_pid_file
)parameters
(block
(return_statement
)return_statement
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Should not happen") string_"Should not happen"
)argument_list
)call
)raise_statement
(expression_statement
(assignment
(identifier_fname) identifier_fname
(call
(identifier_get_context_file_name) identifier_get_context_file_name
(argument_list
(identifier_pid_file) identifier_pid_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_move) identifier_move
)attribute
(argument_list
(identifier_fname) identifier_fname
(call
(attribute
(identifier_fname) identifier_fname
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"context.json") string_"context.json"
(string_"context.old.json") string_"context.old.json"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"terminated") string_"terminated"
)subscript
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_timezone) identifier_timezone
)attribute
(identifier_utc) identifier_utc
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_set_context) identifier_set_context
(argument_list
(identifier_pid_file) identifier_pid_file
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Called at exit. Delete the context file to signal there is no active notebook.
We don't delete the whole file, but leave it around for debugging purposes. Maybe later we want to pass some information back to the web site. |
(module
(function_definition
(function_name_save_file) function_name_save_file
(parameters
(identifier_client) identifier_client
(identifier_bucket) identifier_bucket
(identifier_data_file) identifier_data_file
(identifier_items) identifier_items
(default_parameter
(identifier_dry_run) identifier_dry_run
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Writing {number_items} items to s3. Bucket: {bucket} Key: {key}') string_'Writing {number_items} items to s3. Bucket: {bucket} Key: {key}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_number_items) identifier_number_items
(call
(identifier_len) identifier_len
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_bucket) identifier_bucket
(identifier_bucket) identifier_bucket
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_data_file) identifier_data_file
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_dry_run) identifier_dry_run
)not_operator
(block
(return_statement
(call
(identifier__put_to_s3) identifier__put_to_s3
(argument_list
(identifier_client) identifier_client
(identifier_bucket) identifier_bucket
(identifier_data_file) identifier_data_file
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Tries to write JSON data to data file in S3. |
(module
(function_definition
(function_name_find_unresolved_and_unreferenced_symbols) function_name_find_unresolved_and_unreferenced_symbols
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_unresolved) identifier_unresolved
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unreferenced) identifier_unreferenced
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__definitions) identifier__definitions
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__collect_unresolved_and_unreferenced) identifier__collect_unresolved_and_unreferenced
)attribute
(argument_list
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
(identifier_unresolved) identifier_unresolved
(identifier_unreferenced) identifier_unreferenced
(call
(identifier_frozenset) identifier_frozenset
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__definitions) identifier__definitions
)attribute
)argument_list
)call
(keyword_argument
(identifier_start) identifier_start
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_unresolved) identifier_unresolved
(binary_operator
(identifier_unreferenced) identifier_unreferenced
(attribute
(identifier_Scope) identifier_Scope
(identifier_ALL_BUILTINS) identifier_ALL_BUILTINS
)attribute
)binary_operator
)expression_list
)return_statement
)block
)function_definition
)module | Find any unresolved symbols, and unreferenced symbols from this scope.
:returns: ({unresolved}, {unreferenced}) |
(module
(function_definition
(function_name_set_controller) function_name_set_controller
(parameters
(identifier_self) identifier_self
(identifier_controllers) identifier_controllers
)parameters
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(identifier_ovs_vsctl) identifier_ovs_vsctl
(identifier_VSCtlCommand) identifier_VSCtlCommand
)attribute
(argument_list
(string_'set-controller') string_'set-controller'
(list
(attribute
(identifier_self) identifier_self
(identifier_br_name) identifier_br_name
)attribute
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_command) identifier_command
(identifier_args) identifier_args
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_controllers) identifier_controllers
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_run_command) identifier_run_command
)attribute
(argument_list
(list
(identifier_command) identifier_command
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets the OpenFlow controller address.
This method is corresponding to the following ovs-vsctl command::
$ ovs-vsctl set-controller <bridge> <target>... |
(module
(function_definition
(function_name_set_icon) function_name_set_icon
(parameters
(identifier_self) identifier_self
(identifier_icon) identifier_icon
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__icon) identifier__icon
)attribute
(identifier_icon) identifier_icon
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__listitem) identifier__listitem
)attribute
(identifier_setIconImage) identifier_setIconImage
)attribute
(argument_list
(identifier_icon) identifier_icon
)argument_list
)call
)return_statement
)block
)function_definition
)module | Sets the listitem's icon image |
(module
(function_definition
(function_name_binaryRecordsStream) function_name_binaryRecordsStream
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
(identifier_recordLength) identifier_recordLength
)parameters
(block
(return_statement
(call
(identifier_DStream) identifier_DStream
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__jssc) identifier__jssc
)attribute
(identifier_binaryRecordsStream) identifier_binaryRecordsStream
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_recordLength) identifier_recordLength
)argument_list
)call
(identifier_self) identifier_self
(call
(identifier_NoOpSerializer) identifier_NoOpSerializer
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create an input stream that monitors a Hadoop-compatible file system
for new files and reads them as flat binary files with records of
fixed length. Files must be written to the monitored directory by "moving"
them from another location within the same file system.
File names starting with . are ignored.
@param directory: Directory to load data from
@param recordLength: Length of each record in bytes |
(module
(function_definition
(function_name_start_monitoring) function_name_start_monitoring
(parameters
(default_parameter
(identifier_seconds_frozen) identifier_seconds_frozen
(identifier_SECONDS_FROZEN) identifier_SECONDS_FROZEN
)default_parameter
(default_parameter
(identifier_test_interval) identifier_test_interval
(identifier_TEST_INTERVAL) identifier_TEST_INTERVAL
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_thread) identifier_thread
(call
(identifier_StoppableThread) identifier_StoppableThread
(argument_list
(keyword_argument
(identifier_target) identifier_target
(identifier_monitor) identifier_monitor
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(tuple
(identifier_seconds_frozen) identifier_seconds_frozen
(identifier_test_interval) identifier_test_interval
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_thread) identifier_thread
(identifier_daemon) identifier_daemon
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_thread) identifier_thread
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_thread) identifier_thread
)return_statement
)block
)function_definition
)module | Start monitoring for hanging threads.
seconds_frozen - How much time should thread hang to activate
printing stack trace - default(10)
tests_interval - Sleep time of monitoring thread (in milliseconds)
- default(100) |
(module
(function_definition
(function_name_init) function_name_init
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_export_enable) identifier_export_enable
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(call
(attribute
(identifier_pika) identifier_pika
(identifier_URLParameters) identifier_URLParameters
)attribute
(argument_list
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(string_'amqp://') string_'amqp://'
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
)binary_operator
(string_':') string_':'
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
)binary_operator
(string_'@') string_'@'
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)binary_operator
(string_':') string_':'
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)binary_operator
(string_'/') string_'/'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_connection) identifier_connection
(call
(attribute
(identifier_pika) identifier_pika
(identifier_BlockingConnection) identifier_BlockingConnection
)attribute
(argument_list
(identifier_parameters) identifier_parameters
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_channel) identifier_channel
(call
(attribute
(identifier_connection) identifier_connection
(identifier_channel) identifier_channel
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_channel) identifier_channel
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_critical) identifier_critical
)attribute
(argument_list
(binary_operator
(string_"Connection to rabbitMQ failed : %s ") string_"Connection to rabbitMQ failed : %s "
(identifier_e) identifier_e
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Init the connection to the rabbitmq server. |
(module
(function_definition
(function_name_get_tweepy_auth) function_name_get_tweepy_auth
(parameters
(identifier_twitter_api_key) identifier_twitter_api_key
(identifier_twitter_api_secret) identifier_twitter_api_secret
(identifier_twitter_access_token) identifier_twitter_access_token
(identifier_twitter_access_token_secret) identifier_twitter_access_token_secret
)parameters
(block
(expression_statement
(assignment
(identifier_auth) identifier_auth
(call
(attribute
(identifier_tweepy) identifier_tweepy
(identifier_OAuthHandler) identifier_OAuthHandler
)attribute
(argument_list
(identifier_twitter_api_key) identifier_twitter_api_key
(identifier_twitter_api_secret) identifier_twitter_api_secret
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_auth) identifier_auth
(identifier_set_access_token) identifier_set_access_token
)attribute
(argument_list
(identifier_twitter_access_token) identifier_twitter_access_token
(identifier_twitter_access_token_secret) identifier_twitter_access_token_secret
)argument_list
)call
)expression_statement
(return_statement
(identifier_auth) identifier_auth
)return_statement
)block
)function_definition
)module | Make a tweepy auth object |
(module
(function_definition
(function_name_analysis) function_name_analysis
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
(None) None
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_cache_dir) identifier_cache_dir
)attribute
(None) None
)comparison_operator
(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
(attribute
(identifier_self) identifier_self
(identifier_cache_dir) identifier_cache_dir
)attribute
(attribute
(identifier_self) identifier_self
(identifier_checksum) identifier_checksum
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_refresh_cache) identifier_refresh_cache
)attribute
(block
(raise_statement
(identifier_IOError) identifier_IOError
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(binary_operator
(identifier_path) identifier_path
(string_'.pickle') string_'.pickle'
)binary_operator
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_pickle_file) identifier_pickle_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_pickle_file) identifier_pickle_file
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
(call
(attribute
(identifier_librosa_analysis) identifier_librosa_analysis
(identifier_analyze_frames) identifier_analyze_frames
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_all_as_mono) identifier_all_as_mono
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_samplerate) identifier_samplerate
)attribute
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(binary_operator
(identifier_path) identifier_path
(string_'.pickle') string_'.pickle'
)binary_operator
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_pickle_file) identifier_pickle_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_dump) identifier_dump
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
(identifier_pickle_file) identifier_pickle_file
(attribute
(identifier_pickle) identifier_pickle
(identifier_HIGHEST_PROTOCOL) identifier_HIGHEST_PROTOCOL
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
(call
(attribute
(identifier_librosa_analysis) identifier_librosa_analysis
(identifier_analyze_frames) identifier_analyze_frames
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_all_as_mono) identifier_all_as_mono
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_samplerate) identifier_samplerate
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__analysis) identifier__analysis
)attribute
)return_statement
)block
)function_definition
)module | Get musical analysis of the song using the librosa library |
(module
(function_definition
(function_name_params) function_name_params
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__GETPOST) identifier__GETPOST
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__GETPOST) identifier__GETPOST
)attribute
(call
(identifier_MultiDict) identifier_MultiDict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_GET) identifier_GET
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__GETPOST) identifier__GETPOST
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_POST) identifier_POST
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__GETPOST) identifier__GETPOST
)attribute
)return_statement
)block
)function_definition
)module | A combined MultiDict with POST and GET parameters. |
(module
(function_definition
(function_name__get_parents) function_name__get_parents
(parameters
(identifier_folds) identifier_folds
(identifier_linenum) identifier_linenum
)parameters
(block
(expression_statement
(assignment
(identifier_parents) identifier_parents
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_fold) identifier_fold
(identifier_folds) identifier_folds
(block
(expression_statement
(assignment
(pattern_list
(identifier_start) identifier_start
(identifier_end) identifier_end
)pattern_list
(attribute
(identifier_fold) identifier_fold
(identifier_range) identifier_range
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_linenum) identifier_linenum
(identifier_start) identifier_start
)comparison_operator
(comparison_operator
(identifier_linenum) identifier_linenum
(identifier_end) identifier_end
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_parents) identifier_parents
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_fold) identifier_fold
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(continue_statement
)continue_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_parents) identifier_parents
)return_statement
)block
)function_definition
)module | Get the parents at a given linenum.
If parents is empty, then the linenum belongs to the module.
Parameters
----------
folds : list of :class:`FoldScopeHelper`
linenum : int
The line number to get parents for. Typically this would be the
cursor position.
Returns
-------
parents : list of :class:`FoldScopeHelper`
A list of :class:`FoldScopeHelper` objects that describe the defintion
heirarcy for the given ``linenum``. The 1st index will be the
top-level parent defined at the module level while the last index
will be the class or funtion that contains ``linenum``. |
(module
(function_definition
(function_name_full) function_name_full
(parameters
(identifier_shape) identifier_shape
(identifier_fill_value) identifier_fill_value
(default_parameter
(identifier_dtype) identifier_dtype
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_dc) identifier_dc
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_shape) identifier_shape
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(identifier_fill_value) identifier_fill_value
)binary_operator
)parenthesized_expression
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create an array of given shape and type, filled with `fill_value`.
Args:
shape (sequence of ints): 2D shape of the array.
fill_value (scalar or numpy.ndarray): Fill value or array.
dtype (data-type, optional): Desired data-type for the array.
kwargs (optional): Other arguments of the array (*coords, attrs, and name).
Returns:
array (decode.array): Decode array filled with `fill_value`. |
(module
(function_definition
(function_name_sections) function_name_sections
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_list) identifier_list
)type
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filepath) identifier_filepath
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_sections) identifier_sections
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | List of sections. |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_stream_name) identifier_stream_name
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier__get_conn) identifier__get_conn
(argument_list
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stream) identifier_stream
(call
(identifier__get_basic_stream) identifier__get_basic_stream
(argument_list
(identifier_stream_name) identifier_stream_name
(identifier_conn) identifier_conn
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'error') string_'error'
(identifier_stream) identifier_stream
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_r) identifier_r
(string_'result') string_'result'
)subscript
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_r) identifier_r
(string_'error') string_'error'
)subscript
(subscript
(identifier_stream) identifier_stream
(string_'error') string_'error'
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_r) identifier_r
(string_'result') string_'result'
)subscript
(True) True
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)function_definition
)module | Check if the stream exists. Returns False and the error if it does not.
CLI example::
salt myminion boto_kinesis.exists my_stream region=us-east-1 |
(module
(function_definition
(function_name_find_extensions) function_name_find_extensions
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_tag) identifier_tag
(None) None
)default_parameter
(default_parameter
(identifier_namespace) identifier_namespace
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_tag) identifier_tag
(identifier_namespace) identifier_namespace
)boolean_operator
(block
(for_statement
(identifier_element) identifier_element
(attribute
(identifier_self) identifier_self
(identifier_extension_elements) identifier_extension_elements
)attribute
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_tag) identifier_tag
)attribute
(identifier_tag) identifier_tag
)comparison_operator
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_namespace) identifier_namespace
)attribute
(identifier_namespace) identifier_namespace
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
(elif_clause
(boolean_operator
(identifier_tag) identifier_tag
(not_operator
(identifier_namespace) identifier_namespace
)not_operator
)boolean_operator
(block
(for_statement
(identifier_element) identifier_element
(attribute
(identifier_self) identifier_self
(identifier_extension_elements) identifier_extension_elements
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_tag) identifier_tag
)attribute
(identifier_tag) identifier_tag
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(identifier_namespace) identifier_namespace
(not_operator
(identifier_tag) identifier_tag
)not_operator
)boolean_operator
(block
(for_statement
(identifier_element) identifier_element
(attribute
(identifier_self) identifier_self
(identifier_extension_elements) identifier_extension_elements
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_namespace) identifier_namespace
)attribute
(identifier_namespace) identifier_namespace
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(for_statement
(identifier_element) identifier_element
(attribute
(identifier_self) identifier_self
(identifier_extension_elements) identifier_extension_elements
)attribute
(block
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Searches extension elements for child nodes with the desired name.
Returns a list of extension elements within this object whose tag
and/or namespace match those passed in. To find all extensions in
a particular namespace, specify the namespace but not the tag name.
If you specify only the tag, the result list may contain extension
elements in multiple namespaces.
:param tag: str (optional) The desired tag
:param namespace: str (optional) The desired namespace
:Return: A list of elements whose tag and/or namespace match the
parameters values |
(module
(function_definition
(function_name_floor_func) function_name_floor_func
(parameters
(identifier_self) identifier_self
(identifier_addr) identifier_addr
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_prev_addr) identifier_prev_addr
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__function_map) identifier__function_map
)attribute
(identifier_floor_addr) identifier_floor_addr
)attribute
(argument_list
(identifier_addr) identifier_addr
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__function_map) identifier__function_map
)attribute
(identifier_prev_addr) identifier_prev_addr
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return the function who has the greatest address that is less than or equal to `addr`.
:param int addr: The address to query.
:return: A Function instance, or None if there is no other function before `addr`.
:rtype: Function or None |
(module
(function_definition
(function_name_set_record) function_name_set_record
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_chat) identifier_chat
(type
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_Union) identifier_Union
)attribute
(identifier_str) identifier_str
(identifier_int) identifier_int
(None) None
)subscript
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_user) identifier_user
(type
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_Union) identifier_Union
)attribute
(identifier_str) identifier_str
(identifier_int) identifier_int
(None) None
)subscript
)type
(None) None
)typed_default_parameter
(default_parameter
(identifier_state) identifier_state
(None) None
)default_parameter
(default_parameter
(identifier_data) identifier_data
(None) None
)default_parameter
(default_parameter
(identifier_bucket) identifier_bucket
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_data) identifier_data
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_bucket) identifier_bucket
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_bucket) identifier_bucket
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_chat) identifier_chat
(identifier_user) identifier_user
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_check_address) identifier_check_address
)attribute
(argument_list
(keyword_argument
(identifier_chat) identifier_chat
(identifier_chat) identifier_chat
)keyword_argument
(keyword_argument
(identifier_user) identifier_user
(identifier_user) identifier_user
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_addr) identifier_addr
(string_f"fsm:{chat}:{user}") string_f"fsm:{chat}:{user}"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_record) identifier_record
(dictionary
(pair
(string_'state') string_'state'
(identifier_state) identifier_state
)pair
(pair
(string_'data') string_'data'
(identifier_data) identifier_data
)pair
(pair
(string_'bucket') string_'bucket'
(identifier_bucket) identifier_bucket
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conn) identifier_conn
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_redis) identifier_redis
)attribute
(argument_list
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_conn) identifier_conn
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'SET') string_'SET'
(identifier_addr) identifier_addr
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Write record to storage
:param bucket:
:param chat:
:param user:
:param state:
:param data:
:return: |
(module
(function_definition
(function_name_map_dict) function_name_map_dict
(parameters
(identifier_key_map) identifier_key_map
(list_splat_pattern
(identifier_dicts) identifier_dicts
)list_splat_pattern
(default_parameter
(identifier_copy) identifier_copy
(False) False
)default_parameter
(default_parameter
(identifier_base) identifier_base
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_it) identifier_it
(call
(attribute
(call
(identifier_combine_dicts) identifier_combine_dicts
(argument_list
(list_splat
(identifier_dicts) identifier_dicts
)list_splat
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_get) identifier_get
(attribute
(identifier_key_map) identifier_key_map
(identifier_get) identifier_get
)attribute
)assignment
)expression_statement
(return_statement
(call
(identifier_combine_dicts) identifier_combine_dicts
(argument_list
(dictionary_comprehension
(pair
(call
(identifier_get) identifier_get
(argument_list
(identifier_k) identifier_k
(identifier_k) identifier_k
)argument_list
)call
(identifier_v) identifier_v
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(identifier_it) identifier_it
)for_in_clause
)dictionary_comprehension
(keyword_argument
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)keyword_argument
(keyword_argument
(identifier_base) identifier_base
(identifier_base) identifier_base
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a dict with new key values.
:param key_map:
A dictionary that maps the dict keys ({old key: new key}
:type key_map: dict
:param dicts:
A sequence of dicts.
:type dicts: dict
:param copy:
If True, it returns a deepcopy of input values.
:type copy: bool, optional
:param base:
Base dict where combine multiple dicts in one.
:type base: dict, optional
:return:
A unique dict with new key values.
:rtype: dict
Example::
>>> d = map_dict({'a': 'c', 'b': 'd'}, {'a': 1, 'b': 1}, {'b': 2})
>>> sorted(d.items())
[('c', 1), ('d', 2)] |
(module
(function_definition
(function_name_get_fullname) function_name_get_fullname
(parameters
(identifier_snapshot) identifier_snapshot
)parameters
(block
(expression_statement
(assignment
(identifier_actor) identifier_actor
(call
(identifier_get_actor) identifier_get_actor
(argument_list
(identifier_snapshot) identifier_snapshot
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_properties) identifier_properties
(call
(attribute
(identifier_api) identifier_api
(identifier_get_user_properties) identifier_get_user_properties
)attribute
(argument_list
(identifier_actor) identifier_actor
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_properties) identifier_properties
(identifier_get) identifier_get
)attribute
(argument_list
(string_"fullname") string_"fullname"
(identifier_actor) identifier_actor
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the actor's fullname of the snapshot |
(module
(function_definition
(function_name_load_from_string) function_name_load_from_string
(parameters
(identifier_self) identifier_self
(identifier_content) identifier_content
(identifier_container) identifier_container
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_load_from_stream) identifier_load_from_stream
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_anyconfig) identifier_anyconfig
(identifier_compat) identifier_compat
)attribute
(identifier_StringIO) identifier_StringIO
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
(identifier_container) identifier_container
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Load config from given string 'cnf_content'.
:param content: Config content string
:param container: callble to make a container object later
:param kwargs: optional keyword parameters to be sanitized :: dict
:return: Dict-like object holding config parameters |
(module
(function_definition
(function_name__domain_event_agent_lifecycle_cb) function_name__domain_event_agent_lifecycle_cb
(parameters
(identifier_conn) identifier_conn
(identifier_domain) identifier_domain
(identifier_state) identifier_state
(identifier_reason) identifier_reason
(identifier_opaque) identifier_opaque
)parameters
(block
(expression_statement
(call
(identifier__salt_send_domain_event) identifier__salt_send_domain_event
(argument_list
(identifier_opaque) identifier_opaque
(identifier_conn) identifier_conn
(identifier_domain) identifier_domain
(subscript
(identifier_opaque) identifier_opaque
(string_'event') string_'event'
)subscript
(dictionary
(pair
(string_'state') string_'state'
(call
(identifier__get_libvirt_enum_string) identifier__get_libvirt_enum_string
(argument_list
(string_'VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_') string_'VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_'
(identifier_state) identifier_state
)argument_list
)call
)pair
(pair
(string_'reason') string_'reason'
(call
(identifier__get_libvirt_enum_string) identifier__get_libvirt_enum_string
(argument_list
(string_'VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_') string_'VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_'
(identifier_reason) identifier_reason
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Domain agent lifecycle events handler |
(module
(function_definition
(function_name_clean_pid_file) function_name_clean_pid_file
(parameters
(identifier_pidfile) identifier_pidfile
)parameters
(block
(if_statement
(boolean_operator
(identifier_pidfile) identifier_pidfile
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_pidfile) identifier_pidfile
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_unlink) identifier_unlink
)attribute
(argument_list
(identifier_pidfile) identifier_pidfile
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | clean pid file. |
(module
(function_definition
(function_name_geometric_center) function_name_geometric_center
(parameters
(identifier_coords) identifier_coords
(identifier_periodic) identifier_periodic
)parameters
(block
(expression_statement
(assignment
(identifier_max_vals) identifier_max_vals
(identifier_periodic) identifier_periodic
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_theta) identifier_theta
(binary_operator
(binary_operator
(integer_2) integer_2
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_coords) identifier_coords
(identifier_max_vals) identifier_max_vals
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_eps) identifier_eps
(binary_operator
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_theta) identifier_theta
)argument_list
)call
(identifier_max_vals) identifier_max_vals
)binary_operator
(parenthesized_expression
(binary_operator
(integer_2) integer_2
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zeta) identifier_zeta
(binary_operator
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_theta) identifier_theta
)argument_list
)call
(identifier_max_vals) identifier_max_vals
)binary_operator
(parenthesized_expression
(binary_operator
(integer_2) integer_2
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_eps_avg) identifier_eps_avg
(call
(attribute
(identifier_eps) identifier_eps
(identifier_sum) identifier_sum
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zeta_avg) identifier_zeta_avg
(call
(attribute
(identifier_zeta) identifier_zeta
(identifier_sum) identifier_sum
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_theta_avg) identifier_theta_avg
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_arctan2) identifier_arctan2
)attribute
(argument_list
(unary_operator
(identifier_zeta_avg) identifier_zeta_avg
)unary_operator
(unary_operator
(identifier_eps_avg) identifier_eps_avg
)unary_operator
)argument_list
)call
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(identifier_theta_avg) identifier_theta_avg
(identifier_max_vals) identifier_max_vals
)binary_operator
(parenthesized_expression
(binary_operator
(integer_2) integer_2
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Geometric center taking into account periodic boundaries |
(module
(function_definition
(function_name_nsdiffs) function_name_nsdiffs
(parameters
(identifier_x) identifier_x
(identifier_m) identifier_m
(default_parameter
(identifier_max_D) identifier_max_D
(integer_2) integer_2
)default_parameter
(default_parameter
(identifier_test) identifier_test
(string_'ocsb') string_'ocsb'
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_max_D) identifier_max_D
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'max_D must be a positive integer') string_'max_D must be a positive integer'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_testfunc) identifier_testfunc
(attribute
(call
(call
(identifier_get_callable) identifier_get_callable
(argument_list
(identifier_test) identifier_test
(identifier_VALID_STESTS) identifier_VALID_STESTS
)argument_list
)call
(argument_list
(identifier_m) identifier_m
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_estimate_seasonal_differencing_term) identifier_estimate_seasonal_differencing_term
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_column_or_1d) identifier_column_or_1d
(argument_list
(call
(identifier_check_array) identifier_check_array
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_ensure_2d) identifier_ensure_2d
(False) False
)keyword_argument
(keyword_argument
(identifier_force_all_finite) identifier_force_all_finite
(True) True
)keyword_argument
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_DTYPE) identifier_DTYPE
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_is_constant) identifier_is_constant
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_D) identifier_D
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dodiff) identifier_dodiff
(call
(identifier_testfunc) identifier_testfunc
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(while_statement
(boolean_operator
(comparison_operator
(identifier_dodiff) identifier_dodiff
(integer_1) integer_1
)comparison_operator
(comparison_operator
(identifier_D) identifier_D
(identifier_max_D) identifier_max_D
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_D) identifier_D
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_diff) identifier_diff
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_lag) identifier_lag
(identifier_m) identifier_m
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_is_constant) identifier_is_constant
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(block
(return_statement
(identifier_D) identifier_D
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dodiff) identifier_dodiff
(call
(identifier_testfunc) identifier_testfunc
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_D) identifier_D
)return_statement
)block
)function_definition
)module | Estimate the seasonal differencing term, ``D``.
Perform a test of seasonality for different levels of ``D`` to
estimate the number of seasonal differences required to make a given time
series stationary. Will select the maximum value of ``D`` for which
the time series is judged seasonally stationary by the statistical test.
Parameters
----------
x : array-like, shape=(n_samples, [n_features])
The array to difference.
m : int
The number of seasonal periods (i.e., frequency of the
time series)
max_D : int, optional (default=2)
Maximum number of seasonal differences allowed. Must
be a positive integer. The estimated value of ``D`` will not
exceed ``max_D``.
test : str, optional (default='ocsb')
Type of unit root test of seasonality to use in order
to detect seasonal periodicity. Valid tests include ("ocsb", "ch").
Note that the CHTest is very slow for large data.
Returns
-------
D : int
The estimated seasonal differencing term. This is the maximum value
of ``D`` such that ``D <= max_D`` and the time series is judged
seasonally stationary. If the time series is constant, will return 0. |
(module
(function_definition
(function_name_python_date_format) function_name_python_date_format
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_long_format) identifier_long_format
(None) None
)default_parameter
(default_parameter
(identifier_time_only) identifier_time_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_msgid) identifier_msgid
(boolean_operator
(boolean_operator
(identifier_long_format) identifier_long_format
(string_'date_format_long') string_'date_format_long'
)boolean_operator
(string_'date_format_short') string_'date_format_short'
)boolean_operator
)assignment
)expression_statement
(if_statement
(identifier_time_only) identifier_time_only
(block
(expression_statement
(assignment
(identifier_msgid) identifier_msgid
(string_'time_format') string_'time_format'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_formatstring) identifier_formatstring
(call
(identifier_translate) identifier_translate
(argument_list
(identifier_msgid) identifier_msgid
(keyword_argument
(identifier_domain) identifier_domain
(string_"senaite.core") string_"senaite.core"
)keyword_argument
(keyword_argument
(identifier_context) identifier_context
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_formatstring) identifier_formatstring
(None) None
)comparison_operator
(call
(attribute
(identifier_formatstring) identifier_formatstring
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'date_') string_'date_'
)argument_list
)call
)boolean_operator
(call
(attribute
(identifier_formatstring) identifier_formatstring
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'time_') string_'time_'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"bika/%s/%s could not be translated") string_"bika/%s/%s could not be translated"
(tuple
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'LANGUAGE') string_'LANGUAGE'
)argument_list
)call
(identifier_msgid) identifier_msgid
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_properties) identifier_properties
(attribute
(call
(identifier_getToolByName) identifier_getToolByName
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(string_'portal_properties') string_'portal_properties'
)argument_list
)call
(identifier_site_properties) identifier_site_properties
)attribute
)assignment
)expression_statement
(if_statement
(identifier_long_format) identifier_long_format
(block
(expression_statement
(assignment
(identifier_format) identifier_format
(attribute
(identifier_properties) identifier_properties
(identifier_localLongTimeFormat) identifier_localLongTimeFormat
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(identifier_time_only) identifier_time_only
(block
(expression_statement
(assignment
(identifier_format) identifier_format
(attribute
(identifier_properties) identifier_properties
(identifier_localTimeOnlyFormat) identifier_localTimeOnlyFormat
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_format) identifier_format
(attribute
(identifier_properties) identifier_properties
(identifier_localTimeFormat) identifier_localTimeFormat
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_format) identifier_format
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_formatstring) identifier_formatstring
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_r"${") string_r"${"
(string_'%') string_'%'
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'}') string_'}'
(string_'') string_''
)argument_list
)call
)return_statement
)block
)function_definition
)module | This convert bika domain date format msgstrs to Python
strftime format strings, by the same rules as ulocalized_time.
XXX i18nl10n.py may change, and that is where this code is taken from. |
(module
(function_definition
(function_name_setup_datafind_runtime_frames_multi_calls_perifo) function_name_setup_datafind_runtime_frames_multi_calls_perifo
(parameters
(identifier_cp) identifier_cp
(identifier_scienceSegs) identifier_scienceSegs
(identifier_outputDir) identifier_outputDir
(default_parameter
(identifier_tags) identifier_tags
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_datafindcaches) identifier_datafindcaches
(identifier__) identifier__
)pattern_list
(line_continuation_\) line_continuation_\
(call
(identifier_setup_datafind_runtime_cache_multi_calls_perifo) identifier_setup_datafind_runtime_cache_multi_calls_perifo
(argument_list
(identifier_cp) identifier_cp
(identifier_scienceSegs) identifier_scienceSegs
(identifier_outputDir) identifier_outputDir
(keyword_argument
(identifier_tags) identifier_tags
(identifier_tags) identifier_tags
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_datafindouts) identifier_datafindouts
(call
(identifier_convert_cachelist_to_filelist) identifier_convert_cachelist_to_filelist
(argument_list
(identifier_datafindcaches) identifier_datafindcaches
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_datafindcaches) identifier_datafindcaches
(identifier_datafindouts) identifier_datafindouts
)expression_list
)return_statement
)block
)function_definition
)module | This function uses the glue.datafind library to obtain the location of all
the frame files that will be needed to cover the analysis of the data
given in scienceSegs. This function will not check if the returned frames
cover the whole time requested, such sanity checks are done in the
pycbc.workflow.setup_datafind_workflow entry function. As opposed to
setup_datafind_runtime_single_call_perifo this call will one call to the
datafind server for every science segment. This function will return a list
of files corresponding to the individual frames returned by the datafind
query. This will allow pegasus to more easily identify all the files used
as input, but may cause problems for codes that need to take frame cache
files as input.
Parameters
-----------
cp : ConfigParser.ConfigParser instance
This contains a representation of the information stored within the
workflow configuration files
scienceSegs : Dictionary of ifo keyed glue.segment.segmentlist instances
This contains the times that the workflow is expected to analyse.
outputDir : path
All output files written by datafind processes will be written to this
directory.
tags : list of strings, optional (default=None)
Use this to specify tags. This can be used if this module is being
called more than once to give call specific configuration (by setting
options in [workflow-datafind-${TAG}] rather than [workflow-datafind]).
This is also used to tag the Files returned by the class to uniqueify
the Files and uniqueify the actual filename.
FIXME: Filenames may not be unique with current codes!
Returns
--------
datafindcaches : list of glue.lal.Cache instances
The glue.lal.Cache representations of the various calls to the datafind
server and the returned frame files.
datafindOuts : pycbc.workflow.core.FileList
List of all the datafind output files for use later in the pipeline. |
(module
(function_definition
(function_name__get_format_module) function_name__get_format_module
(parameters
(identifier_image_format) identifier_image_format
)parameters
(block
(expression_statement
(assignment
(identifier_format_module) identifier_format_module
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nag_about_gifs) identifier_nag_about_gifs
(False) False
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_detect_format) identifier_detect_format
(identifier_is_format_selected) identifier_is_format_selected
)attribute
(argument_list
(identifier_image_format) identifier_image_format
(attribute
(identifier_Settings) identifier_Settings
(identifier_to_png_formats) identifier_to_png_formats
)attribute
(attribute
(identifier_png) identifier_png
(identifier_PROGRAMS) identifier_PROGRAMS
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_format_module) identifier_format_module
(identifier_png) identifier_png
)assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_detect_format) identifier_detect_format
(identifier_is_format_selected) identifier_is_format_selected
)attribute
(argument_list
(identifier_image_format) identifier_image_format
(attribute
(identifier_jpeg) identifier_jpeg
(identifier_FORMATS) identifier_FORMATS
)attribute
(attribute
(identifier_jpeg) identifier_jpeg
(identifier_PROGRAMS) identifier_PROGRAMS
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_format_module) identifier_format_module
(identifier_jpeg) identifier_jpeg
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(attribute
(identifier_detect_format) identifier_detect_format
(identifier_is_format_selected) identifier_is_format_selected
)attribute
(argument_list
(identifier_image_format) identifier_image_format
(attribute
(identifier_gif) identifier_gif
(identifier_FORMATS) identifier_FORMATS
)attribute
(attribute
(identifier_gif) identifier_gif
(identifier_PROGRAMS) identifier_PROGRAMS
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_format_module) identifier_format_module
(identifier_gif) identifier_gif
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nag_about_gifs) identifier_nag_about_gifs
(True) True
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(expression_list
(identifier_format_module) identifier_format_module
(identifier_nag_about_gifs) identifier_nag_about_gifs
)expression_list
)return_statement
)block
)function_definition
)module | Get the format module to use for optimizing the image. |
(module
(function_definition
(function_name_add_clink) function_name_add_clink
(parameters
(identifier_self) identifier_self
(identifier_my_clink) identifier_my_clink
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_causalRelations_layer) identifier_causalRelations_layer
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_causalRelations_layer) identifier_causalRelations_layer
)attribute
(call
(identifier_CcausalRelations) identifier_CcausalRelations
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_root) identifier_root
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_causalRelations_layer) identifier_causalRelations_layer
)attribute
(identifier_get_node) identifier_get_node
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_causalRelations_layer) identifier_causalRelations_layer
)attribute
(identifier_add_clink) identifier_add_clink
)attribute
(argument_list
(identifier_my_clink) identifier_my_clink
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds a clink to the causalRelations layer
@type my_clink: L{Cclink}
@param my_clink: clink object |
(module
(function_definition
(function_name_quit_all) function_name_quit_all
(parameters
(identifier_editor) identifier_editor
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_quit) identifier_quit
(argument_list
(identifier_editor) identifier_editor
(keyword_argument
(identifier_all_) identifier_all_
(True) True
)keyword_argument
(keyword_argument
(identifier_force) identifier_force
(identifier_force) identifier_force
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Quit all. |
(module
(function_definition
(function_name_sample_stats_to_xarray) function_name_sample_stats_to_xarray
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier_sample_stats) identifier_sample_stats
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"DictConverter.sample_stats is not a dictionary") string_"DictConverter.sample_stats is not a dictionary"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_dict_to_dataset) identifier_dict_to_dataset
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_library) identifier_library
(None) None
)keyword_argument
(keyword_argument
(identifier_coords) identifier_coords
(attribute
(identifier_self) identifier_self
(identifier_coords) identifier_coords
)attribute
)keyword_argument
(keyword_argument
(identifier_dims) identifier_dims
(attribute
(identifier_self) identifier_self
(identifier_dims) identifier_dims
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert sample_stats samples to xarray. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.