sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_body) function_name_body
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__body) identifier__body
)attribute
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__body_reader) identifier__body_reader
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__body) identifier__body
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_content_length) identifier_content_length
)attribute
(integer_0) integer_0
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__body) identifier__body
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__body_reader) identifier__body_reader
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__body) identifier__body
)attribute
)return_statement
)block
)function_definition
)module | Reads and returns the entire request body.
On first access, reads `content_length` bytes from `input` and stores
the result on the request object. On subsequent access, returns the
cached value. |
(module
(function_definition
(function_name_rm) function_name_rm
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_service_names) identifier_service_names
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_project) identifier_project
(call
(identifier___load_project) identifier___load_project
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_project) identifier_project
(identifier_dict) identifier_dict
)argument_list
)call
(block
(return_statement
(identifier_project) identifier_project
)return_statement
)block
(else_clause
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_project) identifier_project
(identifier_remove_stopped) identifier_remove_stopped
)attribute
(argument_list
(identifier_service_names) identifier_service_names
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_inst) identifier_inst
)as_pattern_target
)as_pattern
(block
(return_statement
(call
(identifier___handle_except) identifier___handle_except
(argument_list
(identifier_inst) identifier_inst
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier___standardize_result) identifier___standardize_result
(argument_list
(True) True
(string_'Removing stopped containers via docker-compose') string_'Removing stopped containers via docker-compose'
(None) None
(None) None
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove stopped containers in the docker-compose file, service_names is a python
list, if omitted remove all stopped containers
path
Path where the docker-compose file is stored on the server
service_names
If specified will remove only the specified stopped services
CLI Example:
.. code-block:: bash
salt myminion dockercompose.rm /path/where/docker-compose/stored
salt myminion dockercompose.rm /path/where/docker-compose/stored '[janus]' |
(module
(function_definition
(function_name_wrap_inference_results) function_name_wrap_inference_results
(parameters
(identifier_inference_result_proto) identifier_inference_result_proto
)parameters
(block
(expression_statement
(assignment
(identifier_inference_proto) identifier_inference_proto
(call
(attribute
(identifier_inference_pb2) identifier_inference_pb2
(identifier_InferenceResult) identifier_InferenceResult
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_inference_result_proto) identifier_inference_result_proto
(attribute
(identifier_classification_pb2) identifier_classification_pb2
(identifier_ClassificationResponse) identifier_ClassificationResponse
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_inference_proto) identifier_inference_proto
(identifier_classification_result) identifier_classification_result
)attribute
(identifier_CopyFrom) identifier_CopyFrom
)attribute
(argument_list
(attribute
(identifier_inference_result_proto) identifier_inference_result_proto
(identifier_result) identifier_result
)attribute
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_inference_result_proto) identifier_inference_result_proto
(attribute
(identifier_regression_pb2) identifier_regression_pb2
(identifier_RegressionResponse) identifier_RegressionResponse
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_inference_proto) identifier_inference_proto
(identifier_regression_result) identifier_regression_result
)attribute
(identifier_CopyFrom) identifier_CopyFrom
)attribute
(argument_list
(attribute
(identifier_inference_result_proto) identifier_inference_result_proto
(identifier_result) identifier_result
)attribute
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_inference_proto) identifier_inference_proto
)return_statement
)block
)function_definition
)module | Returns packaged inference results from the provided proto.
Args:
inference_result_proto: The classification or regression response proto.
Returns:
An InferenceResult proto with the result from the response. |
(module
(function_definition
(function_name_store_work_results) function_name_store_work_results
(parameters
(identifier_self) identifier_self
(identifier_results) identifier_results
(identifier_collection) identifier_collection
(identifier_md5) identifier_md5
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_results) identifier_results
(string_'md5') string_'md5'
)subscript
(identifier_md5) identifier_md5
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_results) identifier_results
(string_'__time_stamp') string_'__time_stamp'
)subscript
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'mod_time') string_'mod_time'
(identifier_results) identifier_results
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_results) identifier_results
(string_'mod_time') string_'mod_time'
)subscript
(subscript
(identifier_results) identifier_results
(string_'__time_stamp') string_'__time_stamp'
)subscript
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
(identifier_collection) identifier_collection
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'md5') string_'md5'
(identifier_md5) identifier_md5
)pair
)dictionary
(call
(attribute
(identifier_self) identifier_self
(identifier_clean_for_storage) identifier_clean_for_storage
)attribute
(argument_list
(identifier_results) identifier_results
)argument_list
)call
(True) True
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(attribute
(identifier_pymongo) identifier_pymongo
(identifier_errors) identifier_errors
)attribute
(identifier_OperationFailure) identifier_OperationFailure
)attribute
(block
(print_statement
(string_'Could not update exising object in capped collection, punting...') string_'Could not update exising object in capped collection, punting...'
)print_statement
(print_statement
(binary_operator
(string_'collection: %s md5:%s') string_'collection: %s md5:%s'
(tuple
(identifier_collection) identifier_collection
(identifier_md5) identifier_md5
)tuple
)binary_operator
)print_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Store the output results of the worker.
Args:
results: a dictionary.
collection: the database collection to store the results in.
md5: the md5 of sample data to be updated. |
(module
(function_definition
(function_name_create_logstash) function_name_create_logstash
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_logstash) identifier_logstash
(call
(attribute
(attribute
(attribute
(identifier_predix) identifier_predix
(identifier_admin) identifier_admin
)attribute
(identifier_logstash) identifier_logstash
)attribute
(identifier_Logging) identifier_Logging
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logstash) identifier_logstash
(identifier_create) identifier_create
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logstash) identifier_logstash
(identifier_add_to_manifest) identifier_add_to_manifest
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Install Kibana-Me-Logs application by following GitHub instructions') string_'Install Kibana-Me-Logs application by following GitHub instructions'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'git clone https://github.com/cloudfoundry-community/kibana-me-logs.git') string_'git clone https://github.com/cloudfoundry-community/kibana-me-logs.git'
)argument_list
)call
)expression_statement
(return_statement
(identifier_logstash) identifier_logstash
)return_statement
)block
)function_definition
)module | Creates an instance of the Logging Service. |
(module
(function_definition
(function_name_add_reorganize_data) function_name_add_reorganize_data
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_input_name) identifier_input_name
(identifier_output_name) identifier_output_name
(default_parameter
(identifier_mode) identifier_mode
(string_'SPACE_TO_DEPTH') string_'SPACE_TO_DEPTH'
)default_parameter
(default_parameter
(identifier_block_size) identifier_block_size
(integer_2) integer_2
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_spec) identifier_spec
(attribute
(identifier_self) identifier_self
(identifier_spec) identifier_spec
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nn_spec) identifier_nn_spec
(attribute
(identifier_self) identifier_self
(identifier_nn_spec) identifier_nn_spec
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_spec_layer) identifier_spec_layer
(call
(attribute
(attribute
(identifier_nn_spec) identifier_nn_spec
(identifier_layers) identifier_layers
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_spec_layer) identifier_spec_layer
(identifier_name) identifier_name
)attribute
(identifier_name) identifier_name
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_spec_layer) identifier_spec_layer
(identifier_input) identifier_input
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_input_name) identifier_input_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_spec_layer) identifier_spec_layer
(identifier_output) identifier_output
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_output_name) identifier_output_name
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_spec_layer_params) identifier_spec_layer_params
(attribute
(identifier_spec_layer) identifier_spec_layer
(identifier_reorganizeData) identifier_reorganizeData
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_block_size) identifier_block_size
(integer_2) integer_2
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Invalid block_size value %d. Must be greater than 1.") string_"Invalid block_size value %d. Must be greater than 1."
(identifier_block_size) identifier_block_size
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_spec_layer_params) identifier_spec_layer_params
(identifier_blockSize) identifier_blockSize
)attribute
(identifier_block_size) identifier_block_size
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(string_'SPACE_TO_DEPTH') string_'SPACE_TO_DEPTH'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_spec_layer_params) identifier_spec_layer_params
(identifier_mode) identifier_mode
)attribute
(line_continuation_\) line_continuation_\
(call
(attribute
(attribute
(attribute
(identifier__NeuralNetwork_pb2) identifier__NeuralNetwork_pb2
(identifier_ReorganizeDataLayerParams) identifier_ReorganizeDataLayerParams
)attribute
(identifier_ReorganizationType) identifier_ReorganizationType
)attribute
(identifier_Value) identifier_Value
)attribute
(argument_list
(string_'SPACE_TO_DEPTH') string_'SPACE_TO_DEPTH'
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_mode) identifier_mode
(string_'DEPTH_TO_SPACE') string_'DEPTH_TO_SPACE'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_spec_layer_params) identifier_spec_layer_params
(identifier_mode) identifier_mode
)attribute
(line_continuation_\) line_continuation_\
(call
(attribute
(attribute
(attribute
(identifier__NeuralNetwork_pb2) identifier__NeuralNetwork_pb2
(identifier_ReorganizeDataLayerParams) identifier_ReorganizeDataLayerParams
)attribute
(identifier_ReorganizationType) identifier_ReorganizationType
)attribute
(identifier_Value) identifier_Value
)attribute
(argument_list
(string_'DEPTH_TO_SPACE') string_'DEPTH_TO_SPACE'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(binary_operator
(string_'Unknown reorganization mode %s ') string_'Unknown reorganization mode %s '
(identifier_mode) identifier_mode
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add a data reorganization layer of type "SPACE_TO_DEPTH" or "DEPTH_TO_SPACE".
Parameters
----------
name: str
The name of this layer.
input_name: str
The input blob name of this layer.
output_name: str
The output blob name of this layer.
mode: str
- If mode == 'SPACE_TO_DEPTH': data is moved from the spatial to the channel dimension.
Input is spatially divided into non-overlapping blocks of size block_size X block_size
and data from each block is moved to the channel dimension.
Output CHW dimensions are: [C * block_size * block_size, H/block_size, C/block_size].
- If mode == 'DEPTH_TO_SPACE': data is moved from the channel to the spatial dimension.
Reverse of the operation 'SPACE_TO_DEPTH'.
Output CHW dimensions are: [C/(block_size * block_size), H * block_size, C * block_size].
block_size: int
Must be greater than 1. Must divide H and W, when mode is 'SPACE_TO_DEPTH'. (block_size * block_size)
must divide C when mode is 'DEPTH_TO_SPACE'.
See Also
--------
add_flatten, add_reshape |
(module
(function_definition
(function_name__add_view_menu) function_name__add_view_menu
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_mainMenu) identifier_mainMenu
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_app) identifier_app
)attribute
(identifier_mainMenu) identifier_mainMenu
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_viewMenu) identifier_viewMenu
(call
(attribute
(call
(attribute
(attribute
(identifier_AppKit) identifier_AppKit
(identifier_NSMenu) identifier_NSMenu
)attribute
(identifier_alloc) identifier_alloc
)attribute
(argument_list
)argument_list
)call
(identifier_init) identifier_init
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_viewMenu) identifier_viewMenu
(identifier_setTitle_) identifier_setTitle_
)attribute
(argument_list
(subscript
(identifier_localization) identifier_localization
(string_"cocoa.menu.view") string_"cocoa.menu.view"
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_viewMenuItem) identifier_viewMenuItem
(call
(attribute
(call
(attribute
(attribute
(identifier_AppKit) identifier_AppKit
(identifier_NSMenuItem) identifier_NSMenuItem
)attribute
(identifier_alloc) identifier_alloc
)attribute
(argument_list
)argument_list
)call
(identifier_init) identifier_init
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_viewMenuItem) identifier_viewMenuItem
(identifier_setSubmenu_) identifier_setSubmenu_
)attribute
(argument_list
(identifier_viewMenu) identifier_viewMenu
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mainMenu) identifier_mainMenu
(identifier_addItem_) identifier_addItem_
)attribute
(argument_list
(identifier_viewMenuItem) identifier_viewMenuItem
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_fullScreenMenuItem) identifier_fullScreenMenuItem
(call
(attribute
(identifier_viewMenu) identifier_viewMenu
(identifier_addItemWithTitle_action_keyEquivalent_) identifier_addItemWithTitle_action_keyEquivalent_
)attribute
(argument_list
(subscript
(identifier_localization) identifier_localization
(string_"cocoa.menu.fullscreen") string_"cocoa.menu.fullscreen"
)subscript
(string_"toggleFullScreen:") string_"toggleFullScreen:"
(string_"f") string_"f"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fullScreenMenuItem) identifier_fullScreenMenuItem
(identifier_setKeyEquivalentModifierMask_) identifier_setKeyEquivalentModifierMask_
)attribute
(argument_list
(binary_operator
(attribute
(identifier_AppKit) identifier_AppKit
(identifier_NSControlKeyMask) identifier_NSControlKeyMask
)attribute
(attribute
(identifier_AppKit) identifier_AppKit
(identifier_NSCommandKeyMask) identifier_NSCommandKeyMask
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create a default View menu that shows 'Enter Full Screen'. |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_handle) identifier_handle
(attribute
(identifier_self) identifier_self
(identifier__handles) identifier__handles
)attribute
(block
(if_statement
(not_operator
(attribute
(identifier_handle) identifier_handle
(identifier_closed) identifier_closed
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__handles) identifier__handles
)attribute
(slice
(colon) colon
)slice
)subscript
)delete_statement
(for_statement
(pattern_list
(identifier_transport) identifier_transport
(identifier__) identifier__
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier_connections) identifier_connections
)attribute
(block
(expression_statement
(call
(attribute
(identifier_transport) identifier_transport
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__all_closed) identifier__all_closed
)attribute
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Close the listening sockets and all accepted connections. |
(module
(function_definition
(function_name__re_raise_as) function_name__re_raise_as
(parameters
(identifier_NewExc) identifier_NewExc
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_etype) identifier_etype
(identifier_val) identifier_val
(identifier_tb) identifier_tb
)pattern_list
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(expression_list
(call
(identifier_NewExc) identifier_NewExc
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
(None) None
(identifier_tb) identifier_tb
)expression_list
)raise_statement
)block
)function_definition
)module | Raise a new exception using the preserved traceback of the last one. |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Fixedconf watcher plugin: Started") string_"Fixedconf watcher plugin: Started"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cidr) identifier_cidr
(subscript
(attribute
(identifier_self) identifier_self
(identifier_conf) identifier_conf
)attribute
(string_'fixed_cidr') string_'fixed_cidr'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hosts) identifier_hosts
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_conf) identifier_conf
)attribute
(string_'fixed_hosts') string_'fixed_hosts'
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_route_spec) identifier_route_spec
(dictionary
(pair
(identifier_cidr) identifier_cidr
(identifier_hosts) identifier_hosts
)pair
)dictionary
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_common) identifier_common
(identifier_parse_route_spec_config) identifier_parse_route_spec_config
)attribute
(argument_list
(identifier_route_spec) identifier_route_spec
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_q_route_spec) identifier_q_route_spec
)attribute
(identifier_put) identifier_put
)attribute
(argument_list
(identifier_route_spec) identifier_route_spec
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_"Fixedconf watcher plugin: ") string_"Fixedconf watcher plugin: "
(string_"Invalid route spec: %s") string_"Invalid route spec: %s"
)concatenated_string
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Start the config watch thread or process. |
(module
(function_definition
(function_name_get_queues) function_name_get_queues
(parameters
(list_splat_pattern
(identifier_queue_names) identifier_queue_names
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_settings) identifier_settings
)dotted_name
)relative_import
(dotted_name
(identifier_QUEUES) identifier_QUEUES
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_queue_names) identifier_queue_names
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(list
(call
(identifier_get_queue) identifier_get_queue
(argument_list
(list_splat
(identifier_queue_names) identifier_queue_names
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'job_class') string_'job_class'
)subscript
(call
(identifier_get_job_class) identifier_get_job_class
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'job_class') string_'job_class'
(None) None
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_queue_params) identifier_queue_params
(subscript
(identifier_QUEUES) identifier_QUEUES
(subscript
(identifier_queue_names) identifier_queue_names
(integer_0) integer_0
)subscript
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_connection_params) identifier_connection_params
(call
(identifier_filter_connection_params) identifier_filter_connection_params
(argument_list
(identifier_queue_params) identifier_queue_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_queues) identifier_queues
(list
(call
(identifier_get_queue) identifier_get_queue
(argument_list
(subscript
(identifier_queue_names) identifier_queue_names
(integer_0) integer_0
)subscript
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)list
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(subscript
(identifier_queue_names) identifier_queue_names
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(block
(expression_statement
(assignment
(identifier_queue) identifier_queue
(call
(identifier_get_queue) identifier_get_queue
(argument_list
(identifier_name) identifier_name
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_queue) identifier_queue
)argument_list
)call
(call
(identifier_type) identifier_type
(argument_list
(subscript
(identifier_queues) identifier_queues
(integer_0) integer_0
)subscript
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'Queues must have the same class.') string_'Queues must have the same class.'
(string_'"{0}" and "{1}" have ') string_'"{0}" and "{1}" have '
(string_'different classes') string_'different classes'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(subscript
(identifier_queue_names) identifier_queue_names
(integer_0) integer_0
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_connection_params) identifier_connection_params
(call
(identifier_filter_connection_params) identifier_filter_connection_params
(argument_list
(subscript
(identifier_QUEUES) identifier_QUEUES
(identifier_name) identifier_name
)subscript
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'Queues must have the same redis connection.') string_'Queues must have the same redis connection.'
(string_'"{0}" and "{1}" have ') string_'"{0}" and "{1}" have '
(string_'different connections') string_'different connections'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(subscript
(identifier_queue_names) identifier_queue_names
(integer_0) integer_0
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_queues) identifier_queues
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_queue) identifier_queue
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_queues) identifier_queues
)return_statement
)block
)function_definition
)module | Return queue instances from specified queue names.
All instances must use the same Redis connection. |
(module
(function_definition
(function_name_purge_metadata_by_name) function_name_purge_metadata_by_name
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_meta_dir) identifier_meta_dir
(call
(attribute
(identifier_self) identifier_self
(identifier__get_metadata_dir_by_name) identifier__get_metadata_dir_by_name
)attribute
(argument_list
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier__metadata_base_dir) identifier__metadata_base_dir
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'purging metadata directory: {}') string_'purging metadata directory: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_meta_dir) identifier_meta_dir
)argument_list
)call
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier_rm_rf) identifier_rm_rf
(argument_list
(identifier_meta_dir) identifier_meta_dir
)argument_list
)call
)expression_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
(attribute
(identifier_ProcessMetadataManager) identifier_ProcessMetadataManager
(identifier_MetadataError) identifier_MetadataError
)attribute
(argument_list
(call
(attribute
(string_'failed to purge metadata directory {}: {!r}') string_'failed to purge metadata directory {}: {!r}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_meta_dir) identifier_meta_dir
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Purge a processes metadata directory.
:raises: `ProcessManager.MetadataError` when OSError is encountered on metadata dir removal. |
(module
(function_definition
(function_name__validate_file_roots) function_name__validate_file_roots
(parameters
(identifier_file_roots) identifier_file_roots
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_file_roots) identifier_file_roots
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(concatenated_string
(string_'The file_roots parameter is not properly formatted,') string_'The file_roots parameter is not properly formatted,'
(string_' using defaults') string_' using defaults'
)concatenated_string
)argument_list
)call
)expression_statement
(return_statement
(dictionary
(pair
(string_'base') string_'base'
(call
(identifier__expand_glob_path) identifier__expand_glob_path
(argument_list
(list
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_syspaths) identifier_syspaths
)attribute
(identifier_BASE_FILE_ROOTS_DIR) identifier_BASE_FILE_ROOTS_DIR
)attribute
)list
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)if_statement
(return_statement
(call
(identifier__normalize_roots) identifier__normalize_roots
(argument_list
(identifier_file_roots) identifier_file_roots
)argument_list
)call
)return_statement
)block
)function_definition
)module | If the file_roots option has a key that is None then we will error out,
just replace it with an empty list |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_tool_class) identifier_tool_class
(identifier_model_class) identifier_model_class
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_tool_class) identifier_tool_class
(string_'name') string_'name'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(binary_operator
(string_"No 'name' attribute found for tool %s.") string_"No 'name' attribute found for tool %s."
(parenthesized_expression
(attribute
(identifier_tool_class) identifier_tool_class
(identifier___name__) identifier___name__
)attribute
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_tool_class) identifier_tool_class
(string_'label') string_'label'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(binary_operator
(string_"No 'label' attribute found for tool %s.") string_"No 'label' attribute found for tool %s."
(parenthesized_expression
(attribute
(identifier_tool_class) identifier_tool_class
(identifier___name__) identifier___name__
)attribute
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_tool_class) identifier_tool_class
(string_'view') string_'view'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(binary_operator
(string_"No 'view' method found for tool %s.") string_"No 'view' method found for tool %s."
(parenthesized_expression
(attribute
(identifier_tool_class) identifier_tool_class
(identifier___name__) identifier___name__
)attribute
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Does basic ObjectTool option validation. |
(module
(function_definition
(function_name_get_structure) function_name_get_structure
(parameters
(identifier_atoms) identifier_atoms
(default_parameter
(identifier_cls) identifier_cls
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_symbols) identifier_symbols
(call
(attribute
(identifier_atoms) identifier_atoms
(identifier_get_chemical_symbols) identifier_get_chemical_symbols
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_positions) identifier_positions
(call
(attribute
(identifier_atoms) identifier_atoms
(identifier_get_positions) identifier_get_positions
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lattice) identifier_lattice
(call
(attribute
(identifier_atoms) identifier_atoms
(identifier_get_cell) identifier_get_cell
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cls) identifier_cls
(conditional_expression
(identifier_Structure) identifier_Structure
(comparison_operator
(identifier_cls) identifier_cls
(None) None
)comparison_operator
(identifier_cls) identifier_cls
)conditional_expression
)assignment
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_lattice) identifier_lattice
(identifier_symbols) identifier_symbols
(identifier_positions) identifier_positions
(keyword_argument
(identifier_coords_are_cartesian) identifier_coords_are_cartesian
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns pymatgen structure from ASE Atoms.
Args:
atoms: ASE Atoms object
cls: The Structure class to instantiate (defaults to pymatgen structure)
Returns:
Equivalent pymatgen.core.structure.Structure |
(module
(function_definition
(function_name_cases) function_name_cases
(parameters
(identifier_self) identifier_self
(identifier_env) identifier_env
(identifier_data) identifier_data
)parameters
(block
(for_statement
(identifier_handler) identifier_handler
(attribute
(identifier_self) identifier_self
(identifier_handlers) identifier_handlers
)attribute
(block
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier__push) identifier__push
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier__push) identifier__push
)attribute
(argument_list
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_env) identifier_env
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier__pop) identifier__pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier__pop) identifier__pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Calls each nested handler until one of them returns nonzero result.
If any handler returns `None`, it is interpreted as
"request does not match, the handler has nothing to do with it and
`web.cases` should try to call the next handler". |
(module
(function_definition
(function_name_show_command) function_name_show_command
(parameters
(identifier_endpoint_id) identifier_endpoint_id
(identifier_rule_id) identifier_rule_id
)parameters
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(identifier_get_client) identifier_get_client
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rule) identifier_rule
(call
(attribute
(identifier_client) identifier_client
(identifier_get_endpoint_acl_rule) identifier_get_endpoint_acl_rule
)attribute
(argument_list
(identifier_endpoint_id) identifier_endpoint_id
(identifier_rule_id) identifier_rule_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_formatted_print) identifier_formatted_print
(argument_list
(identifier_rule) identifier_rule
(keyword_argument
(identifier_text_format) identifier_text_format
(identifier_FORMAT_TEXT_RECORD) identifier_FORMAT_TEXT_RECORD
)keyword_argument
(keyword_argument
(identifier_fields) identifier_fields
(tuple
(tuple
(string_"Rule ID") string_"Rule ID"
(string_"id") string_"id"
)tuple
(tuple
(string_"Permissions") string_"Permissions"
(string_"permissions") string_"permissions"
)tuple
(tuple
(string_"Shared With") string_"Shared With"
(identifier__shared_with_keyfunc) identifier__shared_with_keyfunc
)tuple
(tuple
(string_"Path") string_"Path"
(string_"path") string_"path"
)tuple
)tuple
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Executor for `globus endpoint permission show` |
(module
(function_definition
(function_name_PostUnregistration) function_name_PostUnregistration
(parameters
(identifier_method) identifier_method
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_method) identifier_method
(attribute
(identifier_types) identifier_types
(identifier_FunctionType) identifier_FunctionType
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"@PostUnregistration can only be applied on functions") string_"@PostUnregistration can only be applied on functions"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(identifier_validate_method_arity) identifier_validate_method_arity
(argument_list
(identifier_method) identifier_method
(string_"service_reference") string_"service_reference"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__append_object_entry) identifier__append_object_entry
(argument_list
(identifier_method) identifier_method
(attribute
(identifier_constants) identifier_constants
(identifier_IPOPO_METHOD_CALLBACKS) identifier_IPOPO_METHOD_CALLBACKS
)attribute
(attribute
(identifier_constants) identifier_constants
(identifier_IPOPO_CALLBACK_POST_UNREGISTRATION) identifier_IPOPO_CALLBACK_POST_UNREGISTRATION
)attribute
)argument_list
)call
)expression_statement
(return_statement
(identifier_method) identifier_method
)return_statement
)block
)function_definition
)module | The service post-unregistration callback decorator is called after a service
of the component has been unregistered from the framework.
The decorated method must accept the
:class:`~pelix.framework.ServiceReference` of the registered
service as argument::
@PostUnregistration
def callback_method(self, service_reference):
'''
service_reference: The ServiceReference of the provided service
'''
# ...
:param method: The decorated method
:raise TypeError: The decorated element is not a valid function |
(module
(function_definition
(function_name_meth_list) function_name_meth_list
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_fapi) identifier_fapi
(identifier_list_repository_methods) identifier_list_repository_methods
)attribute
(argument_list
(keyword_argument
(identifier_namespace) identifier_namespace
(attribute
(identifier_args) identifier_args
(identifier_namespace) identifier_namespace
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(attribute
(identifier_args) identifier_args
(identifier_method) identifier_method
)attribute
)keyword_argument
(keyword_argument
(identifier_snapshotId) identifier_snapshotId
(attribute
(identifier_args) identifier_args
(identifier_snapshot_id) identifier_snapshot_id
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fapi) identifier_fapi
(identifier__check_response_code) identifier__check_response_code
)attribute
(argument_list
(identifier_r) identifier_r
(integer_200) integer_200
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_methods) identifier_methods
(call
(attribute
(identifier_r) identifier_r
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_m) identifier_m
(identifier_methods) identifier_methods
(block
(expression_statement
(assignment
(identifier_ns) identifier_ns
(subscript
(identifier_m) identifier_m
(string_'namespace') string_'namespace'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(subscript
(identifier_m) identifier_m
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sn_id) identifier_sn_id
(subscript
(identifier_m) identifier_m
(string_'snapshotId') string_'snapshotId'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{0}\t{1}\t{2}') string_'{0}\t{1}\t{2}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ns) identifier_ns
(identifier_n) identifier_n
(identifier_sn_id) identifier_sn_id
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_results) identifier_results
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_s) identifier_s
)lambda_parameters
(call
(attribute
(identifier_s) identifier_s
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)lambda
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | List workflows in the methods repository |
(module
(function_definition
(function_name_std_blocksum) function_name_std_blocksum
(parameters
(identifier_data) identifier_data
(identifier_block_sizes) identifier_block_sizes
(default_parameter
(identifier_mask) identifier_mask
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_ma) identifier_ma
)attribute
(identifier_asanyarray) identifier_asanyarray
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_mask) identifier_mask
(None) None
)comparison_operator
(comparison_operator
(identifier_mask) identifier_mask
(attribute
(attribute
(identifier_np) identifier_np
(identifier_ma) identifier_ma
)attribute
(identifier_nomask) identifier_nomask
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(attribute
(identifier_np) identifier_np
(identifier_asanyarray) identifier_asanyarray
)attribute
(argument_list
(identifier_mask) identifier_mask
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_data) identifier_data
(identifier_shape) identifier_shape
)attribute
(attribute
(identifier_mask) identifier_mask
(identifier_shape) identifier_shape
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'data and mask must have the same shape.') string_'data and mask must have the same shape.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_data) identifier_data
(identifier_mask) identifier_mask
)attribute
(identifier_mask) identifier_mask
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_stds) identifier_stds
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_block_sizes) identifier_block_sizes
(call
(attribute
(identifier_np) identifier_np
(identifier_atleast_1d) identifier_atleast_1d
)attribute
(argument_list
(identifier_block_sizes) identifier_block_sizes
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_block_size) identifier_block_size
(identifier_block_sizes) identifier_block_sizes
(block
(expression_statement
(assignment
(identifier_mesh_values) identifier_mesh_values
(call
(identifier__mesh_values) identifier__mesh_values
(argument_list
(identifier_data) identifier_data
(identifier_block_size) identifier_block_size
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_block_sums) identifier_block_sums
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_mesh_values) identifier_mesh_values
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_stds) identifier_stds
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_std) identifier_std
)attribute
(argument_list
(identifier_block_sums) identifier_block_sums
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_stds) identifier_stds
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculate the standard deviation of block-summed data values at
sizes of ``block_sizes``.
Values from incomplete blocks, either because of the image edges or
masked pixels, are not included.
Parameters
----------
data : array-like
The 2D array to block sum.
block_sizes : int, array-like of int
An array of integer (square) block sizes.
mask : array-like (bool), optional
A boolean mask, with the same shape as ``data``, where a `True`
value indicates the corresponding element of ``data`` is masked.
Blocks that contain *any* masked data are excluded from
calculations.
Returns
-------
result : `~numpy.ndarray`
An array of the standard deviations of the block-summed array
for the input ``block_sizes``. |
(module
(function_definition
(function_name_get_info) function_name_get_info
(parameters
(identifier_brain_or_object) identifier_brain_or_object
(default_parameter
(identifier_endpoint) identifier_endpoint
(None) None
)default_parameter
(default_parameter
(identifier_complete) identifier_complete
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_brain) identifier_is_brain
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_brain_or_object) identifier_brain_or_object
(call
(identifier_get_brain) identifier_get_brain
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_brain_or_object) identifier_brain_or_object
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(string_"Couldn't find/fetch brain of {}") string_"Couldn't find/fetch brain of {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(dictionary
)dictionary
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_complete) identifier_complete
(True) True
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_is_relationship_object) identifier_is_relationship_object
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(string_"Skipping relationship object {}") string_"Skipping relationship object {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(dictionary
)dictionary
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(call
(identifier_IInfo) identifier_IInfo
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
(identifier_to_dict) identifier_to_dict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url_info) identifier_url_info
(call
(identifier_get_url_info) identifier_get_url_info
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
(identifier_endpoint) identifier_endpoint
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_info) identifier_info
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_url_info) identifier_url_info
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(identifier_get_parent_info) identifier_get_parent_info
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_info) identifier_info
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_parent) identifier_parent
)argument_list
)call
)expression_statement
(if_statement
(identifier_complete) identifier_complete
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_api) identifier_api
(identifier_get_object) identifier_get_object
)attribute
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_adapter) identifier_adapter
(call
(identifier_IInfo) identifier_IInfo
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_info) identifier_info
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_adapter) identifier_adapter
(identifier_to_dict) identifier_to_dict
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_req) identifier_req
(identifier_get_workflow) identifier_get_workflow
)attribute
(argument_list
(False) False
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_info) identifier_info
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_get_workflow_info) identifier_get_workflow_info
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Extract the data from the catalog brain or object
:param brain_or_object: A single catalog brain or content object
:type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
:param endpoint: The named URL endpoint for the root of the items
:type endpoint: str/unicode
:param complete: Flag to wake up the object and fetch all data
:type complete: bool
:returns: Data mapping for the object/catalog brain
:rtype: dict |
(module
(function_definition
(function_name_in_cache) function_name_in_cache
(parameters
(identifier_self) identifier_self
(identifier_zenpy_object) identifier_zenpy_object
)parameters
(block
(expression_statement
(assignment
(identifier_object_type) identifier_object_type
(call
(identifier_get_object_type) identifier_get_object_type
(argument_list
(identifier_zenpy_object) identifier_zenpy_object
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cache_key_attr) identifier_cache_key_attr
(call
(attribute
(identifier_self) identifier_self
(identifier__cache_key_attribute) identifier__cache_key_attribute
)attribute
(argument_list
(identifier_object_type) identifier_object_type
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_object_type) identifier_object_type
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_zenpy_object) identifier_zenpy_object
(identifier_cache_key_attr) identifier_cache_key_attr
)argument_list
)call
)argument_list
)call
(None) None
)comparison_operator
)return_statement
)block
)function_definition
)module | Determine whether or not this object is in the cache |
(module
(function_definition
(function_name_charset_to_int) function_name_charset_to_int
(parameters
(identifier_s) identifier_s
(identifier_charset) identifier_charset
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_char) identifier_char
(identifier_s) identifier_s
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(binary_operator
(binary_operator
(identifier_output) identifier_output
(call
(identifier_len) identifier_len
(argument_list
(identifier_charset) identifier_charset
)argument_list
)call
)binary_operator
(call
(attribute
(identifier_charset) identifier_charset
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Turn a string into a non-negative integer.
>>> charset_to_int('0', B40_CHARS)
0
>>> charset_to_int('10', B40_CHARS)
40
>>> charset_to_int('abcd', B40_CHARS)
658093
>>> charset_to_int('', B40_CHARS)
0
>>> charset_to_int('muneeb.id', B40_CHARS)
149190078205533
>>> charset_to_int('A', B40_CHARS)
Traceback (most recent call last):
...
ValueError: substring not found |
(module
(function_definition
(function_name_index_delete) function_name_index_delete
(parameters
(identifier_index) identifier_index
(default_parameter
(identifier_hosts) identifier_hosts
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_es) identifier_es
(call
(identifier__get_instance) identifier__get_instance
(argument_list
(identifier_hosts) identifier_hosts
(identifier_profile) identifier_profile
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_es) identifier_es
(identifier_indices) identifier_indices
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(identifier_index) identifier_index
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_get) identifier_get
)attribute
(argument_list
(string_'acknowledged') string_'acknowledged'
(False) False
)argument_list
)call
)return_statement
)block
(except_clause
(attribute
(attribute
(identifier_elasticsearch) identifier_elasticsearch
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_NotFoundError) identifier_NotFoundError
)attribute
(block
(return_statement
(True) True
)return_statement
)block
)except_clause
(except_clause
(as_pattern
(attribute
(identifier_elasticsearch) identifier_elasticsearch
(identifier_TransportError) identifier_TransportError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_"Cannot delete index {0}, server returned code {1} with message {2}") string_"Cannot delete index {0}, server returned code {1} with message {2}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_index) identifier_index
(attribute
(identifier_e) identifier_e
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_e) identifier_e
(identifier_error) identifier_error
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Delete an index
index
Index name
CLI example::
salt myminion elasticsearch.index_delete testindex |
(module
(function_definition
(function_name_set_perspective) function_name_set_perspective
(parameters
(identifier_self) identifier_self
(identifier_fov) identifier_fov
(identifier_aspect) identifier_aspect
(identifier_near) identifier_near
(identifier_far) identifier_far
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_matrix) identifier_matrix
)attribute
(call
(attribute
(identifier_transforms) identifier_transforms
(identifier_perspective) identifier_perspective
)attribute
(argument_list
(identifier_fov) identifier_fov
(identifier_aspect) identifier_aspect
(identifier_near) identifier_near
(identifier_far) identifier_far
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set the perspective
Parameters
----------
fov : float
Field of view.
aspect : float
Aspect ratio.
near : float
Near location.
far : float
Far location. |
(module
(function_definition
(function_name_cummean) function_name_cummean
(parameters
(identifier_expr) identifier_expr
(default_parameter
(identifier_sort) identifier_sort
(None) None
)default_parameter
(default_parameter
(identifier_ascending) identifier_ascending
(True) True
)default_parameter
(default_parameter
(identifier_unique) identifier_unique
(False) False
)default_parameter
(default_parameter
(identifier_preceding) identifier_preceding
(None) None
)default_parameter
(default_parameter
(identifier_following) identifier_following
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data_type) identifier_data_type
(call
(identifier__stats_type) identifier__stats_type
(argument_list
(identifier_expr) identifier_expr
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__cumulative_op) identifier__cumulative_op
(argument_list
(identifier_expr) identifier_expr
(identifier_CumMean) identifier_CumMean
(keyword_argument
(identifier_sort) identifier_sort
(identifier_sort) identifier_sort
)keyword_argument
(keyword_argument
(identifier_ascending) identifier_ascending
(identifier_ascending) identifier_ascending
)keyword_argument
(keyword_argument
(identifier_unique) identifier_unique
(identifier_unique) identifier_unique
)keyword_argument
(keyword_argument
(identifier_preceding) identifier_preceding
(identifier_preceding) identifier_preceding
)keyword_argument
(keyword_argument
(identifier_following) identifier_following
(identifier_following) identifier_following
)keyword_argument
(keyword_argument
(identifier_data_type) identifier_data_type
(identifier_data_type) identifier_data_type
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculate cumulative mean of a sequence expression.
:param expr: expression for calculation
:param sort: name of the sort column
:param ascending: whether to sort in ascending order
:param unique: whether to eliminate duplicate entries
:param preceding: the start point of a window
:param following: the end point of a window
:return: calculated column |
(module
(function_definition
(function_name_save_context) function_name_save_context
(parameters
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(identifier_file_path) identifier_file_path
(call
(identifier__get_context_filepath) identifier__get_context_filepath
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(identifier_format_to_http_prompt) identifier_format_to_http_prompt
(argument_list
(identifier_context) identifier_context
(keyword_argument
(identifier_excluded_options) identifier_excluded_options
(identifier_EXCLUDED_OPTIONS) identifier_EXCLUDED_OPTIONS
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_file_path) identifier_file_path
(string_'w') string_'w'
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Save a Context object to user data directory. |
(module
(function_definition
(function_name_within) function_name_within
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_ctrs) identifier_ctrs
(default_parameter
(identifier_kdtree) identifier_kdtree
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_kdtree) identifier_kdtree
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_idxs) identifier_idxs
(subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(call
(attribute
(identifier_lalg) identifier_lalg
(identifier_norm) identifier_norm
)attribute
(argument_list
(binary_operator
(identifier_ctrs) identifier_ctrs
(identifier_x) identifier_x
)binary_operator
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_radius) identifier_radius
)attribute
)comparison_operator
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_idxs) identifier_idxs
(call
(attribute
(identifier_kdtree) identifier_kdtree
(identifier_query_ball_point) identifier_query_ball_point
)attribute
(argument_list
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier_radius) identifier_radius
)attribute
(keyword_argument
(identifier_p) identifier_p
(float_2.0) float_2.0
)keyword_argument
(keyword_argument
(identifier_eps) identifier_eps
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_idxs) identifier_idxs
)return_statement
)block
)function_definition
)module | Check which balls `x` falls within. Uses a K-D Tree to
perform the search if provided. |
(module
(function_definition
(function_name_trcdep) function_name_trcdep
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_depth) identifier_depth
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_trcdep_c) identifier_trcdep_c
)attribute
(argument_list
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_depth) identifier_depth
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_depth) identifier_depth
(identifier_value) identifier_value
)attribute
)return_statement
)block
)function_definition
)module | Return the number of modules in the traceback representation.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/trcdep_c.html
:return: The number of modules in the traceback.
:rtype: int |
(module
(function_definition
(function_name_client_event_handler) function_name_client_event_handler
(parameters
(identifier_self) identifier_self
(identifier_client_id) identifier_client_id
(identifier_event_tuple) identifier_event_tuple
(identifier_user_data) identifier_user_data
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_conn_string) identifier_conn_string
(identifier_event_name) identifier_event_name
(identifier__event) identifier__event
)pattern_list
(identifier_event_tuple) identifier_event_tuple
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Ignoring event %s from device %s forwarded for client %s") string_"Ignoring event %s from device %s forwarded for client %s"
(identifier_event_name) identifier_event_name
(identifier_conn_string) identifier_conn_string
(identifier_client_id) identifier_client_id
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Method called to actually send an event to a client.
Users of this class should override this method to actually forward
device events to their clients. It is called with the client_id
passed to (or returned from) :meth:`setup_client` as well as the
user_data object that was included there.
The event tuple is a 3-tuple of:
- connection string
- event name
- event object
If you override this to be acoroutine, it will be awaited. The
default implementation just logs the event.
Args:
client_id (str): The client_id that this event should be forwarded
to.
event_tuple (tuple): The connection_string, event_name and event_object
that should be forwarded.
user_data (object): Any user data that was passed to setup_client. |
(module
(function_definition
(function_name_passthrough_repl) function_name_passthrough_repl
(parameters
(identifier_self) identifier_self
(identifier_inputstring) identifier_inputstring
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(None) None
)assignment
)expression_statement
(for_statement
(identifier_c) identifier_c
(call
(identifier_append_it) identifier_append_it
(argument_list
(identifier_inputstring) identifier_inputstring
(None) None
)argument_list
)call
(block
(try_statement
(block
(if_statement
(comparison_operator
(identifier_index) identifier_index
(None) None
)comparison_operator
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_c) identifier_c
(None) None
)comparison_operator
(comparison_operator
(identifier_c) identifier_c
(identifier_nums) identifier_nums
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_index) identifier_index
(identifier_c) identifier_c
)augmented_assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(identifier_c) identifier_c
(identifier_unwrapper) identifier_unwrapper
)comparison_operator
(identifier_index) identifier_index
)boolean_operator
(block
(expression_statement
(assignment
(identifier_ref) identifier_ref
(call
(attribute
(identifier_self) identifier_self
(identifier_get_ref) identifier_get_ref
)attribute
(argument_list
(string_"passthrough") string_"passthrough"
(identifier_index) identifier_index
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_ref) identifier_ref
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(None) None
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(identifier_c) identifier_c
(string_"\\") string_"\\"
)comparison_operator
(identifier_index) identifier_index
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"\\") string_"\\"
(identifier_index) identifier_index
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_c) identifier_c
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(None) None
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
(elif_clause
(comparison_operator
(identifier_c) identifier_c
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_c) identifier_c
(string_"\\") string_"\\"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(string_"") string_""
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)elif_clause
)if_statement
)block
(except_clause
(as_pattern
(identifier_CoconutInternalException) identifier_CoconutInternalException
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_complain) identifier_complain
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_index) identifier_index
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(None) None
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_out) identifier_out
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add back passthroughs. |
(module
(function_definition
(function_name_get_shutit_pexpect_session_environment) function_name_get_shutit_pexpect_session_environment
(parameters
(identifier_self) identifier_self
(identifier_environment_id) identifier_environment_id
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_environment_id) identifier_environment_id
(identifier_str) identifier_str
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fail) identifier_fail
)attribute
(argument_list
(string_'Wrong argument type in get_shutit_pexpect_session_environment') string_'Wrong argument type in get_shutit_pexpect_session_environment'
)argument_list
)call
)expression_statement
)block
)if_statement
(for_statement
(identifier_env) identifier_env
(attribute
(attribute
(identifier_shutit_global) identifier_shutit_global
(identifier_shutit_global_object) identifier_shutit_global_object
)attribute
(identifier_shutit_pexpect_session_environments) identifier_shutit_pexpect_session_environments
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_env) identifier_env
(identifier_environment_id) identifier_environment_id
)attribute
(identifier_environment_id) identifier_environment_id
)comparison_operator
(block
(return_statement
(identifier_env) identifier_env
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Returns the first shutit_pexpect_session object related to the given
environment-id |
(module
(function_definition
(function_name_get_time) function_name_get_time
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_time_request) identifier_time_request
(binary_operator
(string_'\x1b') string_'\x1b'
(binary_operator
(integer_47) integer_47
(string_'\0') string_'\0'
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_now) identifier_now
(subscript
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_"!12I") string_"!12I"
(call
(attribute
(attribute
(call
(attribute
(identifier_ntp_service) identifier_ntp_service
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_time_request) identifier_time_request
(keyword_argument
(identifier_timeout) identifier_timeout
(float_5.0) float_5.0
)keyword_argument
)argument_list
)call
(identifier_data) identifier_data
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_10) integer_10
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_ctime) identifier_ctime
)attribute
(argument_list
(binary_operator
(identifier_now) identifier_now
(identifier_EPOCH_START) identifier_EPOCH_START
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get time from a locally running NTP server |
(module
(function_definition
(function_name_gen_div) function_name_gen_div
(parameters
(identifier_src1) identifier_src1
(identifier_src2) identifier_src2
(identifier_dst) identifier_dst
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(identifier_src1) identifier_src1
(identifier_size) identifier_size
)attribute
(attribute
(identifier_src2) identifier_src2
(identifier_size) identifier_size
)attribute
)comparison_operator
)assert_statement
(return_statement
(call
(attribute
(identifier_ReilBuilder) identifier_ReilBuilder
(identifier_build) identifier_build
)attribute
(argument_list
(attribute
(identifier_ReilMnemonic) identifier_ReilMnemonic
(identifier_DIV) identifier_DIV
)attribute
(identifier_src1) identifier_src1
(identifier_src2) identifier_src2
(identifier_dst) identifier_dst
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a DIV instruction. |
(module
(function_definition
(function_name__clean_dirty) function_name__clean_dirty
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_obj) identifier_obj
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(boolean_operator
(identifier_obj) identifier_obj
(identifier_self) identifier_self
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_obj) identifier_obj
(identifier___dict__) identifier___dict__
)attribute
(string_'_dirty_attributes') string_'_dirty_attributes'
)subscript
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier__dirty) identifier__dirty
)attribute
(False) False
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(call
(identifier_vars) identifier_vars
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_BaseObject) identifier_BaseObject
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__clean_dirty) identifier__clean_dirty
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_val) identifier_val
(string_'_clean_dirty') string_'_clean_dirty'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_func) identifier_func
)argument_list
)call
(block
(expression_statement
(call
(identifier_func) identifier_func
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Recursively clean self and all child objects. |
(module
(function_definition
(function_name__check_markers) function_name__check_markers
(parameters
(identifier_task_ids) identifier_task_ids
(default_parameter
(identifier_offset) identifier_offset
(integer_10) integer_10
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_shuffle) identifier_shuffle
(argument_list
(identifier_task_ids) identifier_task_ids
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_has_errors) identifier_has_errors
(False) False
)assignment
)expression_statement
(for_statement
(identifier_index) identifier_index
(call
(identifier_xrange) identifier_xrange
(argument_list
(integer_0) integer_0
(call
(identifier_len) identifier_len
(argument_list
(identifier_task_ids) identifier_task_ids
)argument_list
)call
(identifier_offset) identifier_offset
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list_comprehension
(call
(attribute
(identifier_ndb) identifier_ndb
(identifier_Key) identifier_Key
)attribute
(argument_list
(identifier_FuriousAsyncMarker) identifier_FuriousAsyncMarker
(identifier_id) identifier_id
)argument_list
)call
(for_in_clause
(identifier_id) identifier_id
(subscript
(identifier_task_ids) identifier_task_ids
(slice
(identifier_index) identifier_index
(colon) colon
(binary_operator
(identifier_index) identifier_index
(identifier_offset) identifier_offset
)binary_operator
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_markers) identifier_markers
(call
(attribute
(identifier_ndb) identifier_ndb
(identifier_get_multi) identifier_get_multi
)attribute
(argument_list
(identifier_keys) identifier_keys
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_all) identifier_all
(argument_list
(identifier_markers) identifier_markers
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Not all Async's complete") string_"Not all Async's complete"
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(False) False
(None) None
)expression_list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_has_errors) identifier_has_errors
(not_operator
(call
(identifier_all) identifier_all
(argument_list
(generator_expression
(attribute
(identifier_marker) identifier_marker
(identifier_success) identifier_success
)attribute
(for_in_clause
(identifier_marker) identifier_marker
(identifier_markers) identifier_markers
)for_in_clause
)generator_expression
)argument_list
)call
)not_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(True) True
(identifier_has_errors) identifier_has_errors
)expression_list
)return_statement
)block
)function_definition
)module | Returns a flag for markers being found for the task_ids. If all task ids
have markers True will be returned. Otherwise it will return False as soon
as a None result is hit. |
(module
(function_definition
(function_name_write_meta) function_name_write_meta
(parameters
(identifier_self) identifier_self
(identifier_role) identifier_role
)parameters
(block
(expression_statement
(assignment
(identifier_meta_file) identifier_meta_file
(call
(attribute
(identifier_utils) identifier_utils
(identifier_file_to_string) identifier_file_to_string
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_paths) identifier_paths
)attribute
(string_"meta") string_"meta"
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_gen_report) identifier_update_gen_report
)attribute
(argument_list
(identifier_role) identifier_role
(string_"meta") string_"meta"
(identifier_meta_file) identifier_meta_file
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write out a new meta file. |
(module
(function_definition
(function_name_prune_creds_json) function_name_prune_creds_json
(parameters
(typed_parameter
(identifier_creds) identifier_creds
(type
(identifier_dict) identifier_dict
)type
)typed_parameter
(typed_parameter
(identifier_cred_ids) identifier_cred_ids
(type
(identifier_set) identifier_set
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_rv) identifier_rv
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(identifier_creds) identifier_creds
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(tuple
(string_'attrs') string_'attrs'
(string_'predicates') string_'predicates'
)tuple
(block
(for_statement
(pattern_list
(identifier_attr_uuid) identifier_attr_uuid
(identifier_creds_by_uuid) identifier_creds_by_uuid
)pattern_list
(call
(attribute
(subscript
(identifier_rv) identifier_rv
(identifier_key) identifier_key
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_rv) identifier_rv
(identifier_key) identifier_key
)subscript
(identifier_attr_uuid) identifier_attr_uuid
)subscript
(list_comprehension
(identifier_cred) identifier_cred
(for_in_clause
(identifier_cred) identifier_cred
(identifier_creds_by_uuid) identifier_creds_by_uuid
)for_in_clause
(if_clause
(comparison_operator
(subscript
(subscript
(identifier_cred) identifier_cred
(string_'cred_info') string_'cred_info'
)subscript
(string_'referent') string_'referent'
)subscript
(identifier_cred_ids) identifier_cred_ids
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_empties) identifier_empties
(list_comprehension
(identifier_attr_uuid) identifier_attr_uuid
(for_in_clause
(identifier_attr_uuid) identifier_attr_uuid
(subscript
(identifier_rv) identifier_rv
(identifier_key) identifier_key
)subscript
)for_in_clause
(if_clause
(not_operator
(subscript
(subscript
(identifier_rv) identifier_rv
(identifier_key) identifier_key
)subscript
(identifier_attr_uuid) identifier_attr_uuid
)subscript
)not_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_attr_uuid) identifier_attr_uuid
(identifier_empties) identifier_empties
(block
(delete_statement
(subscript
(subscript
(identifier_rv) identifier_rv
(identifier_key) identifier_key
)subscript
(identifier_attr_uuid) identifier_attr_uuid
)subscript
)delete_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_rv) identifier_rv
)argument_list
)call
)return_statement
)block
)function_definition
)module | Strip all creds out of the input json structure that do not match any of the input credential identifiers.
:param creds: indy-sdk creds structure
:param cred_ids: the set of credential identifiers of interest
:return: the reduced creds json |
(module
(function_definition
(function_name_get_page_children_dict) function_name_get_page_children_dict
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_page_qs) identifier_page_qs
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_children_dict) identifier_children_dict
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_page) identifier_page
(boolean_operator
(identifier_page_qs) identifier_page_qs
(attribute
(identifier_self) identifier_self
(identifier_pages_for_display) identifier_pages_for_display
)attribute
)boolean_operator
(block
(expression_statement
(call
(attribute
(subscript
(identifier_children_dict) identifier_children_dict
(subscript
(attribute
(identifier_page) identifier_page
(identifier_path) identifier_path
)attribute
(slice
(colon) colon
(unary_operator
(attribute
(identifier_page) identifier_page
(identifier_steplen) identifier_steplen
)attribute
)unary_operator
)slice
)subscript
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_page) identifier_page
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_children_dict) identifier_children_dict
)return_statement
)block
)function_definition
)module | Returns a dictionary of lists, where the keys are 'path' values for
pages, and the value is a list of children pages for that page. |
(module
(function_definition
(function_name_get_queryset) function_name_get_queryset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_qs) identifier_qs
(call
(identifier_VersionedQuerySet) identifier_VersionedQuerySet
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(keyword_argument
(identifier_using) identifier_using
(attribute
(identifier_self) identifier_self
(identifier__db) identifier__db
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'instance') string_'instance'
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)attribute
(string_'_querytime') string_'_querytime'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_qs) identifier_qs
(identifier_querytime) identifier_querytime
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)attribute
(identifier__querytime) identifier__querytime
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_qs) identifier_qs
)return_statement
)block
)function_definition
)module | Returns a VersionedQuerySet capable of handling version time
restrictions.
:return: VersionedQuerySet |
(module
(function_definition
(function_name_in_session) function_name_in_session
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(attribute
(identifier_self) identifier_self
(identifier_get_session) identifier_get_session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(yield
(identifier_session) identifier_session
)yield
)expression_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_IntegrityError) identifier_IntegrityError
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_rollback) identifier_rollback
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_DuplicateError) identifier_DuplicateError
(argument_list
(string_"Duplicate unique value detected!") string_"Duplicate unique value detected!"
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(tuple
(identifier_OperationalError) identifier_OperationalError
(identifier_DisconnectionError) identifier_DisconnectionError
)tuple
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_rollback) identifier_rollback
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"Database Connection Lost!") string_"Database Connection Lost!"
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_DatabaseConnectionError) identifier_DatabaseConnectionError
(argument_list
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_rollback) identifier_rollback
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Provide a session scope around a series of operations. |
(module
(function_definition
(function_name_value_series) function_name_value_series
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_end) identifier_end
(None) None
)default_parameter
(default_parameter
(identifier_interval) identifier_interval
(None) None
)default_parameter
(default_parameter
(identifier_namespace) identifier_namespace
(None) None
)default_parameter
(default_parameter
(identifier_cache) identifier_cache
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_make_context) identifier_make_context
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_start) identifier_start
(identifier_start) identifier_start
)keyword_argument
(keyword_argument
(identifier_end) identifier_end
(identifier_end) identifier_end
)keyword_argument
(keyword_argument
(identifier_interval) identifier_interval
(identifier_interval) identifier_interval
)keyword_argument
(keyword_argument
(identifier_namespace) identifier_namespace
(identifier_namespace) identifier_namespace
)keyword_argument
(keyword_argument
(identifier_cache) identifier_cache
(identifier_cache) identifier_cache
)keyword_argument
)argument_list
)call
(identifier_value_series) identifier_value_series
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a time series of gauge values |
(module
(function_definition
(function_name_home_page) function_name_home_page
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_tld_type) identifier_tld_type
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_TLDType) identifier_TLDType
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_resource) identifier_resource
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_choice) identifier_choice
)attribute
(argument_list
(identifier_USERNAMES) identifier_USERNAMES
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_domain) identifier_domain
(call
(attribute
(identifier_self) identifier_self
(identifier_top_level_domain) identifier_top_level_domain
)attribute
(argument_list
(keyword_argument
(identifier_tld_type) identifier_tld_type
(identifier_tld_type) identifier_tld_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'http://www.{}{}') string_'http://www.{}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_resource) identifier_resource
(identifier_domain) identifier_domain
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate a random home page.
:param tld_type: TLD type.
:return: Random home page.
:Example:
http://www.fontir.info |
(module
(function_definition
(function_name_imprint) function_name_imprint
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
(None) None
)comparison_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(boolean_operator
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_version_file) identifier_version_file
)attribute
)boolean_operator
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_h) identifier_h
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_h) identifier_h
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
(string_'\n') string_'\n'
)binary_operator
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Can not write null version to file.') string_'Can not write null version to file.'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Write the determined version, if any, to ``self.version_file`` or
the path passed as an argument. |
(module
(function_definition
(function_name_progressive) function_name_progressive
(parameters
(identifier_image_field) identifier_image_field
(default_parameter
(identifier_alt_text) identifier_alt_text
(string_'') string_''
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_image_field) identifier_image_field
(identifier_ImageFieldFile) identifier_ImageFieldFile
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'"image_field" argument must be an ImageField.') string_'"image_field" argument must be an ImageField.'
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_engine) identifier_engine
(call
(attribute
(identifier_engines) identifier_engines
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_engine) identifier_engine
(identifier_BaseEngine) identifier_BaseEngine
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_engine) identifier_engine
(string_'env') string_'env'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(attribute
(identifier_engine) identifier_engine
(identifier_env) identifier_env
)attribute
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_env) identifier_env
(identifier_Environment) identifier_Environment
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_context) identifier_context
(call
(identifier_render_progressive_field) identifier_render_progressive_field
(argument_list
(identifier_image_field) identifier_image_field
(identifier_alt_text) identifier_alt_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(attribute
(identifier_env) identifier_env
(identifier_get_template) identifier_get_template
)attribute
(argument_list
(string_'progressiveimagefield/render_field.html') string_'progressiveimagefield/render_field.html'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rendered) identifier_rendered
(call
(attribute
(identifier_template) identifier_template
(identifier_render) identifier_render
)attribute
(argument_list
(dictionary_splat
(identifier_context) identifier_context
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Markup) identifier_Markup
(argument_list
(identifier_rendered) identifier_rendered
)argument_list
)call
)return_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(string_'') string_''
)return_statement
)block
)function_definition
)module | Used as a Jinja2 filter, this function returns a safe HTML chunk.
Usage (in the HTML template):
{{ obj.image|progressive }}
:param django.db.models.fields.files.ImageFieldFile image_field: image
:param str alt_text: str
:return: a safe HTML template ready to be rendered |
(module
(function_definition
(function_name_add_vcenter) function_name_add_vcenter
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(identifier_ET) identifier_ET
(identifier_Element) identifier_Element
)attribute
(argument_list
(string_"config") string_"config"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vcenter) identifier_vcenter
(call
(attribute
(identifier_ET) identifier_ET
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_config) identifier_config
(string_"vcenter") string_"vcenter"
(keyword_argument
(identifier_xmlns) identifier_xmlns
(string_"urn:brocade.com:mgmt:brocade-vswitch") string_"urn:brocade.com:mgmt:brocade-vswitch"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_id) identifier_id
(call
(attribute
(identifier_ET) identifier_ET
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_vcenter) identifier_vcenter
(string_"id") string_"id"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_id) identifier_id
(identifier_text) identifier_text
)attribute
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_credentials) identifier_credentials
(call
(attribute
(identifier_ET) identifier_ET
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_vcenter) identifier_vcenter
(string_"credentials") string_"credentials"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_ET) identifier_ET
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_credentials) identifier_credentials
(string_"url") string_"url"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_url) identifier_url
(identifier_text) identifier_text
)attribute
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'url') string_'url'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_username) identifier_username
(call
(attribute
(identifier_ET) identifier_ET
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_credentials) identifier_credentials
(string_"username") string_"username"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_username) identifier_username
(identifier_text) identifier_text
)attribute
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'username') string_'username'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_password) identifier_password
(call
(attribute
(identifier_ET) identifier_ET
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(identifier_credentials) identifier_credentials
(string_"password") string_"password"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_password) identifier_password
(identifier_text) identifier_text
)attribute
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'password') string_'password'
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__callback) identifier__callback
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Add vCenter on the switch
Args:
id(str) : Name of an established vCenter
url (bool) : vCenter URL
username (str): Username of the vCenter
password (str): Password of the vCenter
callback (function): A function executed upon completion of the
method.
Returns:
Return value of `callback`.
Raises:
None |
(module
(function_definition
(function_name__store_information) function_name__store_information
(parameters
(identifier_self) identifier_self
)parameters
(block
(print_statement
(string_'<<< Generating Information Storage >>>') string_'<<< Generating Information Storage >>>'
)print_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_meth) identifier_meth
)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_isroutine) identifier_isroutine
)attribute
)keyword_argument
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'_') string_'_'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
(pair
(string_'command') string_'command'
(identifier_name) identifier_name
)pair
(pair
(string_'sig') string_'sig'
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_funcsigs) identifier_funcsigs
(identifier_signature) identifier_signature
)attribute
(argument_list
(identifier_meth) identifier_meth
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'docstring') string_'docstring'
(attribute
(identifier_meth) identifier_meth
(identifier___doc__) identifier___doc__
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_store_info) identifier_store_info
)attribute
(argument_list
(identifier_info) identifier_info
(identifier_name) identifier_name
(keyword_argument
(identifier_type_tag) identifier_type_tag
(string_'command') string_'command'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_store_info) identifier_store_info
)attribute
(argument_list
(dictionary
(pair
(string_'help') string_'help'
(binary_operator
(string_'<<< Workbench Server Version %s >>>') string_'<<< Workbench Server Version %s >>>'
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
)binary_operator
)pair
)dictionary
(string_'version') string_'version'
(keyword_argument
(identifier_type_tag) identifier_type_tag
(string_'help') string_'help'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_store_info) identifier_store_info
)attribute
(argument_list
(dictionary
(pair
(string_'help') string_'help'
(call
(attribute
(identifier_self) identifier_self
(identifier__help_workbench) identifier__help_workbench
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
(string_'workbench') string_'workbench'
(keyword_argument
(identifier_type_tag) identifier_type_tag
(string_'help') string_'help'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_store_info) identifier_store_info
)attribute
(argument_list
(dictionary
(pair
(string_'help') string_'help'
(call
(attribute
(identifier_self) identifier_self
(identifier__help_basic) identifier__help_basic
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
(string_'basic') string_'basic'
(keyword_argument
(identifier_type_tag) identifier_type_tag
(string_'help') string_'help'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_store_info) identifier_store_info
)attribute
(argument_list
(dictionary
(pair
(string_'help') string_'help'
(call
(attribute
(identifier_self) identifier_self
(identifier__help_commands) identifier__help_commands
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
(string_'commands') string_'commands'
(keyword_argument
(identifier_type_tag) identifier_type_tag
(string_'help') string_'help'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_store_info) identifier_store_info
)attribute
(argument_list
(dictionary
(pair
(string_'help') string_'help'
(call
(attribute
(identifier_self) identifier_self
(identifier__help_workers) identifier__help_workers
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
(string_'workers') string_'workers'
(keyword_argument
(identifier_type_tag) identifier_type_tag
(string_'help') string_'help'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Store infomation about Workbench and its commands |
(module
(function_definition
(function_name_load_schema) function_name_load_schema
(parameters
(identifier_schema_path) identifier_schema_path
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_schema_path) identifier_schema_path
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_schema_file) identifier_schema_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(attribute
(identifier_simplejson) identifier_simplejson
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_schema_file) identifier_schema_file
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_resolver) identifier_resolver
(call
(identifier_RefResolver) identifier_RefResolver
(argument_list
(string_'') string_''
(string_'') string_''
(call
(attribute
(identifier_schema) identifier_schema
(identifier_get) identifier_get
)attribute
(argument_list
(string_'models') string_'models'
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_build_request_to_validator_map) identifier_build_request_to_validator_map
(argument_list
(identifier_schema) identifier_schema
(identifier_resolver) identifier_resolver
)argument_list
)call
)return_statement
)block
)function_definition
)module | Prepare the api specification for request and response validation.
:returns: a mapping from :class:`RequestMatcher` to :class:`ValidatorMap`
for every operation in the api specification.
:rtype: dict |
(module
(function_definition
(function_name_is_int) function_name_is_int
(parameters
(identifier_tg_type) identifier_tg_type
(default_parameter
(identifier_inc_array) identifier_inc_array
(False) False
)default_parameter
)parameters
(block
(global_statement
(identifier__scalar_int_types) identifier__scalar_int_types
(identifier__array_int_types) identifier__array_int_types
)global_statement
(if_statement
(comparison_operator
(identifier_tg_type) identifier_tg_type
(identifier__scalar_int_types) identifier__scalar_int_types
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_inc_array) identifier_inc_array
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(comparison_operator
(identifier_tg_type) identifier_tg_type
(identifier__array_int_types) identifier__array_int_types
)comparison_operator
)return_statement
)block
)function_definition
)module | Tells if the given tango type is integer
:param tg_type: tango type
:type tg_type: :class:`tango.CmdArgType`
:param inc_array: (optional, default is False) determines if include array
in the list of checked types
:type inc_array: :py:obj:`bool`
:return: True if the given tango type is integer or False otherwise
:rtype: :py:obj:`bool` |
(module
(function_definition
(function_name_get_description) function_name_get_description
(parameters
(identifier_cls) identifier_cls
)parameters
(type
(identifier_str) identifier_str
)type
(block
(if_statement
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier___doc__) identifier___doc__
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'No docstring found for {}') string_'No docstring found for {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier___doc__) identifier___doc__
)attribute
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | The description is expected to be the command class' docstring. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filename) identifier_filename
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(list
)list
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_format_data) identifier_format_data
(call
(attribute
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_format_data) identifier_format_data
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__sql_version) identifier__sql_version
)attribute
(call
(attribute
(identifier_lines) identifier_lines
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__num_fields) identifier__num_fields
)attribute
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_lines) identifier_lines
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_lines) identifier_lines
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_' +') string_' +'
(string_' ') string_' '
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_row_format) identifier_row_format
(call
(identifier_BCPFormatRow) identifier_BCPFormatRow
(argument_list
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fields) identifier_fields
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_row_format) identifier_row_format
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
(identifier_fields) identifier_fields
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
(identifier_filename) identifier_filename
)assignment
)expression_statement
)block
)function_definition
)module | Reads a non-XML bcp FORMAT file and parses it into fields list used for creating bulk data file |
(module
(function_definition
(function_name_stoptimes) function_name_stoptimes
(parameters
(identifier_self) identifier_self
(identifier_start_date) identifier_start_date
(identifier_end_date) identifier_end_date
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'start') string_'start'
(call
(attribute
(identifier_self) identifier_self
(identifier_format_date) identifier_format_date
)attribute
(argument_list
(identifier_start_date) identifier_start_date
)argument_list
)call
)pair
(pair
(string_'end') string_'end'
(call
(attribute
(identifier_self) identifier_self
(identifier_format_date) identifier_format_date
)attribute
(argument_list
(identifier_end_date) identifier_end_date
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__request) identifier__request
)attribute
(argument_list
(subscript
(identifier_ENDPOINTS) identifier_ENDPOINTS
(string_'STOPTIMES') string_'STOPTIMES'
)subscript
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Return all stop times in the date range
:param start_date:
The starting date for the query.
:param end_date:
The end date for the query.
>>> import datetime
>>> today = datetime.date.today()
>>> trans.stoptimes(today - datetime.timedelta(days=1), today) |
(module
(function_definition
(function_name_bind) function_name_bind
(parameters
(identifier_self) identifier_self
(identifier_typevar) identifier_typevar
(identifier_its_type) identifier_its_type
)parameters
(block
(assert_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_typevar) identifier_typevar
)argument_list
)call
(attribute
(identifier_tg) identifier_tg
(identifier_TypeVar) identifier_TypeVar
)attribute
)comparison_operator
)assert_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_generic_in) identifier_is_generic_in
)attribute
(argument_list
(identifier_typevar) identifier_typevar
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bind_to_instance) identifier_bind_to_instance
)attribute
(argument_list
(identifier_typevar) identifier_typevar
(identifier_its_type) identifier_its_type
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__ns) identifier__ns
)attribute
(identifier_typevar) identifier_typevar
)subscript
(identifier_its_type) identifier_its_type
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Binds typevar to the type its_type.
Binding occurs on the instance if the typevar is a TypeVar of the
generic type of the instance, on call level otherwise. |
(module
(function_definition
(function_name_prepare_input_data) function_name_prepare_input_data
(parameters
(identifier_config) identifier_config
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_disambiguate) identifier_get_disambiguate
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)not_operator
(block
(return_statement
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_input_sequence_files) identifier_get_input_sequence_files
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_work_bam) identifier_work_bam
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_work_bam) identifier_get_work_bam
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Converting disambiguated reads to fastq...") string_"Converting disambiguated reads to fastq..."
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_fq_files) identifier_fq_files
(call
(identifier_convert_bam_to_fastq) identifier_convert_bam_to_fastq
(argument_list
(identifier_work_bam) identifier_work_bam
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_work_dir) identifier_get_work_dir
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
(None) None
(None) None
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_fq_files) identifier_fq_files
)return_statement
)block
)function_definition
)module | In case of disambiguation, we want to run fusion calling on
the disambiguated reads, which are in the work_bam file.
As EricScript accepts 2 fastq files as input, we need to convert
the .bam to 2 .fq files. |
(module
(function_definition
(function_name_do_eni) function_name_do_eni
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_CommandArgumentParser) identifier_CommandArgumentParser
(argument_list
(string_"eni") string_"eni"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(keyword_argument
(identifier_dest) identifier_dest
(string_'eni') string_'eni'
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'eni index or name') string_'eni index or name'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_vars) identifier_vars
(argument_list
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(print_statement
(call
(attribute
(string_"loading eni {}") string_"loading eni {}"
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_args) identifier_args
(string_'eni') string_'eni'
)subscript
)argument_list
)call
)print_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_args) identifier_args
(string_'eni') string_'eni'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_eniSummary) identifier_eniSummary
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_wrappedStack) identifier_wrappedStack
)attribute
(string_'resourcesByTypeIndex') string_'resourcesByTypeIndex'
)subscript
(string_'AWS::EC2::NetworkInterface') string_'AWS::EC2::NetworkInterface'
)subscript
(identifier_index) identifier_index
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_eniSummary) identifier_eniSummary
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_wrappedStack) identifier_wrappedStack
)attribute
(string_'resourcesByTypeName') string_'resourcesByTypeName'
)subscript
(string_'AWS::EC2::NetworkInterface') string_'AWS::EC2::NetworkInterface'
)subscript
(subscript
(identifier_args) identifier_args
(string_'eni') string_'eni'
)subscript
)subscript
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_pprint) identifier_pprint
(argument_list
(identifier_eniSummary) identifier_eniSummary
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stackResource) identifier_stackResource
)attribute
(argument_list
(attribute
(identifier_eniSummary) identifier_eniSummary
(identifier_stack_name) identifier_stack_name
)attribute
(attribute
(identifier_eniSummary) identifier_eniSummary
(identifier_logical_id) identifier_logical_id
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Go to the specified eni. eni -h for detailed help. |
(module
(function_definition
(function_name_add_tlink) function_name_add_tlink
(parameters
(identifier_self) identifier_self
(identifier_my_tlink) identifier_my_tlink
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_temporalRelations_layer) identifier_temporalRelations_layer
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_temporalRelations_layer) identifier_temporalRelations_layer
)attribute
(call
(identifier_CtemporalRelations) identifier_CtemporalRelations
(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_temporalRelations_layer) identifier_temporalRelations_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_temporalRelations_layer) identifier_temporalRelations_layer
)attribute
(identifier_add_tlink) identifier_add_tlink
)attribute
(argument_list
(identifier_my_tlink) identifier_my_tlink
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds a tlink to the temporalRelations layer
@type my_tlink: L{Ctlink}
@param my_tlink: tlink object |
(module
(function_definition
(function_name_worker_recover) function_name_worker_recover
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_workers) identifier_workers
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(string_'default') string_'default'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_workers) identifier_workers
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_workers) identifier_workers
(list
)list
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier__bulk_state) identifier__bulk_state
(argument_list
(string_'modjk.bulk_recover') string_'modjk.bulk_recover'
(identifier_name) identifier_name
(identifier_workers) identifier_workers
(identifier_profile) identifier_profile
)argument_list
)call
)return_statement
)block
)function_definition
)module | Recover all the workers in the modjk load balancer
Example:
.. code-block:: yaml
loadbalancer:
modjk.worker_recover:
- workers:
- app1
- app2 |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_tags) identifier_tags
(None) None
)default_parameter
(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
(try_statement
(block
(expression_statement
(assignment
(identifier_rds) identifier_rds
(call
(attribute
(identifier_conn) identifier_conn
(identifier_describe_db_instances) identifier_describe_db_instances
)attribute
(argument_list
(keyword_argument
(identifier_DBInstanceIdentifier) identifier_DBInstanceIdentifier
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'exists') string_'exists'
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_rds) identifier_rds
)argument_list
)call
)pair
)dictionary
)return_statement
)block
(except_clause
(as_pattern
(identifier_ClientError) identifier_ClientError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(return_statement
(dictionary
(pair
(string_'error') string_'error'
(call
(subscript
(identifier___utils__) identifier___utils__
(string_'boto3.get_error') string_'boto3.get_error'
)subscript
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check to see if an RDS exists.
CLI example::
salt myminion boto_rds.exists myrds region=us-east-1 |
(module
(function_definition
(function_name_add_arguments) function_name_add_arguments
(parameters
(identifier_self) identifier_self
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'app_label') string_'app_label'
(keyword_argument
(identifier_nargs) identifier_nargs
(string_'*') string_'*'
)keyword_argument
)argument_list
)call
)expression_statement
(for_statement
(identifier_argument) identifier_argument
(attribute
(identifier_self) identifier_self
(identifier_arguments) identifier_arguments
)attribute
(block
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_argument) identifier_argument
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
)list_splat
(dictionary_splat
(subscript
(attribute
(identifier_self) identifier_self
(identifier_arguments) identifier_arguments
)attribute
(identifier_argument) identifier_argument
)subscript
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Unpack self.arguments for parser.add_arguments. |
(module
(function_definition
(function_name_time_stamp) function_name_time_stamp
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(string_'%Y-%m-%dT%H:%M:%S.%f') string_'%Y-%m-%dT%H:%M:%S.%f'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_date) identifier_date
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_date_delta) identifier_date_delta
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_fmt) identifier_fmt
(identifier_date) identifier_date
(identifier_date_delta) identifier_date_delta
(identifier_now) identifier_now
)expression_list
)return_statement
)block
)function_definition
)module | Setup time functions
:returns: ``tuple`` |
(module
(function_definition
(function_name_transplant) function_name_transplant
(parameters
(identifier_new_net) identifier_new_net
(identifier_net) identifier_net
(default_parameter
(identifier_suffix) identifier_suffix
(string_'') string_''
)default_parameter
)parameters
(block
(for_statement
(identifier_p) identifier_p
(attribute
(identifier_net) identifier_net
(identifier_params) identifier_params
)attribute
(block
(expression_statement
(assignment
(identifier_p_new) identifier_p_new
(binary_operator
(identifier_p) identifier_p
(identifier_suffix) identifier_suffix
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_p_new) identifier_p_new
(attribute
(identifier_new_net) identifier_new_net
(identifier_params) identifier_params
)attribute
)comparison_operator
(block
(print_statement
(string_'dropping') string_'dropping'
(identifier_p) identifier_p
)print_statement
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(subscript
(attribute
(identifier_net) identifier_net
(identifier_params) identifier_params
)attribute
(identifier_p) identifier_p
)subscript
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_i) identifier_i
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(attribute
(identifier_new_net) identifier_new_net
(identifier_params) identifier_params
)attribute
(identifier_p_new) identifier_p_new
)subscript
)argument_list
)call
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)comparison_operator
(block
(print_statement
(string_'dropping') string_'dropping'
(identifier_p) identifier_p
(identifier_i) identifier_i
)print_statement
(break_statement
)break_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(attribute
(subscript
(subscript
(attribute
(identifier_net) identifier_net
(identifier_params) identifier_params
)attribute
(identifier_p) identifier_p
)subscript
(identifier_i) identifier_i
)subscript
(identifier_data) identifier_data
)attribute
(identifier_shape) identifier_shape
)attribute
(attribute
(attribute
(subscript
(subscript
(attribute
(identifier_new_net) identifier_new_net
(identifier_params) identifier_params
)attribute
(identifier_p_new) identifier_p_new
)subscript
(identifier_i) identifier_i
)subscript
(identifier_data) identifier_data
)attribute
(identifier_shape) identifier_shape
)attribute
)comparison_operator
(block
(print_statement
(string_'coercing') string_'coercing'
(identifier_p) identifier_p
(identifier_i) identifier_i
(string_'from') string_'from'
(attribute
(attribute
(subscript
(subscript
(attribute
(identifier_net) identifier_net
(identifier_params) identifier_params
)attribute
(identifier_p) identifier_p
)subscript
(identifier_i) identifier_i
)subscript
(identifier_data) identifier_data
)attribute
(identifier_shape) identifier_shape
)attribute
(string_'to') string_'to'
(attribute
(attribute
(subscript
(subscript
(attribute
(identifier_new_net) identifier_new_net
(identifier_params) identifier_params
)attribute
(identifier_p_new) identifier_p_new
)subscript
(identifier_i) identifier_i
)subscript
(identifier_data) identifier_data
)attribute
(identifier_shape) identifier_shape
)attribute
)print_statement
)block
(else_clause
(block
(print_statement
(string_'copying') string_'copying'
(identifier_p) identifier_p
(string_' -> ') string_' -> '
(identifier_p_new) identifier_p_new
(identifier_i) identifier_i
)print_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(attribute
(subscript
(subscript
(attribute
(identifier_new_net) identifier_new_net
(identifier_params) identifier_params
)attribute
(identifier_p_new) identifier_p_new
)subscript
(identifier_i) identifier_i
)subscript
(identifier_data) identifier_data
)attribute
(identifier_flat) identifier_flat
)attribute
(attribute
(attribute
(subscript
(subscript
(attribute
(identifier_net) identifier_net
(identifier_params) identifier_params
)attribute
(identifier_p) identifier_p
)subscript
(identifier_i) identifier_i
)subscript
(identifier_data) identifier_data
)attribute
(identifier_flat) identifier_flat
)attribute
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Transfer weights by copying matching parameters, coercing parameters of
incompatible shape, and dropping unmatched parameters.
The coercion is useful to convert fully connected layers to their
equivalent convolutional layers, since the weights are the same and only
the shapes are different. In particular, equivalent fully connected and
convolution layers have shapes O x I and O x I x H x W respectively for O
outputs channels, I input channels, H kernel height, and W kernel width.
Both `net` to `new_net` arguments must be instantiated `caffe.Net`s. |
(module
(function_definition
(function_name_get_filetypes_info) function_name_get_filetypes_info
(parameters
(default_parameter
(identifier_editor_quote) identifier_editor_quote
(string_"`") string_"`"
)default_parameter
(default_parameter
(identifier_flag_leaf) identifier_flag_leaf
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_NONE_REPL) identifier_NONE_REPL
(string_"") string_""
)assignment
)expression_statement
(import_statement
(dotted_name
(identifier_f311) identifier_f311
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_attr) identifier_attr
(call
(attribute
(identifier_f311) identifier_f311
(identifier_classes_file) identifier_classes_file
)attribute
(argument_list
(identifier_flag_leaf) identifier_flag_leaf
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_description) identifier_description
(call
(attribute
(identifier_a99) identifier_a99
(identifier_get_obj_doc0) identifier_get_obj_doc0
)attribute
(argument_list
(identifier_attr) identifier_attr
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_def_) identifier_def_
(conditional_expression
(identifier_NONE_REPL) identifier_NONE_REPL
(comparison_operator
(attribute
(identifier_attr) identifier_attr
(identifier_default_filename) identifier_default_filename
)attribute
(None) None
)comparison_operator
(attribute
(identifier_attr) identifier_attr
(identifier_default_filename) identifier_default_filename
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ee) identifier_ee
(attribute
(identifier_attr) identifier_attr
(identifier_editors) identifier_editors
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ee) identifier_ee
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ee) identifier_ee
(identifier_NONE_REPL) identifier_NONE_REPL
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ee) identifier_ee
(call
(attribute
(string_", ") string_", "
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(string_"{0}{1}{0}") string_"{0}{1}{0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_editor_quote) identifier_editor_quote
(identifier_x) identifier_x
(identifier_editor_quote) identifier_editor_quote
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_ee) identifier_ee
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_"description") string_"description"
(identifier_description) identifier_description
)pair
(pair
(string_"default_filename") string_"default_filename"
(identifier_def_) identifier_def_
)pair
(pair
(string_"classname") string_"classname"
(attribute
(identifier_attr) identifier_attr
(identifier___name__) identifier___name__
)attribute
)pair
(pair
(string_"editors") string_"editors"
(identifier_ee) identifier_ee
)pair
(pair
(string_"class") string_"class"
(identifier_attr) identifier_attr
)pair
(pair
(string_"txtbin") string_"txtbin"
(conditional_expression
(string_"text") string_"text"
(attribute
(identifier_attr) identifier_attr
(identifier_flag_txt) identifier_flag_txt
)attribute
(string_"binary") string_"binary"
)conditional_expression
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_x) identifier_x
(string_"description") string_"description"
)subscript
)lambda
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Reports available data types
Args:
editor_quote: character to enclose the name of the editor script between.
flag_leaf: see tabulate_filetypes_rest()
Returns:
list: list of FileTypeInfo |
(module
(function_definition
(function_name__initialize) function_name__initialize
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_resource_attributes) identifier_resource_attributes
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_APIResourceCollection) identifier_APIResourceCollection
(identifier_self) identifier_self
)argument_list
)call
(identifier__initialize) identifier__initialize
)attribute
(argument_list
(dictionary_splat
(identifier_resource_attributes) identifier_resource_attributes
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_dict_list) identifier_dict_list
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_resource) identifier_resource
(identifier_dict_list) identifier_dict_list
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__expected_api_resource) identifier__expected_api_resource
)attribute
(argument_list
(dictionary_splat
(identifier_resource) identifier_resource
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Initialize the collection.
:param resource_attributes: API resource parameters |
(module
(function_definition
(function_name_enclosure_groups) function_name_enclosure_groups
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier___enclosure_groups) identifier___enclosure_groups
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___enclosure_groups) identifier___enclosure_groups
)attribute
(call
(identifier_EnclosureGroups) identifier_EnclosureGroups
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___connection) identifier___connection
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier___enclosure_groups) identifier___enclosure_groups
)attribute
)return_statement
)block
)function_definition
)module | Gets the EnclosureGroups API client.
Returns:
EnclosureGroups: |
(module
(function_definition
(function_name_pix2sky) function_name_pix2sky
(parameters
(identifier_self) identifier_self
(identifier_pixel) identifier_pixel
)parameters
(block
(expression_statement
(assignment
(identifier_pixbox) identifier_pixbox
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(list
(identifier_pixel) identifier_pixel
(identifier_pixel) identifier_pixel
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_skybox) identifier_skybox
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wcs) identifier_wcs
)attribute
(identifier_all_pix2world) identifier_all_pix2world
)attribute
(argument_list
(identifier_pixbox) identifier_pixbox
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list
(call
(identifier_float) identifier_float
(argument_list
(subscript
(subscript
(identifier_skybox) identifier_skybox
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(subscript
(subscript
(identifier_skybox) identifier_skybox
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)argument_list
)call
)list
)return_statement
)block
)function_definition
)module | Get the sky coordinates for a given image pixel.
Parameters
----------
pixel : (float, float)
Image coordinates.
Returns
-------
ra,dec : float
Sky coordinates (degrees) |
(module
(function_definition
(function_name__format_keyword) function_name__format_keyword
(parameters
(identifier_self) identifier_self
(identifier_keyword) identifier_keyword
)parameters
(block
(import_statement
(dotted_name
(identifier_re) identifier_re
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(string_'') string_''
)assignment
)expression_statement
(if_statement
(identifier_keyword) identifier_keyword
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r"\W") string_r"\W"
(string_"") string_""
(identifier_keyword) identifier_keyword
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r"_") string_r"_"
(string_"") string_""
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Removing special character from a keyword. Analysis Services must have
this kind of keywords. E.g. if assay name from GeneXpert Instrument is
'Ebola RUO', an AS must be created on Bika with the keyword 'EbolaRUO' |
(module
(function_definition
(function_name_from_flags) function_name_from_flags
(parameters
(identifier_flags) identifier_flags
(identifier_ednsflags) identifier_ednsflags
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_flags) identifier_flags
(integer_0x000f) integer_0x000f
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_ednsflags) identifier_ednsflags
(integer_20) integer_20
)binary_operator
)parenthesized_expression
(integer_0xff0) integer_0xff0
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(integer_4095) integer_4095
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'rcode must be >= 0 and <= 4095') string_'rcode must be >= 0 and <= 4095'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Return the rcode value encoded by flags and ednsflags.
@param flags: the DNS flags
@type flags: int
@param ednsflags: the EDNS flags
@type ednsflags: int
@raises ValueError: rcode is < 0 or > 4095
@rtype: int |
(module
(function_definition
(function_name_science_object_update) function_name_science_object_update
(parameters
(identifier_self) identifier_self
(identifier_pid_old) identifier_pid_old
(identifier_path) identifier_path
(identifier_pid_new) identifier_pid_new
(default_parameter
(identifier_format_id) identifier_format_id
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__queue_science_object_update) identifier__queue_science_object_update
)attribute
(argument_list
(identifier_pid_old) identifier_pid_old
(identifier_path) identifier_path
(identifier_pid_new) identifier_pid_new
(identifier_format_id) identifier_format_id
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Obsolete a Science Object on a Member Node with a different one. |
(module
(function_definition
(function_name_validate_timeout_or_zero) function_name_validate_timeout_or_zero
(parameters
(identifier_option) identifier_option
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ConfigurationError) identifier_ConfigurationError
(argument_list
(binary_operator
(string_"%s cannot be None") string_"%s cannot be None"
(tuple
(identifier_option) identifier_option
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(string_"0") string_"0"
)comparison_operator
)boolean_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(call
(identifier_validate_positive_float) identifier_validate_positive_float
(argument_list
(identifier_option) identifier_option
(identifier_value) identifier_value
)argument_list
)call
(float_1000.0) float_1000.0
)binary_operator
)return_statement
)block
)function_definition
)module | Validates a timeout specified in milliseconds returning
a value in floating point seconds for the case where None is an error
and 0 is valid. Setting the timeout to nothing in the URI string is a
config error. |
(module
(function_definition
(function_name_resample_multipitch) function_name_resample_multipitch
(parameters
(identifier_times) identifier_times
(identifier_frequencies) identifier_frequencies
(identifier_target_times) identifier_target_times
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_target_times) identifier_target_times
(identifier_size) identifier_size
)attribute
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_times) identifier_times
(identifier_size) identifier_size
)attribute
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(binary_operator
(list
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
)list
)argument_list
)call
)list
(call
(identifier_len) identifier_len
(argument_list
(identifier_target_times) identifier_target_times
)argument_list
)call
)binary_operator
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_n_times) identifier_n_times
(call
(identifier_len) identifier_len
(argument_list
(identifier_frequencies) identifier_frequencies
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_frequency_index) identifier_frequency_index
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(integer_0) integer_0
(identifier_n_times) identifier_n_times
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_frequency_index) identifier_new_frequency_index
(call
(call
(attribute
(attribute
(identifier_scipy) identifier_scipy
(identifier_interpolate) identifier_interpolate
)attribute
(identifier_interp1d) identifier_interp1d
)attribute
(argument_list
(identifier_times) identifier_times
(identifier_frequency_index) identifier_frequency_index
(keyword_argument
(identifier_kind) identifier_kind
(string_'nearest') string_'nearest'
)keyword_argument
(keyword_argument
(identifier_bounds_error) identifier_bounds_error
(False) False
)keyword_argument
(keyword_argument
(identifier_assume_sorted) identifier_assume_sorted
(True) True
)keyword_argument
(keyword_argument
(identifier_fill_value) identifier_fill_value
(identifier_n_times) identifier_n_times
)keyword_argument
)argument_list
)call
(argument_list
(identifier_target_times) identifier_target_times
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_freq_vals) identifier_freq_vals
(binary_operator
(identifier_frequencies) identifier_frequencies
(list
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
)list
)argument_list
)call
)list
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_frequencies_resampled) identifier_frequencies_resampled
(list_comprehension
(subscript
(identifier_freq_vals) identifier_freq_vals
(identifier_i) identifier_i
)subscript
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(identifier_new_frequency_index) identifier_new_frequency_index
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_int) identifier_int
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_frequencies_resampled) identifier_frequencies_resampled
)return_statement
)block
)function_definition
)module | Resamples multipitch time series to a new timescale. Values in
``target_times`` outside the range of ``times`` return no pitch estimate.
Parameters
----------
times : np.ndarray
Array of time stamps
frequencies : list of np.ndarray
List of np.ndarrays of frequency values
target_times : np.ndarray
Array of target time stamps
Returns
-------
frequencies_resampled : list of numpy arrays
Frequency list of lists resampled to new timebase |
(module
(function_definition
(function_name_run_nupack) function_name_run_nupack
(parameters
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(assignment
(identifier_run) identifier_run
(call
(identifier_NUPACK) identifier_NUPACK
(argument_list
(subscript
(identifier_kwargs) identifier_kwargs
(string_'seq') string_'seq'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_run) identifier_run
(subscript
(identifier_kwargs) identifier_kwargs
(string_'cmd') string_'cmd'
)subscript
)argument_list
)call
(argument_list
(dictionary_splat
(subscript
(identifier_kwargs) identifier_kwargs
(string_'arguments') string_'arguments'
)subscript
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Run picklable Nupack command.
:param kwargs: keyword arguments to pass to Nupack as well as 'cmd'.
:returns: Variable - whatever `cmd` returns. |
(module
(function_definition
(function_name_allState) function_name_allState
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__makeApiCall) identifier__makeApiCall
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_funcinfo) identifier_funcinfo
)attribute
(string_"allState") string_"allState"
)subscript
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | List out the entire internal state
This method is only for debugging the ec2-manager
This method is ``experimental`` |
(module
(function_definition
(function_name_source_extraction) function_name_source_extraction
(parameters
(identifier_in1) identifier_in1
(identifier_tolerance) identifier_tolerance
(default_parameter
(identifier_mode) identifier_mode
(string_"cpu") string_"cpu"
)default_parameter
(default_parameter
(identifier_store_on_gpu) identifier_store_on_gpu
(False) False
)default_parameter
(default_parameter
(identifier_neg_comp) identifier_neg_comp
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(string_"cpu") string_"cpu"
)comparison_operator
(block
(return_statement
(call
(identifier_cpu_source_extraction) identifier_cpu_source_extraction
(argument_list
(identifier_in1) identifier_in1
(identifier_tolerance) identifier_tolerance
(identifier_neg_comp) identifier_neg_comp
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_mode) identifier_mode
(string_"gpu") string_"gpu"
)comparison_operator
(block
(return_statement
(call
(identifier_gpu_source_extraction) identifier_gpu_source_extraction
(argument_list
(identifier_in1) identifier_in1
(identifier_tolerance) identifier_tolerance
(identifier_store_on_gpu) identifier_store_on_gpu
(identifier_neg_comp) identifier_neg_comp
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Convenience function for allocating work to cpu or gpu, depending on the selected mode.
INPUTS:
in1 (no default): Array containing the wavelet decomposition.
tolerance (no default): Percentage of maximum coefficient at which objects are deemed significant.
mode (default="cpu"):Mode of operation - either "gpu" or "cpu".
OUTPUTS:
Array containing the significant wavelet coefficients of extracted sources. |
(module
(function_definition
(function_name_relativize_classpath) function_name_relativize_classpath
(parameters
(identifier_classpath) identifier_classpath
(identifier_root_dir) identifier_root_dir
(default_parameter
(identifier_followlinks) identifier_followlinks
(True) True
)default_parameter
)parameters
(block
(function_definition
(function_name_relativize_url) function_name_relativize_url
(parameters
(identifier_url) identifier_url
(identifier_root_dir) identifier_root_dir
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(conditional_expression
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
(identifier_followlinks) identifier_followlinks
(identifier_url) identifier_url
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_root_dir) identifier_root_dir
(conditional_expression
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier_root_dir) identifier_root_dir
)argument_list
)call
(identifier_followlinks) identifier_followlinks
(identifier_root_dir) identifier_root_dir
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url_in_bundle) identifier_url_in_bundle
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_root_dir) identifier_root_dir
)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_url) identifier_url
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_url_in_bundle) identifier_url_in_bundle
(string_'/') string_'/'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_url_in_bundle) identifier_url_in_bundle
)return_statement
)block
)function_definition
(return_statement
(list_comprehension
(call
(identifier_relativize_url) identifier_relativize_url
(argument_list
(identifier_url) identifier_url
(identifier_root_dir) identifier_root_dir
)argument_list
)call
(for_in_clause
(identifier_url) identifier_url
(identifier_classpath) identifier_classpath
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Convert into classpath relative to a directory.
This is eventually used by a jar file located in this directory as its manifest
attribute Class-Path. See
https://docs.oracle.com/javase/7/docs/technotes/guides/extensions/spec.html#bundled
:param list classpath: Classpath to be relativized.
:param string root_dir: directory to relativize urls in the classpath, does not
have to exist yet.
:param bool followlinks: whether to follow symlinks to calculate relative path.
:returns: Converted classpath of the same size as input classpath.
:rtype: list of strings |
(module
(function_definition
(function_name_condition_details_has_owner) function_name_condition_details_has_owner
(parameters
(identifier_condition_details) identifier_condition_details
(identifier_owner) identifier_owner
)parameters
(block
(if_statement
(comparison_operator
(string_'subconditions') string_'subconditions'
(identifier_condition_details) identifier_condition_details
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_condition_details_has_owner) identifier_condition_details_has_owner
(argument_list
(subscript
(identifier_condition_details) identifier_condition_details
(string_'subconditions') string_'subconditions'
)subscript
(identifier_owner) identifier_owner
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_result) identifier_result
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_condition_details) identifier_condition_details
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_subcondition) identifier_subcondition
(identifier_condition_details) identifier_condition_details
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_condition_details_has_owner) identifier_condition_details_has_owner
(argument_list
(identifier_subcondition) identifier_subcondition
(identifier_owner) identifier_owner
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_result) identifier_result
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'public_key') string_'public_key'
(identifier_condition_details) identifier_condition_details
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_owner) identifier_owner
(subscript
(identifier_condition_details) identifier_condition_details
(string_'public_key') string_'public_key'
)subscript
)comparison_operator
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check if the public_key of owner is in the condition details
as an Ed25519Fulfillment.public_key
Args:
condition_details (dict): dict with condition details
owner (str): base58 public key of owner
Returns:
bool: True if the public key is found in the condition details, False otherwise |
(module
(function_definition
(function_name_request) function_name_request
(parameters
(identifier_community_id) identifier_community_id
(identifier_record_id) identifier_record_id
(identifier_accept) identifier_accept
)parameters
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_Community) identifier_Community
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_community_id) identifier_community_id
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_c) identifier_c
(None) None
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_record) identifier_record
(call
(attribute
(identifier_Record) identifier_Record
(identifier_get_record) identifier_get_record
)attribute
(argument_list
(identifier_record_id) identifier_record_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_accept) identifier_accept
(block
(expression_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_add_record) identifier_add_record
)attribute
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_record) identifier_record
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_InclusionRequest) identifier_InclusionRequest
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_community) identifier_community
(identifier_c) identifier_c
)keyword_argument
(keyword_argument
(identifier_record) identifier_record
(identifier_record) identifier_record
)keyword_argument
(keyword_argument
(identifier_notify) identifier_notify
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_RecordIndexer) identifier_RecordIndexer
(argument_list
)argument_list
)call
(identifier_index_by_id) identifier_index_by_id
)attribute
(argument_list
(attribute
(identifier_record) identifier_record
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Request a record acceptance to a community. |
(module
(function_definition
(function_name__init_relationships) function_name__init_relationships
(parameters
(identifier_self) identifier_self
(identifier_relationships_arg) identifier_relationships_arg
)parameters
(block
(if_statement
(identifier_relationships_arg) identifier_relationships_arg
(block
(expression_statement
(assignment
(identifier_relationships_all) identifier_relationships_all
(call
(attribute
(identifier_self) identifier_self
(identifier__get_all_relationships) identifier__get_all_relationships
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_relationships_arg) identifier_relationships_arg
(True) True
)comparison_operator
(block
(return_statement
(identifier_relationships_all) identifier_relationships_all
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_relationships_all) identifier_relationships_all
(identifier_intersection) identifier_intersection
)attribute
(argument_list
(identifier_relationships_arg) identifier_relationships_arg
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a set of relationships found in all subset GO Terms. |
(module
(function_definition
(function_name_load_each) function_name_load_each
(parameters
(list_splat_pattern
(identifier_loaders) identifier_loaders
)list_splat_pattern
)parameters
(block
(function_definition
(function_name__load_each) function_name__load_each
(parameters
(identifier_metadata) identifier_metadata
)parameters
(block
(return_statement
(call
(identifier_merge) identifier_merge
(generator_expression
(call
(identifier_loader) identifier_loader
(argument_list
(identifier_metadata) identifier_metadata
)argument_list
)call
(for_in_clause
(identifier_loader) identifier_loader
(identifier_loaders) identifier_loaders
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
(return_statement
(identifier__load_each) identifier__load_each
)return_statement
)block
)function_definition
)module | Loader factory that combines a series of loaders. |
(module
(function_definition
(function_name_is_ancestor) function_name_is_ancestor
(parameters
(identifier_self) identifier_self
(identifier_commit1) identifier_commit1
(identifier_commit2) identifier_commit2
(default_parameter
(identifier_patch) identifier_patch
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_hg) identifier_hg
)attribute
(argument_list
(string_"log") string_"log"
(string_"-r") string_"-r"
(binary_operator
(string_"first(%s::%s)") string_"first(%s::%s)"
(tuple
(identifier_commit1) identifier_commit1
(identifier_commit2) identifier_commit2
)tuple
)binary_operator
(string_"--template") string_"--template"
(string_"exists") string_"exists"
(keyword_argument
(identifier_patch) identifier_patch
(identifier_patch) identifier_patch
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(string_"exists") string_"exists"
(identifier_result) identifier_result
)comparison_operator
)return_statement
)block
)function_definition
)module | Returns True if commit1 is a direct ancestor of commit2, or False
otherwise.
This method considers a commit to be a direct ancestor of itself |
(module
(function_definition
(function_name_upload) function_name_upload
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_engine) identifier_engine
(default_parameter
(identifier_description) identifier_description
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_description) identifier_description
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_head) identifier_head
(identifier_tail) identifier_tail
)pattern_list
(call
(attribute
(identifier_ntpath) identifier_ntpath
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_description) identifier_description
(boolean_operator
(identifier_tail) identifier_tail
(call
(attribute
(identifier_ntpath) identifier_ntpath
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_head) identifier_head
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"http://quickslice.{}/config/raw/") string_"http://quickslice.{}/config/raw/"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_host) identifier_host
)attribute
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(as_pattern_target
(identifier_config_file) identifier_config_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_config_file) identifier_config_file
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_"engine") string_"engine"
(identifier_engine) identifier_engine
)pair
(pair
(string_"description") string_"description"
(identifier_description) identifier_description
)pair
(pair
(string_"content") string_"content"
(identifier_content) identifier_content
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_post_resp) identifier_post_resp
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_json) identifier_json
(identifier_payload) identifier_payload
)keyword_argument
(keyword_argument
(identifier_cookies) identifier_cookies
(dictionary
(pair
(string_"session") string_"session"
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_post_resp) identifier_post_resp
(identifier_ok) identifier_ok
)attribute
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_ResourceError) identifier_ResourceError
)attribute
(argument_list
(string_"config upload to slicing service failed") string_"config upload to slicing service failed"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_description) identifier_description
)attribute
(identifier_description) identifier_description
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(subscript
(attribute
(identifier_post_resp) identifier_post_resp
(identifier_headers) identifier_headers
)attribute
(string_"Location") string_"Location"
)subscript
)assignment
)expression_statement
)block
)function_definition
)module | Create a new config resource in the slicing service and upload the path contents to it |
(module
(function_definition
(function_name_scan) function_name_scan
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filetypes) identifier_filetypes
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Scanning FS content.") string_"Scanning FS content."
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_checksums) identifier_checksums
(call
(attribute
(identifier_self) identifier_self
(identifier_filetype_filter) identifier_filetype_filter
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__filesystem) identifier__filesystem
)attribute
(identifier_checksums) identifier_checksums
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(keyword_argument
(identifier_filetypes) identifier_filetypes
(identifier_filetypes) identifier_filetypes
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Querying %d objects to VTotal.") string_"Querying %d objects to VTotal."
(call
(identifier_len) identifier_len
(argument_list
(identifier_checksums) identifier_checksums
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_files) identifier_files
(call
(identifier_chunks) identifier_chunks
(argument_list
(identifier_checksums) identifier_checksums
(keyword_argument
(identifier_size) identifier_size
(attribute
(identifier_self) identifier_self
(identifier_batchsize) identifier_batchsize
)attribute
)keyword_argument
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(identifier_dict) identifier_dict
(argument_list
(generator_expression
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(for_in_clause
(identifier_e) identifier_e
(identifier_files) identifier_files
)for_in_clause
)generator_expression
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_vtquery) identifier_vtquery
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__apikey) identifier__apikey
)attribute
(call
(attribute
(identifier_files) identifier_files
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_response) identifier_parse_response
)attribute
(argument_list
(identifier_files) identifier_files
(identifier_response) identifier_response
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Iterates over the content of the disk and queries VirusTotal
to determine whether it's malicious or not.
filetypes is a list containing regular expression patterns.
If given, only the files which type will match with one or more of
the given patterns will be queried against VirusTotal.
For each file which is unknown by VT or positive to any of its engines,
the method yields a namedtuple:
VTReport(path -> C:\\Windows\\System32\\infected.dll
hash -> ab231...
detections) -> dictionary engine -> detection
Files unknown by VirusTotal will contain the string 'unknown'
in the detection field. |
(module
(function_definition
(function_name_json_description_metadata) function_name_json_description_metadata
(parameters
(identifier_description) identifier_description
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_description) identifier_description
(slice
(colon) colon
(integer_6) integer_6
)slice
)subscript
(string_'shape=') string_'shape='
)comparison_operator
(block
(expression_statement
(assignment
(identifier_shape) identifier_shape
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_int) identifier_int
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(subscript
(identifier_description) identifier_description
(slice
(integer_7) integer_7
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_shape) identifier_shape
(identifier_shape) identifier_shape
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_description) identifier_description
(slice
(colon) colon
(integer_1) integer_1
)slice
)subscript
(string_'{') string_'{'
)comparison_operator
(comparison_operator
(subscript
(identifier_description) identifier_description
(slice
(unary_operator
(integer_1) integer_1
)unary_operator
(colon) colon
)slice
)subscript
(string_'}') string_'}'
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_description) identifier_description
)argument_list
)call
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'invalid JSON image description') string_'invalid JSON image description'
(identifier_description) identifier_description
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Return metatata from JSON formated image description as dict.
Raise ValuError if description is of unknown format.
>>> description = '{"shape": [256, 256, 3], "axes": "YXS"}'
>>> json_description_metadata(description) # doctest: +SKIP
{'shape': [256, 256, 3], 'axes': 'YXS'}
>>> json_description_metadata('shape=(256, 256, 3)')
{'shape': (256, 256, 3)} |
(module
(function_definition
(function_name_get_bridges) function_name_get_bridges
(parameters
(default_parameter
(identifier_vnic_dir) identifier_vnic_dir
(string_'/sys/devices/virtual/net') string_'/sys/devices/virtual/net'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_b_regex) identifier_b_regex
(binary_operator
(string_"%s/*/bridge") string_"%s/*/bridge"
(identifier_vnic_dir) identifier_vnic_dir
)binary_operator
)assignment
)expression_statement
(return_statement
(list_comprehension
(subscript
(call
(attribute
(call
(attribute
(identifier_x) identifier_x
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_vnic_dir) identifier_vnic_dir
(string_'') string_''
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(integer_1) integer_1
)subscript
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_glob) identifier_glob
(identifier_glob) identifier_glob
)attribute
(argument_list
(identifier_b_regex) identifier_b_regex
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of bridges on the system. |
(module
(function_definition
(function_name__parse_args) function_name__parse_args
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier_parser) identifier_parser
)attribute
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentParser) identifier_ArgumentParser
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_parser) identifier_parser
)attribute
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"symbol") string_"symbol"
(keyword_argument
(identifier_help) identifier_help
(string_"Symbol for horizontal line") string_"Symbol for horizontal line"
)keyword_argument
(keyword_argument
(identifier_nargs) identifier_nargs
(string_"*") string_"*"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_parser) identifier_parser
)attribute
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--color") string_"--color"
(string_"-c") string_"-c"
(keyword_argument
(identifier_help) identifier_help
(string_"Color of the line") string_"Color of the line"
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(None) None
)keyword_argument
(keyword_argument
(identifier_nargs) identifier_nargs
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_parser) identifier_parser
)attribute
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--version") string_"--version"
(string_"-v") string_"-v"
(keyword_argument
(identifier_action) identifier_action
(string_"version") string_"version"
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(string_"0.13") string_"0.13"
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_cls) identifier_cls
(identifier_parser) identifier_parser
)attribute
)return_statement
)block
)function_definition
)module | Method to parse command line arguments |
(module
(function_definition
(function_name_scene_command) function_name_scene_command
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_"scene_command: Group %s Command %s") string_"scene_command: Group %s Command %s"
(attribute
(identifier_self) identifier_self
(identifier_group_id) identifier_group_id
)attribute
(identifier_command) identifier_command
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_command_url) identifier_command_url
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_hub) identifier_hub
)attribute
(identifier_hub_url) identifier_hub_url
)attribute
(string_'/0?') string_'/0?'
)binary_operator
(identifier_command) identifier_command
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_group_id) identifier_group_id
)attribute
)binary_operator
(string_"=I=0") string_"=I=0"
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_hub) identifier_hub
)attribute
(identifier_post_direct_command) identifier_post_direct_command
)attribute
(argument_list
(identifier_command_url) identifier_command_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Wrapper to send posted scene command and get response |
(module
(function_definition
(function_name_addResource) function_name_addResource
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_filePath) identifier_filePath
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_root) identifier_root
)attribute
(string_"/addresource") string_"/addresource"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"f") string_"f"
(string_"json") string_"json"
)pair
(pair
(string_"token") string_"token"
(attribute
(attribute
(identifier_self) identifier_self
(identifier__securityHandler) identifier__securityHandler
)attribute
(identifier_token) identifier_token
)attribute
)pair
(pair
(string_"key") string_"key"
(identifier_key) identifier_key
)pair
(pair
(string_"text") string_"text"
(identifier_text) identifier_text
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_files) identifier_files
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_files) identifier_files
(string_'file') string_'file'
)subscript
(identifier_filePath) identifier_filePath
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_param_dict) identifier_param_dict
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_files) identifier_files
(identifier_files) identifier_files
)keyword_argument
(keyword_argument
(identifier_securityHandler) identifier_securityHandler
(attribute
(identifier_self) identifier_self
(identifier__securityHandler) identifier__securityHandler
)attribute
)keyword_argument
(keyword_argument
(identifier_proxy_url) identifier_proxy_url
(attribute
(identifier_self) identifier_self
(identifier__proxy_url) identifier__proxy_url
)attribute
)keyword_argument
(keyword_argument
(identifier_proxy_port) identifier_proxy_port
(attribute
(identifier_self) identifier_self
(identifier__proxy_port) identifier__proxy_port
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | The add resource operation allows the administrator to add a file
resource, for example, the organization's logo or custom banner.
The resource can be used by any member of the organization. File
resources use storage space from your quota and are scanned for
viruses.
Inputs:
key - The name the resource should be stored under.
filePath - path of file to upload
text - Some text to be written (for example, JSON or JavaScript)
directly to the resource from a web client. |
(module
(function_definition
(function_name_populateFromDirectory) function_name_populateFromDirectory
(parameters
(identifier_self) identifier_self
(identifier_vcfDirectory) identifier_vcfDirectory
)parameters
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_vcfDirectory) identifier_vcfDirectory
(string_"*.vcf.gz") string_"*.vcf.gz"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dataFiles) identifier_dataFiles
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_indexFiles) identifier_indexFiles
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_vcfFile) identifier_vcfFile
(call
(attribute
(identifier_glob) identifier_glob
(identifier_glob) identifier_glob
)attribute
(argument_list
(identifier_pattern) identifier_pattern
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_dataFiles) identifier_dataFiles
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_vcfFile) identifier_vcfFile
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_indexFiles) identifier_indexFiles
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(identifier_vcfFile) identifier_vcfFile
(string_".tbi") string_".tbi"
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_populateFromFile) identifier_populateFromFile
)attribute
(argument_list
(identifier_dataFiles) identifier_dataFiles
(identifier_indexFiles) identifier_indexFiles
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Populates this VariantSet by examing all the VCF files in the
specified directory. This is mainly used for as a convenience
for testing purposes. |
(module
(function_definition
(function_name_end_profiling) function_name_end_profiling
(parameters
(identifier_profiler) identifier_profiler
(identifier_filename) identifier_filename
(default_parameter
(identifier_sorting) identifier_sorting
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_profiler) identifier_profiler
(identifier_disable) identifier_disable
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_six) identifier_six
(identifier_StringIO) identifier_StringIO
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ps) identifier_ps
(call
(attribute
(call
(attribute
(identifier_pstats) identifier_pstats
(identifier_Stats) identifier_Stats
)attribute
(argument_list
(identifier_profiler) identifier_profiler
(keyword_argument
(identifier_stream) identifier_stream
(identifier_s) identifier_s
)keyword_argument
)argument_list
)call
(identifier_sort_stats) identifier_sort_stats
)attribute
(argument_list
(identifier_sorting) identifier_sorting
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ps) identifier_ps
(identifier_print_stats) identifier_print_stats
)attribute
(argument_list
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_"w+") string_"w+"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"[calculate_ts_features] Finished profiling of time series feature extraction") string_"[calculate_ts_features] Finished profiling of time series feature extraction"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_s) identifier_s
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Helper function to stop the profiling process and write out the profiled
data into the given filename. Before this, sort the stats by the passed sorting.
:param profiler: An already started profiler (probably by start_profiling).
:type profiler: cProfile.Profile
:param filename: The name of the output file to save the profile.
:type filename: basestring
:param sorting: The sorting of the statistics passed to the sort_stats function.
:type sorting: basestring
:return: None
:rtype: None
Start and stop the profiler with:
>>> profiler = start_profiling()
>>> # Do something you want to profile
>>> end_profiling(profiler, "out.txt", "cumulative") |
(module
(function_definition
(function_name_init_types_collection) function_name_init_types_collection
(parameters
(default_parameter
(identifier_filter_filename) identifier_filter_filename
(identifier_default_filter_filename) identifier_default_filter_filename
)default_parameter
)parameters
(block
(global_statement
(identifier__filter_filename) identifier__filter_filename
)global_statement
(expression_statement
(assignment
(identifier__filter_filename) identifier__filter_filename
(identifier_filter_filename) identifier_filter_filename
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_setprofile) identifier_setprofile
)attribute
(argument_list
(identifier__trace_dispatch) identifier__trace_dispatch
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_threading) identifier_threading
(identifier_setprofile) identifier_setprofile
)attribute
(argument_list
(identifier__trace_dispatch) identifier__trace_dispatch
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Setup profiler hooks to enable type collection.
Call this one time from the main thread.
The optional argument is a filter that maps a filename (from
code.co_filename) to either a normalized filename or None.
For the default filter see default_filter_filename(). |
(module
(function_definition
(function_name__cleanup_api) function_name__cleanup_api
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_resources) identifier_resources
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'boto_apigateway.describe_api_resources') string_'boto_apigateway.describe_api_resources'
)subscript
(argument_list
(keyword_argument
(identifier_restApiId) identifier_restApiId
(attribute
(identifier_self) identifier_self
(identifier_restApiId) identifier_restApiId
)attribute
)keyword_argument
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__common_aws_args) identifier__common_aws_args
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_resources) identifier_resources
(identifier_get) identifier_get
)attribute
(argument_list
(string_'resources') string_'resources'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(subscript
(call
(attribute
(identifier_resources) identifier_resources
(identifier_get) identifier_get
)attribute
(argument_list
(string_'resources') string_'resources'
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_resource) identifier_resource
(identifier_res) identifier_res
(block
(expression_statement
(assignment
(identifier_delres) identifier_delres
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'boto_apigateway.delete_api_resources') string_'boto_apigateway.delete_api_resources'
)subscript
(argument_list
(keyword_argument
(identifier_restApiId) identifier_restApiId
(attribute
(identifier_self) identifier_self
(identifier_restApiId) identifier_restApiId
)attribute
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(call
(attribute
(identifier_resource) identifier_resource
(identifier_get) identifier_get
)attribute
(argument_list
(string_'path') string_'path'
)argument_list
)call
)keyword_argument
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__common_aws_args) identifier__common_aws_args
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_delres) identifier_delres
(identifier_get) identifier_get
)attribute
(argument_list
(string_'deleted') string_'deleted'
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_delres) identifier_delres
)return_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_models) identifier_models
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'boto_apigateway.describe_api_models') string_'boto_apigateway.describe_api_models'
)subscript
(argument_list
(keyword_argument
(identifier_restApiId) identifier_restApiId
(attribute
(identifier_self) identifier_self
(identifier_restApiId) identifier_restApiId
)attribute
)keyword_argument
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__common_aws_args) identifier__common_aws_args
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_models) identifier_models
(identifier_get) identifier_get
)attribute
(argument_list
(string_'models') string_'models'
)argument_list
)call
(block
(for_statement
(identifier_model) identifier_model
(call
(attribute
(identifier_models) identifier_models
(identifier_get) identifier_get
)attribute
(argument_list
(string_'models') string_'models'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_delres) identifier_delres
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'boto_apigateway.delete_api_model') string_'boto_apigateway.delete_api_model'
)subscript
(argument_list
(keyword_argument
(identifier_restApiId) identifier_restApiId
(attribute
(identifier_self) identifier_self
(identifier_restApiId) identifier_restApiId
)attribute
)keyword_argument
(keyword_argument
(identifier_modelName) identifier_modelName
(call
(attribute
(identifier_model) identifier_model
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
)keyword_argument
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__common_aws_args) identifier__common_aws_args
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_delres) identifier_delres
(identifier_get) identifier_get
)attribute
(argument_list
(string_'deleted') string_'deleted'
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_delres) identifier_delres
)return_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(dictionary
(pair
(string_'deleted') string_'deleted'
(True) True
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Helper method to clean up resources and models if we detected a change in the swagger file
for a stage |
(module
(function_definition
(function_name_add_contact_to_group) function_name_add_contact_to_group
(parameters
(identifier_self) identifier_self
(identifier_contact) identifier_contact
(identifier_group) identifier_group
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_contact) identifier_contact
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_contact) identifier_contact
(call
(attribute
(identifier_self) identifier_self
(identifier_get_contact) identifier_get_contact
)attribute
(argument_list
(identifier_contact) identifier_contact
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_group) identifier_group
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_group) identifier_group
(call
(attribute
(identifier_self) identifier_self
(identifier_get_group) identifier_get_group
)attribute
(argument_list
(identifier_group) identifier_group
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_method) identifier_method
(identifier_url) identifier_url
)pattern_list
(call
(identifier_get_URL) identifier_get_URL
(argument_list
(string_'contacts_add_to_group') string_'contacts_add_to_group'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'apikey') string_'apikey'
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'apikey') string_'apikey'
)argument_list
)call
)pair
(pair
(string_'logintoken') string_'logintoken'
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_cookies) identifier_cookies
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'logintoken') string_'logintoken'
)argument_list
)call
)pair
(pair
(string_'contactid') string_'contactid'
(subscript
(identifier_contact) identifier_contact
(string_'contactid') string_'contactid'
)subscript
)pair
(pair
(string_'contactgroupid') string_'contactgroupid'
(subscript
(identifier_group) identifier_group
(string_'contactgroupid') string_'contactgroupid'
)subscript
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_method) identifier_method
)argument_list
)call
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_params) identifier_params
(identifier_payload) identifier_payload
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_res) identifier_res
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(call
(identifier_hellraiser) identifier_hellraiser
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add contact to group
:param contact: name or contact object
:param group: name or group object
:type contact: ``str``, ``unicode``, ``dict``
:type group: ``str``, ``unicode``, ``dict``
:rtype: ``bool`` |
(module
(function_definition
(function_name_is_expired) function_name_is_expired
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_time_offset_seconds) identifier_time_offset_seconds
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_time_offset_seconds) identifier_time_offset_seconds
(block
(expression_statement
(assignment
(identifier_now) identifier_now
(binary_operator
(identifier_now) identifier_now
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_seconds) identifier_seconds
(identifier_time_offset_seconds) identifier_time_offset_seconds
)keyword_argument
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ts) identifier_ts
(call
(attribute
(attribute
(identifier_boto) identifier_boto
(identifier_utils) identifier_utils
)attribute
(identifier_parse_ts) identifier_parse_ts
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_expiration) identifier_expiration
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta) identifier_delta
(binary_operator
(identifier_ts) identifier_ts
(identifier_now) identifier_now
)binary_operator
)assignment
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_delta) identifier_delta
(identifier_total_seconds) identifier_total_seconds
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)return_statement
)block
)function_definition
)module | Checks to see if the Session Token is expired or not. By default
it will check to see if the Session Token is expired as of the
moment the method is called. However, you can supply an
optional parameter which is the number of seconds of offset
into the future for the check. For example, if you supply
a value of 5, this method will return a True if the Session
Token will be expired 5 seconds from this moment.
:type time_offset_seconds: int
:param time_offset_seconds: The number of seconds into the future
to test the Session Token for expiration. |
(module
(function_definition
(function_name_update_not_existing_kwargs) function_name_update_not_existing_kwargs
(parameters
(identifier_to_update) identifier_to_update
(identifier_update_from) identifier_update_from
)parameters
(block
(if_statement
(comparison_operator
(identifier_to_update) identifier_to_update
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_to_update) identifier_to_update
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_to_update) identifier_to_update
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(identifier_v) identifier_v
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_update_from) identifier_update_from
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_k) identifier_k
(identifier_to_update) identifier_to_update
)comparison_operator
)if_clause
)dictionary_comprehension
)argument_list
)call
)expression_statement
(return_statement
(identifier_to_update) identifier_to_update
)return_statement
)block
)function_definition
)module | This function updates the keyword aguments from update_from in
to_update, only if the keys are not set in to_update.
This is used for updated kwargs from the default dicts. |
(module
(function_definition
(function_name_from_interbase_coordinates) function_name_from_interbase_coordinates
(parameters
(identifier_contig) identifier_contig
(identifier_start) identifier_start
(default_parameter
(identifier_end) identifier_end
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_typechecks) identifier_typechecks
(identifier_require_string) identifier_require_string
)attribute
(argument_list
(identifier_contig) identifier_contig
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_typechecks) identifier_typechecks
(identifier_require_integer) identifier_require_integer
)attribute
(argument_list
(identifier_start) identifier_start
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_end) identifier_end
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_end) identifier_end
(binary_operator
(identifier_start) identifier_start
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_typechecks) identifier_typechecks
(identifier_require_integer) identifier_require_integer
)attribute
(argument_list
(identifier_end) identifier_end
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_contig) identifier_contig
(call
(attribute
(attribute
(identifier_pyensembl) identifier_pyensembl
(identifier_locus) identifier_locus
)attribute
(identifier_normalize_chromosome) identifier_normalize_chromosome
)attribute
(argument_list
(identifier_contig) identifier_contig
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Locus) identifier_Locus
(argument_list
(identifier_contig) identifier_contig
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given coordinates in 0-based interbase coordinates, return a Locus
instance. |
(module
(function_definition
(function_name__update_port_locations) function_name__update_port_locations
(parameters
(identifier_self) identifier_self
(identifier_initial_coordinates) identifier_initial_coordinates
)parameters
(block
(expression_statement
(assignment
(identifier_particles) identifier_particles
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_particles) identifier_particles
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_port) identifier_port
(call
(attribute
(identifier_self) identifier_self
(identifier_all_ports) identifier_all_ports
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(attribute
(identifier_port) identifier_port
(identifier_anchor) identifier_anchor
)attribute
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(call
(attribute
(identifier_particles) identifier_particles
(identifier_index) identifier_index
)attribute
(argument_list
(attribute
(identifier_port) identifier_port
(identifier_anchor) identifier_anchor
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_shift) identifier_shift
(binary_operator
(attribute
(subscript
(identifier_particles) identifier_particles
(identifier_idx) identifier_idx
)subscript
(identifier_pos) identifier_pos
)attribute
(subscript
(identifier_initial_coordinates) identifier_initial_coordinates
(identifier_idx) identifier_idx
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_port) identifier_port
(identifier_translate) identifier_translate
)attribute
(argument_list
(identifier_shift) identifier_shift
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Adjust port locations after particles have moved
Compares the locations of Particles between 'self' and an array of
reference coordinates. Shifts Ports in accordance with how far anchors
have been moved. This conserves the location of Ports with respect to
their anchor Particles, but does not conserve the orientation of Ports
with respect to the molecule as a whole.
Parameters
----------
initial_coordinates : np.ndarray, shape=(n, 3), dtype=float
Reference coordinates to use for comparing how far anchor Particles
have shifted. |
(module
(function_definition
(function_name_log) function_name_log
(parameters
(identifier_self) identifier_self
(identifier_level) identifier_level
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_kw) identifier__log_kw
)attribute
(argument_list
(identifier_level) identifier_level
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)return_statement
)block
)function_definition
)module | Delegate a log call to the underlying logger. |
(module
(function_definition
(function_name_list_icmp_block) function_name_list_icmp_block
(parameters
(identifier_zone) identifier_zone
(default_parameter
(identifier_permanent) identifier_permanent
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_'--zone={0} --list-icmp-blocks') string_'--zone={0} --list-icmp-blocks'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_zone) identifier_zone
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_permanent) identifier_permanent
(block
(expression_statement
(augmented_assignment
(identifier_cmd) identifier_cmd
(string_' --permanent') string_' --permanent'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier___firewall_cmd) identifier___firewall_cmd
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | List ICMP blocks on a zone
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' firewlld.list_icmp_block zone |
(module
(function_definition
(function_name_position) function_name_position
(parameters
(identifier_parser) identifier_parser
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(assignment
(identifier_bits) identifier_bits
(call
(attribute
(identifier_token) identifier_token
(identifier_split_contents) identifier_split_contents
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nodelist) identifier_nodelist
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse) identifier_parse
)attribute
(argument_list
(tuple
(binary_operator
(string_'end') string_'end'
(subscript
(identifier_bits) identifier_bits
(integer_0) integer_0
)subscript
)binary_operator
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_delete_first_token) identifier_delete_first_token
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier__parse_position_tag) identifier__parse_position_tag
(argument_list
(identifier_bits) identifier_bits
(identifier_nodelist) identifier_nodelist
)argument_list
)call
)return_statement
)block
)function_definition
)module | Render a given position for category.
If some position is not defined for first category, position from its parent
category is used unless nofallback is specified.
Syntax::
{% position POSITION_NAME for CATEGORY [nofallback] %}{% endposition %}
{% position POSITION_NAME for CATEGORY using BOX_TYPE [nofallback] %}{% endposition %}
Example usage::
{% position top_left for category %}{% endposition %} |
(module
(function_definition
(function_name_timestamps) function_name_timestamps
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_timestamps) identifier_timestamps
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_series) identifier_series
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_groups) identifier_groups
)attribute
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_timestamps) identifier_timestamps
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_series) identifier_series
(identifier_timestamps) identifier_timestamps
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_timestamps) identifier_timestamps
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get all timestamps from all series in the group. |
(module
(function_definition
(function_name_initialize_switch_endpoints) function_name_initialize_switch_endpoints
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__switches) identifier__switches
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__port_group_info) identifier__port_group_info
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__validate_config) identifier__validate_config
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_s) identifier_s
(attribute
(attribute
(attribute
(identifier_cfg) identifier_cfg
(identifier_CONF) identifier_CONF
)attribute
(identifier_ml2_arista) identifier_ml2_arista
)attribute
(identifier_switch_info) identifier_switch_info
)attribute
(block
(expression_statement
(assignment
(pattern_list
(identifier_switch_ip) identifier_switch_ip
(identifier_switch_user) identifier_switch_user
(identifier_switch_pass) identifier_switch_pass
)pattern_list
(call
(attribute
(identifier_s) identifier_s
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_switch_pass) identifier_switch_pass
(string_"''") string_"''"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_switch_pass) identifier_switch_pass
(string_'') string_''
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__switches) identifier__switches
)attribute
(identifier_switch_ip) identifier_switch_ip
)subscript
(call
(attribute
(identifier_api) identifier_api
(identifier_EAPIClient) identifier_EAPIClient
)attribute
(argument_list
(identifier_switch_ip) identifier_switch_ip
(identifier_switch_user) identifier_switch_user
(identifier_switch_pass) identifier_switch_pass
(keyword_argument
(identifier_verify) identifier_verify
(False) False
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(attribute
(attribute
(identifier_cfg) identifier_cfg
(identifier_CONF) identifier_CONF
)attribute
(identifier_ml2_arista) identifier_ml2_arista
)attribute
(identifier_conn_timeout) identifier_conn_timeout
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_dynamic_acl_support) identifier__check_dynamic_acl_support
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initialize endpoints for switch communication |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.