sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_get_language) function_name_get_language
(parameters
(identifier_self) identifier_self
(identifier_language_id) identifier_language_id
)parameters
(block
(expression_statement
(assignment
(identifier_raw_response) identifier_raw_response
(call
(attribute
(identifier_requests_util) identifier_requests_util
(identifier_run_request) identifier_run_request
)attribute
(argument_list
(string_'get') string_'get'
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_API_BASE_URL) identifier_API_BASE_URL
)attribute
(binary_operator
(string_'/languages/%d') string_'/languages/%d'
(identifier_language_id) identifier_language_id
)binary_operator
)binary_operator
(keyword_argument
(identifier_headers) identifier_headers
(call
(attribute
(identifier_self) identifier_self
(identifier___get_header_with_auth) identifier___get_header_with_auth
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_raw_response) identifier_parse_raw_response
)attribute
(argument_list
(identifier_raw_response) identifier_raw_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves information about the language of the given id.
:param language_id: The TheTVDB Id of the language.
:return: a python dictionary with either the result of the search or an error from TheTVDB. |
(module
(function_definition
(function_name_get_regex) function_name_get_regex
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_regex) identifier_regex
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_flag) identifier_flag
(attribute
(identifier_self) identifier_self
(identifier_compound) identifier_compound
)attribute
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_flag) identifier_flag
(string_'?') string_'?'
)comparison_operator
(comparison_operator
(identifier_flag) identifier_flag
(string_'*') string_'*'
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_regex) identifier_regex
(identifier_flag) identifier_flag
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_regex) identifier_regex
(binary_operator
(binary_operator
(string_'(') string_'('
(call
(attribute
(string_'|') string_'|'
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_flags) identifier_flags
)attribute
(identifier_flag) identifier_flag
)subscript
)argument_list
)call
)binary_operator
(string_')') string_')'
)binary_operator
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_regex) identifier_regex
)return_statement
)block
)function_definition
)module | Generates and returns compound regular expression |
(module
(function_definition
(function_name__find_controller) function_name__find_controller
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_name) identifier_name
(identifier_args) identifier_args
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_self) identifier_self
(identifier__lookup_child) identifier__lookup_child
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_obj) identifier_obj
(call
(identifier_iscontroller) identifier_iscontroller
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)boolean_operator
(block
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Returns the appropriate controller for routing a custom action. |
(module
(function_definition
(function_name_get_replicas) function_name_get_replicas
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_service_id) identifier_service_id
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_replicas) identifier_replicas
(list
)list
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__manager) identifier__manager
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(concatenated_string
(string_'Only the Swarm manager node can retrieve ') string_'Only the Swarm manager node can retrieve '
(string_'replication level of the service') string_'replication level of the service'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_service_tasks) identifier_service_tasks
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_services) identifier_services
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_service_id) identifier_service_id
)argument_list
)call
(identifier_tasks) identifier_tasks
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_task) identifier_task
(identifier_service_tasks) identifier_service_tasks
(block
(if_statement
(comparison_operator
(subscript
(subscript
(identifier_task) identifier_task
(string_'Status') string_'Status'
)subscript
(string_'State') string_'State'
)subscript
(string_"running") string_"running"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_replicas) identifier_replicas
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_task) identifier_task
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_replicas) identifier_replicas
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the replication level of a service.
Args:
service_id (str): docker swarm service id
Returns:
str, replication level of the service |
(module
(function_definition
(function_name_pick_free_port) function_name_pick_free_port
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_test_socket) identifier_test_socket
(call
(attribute
(identifier_socket) identifier_socket
(identifier_socket) identifier_socket
)attribute
(argument_list
(attribute
(identifier_socket) identifier_socket
(identifier_AF_INET) identifier_AF_INET
)attribute
(attribute
(identifier_socket) identifier_socket
(identifier_SOCK_STREAM) identifier_SOCK_STREAM
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_test_socket) identifier_test_socket
(identifier_bind) identifier_bind
)attribute
(argument_list
(tuple
(string_'127.0.0.1') string_'127.0.0.1'
(integer_0) integer_0
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_free_port) identifier_free_port
(call
(identifier_int) identifier_int
(argument_list
(subscript
(call
(attribute
(identifier_test_socket) identifier_test_socket
(identifier_getsockname) identifier_getsockname
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_test_socket) identifier_test_socket
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_free_port) identifier_free_port
)return_statement
)block
)function_definition
)module | Picks a free port |
(module
(function_definition
(function_name_init_win32com) function_name_init_win32com
(parameters
)parameters
(block
(global_statement
(identifier__initialized) identifier__initialized
)global_statement
(if_statement
(identifier__initialized) identifier__initialized
(block
(return_statement
)return_statement
)block
)if_statement
(import_statement
(dotted_name
(identifier_win32com) identifier_win32com
(identifier_client) identifier_client
)dotted_name
)import_statement
(if_statement
(attribute
(attribute
(attribute
(identifier_win32com) identifier_win32com
(identifier_client) identifier_client
)attribute
(identifier_gencache) identifier_gencache
)attribute
(identifier_is_readonly) identifier_is_readonly
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_win32com) identifier_win32com
(identifier_client) identifier_client
)attribute
(identifier_gencache) identifier_gencache
)attribute
(identifier_is_readonly) identifier_is_readonly
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_win32com) identifier_win32com
(identifier_client) identifier_client
)attribute
(identifier_gencache) identifier_gencache
)attribute
(identifier_Rebuild) identifier_Rebuild
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier__initialized) identifier__initialized
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Initialize the win32com.client cache. |
(module
(function_definition
(function_name_mode) function_name_mode
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_mu) identifier_mu
(call
(attribute
(identifier_self) identifier_self
(identifier_mean) identifier_mean
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sigma) identifier_sigma
(call
(attribute
(identifier_self) identifier_self
(identifier_std) identifier_std
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(call
(attribute
(identifier_math) identifier_math
(identifier_exp) identifier_exp
)attribute
(argument_list
(binary_operator
(identifier_mu) identifier_mu
(binary_operator
(identifier_sigma) identifier_sigma
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_math) identifier_math
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(identifier_ret_val) identifier_ret_val
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(call
(identifier_float) identifier_float
(argument_list
(string_"inf") string_"inf"
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_ret_val) identifier_ret_val
)return_statement
)block
)function_definition
)module | Computes the mode of a log-normal distribution built with the stats data. |
(module
(function_definition
(function_name_GetUcsPropertyMeta) function_name_GetUcsPropertyMeta
(parameters
(identifier_classId) identifier_classId
(identifier_key) identifier_key
)parameters
(block
(if_statement
(comparison_operator
(identifier_classId) identifier_classId
(identifier__ManagedObjectMeta) identifier__ManagedObjectMeta
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(subscript
(identifier__ManagedObjectMeta) identifier__ManagedObjectMeta
(identifier_classId) identifier_classId
)subscript
)comparison_operator
(block
(return_statement
(subscript
(subscript
(identifier__ManagedObjectMeta) identifier__ManagedObjectMeta
(identifier_classId) identifier_classId
)subscript
(identifier_key) identifier_key
)subscript
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Methods returns the property meta of the provided key for the given classId. |
(module
(function_definition
(function_name__create_and_save_state) function_name__create_and_save_state
(parameters
(identifier_cls) identifier_cls
(identifier_mapreduce_spec) identifier_mapreduce_spec
(identifier__app) identifier__app
)parameters
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(attribute
(attribute
(identifier_model) identifier_model
(identifier_MapreduceState) identifier_MapreduceState
)attribute
(identifier_create_new) identifier_create_new
)attribute
(argument_list
(attribute
(identifier_mapreduce_spec) identifier_mapreduce_spec
(identifier_mapreduce_id) identifier_mapreduce_id
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_state) identifier_state
(identifier_mapreduce_spec) identifier_mapreduce_spec
)attribute
(identifier_mapreduce_spec) identifier_mapreduce_spec
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_state) identifier_state
(identifier_active) identifier_active
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_state) identifier_state
(identifier_active_shards) identifier_active_shards
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(identifier__app) identifier__app
(block
(expression_statement
(assignment
(attribute
(identifier_state) identifier_state
(identifier_app_id) identifier_app_id
)attribute
(identifier__app) identifier__app
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(identifier_util) identifier_util
(identifier_create_datastore_write_config) identifier_create_datastore_write_config
)attribute
(argument_list
(identifier_mapreduce_spec) identifier_mapreduce_spec
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_state) identifier_state
(identifier_put) identifier_put
)attribute
(argument_list
(keyword_argument
(identifier_config) identifier_config
(identifier_config) identifier_config
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_state) identifier_state
)return_statement
)block
)function_definition
)module | Save mapreduce state to datastore.
Save state to datastore so that UI can see it immediately.
Args:
mapreduce_spec: model.MapreduceSpec,
_app: app id if specified. None otherwise.
Returns:
The saved Mapreduce state. |
(module
(function_definition
(function_name_perform_get_or_create) function_name_perform_get_or_create
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_serializer) identifier_serializer
(call
(attribute
(identifier_self) identifier_self
(identifier_get_serializer) identifier_get_serializer
)attribute
(argument_list
(keyword_argument
(identifier_data) identifier_data
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_serializer) identifier_serializer
(identifier_is_valid) identifier_is_valid
)attribute
(argument_list
(keyword_argument
(identifier_raise_exception) identifier_raise_exception
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_process) identifier_process
(call
(attribute
(attribute
(identifier_serializer) identifier_serializer
(identifier_validated_data) identifier_validated_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'process') string_'process'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_process_input) identifier_process_input
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'input') string_'input'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_fill_with_defaults) identifier_fill_with_defaults
(argument_list
(identifier_process_input) identifier_process_input
(attribute
(identifier_process) identifier_process
(identifier_input_schema) identifier_input_schema
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_checksum) identifier_checksum
(call
(identifier_get_data_checksum) identifier_get_data_checksum
(argument_list
(identifier_process_input) identifier_process_input
(attribute
(identifier_process) identifier_process
(identifier_slug) identifier_slug
)attribute
(attribute
(identifier_process) identifier_process
(identifier_version) identifier_version
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_qs) identifier_data_qs
(call
(attribute
(attribute
(identifier_Data) identifier_Data
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_checksum) identifier_checksum
(identifier_checksum) identifier_checksum
)keyword_argument
(keyword_argument
(identifier_process__persistence__in) identifier_process__persistence__in
(list
(attribute
(identifier_Process) identifier_Process
(identifier_PERSISTENCE_CACHED) identifier_PERSISTENCE_CACHED
)attribute
(attribute
(identifier_Process) identifier_Process
(identifier_PERSISTENCE_TEMP) identifier_PERSISTENCE_TEMP
)attribute
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_qs) identifier_data_qs
(call
(identifier_get_objects_for_user) identifier_get_objects_for_user
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
(string_'view_data') string_'view_data'
(identifier_data_qs) identifier_data_qs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_data_qs) identifier_data_qs
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(call
(attribute
(identifier_data_qs) identifier_data_qs
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_'created') string_'created'
)argument_list
)call
(identifier_last) identifier_last
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_serializer) identifier_serializer
(call
(attribute
(identifier_self) identifier_self
(identifier_get_serializer) identifier_get_serializer
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Response) identifier_Response
(argument_list
(attribute
(identifier_serializer) identifier_serializer
(identifier_data) identifier_data
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Perform "get_or_create" - return existing object if found. |
(module
(function_definition
(function_name_csv_print) function_name_csv_print
(parameters
(identifier_classes) identifier_classes
(identifier_class_stat) identifier_class_stat
(default_parameter
(identifier_digit) identifier_digit
(integer_5) integer_5
)default_parameter
(default_parameter
(identifier_class_param) identifier_class_param
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(string_"Class") string_"Class"
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_classes) identifier_classes
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_classes) identifier_classes
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(binary_operator
(string_',"') string_',"'
(call
(identifier_str) identifier_str
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)binary_operator
(string_'"') string_'"'
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(string_"\n") string_"\n"
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_class_stat_keys) identifier_class_stat_keys
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_class_stat) identifier_class_stat
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_class_param) identifier_class_param
(identifier_list) identifier_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_set) identifier_set
(argument_list
(identifier_class_param) identifier_class_param
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(identifier_class_stat_keys) identifier_class_stat_keys
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_class_stat_keys) identifier_class_stat_keys
(identifier_class_param) identifier_class_param
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_class_stat_keys) identifier_class_stat_keys
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_classes) identifier_classes
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(return_statement
(string_"") string_""
)return_statement
)block
)if_statement
(for_statement
(identifier_key) identifier_key
(identifier_class_stat_keys) identifier_class_stat_keys
(block
(expression_statement
(assignment
(identifier_row) identifier_row
(list_comprehension
(call
(identifier_rounder) identifier_rounder
(argument_list
(subscript
(subscript
(identifier_class_stat) identifier_class_stat
(identifier_key) identifier_key
)subscript
(identifier_i) identifier_i
)subscript
(identifier_digit) identifier_digit
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(identifier_classes) identifier_classes
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(binary_operator
(identifier_key) identifier_key
(string_",") string_","
)binary_operator
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(string_"\n") string_"\n"
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return csv file data.
:param classes: classes list
:type classes:list
:param class_stat: statistic result for each class
:type class_stat:dict
:param digit: scale (the number of digits to the right of the decimal point in a number.)
:type digit : int
:param class_param : class parameters list for print, Example : ["TPR","TNR","AUC"]
:type class_param : list
:return: csv file data as str |
(module
(function_definition
(function_name_hashes) function_name_hashes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_hashes) identifier_hashes
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_resources) identifier_resources
)attribute
(None) None
)comparison_operator
)parenthesized_expression
(block
(for_statement
(identifier_resource) identifier_resource
(identifier_self) identifier_self
(block
(if_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_resource) identifier_resource
(identifier_md5) identifier_md5
)attribute
(None) None
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_hashes) identifier_hashes
(identifier_add) identifier_add
)attribute
(argument_list
(string_'md5') string_'md5'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_resource) identifier_resource
(identifier_sha1) identifier_sha1
)attribute
(None) None
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_hashes) identifier_hashes
(identifier_add) identifier_add
)attribute
(argument_list
(string_'sha-1') string_'sha-1'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_resource) identifier_resource
(identifier_sha256) identifier_sha256
)attribute
(None) None
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_hashes) identifier_hashes
(identifier_add) identifier_add
)attribute
(argument_list
(string_'sha-256') string_'sha-256'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(parenthesized_expression
(identifier_hashes) identifier_hashes
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Return set of hashes uses in this resource_list. |
(module
(function_definition
(function_name_copyidfintoidf) function_name_copyidfintoidf
(parameters
(identifier_toidf) identifier_toidf
(identifier_fromidf) identifier_fromidf
)parameters
(block
(expression_statement
(assignment
(identifier_idfobjlst) identifier_idfobjlst
(call
(identifier_getidfobjectlist) identifier_getidfobjectlist
(argument_list
(identifier_fromidf) identifier_fromidf
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_idfobj) identifier_idfobj
(identifier_idfobjlst) identifier_idfobjlst
(block
(expression_statement
(call
(attribute
(identifier_toidf) identifier_toidf
(identifier_copyidfobject) identifier_copyidfobject
)attribute
(argument_list
(identifier_idfobj) identifier_idfobj
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | copy fromidf completely into toidf |
(module
(function_definition
(function_name__maybe_wrap_exception) function_name__maybe_wrap_exception
(parameters
(identifier_exception) identifier_exception
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_exception) identifier_exception
(attribute
(identifier_grpc) identifier_grpc
(identifier_RpcError) identifier_RpcError
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_from_grpc_error) identifier_from_grpc_error
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_exception) identifier_exception
)return_statement
)block
)function_definition
)module | Wraps a gRPC exception class, if needed. |
(module
(function_definition
(function_name__is_finished_dumping) function_name__is_finished_dumping
(parameters
(identifier_directory) identifier_directory
)parameters
(block
(expression_statement
(assignment
(identifier_run_info) identifier_run_info
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(string_"RunInfo.xml") string_"RunInfo.xml"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hi_seq_checkpoint) identifier_hi_seq_checkpoint
(binary_operator
(string_"Basecalling_Netcopy_complete_Read%s.txt") string_"Basecalling_Netcopy_complete_Read%s.txt"
(line_continuation_\) line_continuation_\
(call
(identifier__expected_reads) identifier__expected_reads
(argument_list
(identifier_run_info) identifier_run_info
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_to_check) identifier_to_check
(list
(string_"Basecalling_Netcopy_complete_SINGLEREAD.txt") string_"Basecalling_Netcopy_complete_SINGLEREAD.txt"
(string_"Basecalling_Netcopy_complete_READ2.txt") string_"Basecalling_Netcopy_complete_READ2.txt"
(identifier_hi_seq_checkpoint) identifier_hi_seq_checkpoint
)list
)assignment
)expression_statement
(return_statement
(call
(identifier_reduce) identifier_reduce
(argument_list
(attribute
(identifier_operator) identifier_operator
(identifier_or_) identifier_or_
)attribute
(list_comprehension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_f) identifier_f
(identifier_to_check) identifier_to_check
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determine if the sequencing directory has all files.
The final checkpoint file will differ depending if we are a
single or paired end run. |
(module
(function_definition
(function_name_grab_names_from_emails) function_name_grab_names_from_emails
(parameters
(identifier_email_list) identifier_email_list
)parameters
(block
(expression_statement
(assignment
(identifier_all_staff) identifier_all_staff
(identifier_STAFF_LIST) identifier_STAFF_LIST
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_emails_names) identifier_emails_names
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_email) identifier_email
(identifier_email_list) identifier_email_list
(block
(for_statement
(identifier_person) identifier_person
(identifier_all_staff) identifier_all_staff
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_email) identifier_email
(subscript
(identifier_person) identifier_person
(string_'email') string_'email'
)subscript
)comparison_operator
(comparison_operator
(identifier_email) identifier_email
(identifier_emails_names) identifier_emails_names
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_emails_names) identifier_emails_names
(identifier_email) identifier_email
)subscript
(subscript
(identifier_person) identifier_person
(string_'fullName') string_'fullName'
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(for_statement
(identifier_email) identifier_email
(identifier_email_list) identifier_email_list
(block
(expression_statement
(assignment
(identifier_matched) identifier_matched
(False) False
)assignment
)expression_statement
(for_statement
(identifier_assignment) identifier_assignment
(identifier_emails_names) identifier_emails_names
(block
(if_statement
(comparison_operator
(identifier_email) identifier_email
(identifier_assignment) identifier_assignment
)comparison_operator
(block
(expression_statement
(assignment
(identifier_matched) identifier_matched
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_matched) identifier_matched
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_emails_names) identifier_emails_names
(identifier_email) identifier_email
)subscript
(identifier_email) identifier_email
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_emails_names) identifier_emails_names
)return_statement
)block
)function_definition
)module | Return a dictionary mapping names to email addresses.
Only gives a response if the email is found
in the staff API/JSON.
Expects an API of the format =
[
{
'email': 'foo@bar.net',
...
'fullName': 'Frank Oo'
},
...
] |
(module
(function_definition
(function_name_specstring) function_name_specstring
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_subgroup) identifier_subgroup
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_variable) identifier_variable
(attribute
(identifier_self) identifier_self
(identifier_variable) identifier_variable
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_variable) identifier_variable
(string_f'{self.subgroup}.{self.variable}') string_f'{self.subgroup}.{self.variable}'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_series) identifier_series
)attribute
(block
(expression_statement
(assignment
(identifier_variable) identifier_variable
(string_f'{variable}.series') string_f'{variable}.series'
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_variable) identifier_variable
)return_statement
)block
)function_definition
)module | The string corresponding to the current values of `subgroup`,
`state`, and `variable`.
>>> from hydpy.core.itemtools import ExchangeSpecification
>>> spec = ExchangeSpecification('hland_v1', 'fluxes.qt')
>>> spec.specstring
'fluxes.qt'
>>> spec.series = True
>>> spec.specstring
'fluxes.qt.series'
>>> spec.subgroup = None
>>> spec.specstring
'qt.series' |
(module
(function_definition
(function_name_show_diff) function_name_show_diff
(parameters
(identifier_original) identifier_original
(identifier_modified) identifier_modified
(default_parameter
(identifier_prefix) identifier_prefix
(string_'') string_''
)default_parameter
(default_parameter
(identifier_suffix) identifier_suffix
(string_'') string_''
)default_parameter
(default_parameter
(identifier_prefix_unchanged) identifier_prefix_unchanged
(string_' ') string_' '
)default_parameter
(default_parameter
(identifier_suffix_unchanged) identifier_suffix_unchanged
(string_'') string_''
)default_parameter
(default_parameter
(identifier_prefix_removed) identifier_prefix_removed
(string_'-') string_'-'
)default_parameter
(default_parameter
(identifier_suffix_removed) identifier_suffix_removed
(string_'') string_''
)default_parameter
(default_parameter
(identifier_prefix_added) identifier_prefix_added
(string_'+') string_'+'
)default_parameter
(default_parameter
(identifier_suffix_added) identifier_suffix_added
(string_'') string_''
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_difflib) identifier_difflib
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_differ) identifier_differ
(call
(attribute
(identifier_difflib) identifier_difflib
(identifier_Differ) identifier_Differ
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list
(identifier_prefix) identifier_prefix
)list
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_differ) identifier_differ
(identifier_compare) identifier_compare
)attribute
(argument_list
(call
(attribute
(identifier_modified) identifier_modified
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_original) identifier_original
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_line) identifier_line
(integer_0) integer_0
)subscript
(string_' ') string_' '
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_prefix_unchanged) identifier_prefix_unchanged
(call
(attribute
(subscript
(identifier_line) identifier_line
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)binary_operator
(identifier_suffix_unchanged) identifier_suffix_unchanged
)binary_operator
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_line) identifier_line
(integer_0) integer_0
)subscript
(string_'-') string_'-'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_prefix_removed) identifier_prefix_removed
(call
(attribute
(subscript
(identifier_line) identifier_line
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)binary_operator
(identifier_suffix_removed) identifier_suffix_removed
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_line) identifier_line
(integer_0) integer_0
)subscript
(string_'+') string_'+'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_prefix_added) identifier_prefix_added
(call
(attribute
(subscript
(identifier_line) identifier_line
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)binary_operator
(identifier_suffix_added) identifier_suffix_added
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_suffix) identifier_suffix
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the diff view between original and modified strings.
Function checks both arguments line by line and returns a string
with a:
- prefix_unchanged when line is common to both sequences
- prefix_removed when line is unique to sequence 1
- prefix_added when line is unique to sequence 2
and a corresponding suffix in each line
:param original: base string
:param modified: changed string
:param prefix: prefix of the output string
:param suffix: suffix of the output string
:param prefix_unchanged: prefix of the unchanged line
:param suffix_unchanged: suffix of the unchanged line
:param prefix_removed: prefix of the removed line
:param suffix_removed: suffix of the removed line
:param prefix_added: prefix of the added line
:param suffix_added: suffix of the added line
:return: string with the comparison of the records
:rtype: string |
(module
(function_definition
(function_name_reset_pw_confirm_view) function_name_reset_pw_confirm_view
(parameters
(identifier_request) identifier_request
(default_parameter
(identifier_uidb64) identifier_uidb64
(None) None
)default_parameter
(default_parameter
(identifier_token) identifier_token
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_password_reset_confirm) identifier_password_reset_confirm
(argument_list
(identifier_request) identifier_request
(keyword_argument
(identifier_template_name) identifier_template_name
(string_"reset_confirmation.html") string_"reset_confirmation.html"
)keyword_argument
(keyword_argument
(identifier_uidb64) identifier_uidb64
(identifier_uidb64) identifier_uidb64
)keyword_argument
(keyword_argument
(identifier_token) identifier_token
(identifier_token) identifier_token
)keyword_argument
(keyword_argument
(identifier_post_reset_redirect) identifier_post_reset_redirect
(call
(identifier_reverse) identifier_reverse
(argument_list
(string_'login') string_'login'
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | View to confirm resetting password. |
(module
(function_definition
(function_name_relaxParserSetFlag) function_name_relaxParserSetFlag
(parameters
(identifier_self) identifier_self
(identifier_flags) identifier_flags
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_libxml2mod) identifier_libxml2mod
(identifier_xmlRelaxParserSetFlag) identifier_xmlRelaxParserSetFlag
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__o) identifier__o
)attribute
(identifier_flags) identifier_flags
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Semi private function used to pass informations to a parser
context which are a combination of xmlRelaxNGParserFlag . |
(module
(function_definition
(function_name_cursor_blink_mode_changed) function_name_cursor_blink_mode_changed
(parameters
(identifier_self) identifier_self
(identifier_settings) identifier_settings
(identifier_key) identifier_key
(identifier_user_data) identifier_user_data
)parameters
(block
(for_statement
(identifier_term) identifier_term
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_guake) identifier_guake
)attribute
(identifier_notebook_manager) identifier_notebook_manager
)attribute
(identifier_iter_terminals) identifier_iter_terminals
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_term) identifier_term
(identifier_set_property) identifier_set_property
)attribute
(argument_list
(string_"cursor-blink-mode") string_"cursor-blink-mode"
(call
(attribute
(identifier_settings) identifier_settings
(identifier_get_int) identifier_get_int
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Called when cursor blink mode settings has been changed |
(module
(function_definition
(function_name_compute_adjacency_matrix) function_name_compute_adjacency_matrix
(parameters
(identifier_X) identifier_X
(default_parameter
(identifier_method) identifier_method
(string_'auto') string_'auto'
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_method) identifier_method
(string_'auto') string_'auto'
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_X) identifier_X
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
(integer_10000) integer_10000
)comparison_operator
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(string_'cyflann') string_'cyflann'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(string_'kd_tree') string_'kd_tree'
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_Adjacency) identifier_Adjacency
(identifier_init) identifier_init
)attribute
(argument_list
(identifier_method) identifier_method
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(identifier_adjacency_graph) identifier_adjacency_graph
)attribute
(argument_list
(call
(attribute
(identifier_X) identifier_X
(identifier_astype) identifier_astype
)attribute
(argument_list
(string_'float') string_'float'
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute an adjacency matrix with the given method |
(module
(function_definition
(function_name_libvlc_video_get_aspect_ratio) function_name_libvlc_video_get_aspect_ratio
(parameters
(identifier_p_mi) identifier_p_mi
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(boolean_operator
(call
(attribute
(identifier__Cfunctions) identifier__Cfunctions
(identifier_get) identifier_get
)attribute
(argument_list
(string_'libvlc_video_get_aspect_ratio') string_'libvlc_video_get_aspect_ratio'
(None) None
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(identifier__Cfunction) identifier__Cfunction
(argument_list
(string_'libvlc_video_get_aspect_ratio') string_'libvlc_video_get_aspect_ratio'
(tuple
(tuple
(integer_1) integer_1
)tuple
)tuple
(identifier_string_result) identifier_string_result
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_void_p) identifier_c_void_p
)attribute
(identifier_MediaPlayer) identifier_MediaPlayer
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_f) identifier_f
(argument_list
(identifier_p_mi) identifier_p_mi
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get current video aspect ratio.
@param p_mi: the media player.
@return: the video aspect ratio or NULL if unspecified (the result must be released with free() or L{libvlc_free}()). |
(module
(function_definition
(function_name_add_alt_goids) function_name_add_alt_goids
(parameters
(identifier_go2values) identifier_go2values
(identifier_altgo2goobj) identifier_altgo2goobj
)parameters
(block
(for_statement
(identifier_goobj_key) identifier_goobj_key
(call
(attribute
(identifier_altgo2goobj) identifier_altgo2goobj
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_values_curr) identifier_values_curr
(subscript
(identifier_go2values) identifier_go2values
(attribute
(identifier_goobj_key) identifier_goobj_key
(identifier_id) identifier_id
)attribute
)subscript
)assignment
)expression_statement
(for_statement
(identifier_goid_alt) identifier_goid_alt
(attribute
(identifier_goobj_key) identifier_goobj_key
(identifier_alt_ids) identifier_alt_ids
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_go2values) identifier_go2values
(identifier_goid_alt) identifier_goid_alt
)subscript
(identifier_values_curr) identifier_values_curr
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_go2values) identifier_go2values
)return_statement
)block
)function_definition
)module | Add alternate source GO IDs. |
(module
(function_definition
(function_name_GetSource) function_name_GetSource
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
(identifier_col) identifier_col
(default_parameter
(identifier_table) identifier_table
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_table) identifier_table
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_current_table) identifier_current_table
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_code_array) identifier_code_array
)attribute
(argument_list
(tuple
(identifier_row) identifier_row
(identifier_col) identifier_col
(identifier_table) identifier_table
)tuple
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
(string_u"") string_u""
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the source string of a cell |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Stopping %s') string_'Stopping %s'
(identifier_self) identifier_self
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pids) identifier_pids
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__processes) identifier__processes
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_pid) identifier_pid
(identifier_pids) identifier_pids
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_terminate) identifier_terminate
)attribute
(argument_list
(identifier_pid) identifier_pid
)argument_list
)call
)expression_statement
)block
)for_statement
(while_statement
(attribute
(identifier_self) identifier_self
(identifier__connections) identifier__connections
)attribute
(block
(expression_statement
(assignment
(identifier_pid) identifier_pid
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_iter) identifier_iter
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__connections) identifier__connections
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connections) identifier__connections
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_pid) identifier_pid
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_conn) identifier_conn
(block
(expression_statement
(call
(attribute
(identifier_conn) identifier_conn
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___loop) identifier___loop
)attribute
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Stops the context. This terminates all PIDs and closes all connections. |
(module
(function_definition
(function_name_class_path) function_name_class_path
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier___module__) identifier___module__
)attribute
(string_'__main__') string_'__main__'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(None) None
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getfile) identifier_getfile
)attribute
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(identifier_path) identifier_path
)not_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the path to the source file of the given class. |
(module
(function_definition
(function_name__value_function) function_name__value_function
(parameters
(identifier_self) identifier_self
(identifier_x_input) identifier_x_input
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_y_true) identifier_y_true
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_y_pred) identifier_y_pred
(identifier_argmax) identifier_argmax
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(identifier_eq) identifier_eq
)attribute
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
(identifier_double) identifier_double
)attribute
(argument_list
)argument_list
)call
(identifier_mean) identifier_mean
)attribute
(argument_list
)argument_list
)call
(identifier_item) identifier_item
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(identifier_NotImplementedError) identifier_NotImplementedError
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return classification accuracy of input |
(module
(function_definition
(function_name_as_json) function_name_as_json
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_object) identifier_force_object
(True) True
)default_parameter
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(conditional_expression
(attribute
(attribute
(attribute
(identifier_streamsx) identifier_streamsx
(identifier_topology) identifier_topology
)attribute
(identifier_runtime) identifier_runtime
)attribute
(identifier__json_force_object) identifier__json_force_object
)attribute
(identifier_force_object) identifier_force_object
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_saj) identifier_saj
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__change_schema) identifier__change_schema
)attribute
(argument_list
(attribute
(attribute
(attribute
(attribute
(identifier_streamsx) identifier_streamsx
(identifier_topology) identifier_topology
)attribute
(identifier_schema) identifier_schema
)attribute
(identifier_CommonSchema) identifier_CommonSchema
)attribute
(identifier_Json) identifier_Json
)attribute
(string_'as_json') string_'as_json'
(identifier_name) identifier_name
(identifier_func) identifier_func
)argument_list
)call
(identifier__layout) identifier__layout
)attribute
(argument_list
(string_'AsJson') string_'AsJson'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_saj) identifier_saj
(identifier_oport) identifier_oport
)attribute
(identifier_operator) identifier_operator
)attribute
(identifier_sl) identifier_sl
)attribute
(call
(identifier__SourceLocation) identifier__SourceLocation
(argument_list
(call
(identifier__source_info) identifier__source_info
(argument_list
)argument_list
)call
(string_'as_json') string_'as_json'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_saj) identifier_saj
)return_statement
)block
)function_definition
)module | Declares a stream converting each tuple on this stream into
a JSON value.
The stream is typed as a :py:const:`JSON stream <streamsx.topology.schema.CommonSchema.Json>`.
Each tuple must be supported by `JSONEncoder`.
If `force_object` is `True` then each tuple that not a `dict`
will be converted to a JSON object with a single key `payload`
containing the tuple. Thus each object on the stream will
be a JSON object.
If `force_object` is `False` then each tuple is converted to
a JSON value directly using `json` package.
If this stream is already typed as a JSON stream then it will
be returned (with no additional processing against it and
`force_object` and `name` are ignored).
Args:
force_object(bool): Force conversion of non dicts to JSON objects.
name(str): Name of the resulting stream.
When `None` defaults to a generated name.
.. versionadded:: 1.6.1
Returns:
Stream: Stream containing the JSON representations of tuples on this stream. |
(module
(function_definition
(function_name_connection) function_name_connection
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(attribute
(identifier_self) identifier_self
(identifier_database_name) identifier_database_name
)attribute
)subscript
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_disable_id_injector) identifier_disable_id_injector
)attribute
(block
(expression_statement
(assignment
(identifier_incoming) identifier_incoming
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier__Database__incoming_manipulators) identifier__Database__incoming_manipulators
)attribute
)assignment
)expression_statement
(for_statement
(identifier_manipulator) identifier_manipulator
(identifier_incoming) identifier_incoming
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_manipulator) identifier_manipulator
(attribute
(attribute
(identifier_pymongo) identifier_pymongo
(identifier_son_manipulator) identifier_son_manipulator
)attribute
(identifier_ObjectIdInjector) identifier_ObjectIdInjector
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_incoming) identifier_incoming
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_manipulator) identifier_manipulator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(concatenated_string
(string_"Disabling %s on mongodb connection to ") string_"Disabling %s on mongodb connection to "
(string_"'%s'.") string_"'%s'."
)concatenated_string
(attribute
(attribute
(identifier_manipulator) identifier_manipulator
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_self) identifier_self
(identifier_database_name) identifier_database_name
)attribute
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(for_statement
(identifier_manipulator) identifier_manipulator
(attribute
(identifier_self) identifier_self
(identifier_manipulators) identifier_manipulators
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_add_son_manipulator) identifier_add_son_manipulator
)attribute
(argument_list
(identifier_manipulator) identifier_manipulator
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Connected to mongodb on %s (database=%s)") string_"Connected to mongodb on %s (database=%s)"
(attribute
(identifier_self) identifier_self
(identifier_safe_connection_string) identifier_safe_connection_string
)attribute
(attribute
(identifier_self) identifier_self
(identifier_database_name) identifier_database_name
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
)return_statement
)block
)function_definition
)module | Connect to and return mongodb database object. |
(module
(function_definition
(function_name_write_squonk_datasetmetadata) function_name_write_squonk_datasetmetadata
(parameters
(identifier_outputBase) identifier_outputBase
(identifier_thinOutput) identifier_thinOutput
(identifier_valueClassMappings) identifier_valueClassMappings
(identifier_datasetMetaProps) identifier_datasetMetaProps
(identifier_fieldMetaProps) identifier_fieldMetaProps
)parameters
(block
(expression_statement
(assignment
(identifier_meta) identifier_meta
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_props) identifier_props
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_datasetMetaProps) identifier_datasetMetaProps
(block
(expression_statement
(call
(attribute
(identifier_props) identifier_props
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_datasetMetaProps) identifier_datasetMetaProps
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_fieldMetaProps) identifier_fieldMetaProps
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(string_"fieldMetaProps") string_"fieldMetaProps"
)subscript
(identifier_fieldMetaProps) identifier_fieldMetaProps
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_props) identifier_props
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(string_"properties") string_"properties"
)subscript
(identifier_props) identifier_props
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_valueClassMappings) identifier_valueClassMappings
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(string_"valueClassMappings") string_"valueClassMappings"
)subscript
(identifier_valueClassMappings) identifier_valueClassMappings
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_thinOutput) identifier_thinOutput
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(string_'type') string_'type'
)subscript
(string_'org.squonk.types.BasicObject') string_'org.squonk.types.BasicObject'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(string_'type') string_'type'
)subscript
(string_'org.squonk.types.MoleculeObject') string_'org.squonk.types.MoleculeObject'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_meta) identifier_meta
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_meta) identifier_meta
(call
(identifier_open) identifier_open
(argument_list
(binary_operator
(identifier_outputBase) identifier_outputBase
(string_'.metadata') string_'.metadata'
)binary_operator
(string_'w') string_'w'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_meta) identifier_meta
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_meta) identifier_meta
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This is a temp hack to write the minimal metadata that Squonk needs.
Will needs to be replaced with something that allows something more complete to be written.
:param outputBase: Base name for the file to write to
:param thinOutput: Write only new data, not structures. Result type will be BasicObject
:param valueClasses: A dict that describes the Java class of the value properties (used by Squonk)
:param datasetMetaProps: A dict with metadata properties that describe the datset as a whole.
The keys used for these metadata are up to the user, but common ones include source, description, created, history.
:param fieldMetaProps: A list of dicts with the additional field metadata. Each dict has a key named fieldName whose value
is the name of the field being described, and a key name values wholes values is a map of metadata properties.
The keys used for these metadata are up to the user, but common ones include source, description, created, history. |
(module
(function_definition
(function_name__report_exception) function_name__report_exception
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
(default_parameter
(identifier_frame_skip) identifier_frame_skip
(integer_2) integer_2
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_msg_hash) identifier_msg_hash
(call
(identifier_hash) identifier_hash
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_msg_hash) identifier_msg_hash
(attribute
(identifier_self) identifier_self
(identifier__report_exception_cache) identifier__report_exception_cache
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__report_exception_cache) identifier__report_exception_cache
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_msg_hash) identifier_msg_hash
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_error_frame) identifier_error_frame
(call
(attribute
(identifier_sys) identifier_sys
(identifier__getframe) identifier__getframe
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(while_statement
(identifier_frame_skip) identifier_frame_skip
(block
(expression_statement
(assignment
(identifier_error_frame) identifier_error_frame
(attribute
(identifier_error_frame) identifier_error_frame
(identifier_f_back) identifier_f_back
)attribute
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_frame_skip) identifier_frame_skip
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__py3_wrapper) identifier__py3_wrapper
)attribute
(identifier_report_exception) identifier_report_exception
)attribute
(argument_list
(identifier_msg) identifier_msg
(keyword_argument
(identifier_notify_user) identifier_notify_user
(False) False
)keyword_argument
(keyword_argument
(identifier_error_frame) identifier_error_frame
(identifier_error_frame) identifier_error_frame
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | THIS IS PRIVATE AND UNSUPPORTED.
logs an exception that occurs inside of a Py3 method. We only log the
exception once to prevent spamming the logs and we do not notify the
user.
frame_skip is used to change the place in the code that the error is
reported as coming from. We want to show it as coming from the
py3status module where the Py3 method was called. |
(module
(function_definition
(function_name_get_selected_values) function_name_get_selected_values
(parameters
(identifier_self) identifier_self
(identifier_selection) identifier_selection
)parameters
(block
(return_statement
(list_comprehension
(identifier_v) identifier_v
(for_in_clause
(pattern_list
(identifier_b) identifier_b
(identifier_v) identifier_v
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier__choices) identifier__choices
)attribute
)for_in_clause
(if_clause
(binary_operator
(identifier_b) identifier_b
(identifier_selection) identifier_selection
)binary_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of values for the given selection. |
(module
(function_definition
(function_name_attention_lm_ae_extended) function_name_attention_lm_ae_extended
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_hparams) identifier_hparams
(call
(identifier_attention_lm_moe_base_long_seq) identifier_attention_lm_moe_base_long_seq
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_attention_layers) identifier_attention_layers
)attribute
(string_"eeee") string_"eeee"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_attention_local) identifier_attention_local
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_attention_moe_k) identifier_attention_moe_k
)attribute
(integer_2) integer_2
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_attention_exp_factor) identifier_attention_exp_factor
)attribute
(integer_4) integer_4
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_layer_preprocess_sequence) identifier_layer_preprocess_sequence
)attribute
(string_"n") string_"n"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_layer_postprocess_sequence) identifier_layer_postprocess_sequence
)attribute
(string_"da") string_"da"
)assignment
)expression_statement
(return_statement
(identifier_hparams) identifier_hparams
)return_statement
)block
)function_definition
)module | Experiment with the exp_factor params. |
(module
(function_definition
(function_name_get_digests) function_name_get_digests
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_digests) identifier_digests
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_registry) identifier_registry
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_workflow) identifier_workflow
)attribute
(identifier_push_conf) identifier_push_conf
)attribute
(identifier_docker_registries) identifier_docker_registries
)attribute
(block
(for_statement
(identifier_image) identifier_image
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_workflow) identifier_workflow
)attribute
(identifier_tag_conf) identifier_tag_conf
)attribute
(identifier_images) identifier_images
)attribute
(block
(expression_statement
(assignment
(identifier_image_str) identifier_image_str
(call
(attribute
(identifier_image) identifier_image
(identifier_to_str) identifier_to_str
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_image_str) identifier_image_str
(attribute
(identifier_registry) identifier_registry
(identifier_digests) identifier_digests
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_digest) identifier_digest
(subscript
(attribute
(identifier_registry) identifier_registry
(identifier_digests) identifier_digests
)attribute
(identifier_image_str) identifier_image_str
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_digests) identifier_digests
(call
(attribute
(identifier_image) identifier_image
(identifier_to_str) identifier_to_str
)attribute
(argument_list
(keyword_argument
(identifier_registry) identifier_registry
(False) False
)keyword_argument
)argument_list
)call
)subscript
(identifier_digest) identifier_digest
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_digests) identifier_digests
)return_statement
)block
)function_definition
)module | Returns a map of repositories to digests |
(module
(function_definition
(function_name__add_version_to_request) function_name__add_version_to_request
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_headers) identifier_headers
(identifier_version) identifier_version
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__has_capability) identifier__has_capability
)attribute
(argument_list
(identifier_SERVER_REQUIRES_VERSION_HEADER) identifier_SERVER_REQUIRES_VERSION_HEADER
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_new_headers) identifier_new_headers
(call
(attribute
(identifier_headers) identifier_headers
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_new_headers) identifier_new_headers
(string_'Last-Modified') string_'Last-Modified'
)subscript
(call
(attribute
(attribute
(identifier_email) identifier_email
(identifier_utils) identifier_utils
)attribute
(identifier_formatdate) identifier_formatdate
)attribute
(argument_list
(identifier_version) identifier_version
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_url) identifier_url
(identifier_new_headers) identifier_new_headers
)expression_list
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_url_params) identifier_url_params
(dictionary
(pair
(string_'last_modified') string_'last_modified'
(call
(attribute
(attribute
(identifier_email) identifier_email
(identifier_utils) identifier_utils
)attribute
(identifier_formatdate) identifier_formatdate
)attribute
(argument_list
(identifier_version) identifier_version
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_url) identifier_new_url
(binary_operator
(binary_operator
(identifier_url) identifier_url
(string_"?") string_"?"
)binary_operator
(call
(identifier_urlencode) identifier_urlencode
(argument_list
(identifier_url_params) identifier_url_params
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_new_url) identifier_new_url
(identifier_headers) identifier_headers
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Adds version to either url or headers, depending on protocol. |
(module
(function_definition
(function_name_create_system) function_name_create_system
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_new_machine_id) identifier_new_machine_id
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_client_hostname) identifier_client_hostname
(call
(identifier_determine_hostname) identifier_determine_hostname
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_machine_id) identifier_machine_id
(call
(identifier_generate_machine_id) identifier_generate_machine_id
(argument_list
(identifier_new_machine_id) identifier_new_machine_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_branch_info) identifier_branch_info
(attribute
(identifier_self) identifier_self
(identifier_branch_info) identifier_branch_info
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_branch_info) identifier_branch_info
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_remote_branch) identifier_remote_branch
(subscript
(identifier_branch_info) identifier_branch_info
(string_'remote_branch') string_'remote_branch'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_remote_leaf) identifier_remote_leaf
(subscript
(identifier_branch_info) identifier_branch_info
(string_'remote_leaf') string_'remote_leaf'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'machine_id') string_'machine_id'
(identifier_machine_id) identifier_machine_id
)pair
(pair
(string_'remote_branch') string_'remote_branch'
(identifier_remote_branch) identifier_remote_branch
)pair
(pair
(string_'remote_leaf') string_'remote_leaf'
(identifier_remote_leaf) identifier_remote_leaf
)pair
(pair
(string_'hostname') string_'hostname'
(identifier_client_hostname) identifier_client_hostname
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_display_name) identifier_display_name
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'display_name') string_'display_name'
)subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_display_name) identifier_display_name
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_post_system_url) identifier_post_system_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_api_url) identifier_api_url
)attribute
(string_'/v1/systems') string_'/v1/systems'
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"POST System: %s") string_"POST System: %s"
(identifier_post_system_url) identifier_post_system_url
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_net_logger) identifier_net_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"POST %s") string_"POST %s"
(identifier_post_system_url) identifier_post_system_url
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_post_system_url) identifier_post_system_url
(keyword_argument
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Content-Type') string_'Content-Type'
(string_'application/json') string_'application/json'
)pair
)dictionary
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create the machine via the API |
(module
(function_definition
(function_name_add_vbar_widget) function_name_add_vbar_widget
(parameters
(identifier_self) identifier_self
(identifier_ref) identifier_ref
(default_parameter
(identifier_x) identifier_x
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_y) identifier_y
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_length) identifier_length
(integer_10) integer_10
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_ref) identifier_ref
(attribute
(identifier_self) identifier_self
(identifier_widgets) identifier_widgets
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_widget) identifier_widget
(call
(attribute
(identifier_widgets) identifier_widgets
(identifier_VBarWidget) identifier_VBarWidget
)attribute
(argument_list
(keyword_argument
(identifier_screen) identifier_screen
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_ref) identifier_ref
(identifier_ref) identifier_ref
)keyword_argument
(keyword_argument
(identifier_x) identifier_x
(identifier_x) identifier_x
)keyword_argument
(keyword_argument
(identifier_y) identifier_y
(identifier_y) identifier_y
)keyword_argument
(keyword_argument
(identifier_length) identifier_length
(identifier_length) identifier_length
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_widgets) identifier_widgets
)attribute
(identifier_ref) identifier_ref
)subscript
(identifier_widget) identifier_widget
)assignment
)expression_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_widgets) identifier_widgets
)attribute
(identifier_ref) identifier_ref
)subscript
)return_statement
)block
)if_statement
)block
)function_definition
)module | Add Vertical Bar Widget |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(default_parameter
(identifier_binary) identifier_binary
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_is_closed) identifier_is_closed
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_send_message) identifier_send_message
)attribute
(argument_list
(identifier_message) identifier_message
(keyword_argument
(identifier_binary) identifier_binary
(identifier_binary) identifier_binary
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Send message to the client.
`message`
Message to send. |
(module
(function_definition
(function_name_remove_node) function_name_remove_node
(parameters
(identifier_self) identifier_self
(identifier_p_id) identifier_p_id
(default_parameter
(identifier_remove_unconnected_nodes) identifier_remove_unconnected_nodes
(True) True
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_has_node) identifier_has_node
)attribute
(argument_list
(identifier_p_id) identifier_p_id
)argument_list
)call
(block
(for_statement
(identifier_neighbor) identifier_neighbor
(call
(attribute
(identifier_self) identifier_self
(identifier_incoming_neighbors) identifier_incoming_neighbors
)attribute
(argument_list
(identifier_p_id) identifier_p_id
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__edges) identifier__edges
)attribute
(identifier_neighbor) identifier_neighbor
)subscript
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_p_id) identifier_p_id
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_neighbors) identifier_neighbors
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_remove_unconnected_nodes) identifier_remove_unconnected_nodes
(block
(expression_statement
(assignment
(identifier_neighbors) identifier_neighbors
(call
(attribute
(identifier_self) identifier_self
(identifier_outgoing_neighbors) identifier_outgoing_neighbors
)attribute
(argument_list
(identifier_p_id) identifier_p_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__edges) identifier__edges
)attribute
(identifier_p_id) identifier_p_id
)subscript
)delete_statement
(for_statement
(identifier_neighbor) identifier_neighbor
(identifier_neighbors) identifier_neighbors
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_isolated) identifier_is_isolated
)attribute
(argument_list
(identifier_neighbor) identifier_neighbor
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_node) identifier_remove_node
)attribute
(argument_list
(identifier_neighbor) identifier_neighbor
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Removes a node from the graph. |
(module
(function_definition
(function_name_upgrade_cmd) function_name_upgrade_cmd
(parameters
(default_parameter
(identifier_argv) identifier_argv
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(call
(identifier_docopt) identifier_docopt
(argument_list
(attribute
(identifier_upgrade_cmd) identifier_upgrade_cmd
(identifier___doc__) identifier___doc__
)attribute
(keyword_argument
(identifier_argv) identifier_argv
(identifier_argv) identifier_argv
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_initialize_config) identifier_initialize_config
(argument_list
(keyword_argument
(identifier___mode__) identifier___mode__
(string_'fit') string_'fit'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_upgrade) identifier_upgrade
(argument_list
(keyword_argument
(identifier_from_version) identifier_from_version
(subscript
(identifier_arguments) identifier_arguments
(string_'--from') string_'--from'
)subscript
)keyword_argument
(keyword_argument
(identifier_to_version) identifier_to_version
(subscript
(identifier_arguments) identifier_arguments
(string_'--to') string_'--to'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | \
Upgrade the database to the latest version.
Usage:
pld-ugprade [options]
Options:
--from=<v> Upgrade from a specific version, overriding
the version stored in the database.
--to=<v> Upgrade to a specific version instead of the
latest version.
-h --help Show this screen. |
(module
(function_definition
(function_name__get_config_name) function_name__get_config_name
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(string_'git config --get user.name') string_'git config --get user.name'
(keyword_argument
(identifier_shell) identifier_shell
(True) True
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_STDOUT) identifier_STDOUT
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(attribute
(identifier_p) identifier_p
(identifier_stdout) identifier_stdout
)attribute
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__stripslashes) identifier__stripslashes
(argument_list
(subscript
(identifier_output) identifier_output
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get git config user name |
(module
(function_definition
(function_name_first) function_name_first
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__first) identifier__first
)attribute
(None) None
)comparison_operator
(block
(for_statement
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier_targets) identifier_targets
)attribute
(block
(if_statement
(comparison_operator
(identifier_target) identifier_target
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__first) identifier__first
)attribute
(identifier_target) identifier_target
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__first) identifier__first
)attribute
(False) False
)assignment
)expression_statement
)block
)else_clause
)for_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__first) identifier__first
)attribute
)return_statement
)block
)function_definition
)module | Returns the first module procedure embedded in the interface that has a valid
instance of a CodeElement. |
(module
(function_definition
(function_name_create_tab) function_name_create_tab
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_eb) identifier_eb
(call
(attribute
(identifier_self) identifier_self
(identifier__get_or_create_editor_buffer) identifier__get_or_create_editor_buffer
)attribute
(argument_list
(identifier_location) identifier_location
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tab_pages) identifier_tab_pages
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_active_tab_index) identifier_active_tab_index
)attribute
(integer_1) integer_1
)binary_operator
(call
(identifier_TabPage) identifier_TabPage
(argument_list
(call
(identifier_Window) identifier_Window
(argument_list
(identifier_eb) identifier_eb
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_active_tab_index) identifier_active_tab_index
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Create a new tab page. |
(module
(function_definition
(function_name_to_ipv6) function_name_to_ipv6
(parameters
(identifier_key) identifier_key
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_key) identifier_key
(slice
(unary_operator
(integer_2) integer_2
)unary_operator
(colon) colon
)slice
)subscript
(string_'.k') string_'.k'
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Key does not end with .k') string_'Key does not end with .k'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_key_bytes) identifier_key_bytes
(call
(attribute
(identifier_base32) identifier_base32
(identifier_decode) identifier_decode
)attribute
(argument_list
(subscript
(identifier_key) identifier_key
(slice
(colon) colon
(unary_operator
(integer_2) integer_2
)unary_operator
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hash_one) identifier_hash_one
(call
(attribute
(call
(identifier_sha512) identifier_sha512
(argument_list
(identifier_key_bytes) identifier_key_bytes
)argument_list
)call
(identifier_digest) identifier_digest
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hash_two) identifier_hash_two
(call
(attribute
(call
(identifier_sha512) identifier_sha512
(argument_list
(identifier_hash_one) identifier_hash_one
)argument_list
)call
(identifier_hexdigest) identifier_hexdigest
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_':') string_':'
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(subscript
(identifier_hash_two) identifier_hash_two
(slice
(identifier_i) identifier_i
(colon) colon
(binary_operator
(identifier_i) identifier_i
(integer_4) integer_4
)binary_operator
)slice
)subscript
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(integer_32) integer_32
(integer_4) integer_4
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get IPv6 address from a public key. |
(module
(function_definition
(function_name__read_generated_broker_id) function_name__read_generated_broker_id
(parameters
(identifier_meta_properties_path) identifier_meta_properties_path
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_meta_properties_path) identifier_meta_properties_path
(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_broker_id) identifier_broker_id
(call
(identifier__parse_meta_properties_file) identifier__parse_meta_properties_file
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(raise_statement
(call
(identifier_IOError) identifier_IOError
(argument_list
(call
(attribute
(string_"Cannot open meta.properties file: {path}") string_"Cannot open meta.properties file: {path}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_meta_properties_path) identifier_meta_properties_path
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Broker id not valid") string_"Broker id not valid"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_broker_id) identifier_broker_id
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Autogenerated broker id missing from data directory") string_"Autogenerated broker id missing from data directory"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_broker_id) identifier_broker_id
)return_statement
)block
)function_definition
)module | reads broker_id from meta.properties file.
:param string meta_properties_path: path for meta.properties file
:returns int: broker_id from meta_properties_path |
(module
(function_definition
(function_name_format_filter_value) function_name_format_filter_value
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_format_func) identifier_format_func
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_allowed_filter) identifier_allowed_filter
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_format_func) identifier_format_func
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calls the specific function to format value,
depending on the given element.
Arguments:
element (string): The element of the VT to be formatted.
value (dictionary): The element value.
Returns:
Returns a formatted value. |
(module
(function_definition
(function_name_async_new_device_callback) function_name_async_new_device_callback
(parameters
(identifier_self) identifier_self
(identifier_device) identifier_device
)parameters
(block
(expression_statement
(call
(attribute
(identifier__LOGGING) identifier__LOGGING
(identifier_info) identifier_info
)attribute
(argument_list
(string_'New Device: %s cat: 0x%02x subcat: 0x%02x desc: %s, model: %s') string_'New Device: %s cat: 0x%02x subcat: 0x%02x desc: %s, model: %s'
(attribute
(identifier_device) identifier_device
(identifier_id) identifier_id
)attribute
(attribute
(identifier_device) identifier_device
(identifier_cat) identifier_cat
)attribute
(attribute
(identifier_device) identifier_device
(identifier_subcat) identifier_subcat
)attribute
(attribute
(identifier_device) identifier_device
(identifier_description) identifier_description
)attribute
(attribute
(identifier_device) identifier_device
(identifier_model) identifier_model
)attribute
)argument_list
)call
)expression_statement
(for_statement
(identifier_state) identifier_state
(attribute
(identifier_device) identifier_device
(identifier_states) identifier_states
)attribute
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_device) identifier_device
(identifier_states) identifier_states
)attribute
(identifier_state) identifier_state
)subscript
(identifier_register_updates) identifier_register_updates
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_async_state_change_callback) identifier_async_state_change_callback
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Log that our new device callback worked. |
(module
(function_definition
(function_name_sendFinalResponse) function_name_sendFinalResponse
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_requestProtocol) identifier_requestProtocol
)attribute
(identifier_requestResponse) identifier_requestResponse
)attribute
(string_"code") string_"code"
)subscript
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_responseCode) identifier_responseCode
)attribute
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_requestProtocol) identifier_requestProtocol
)attribute
(identifier_requestResponse) identifier_requestResponse
)attribute
(string_"content") string_"content"
)subscript
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_responseContent) identifier_responseContent
)attribute
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_requestProtocol) identifier_requestProtocol
)attribute
(identifier_requestResponse) identifier_requestResponse
)attribute
(string_"errors") string_"errors"
)subscript
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_responseErrors) identifier_responseErrors
)attribute
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_requestProtocol) identifier_requestProtocol
)attribute
(identifier_sendFinalRequestResponse) identifier_sendFinalRequestResponse
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Send the final response and close the connection.
:return: <void> |
(module
(function_definition
(function_name_as_pyemu_matrix) function_name_as_pyemu_matrix
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_typ) identifier_typ
(identifier_Matrix) identifier_Matrix
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_float) identifier_float
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_typ) identifier_typ
(argument_list
(keyword_argument
(identifier_x) identifier_x
(identifier_x) identifier_x
)keyword_argument
(keyword_argument
(identifier_row_names) identifier_row_names
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_index) identifier_index
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_col_names) identifier_col_names
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a pyemu.Matrix from the Ensemble.
Parameters
----------
typ : pyemu.Matrix or derived type
the type of matrix to return
Returns
-------
pyemu.Matrix : pyemu.Matrix |
(module
(function_definition
(function_name_RenderValue) function_name_RenderValue
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_limit_lists) identifier_limit_lists
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_renderer) identifier_renderer
(call
(attribute
(identifier_ApiValueRenderer) identifier_ApiValueRenderer
(identifier_GetRendererForValueOrClass) identifier_GetRendererForValueOrClass
)attribute
(argument_list
(identifier_value) identifier_value
(keyword_argument
(identifier_limit_lists) identifier_limit_lists
(identifier_limit_lists) identifier_limit_lists
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_renderer) identifier_renderer
(identifier_RenderValue) identifier_RenderValue
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Render given RDFValue as plain old python objects. |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(print_statement
(string_"MERGING") string_"MERGING"
(identifier_self) identifier_self
(identifier_other) identifier_other
)print_statement
(expression_statement
(assignment
(identifier_other) identifier_other
(call
(attribute
(identifier_self) identifier_self
(identifier_coerce) identifier_coerce
)attribute
(argument_list
(identifier_other) identifier_other
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_contradictory) identifier_is_contradictory
)attribute
(argument_list
(identifier_other) identifier_other
)argument_list
)call
(block
(raise_statement
(call
(identifier_Contradiction) identifier_Contradiction
(argument_list
(binary_operator
(string_"Cannot merge %s and %s") string_"Cannot merge %s and %s"
(tuple
(identifier_self) identifier_self
(identifier_other) identifier_other
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
(None) None
)comparison_operator
(not_operator
(comparison_operator
(attribute
(identifier_other) identifier_other
(identifier_value) identifier_value
)attribute
(None) None
)comparison_operator
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_r) identifier_r
)attribute
(attribute
(identifier_self) identifier_self
(identifier_g) identifier_g
)attribute
(attribute
(identifier_self) identifier_self
(identifier_b) identifier_b
)attribute
)pattern_list
(expression_list
(attribute
(identifier_other) identifier_other
(identifier_r) identifier_r
)attribute
(attribute
(identifier_other) identifier_other
(identifier_g) identifier_g
)attribute
(attribute
(identifier_other) identifier_other
(identifier_b) identifier_b
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
(call
(identifier_RGBColor) identifier_RGBColor
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_r) identifier_r
)attribute
(attribute
(identifier_self) identifier_self
(identifier_b) identifier_b
)attribute
(attribute
(identifier_self) identifier_self
(identifier_g) identifier_g
)attribute
(keyword_argument
(identifier_rgb_type) identifier_rgb_type
(string_'sRGB') string_'sRGB'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Merges the values |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_node) identifier_node
)attribute
(identifier_stop) identifier_stop
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_channel) identifier_channel
)attribute
(identifier_guild) identifier_guild
)attribute
(identifier_id) identifier_id
)attribute
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_position) identifier_position
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__paused) identifier__paused
)attribute
(False) False
)assignment
)expression_statement
)block
)function_definition
)module | Stops playback from lavalink.
.. important::
This method will clear the queue. |
(module
(function_definition
(function_name_get_web_element) function_name_get_web_element
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
)parameters
(block
(import_from_statement
(dotted_name
(identifier_toolium) identifier_toolium
(identifier_pageelements) identifier_pageelements
(identifier_page_element) identifier_page_element
)dotted_name
(dotted_name
(identifier_PageElement) identifier_PageElement
)dotted_name
)import_from_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element) identifier_element
(identifier_WebElement) identifier_WebElement
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_web_element) identifier_web_element
(identifier_element) identifier_element
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element) identifier_element
(identifier_PageElement) identifier_PageElement
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_web_element) identifier_web_element
(attribute
(identifier_element) identifier_element
(identifier_web_element) identifier_web_element
)attribute
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element) identifier_element
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_web_element) identifier_web_element
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_driver_wrapper) identifier_driver_wrapper
)attribute
(identifier_driver) identifier_driver
)attribute
(identifier_find_element) identifier_find_element
)attribute
(argument_list
(list_splat
(identifier_element) identifier_element
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_web_element) identifier_web_element
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_web_element) identifier_web_element
)return_statement
)block
)function_definition
)module | Return the web element from a page element or its locator
:param element: either a WebElement, PageElement or element locator as a tuple (locator_type, locator_value)
:returns: WebElement object |
(module
(function_definition
(function_name_pretty_memory_info) function_name_pretty_memory_info
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_process) identifier_process
(call
(attribute
(identifier_psutil) identifier_psutil
(identifier_Process) identifier_Process
)attribute
(argument_list
(call
(attribute
(identifier_os) identifier_os
(identifier_getpid) identifier_getpid
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'{}MB memory usage') string_'{}MB memory usage'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(call
(attribute
(identifier_process) identifier_process
(identifier_memory_info) identifier_memory_info
)attribute
(argument_list
)argument_list
)call
(identifier_rss) identifier_rss
)attribute
(binary_operator
(integer_2) integer_2
(integer_20) integer_20
)binary_operator
)binary_operator
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Pretty format memory info.
Returns
-------
str
Memory info.
Examples
--------
>>> pretty_memory_info()
'5MB memory usage' |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_view) identifier_view
(string_'hypergrid') string_'hypergrid'
)default_parameter
(default_parameter
(identifier_schema) identifier_schema
(None) None
)default_parameter
(default_parameter
(identifier_columns) identifier_columns
(None) None
)default_parameter
(default_parameter
(identifier_rowpivots) identifier_rowpivots
(None) None
)default_parameter
(default_parameter
(identifier_columnpivots) identifier_columnpivots
(None) None
)default_parameter
(default_parameter
(identifier_aggregates) identifier_aggregates
(None) None
)default_parameter
(default_parameter
(identifier_sort) identifier_sort
(None) None
)default_parameter
(default_parameter
(identifier_index) identifier_index
(string_'') string_''
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_computedcolumns) identifier_computedcolumns
(None) None
)default_parameter
(default_parameter
(identifier_settings) identifier_settings
(True) True
)default_parameter
(default_parameter
(identifier_embed) identifier_embed
(False) False
)default_parameter
(default_parameter
(identifier_dark) identifier_dark
(False) False
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_view) identifier_view
)attribute
(call
(identifier_validate_view) identifier_validate_view
(argument_list
(identifier_view) identifier_view
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_schema) identifier_schema
)attribute
(boolean_operator
(identifier_schema) identifier_schema
(dictionary
)dictionary
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sort) identifier_sort
)attribute
(boolean_operator
(call
(identifier_validate_sort) identifier_validate_sort
(argument_list
(identifier_sort) identifier_sort
)argument_list
)call
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_index) identifier_index
)attribute
(identifier_index) identifier_index
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)attribute
(identifier_limit) identifier_limit
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(identifier_settings) identifier_settings
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_embed) identifier_embed
)attribute
(identifier_embed) identifier_embed
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dark) identifier_dark
)attribute
(identifier_dark) identifier_dark
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rowpivots) identifier_rowpivots
)attribute
(boolean_operator
(call
(identifier_validate_rowpivots) identifier_validate_rowpivots
(argument_list
(identifier_rowpivots) identifier_rowpivots
)argument_list
)call
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_columnpivots) identifier_columnpivots
)attribute
(boolean_operator
(call
(identifier_validate_columnpivots) identifier_validate_columnpivots
(argument_list
(identifier_columnpivots) identifier_columnpivots
)argument_list
)call
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_aggregates) identifier_aggregates
)attribute
(boolean_operator
(call
(identifier_validate_aggregates) identifier_validate_aggregates
(argument_list
(identifier_aggregates) identifier_aggregates
)argument_list
)call
(dictionary
)dictionary
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
(boolean_operator
(call
(identifier_validate_columns) identifier_validate_columns
(argument_list
(identifier_columns) identifier_columns
)argument_list
)call
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_computedcolumns) identifier_computedcolumns
)attribute
(boolean_operator
(call
(identifier_validate_computedcolumns) identifier_validate_computedcolumns
(argument_list
(identifier_computedcolumns) identifier_computedcolumns
)argument_list
)call
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Setup perspective base class
Arguments:
data : dataframe/list/dict
The static or live datasource
Keyword Arguments:
view : str or View
what view to use. available in the enum View (default: {'hypergrid'})
columns : list of str
what columns to display
rowpivots : list of str
what names to use as rowpivots
columnpivots : list of str
what names to use as columnpivots
aggregates: dict(str: str or Aggregate)
dictionary of name to aggregate type (either string or enum Aggregate)
index : str
columns to use as index
limit : int
row limit
computedcolumns : list of dict
computed columns to set on the perspective viewer
settings : bool
display settings
settings : bool
embedded mode
dark : bool
use dark theme |
(module
(function_definition
(function_name_apply) function_name_apply
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_sender) identifier_sender
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_recipient) identifier_recipient
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_mailbox) identifier_mailbox
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_append_msg) identifier_append_msg
(type
(identifier_AppendMessage) identifier_AppendMessage
)type
)typed_parameter
)parameters
(line_continuation_\) line_continuation_\
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(type
(identifier_AppendMessage) identifier_AppendMessage
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(ellipsis_...) ellipsis_...
)expression_statement
)block
)function_definition
)module | Run the filter and return the mailbox where it should be appended,
or None to discard, and the message to be appended, which is usually
the same as ``append_msg``.
Args:
sender: The envelope sender of the message.
recipient: The envelope recipient of the message.
mailbox: The intended mailbox to append the message.
append_msg: The message to be appended.
raises:
:exc:`~pymap.exceptions.AppendFailure` |
(module
(function_definition
(function_name_get_info) function_name_get_info
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_info_response) identifier_info_response
(call
(attribute
(identifier_self) identifier_self
(identifier_send_command) identifier_send_command
)attribute
(argument_list
(string_"show info") string_"show info"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_info_response) identifier_info_response
)not_operator
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)if_statement
(function_definition
(function_name_convert_camel_case) function_name_convert_camel_case
(parameters
(identifier_string) identifier_string
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_all_cap_re) identifier_all_cap_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'\1_\2') string_r'\1_\2'
(call
(attribute
(identifier_first_cap_re) identifier_first_cap_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'\1_\2') string_r'\1_\2'
(identifier_string) identifier_string
)argument_list
)call
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(call
(identifier_convert_camel_case) identifier_convert_camel_case
(argument_list
(identifier_label) identifier_label
)argument_list
)call
(identifier_value) identifier_value
)tuple
(for_in_clause
(pattern_list
(identifier_label) identifier_label
(identifier_value) identifier_value
)pattern_list
(list_comprehension
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_": ") string_": "
)argument_list
)call
(for_in_clause
(identifier_line) identifier_line
(call
(attribute
(identifier_info_response) identifier_info_response
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\n") string_"\n"
)argument_list
)call
)for_in_clause
)list_comprehension
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Parses the output of a "show info" HAProxy command and returns a
simple dictionary of the results. |
(module
(function_definition
(function_name_egress_subnets) function_name_egress_subnets
(parameters
(default_parameter
(identifier_rid) identifier_rid
(None) None
)default_parameter
(default_parameter
(identifier_unit) identifier_unit
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name__to_range) function_name__to_range
(parameters
(identifier_addr) identifier_addr
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_r'^(?:\d{1,3}\.){3}\d{1,3}$') string_r'^(?:\d{1,3}\.){3}\d{1,3}$'
(identifier_addr) identifier_addr
)argument_list
)call
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_addr) identifier_addr
(string_'/32') string_'/32'
)augmented_assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(string_':') string_':'
(identifier_addr) identifier_addr
)comparison_operator
(comparison_operator
(string_'/') string_'/'
(identifier_addr) identifier_addr
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_addr) identifier_addr
(string_'/128') string_'/128'
)augmented_assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_addr) identifier_addr
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_settings) identifier_settings
(call
(identifier_relation_get) identifier_relation_get
(argument_list
(keyword_argument
(identifier_rid) identifier_rid
(identifier_rid) identifier_rid
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(identifier_unit) identifier_unit
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'egress-subnets') string_'egress-subnets'
(identifier_settings) identifier_settings
)comparison_operator
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_n) identifier_n
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_n) identifier_n
(call
(attribute
(subscript
(identifier_settings) identifier_settings
(string_'egress-subnets') string_'egress-subnets'
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)for_in_clause
(if_clause
(call
(attribute
(identifier_n) identifier_n
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)if_clause
)list_comprehension
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'ingress-address') string_'ingress-address'
(identifier_settings) identifier_settings
)comparison_operator
(block
(return_statement
(list
(call
(identifier__to_range) identifier__to_range
(argument_list
(subscript
(identifier_settings) identifier_settings
(string_'ingress-address') string_'ingress-address'
)subscript
)argument_list
)call
)list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'private-address') string_'private-address'
(identifier_settings) identifier_settings
)comparison_operator
(block
(return_statement
(list
(call
(identifier__to_range) identifier__to_range
(argument_list
(subscript
(identifier_settings) identifier_settings
(string_'private-address') string_'private-address'
)subscript
)argument_list
)call
)list
)return_statement
)block
)if_statement
(return_statement
(list
)list
)return_statement
)block
)function_definition
)module | Retrieve the egress-subnets from a relation.
This function is to be used on the providing side of the
relation, and provides the ranges of addresses that client
connections may come from. The result is uninteresting on
the consuming side of a relation (unit == local_unit()).
Returns a stable list of subnets in CIDR format.
eg. ['192.168.1.0/24', '2001::F00F/128']
If egress-subnets is not available, falls back to using the published
ingress-address, or finally private-address.
:param rid: string relation id
:param unit: string unit name
:side effect: calls relation_get
:return: list of subnets in CIDR format. eg. ['192.168.1.0/24', '2001::F00F/128'] |
(module
(function_definition
(function_name__calibration_program) function_name__calibration_program
(parameters
(typed_parameter
(identifier_qc) identifier_qc
(type
(identifier_QuantumComputer) identifier_QuantumComputer
)type
)typed_parameter
(typed_parameter
(identifier_tomo_experiment) identifier_tomo_experiment
(type
(identifier_TomographyExperiment) identifier_TomographyExperiment
)type
)typed_parameter
(typed_parameter
(identifier_setting) identifier_setting
(type
(identifier_ExperimentSetting) identifier_ExperimentSetting
)type
)typed_parameter
)parameters
(type
(identifier_Program) identifier_Program
)type
(block
(expression_statement
(assignment
(identifier_calibr_prog) identifier_calibr_prog
(call
(identifier_Program) identifier_Program
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_readout_povm_instruction) identifier_readout_povm_instruction
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(call
(attribute
(attribute
(identifier_tomo_experiment) identifier_tomo_experiment
(identifier_program) identifier_program
)attribute
(identifier_out) identifier_out
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(string_'PRAGMA READOUT-POVM') string_'PRAGMA READOUT-POVM'
(identifier_i) identifier_i
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_calibr_prog) identifier_calibr_prog
(identifier_readout_povm_instruction) identifier_readout_povm_instruction
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_kraus_instructions) identifier_kraus_instructions
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(call
(attribute
(attribute
(identifier_tomo_experiment) identifier_tomo_experiment
(identifier_program) identifier_program
)attribute
(identifier_out) identifier_out
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(string_'PRAGMA ADD-KRAUS') string_'PRAGMA ADD-KRAUS'
(identifier_i) identifier_i
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_calibr_prog) identifier_calibr_prog
(identifier_kraus_instructions) identifier_kraus_instructions
)augmented_assignment
)expression_statement
(for_statement
(pattern_list
(identifier_q) identifier_q
(identifier_op) identifier_op
)pattern_list
(call
(attribute
(attribute
(identifier_setting) identifier_setting
(identifier_out_operator) identifier_out_operator
)attribute
(identifier_operations_as_set) identifier_operations_as_set
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_calibr_prog) identifier_calibr_prog
(call
(identifier__one_q_pauli_prep) identifier__one_q_pauli_prep
(argument_list
(keyword_argument
(identifier_label) identifier_label
(identifier_op) identifier_op
)keyword_argument
(keyword_argument
(identifier_index) identifier_index
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_qubit) identifier_qubit
(identifier_q) identifier_q
)keyword_argument
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_q) identifier_q
(identifier_op) identifier_op
)pattern_list
(call
(attribute
(attribute
(identifier_setting) identifier_setting
(identifier_out_operator) identifier_out_operator
)attribute
(identifier_operations_as_set) identifier_operations_as_set
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_calibr_prog) identifier_calibr_prog
(call
(identifier__local_pauli_eig_meas) identifier__local_pauli_eig_meas
(argument_list
(identifier_op) identifier_op
(identifier_q) identifier_q
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_calibr_prog) identifier_calibr_prog
)return_statement
)block
)function_definition
)module | Program required for calibration in a tomography-like experiment.
:param tomo_experiment: A suite of tomographic observables
:param ExperimentSetting: The particular tomographic observable to measure
:param symmetrize_readout: Method used to symmetrize the readout errors (see docstring for
`measure_observables` for more details)
:param cablir_shots: number of shots to take in the measurement process
:return: Program performing the calibration |
(module
(function_definition
(function_name__call_api) function_name__call_api
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_method) identifier_method
(string_'GET') string_'GET'
)default_parameter
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_data) identifier_data
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(keyword_argument
(identifier_method) identifier_method
(identifier_method) identifier_method
)keyword_argument
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_verify) identifier_verify
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_insecure) identifier_insecure
)attribute
)not_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_req) identifier_req
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(attribute
(identifier_req) identifier_req
(identifier_text) identifier_text
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_'Error while decoding JSON: {0}') string_'Error while decoding JSON: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(attribute
(identifier_req) identifier_req
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_'error_code') string_'error_code'
(identifier_output) identifier_output
)comparison_operator
(block
(raise_statement
(call
(identifier_APIError) identifier_APIError
(argument_list
(subscript
(identifier_output) identifier_output
(string_'error') string_'error'
)subscript
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Method used to call the API.
It returns the raw JSON returned by the API or raises an exception
if something goes wrong.
:arg url: the URL to call
:kwarg method: the HTTP method to use when calling the specified
URL, can be GET, POST, DELETE, UPDATE...
Defaults to GET
:kwarg params: the params to specify to a GET request
:kwarg data: the data to send to a POST request |
(module
(function_definition
(function_name__load_client_cert_chain) function_name__load_client_cert_chain
(parameters
(identifier_keychain) identifier_keychain
(list_splat_pattern
(identifier_paths) identifier_paths
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_certificates) identifier_certificates
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_identities) identifier_identities
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_paths) identifier_paths
(generator_expression
(identifier_path) identifier_path
(for_in_clause
(identifier_path) identifier_path
(identifier_paths) identifier_paths
)for_in_clause
(if_clause
(identifier_path) identifier_path
)if_clause
)generator_expression
)assignment
)expression_statement
(try_statement
(block
(for_statement
(identifier_file_path) identifier_file_path
(identifier_paths) identifier_paths
(block
(expression_statement
(assignment
(pattern_list
(identifier_new_identities) identifier_new_identities
(identifier_new_certs) identifier_new_certs
)pattern_list
(call
(identifier__load_items_from_file) identifier__load_items_from_file
(argument_list
(identifier_keychain) identifier_keychain
(identifier_file_path) identifier_file_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_identities) identifier_identities
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_new_identities) identifier_new_identities
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_certificates) identifier_certificates
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_new_certs) identifier_new_certs
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_identities) identifier_identities
)not_operator
(block
(expression_statement
(assignment
(identifier_new_identity) identifier_new_identity
(call
(attribute
(identifier_Security) identifier_Security
(identifier_SecIdentityRef) identifier_SecIdentityRef
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_status) identifier_status
(call
(attribute
(identifier_Security) identifier_Security
(identifier_SecIdentityCreateWithCertificate) identifier_SecIdentityCreateWithCertificate
)attribute
(argument_list
(identifier_keychain) identifier_keychain
(subscript
(identifier_certificates) identifier_certificates
(integer_0) integer_0
)subscript
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_new_identity) identifier_new_identity
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__assert_no_error) identifier__assert_no_error
(argument_list
(identifier_status) identifier_status
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_identities) identifier_identities
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_identity) identifier_new_identity
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_CFRelease) identifier_CFRelease
)attribute
(argument_list
(call
(attribute
(identifier_certificates) identifier_certificates
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_trust_chain) identifier_trust_chain
(call
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_CFArrayCreateMutable) identifier_CFArrayCreateMutable
)attribute
(argument_list
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_kCFAllocatorDefault) identifier_kCFAllocatorDefault
)attribute
(integer_0) integer_0
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_kCFTypeArrayCallBacks) identifier_kCFTypeArrayCallBacks
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_chain) identifier_chain
)attribute
(argument_list
(identifier_identities) identifier_identities
(identifier_certificates) identifier_certificates
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_CFArrayAppendValue) identifier_CFArrayAppendValue
)attribute
(argument_list
(identifier_trust_chain) identifier_trust_chain
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_trust_chain) identifier_trust_chain
)return_statement
)block
(finally_clause
(block
(for_statement
(identifier_obj) identifier_obj
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_chain) identifier_chain
)attribute
(argument_list
(identifier_identities) identifier_identities
(identifier_certificates) identifier_certificates
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_CFRelease) identifier_CFRelease
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Load certificates and maybe keys from a number of files. Has the end goal
of returning a CFArray containing one SecIdentityRef, and then zero or more
SecCertificateRef objects, suitable for use as a client certificate trust
chain. |
(module
(function_definition
(function_name_expand) function_name_expand
(parameters
(identifier_template_str) identifier_template_str
(identifier_dictionary) identifier_dictionary
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(identifier_Template) identifier_Template
(argument_list
(identifier_template_str) identifier_template_str
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_t) identifier_t
(identifier_expand) identifier_expand
)attribute
(argument_list
(identifier_dictionary) identifier_dictionary
)argument_list
)call
)return_statement
)block
)function_definition
)module | Free function to expands a template string with a data dictionary.
This is useful for cases where you don't care about saving the result of
compilation (similar to re.match('.*', s) vs DOT_STAR.match(s)) |
(module
(function_definition
(function_name__ReadN) function_name__ReadN
(parameters
(identifier_self) identifier_self
(identifier_n) identifier_n
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(string_"") string_""
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_chunk) identifier_chunk
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__read_file) identifier__read_file
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(binary_operator
(identifier_n) identifier_n
(call
(identifier_len) identifier_len
(argument_list
(identifier_ret) identifier_ret
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(identifier_chunk) identifier_chunk
)augmented_assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_ret) identifier_ret
)argument_list
)call
(identifier_n) identifier_n
)comparison_operator
(not_operator
(identifier_chunk) identifier_chunk
)not_operator
)boolean_operator
(block
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module | Reads n characters from the input stream, or until EOF.
This is equivalent to the current CPython implementation of read(n), but
not guaranteed by the docs.
Args:
n: int
Returns:
string |
(module
(function_definition
(function_name_wrap_constant) function_name_wrap_constant
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_queries) identifier_queries
)dotted_name
)relative_import
(dotted_name
(identifier_QueryBuilder) identifier_QueryBuilder
)dotted_name
)import_from_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(tuple
(identifier_Term) identifier_Term
(identifier_QueryBuilder) identifier_QueryBuilder
(identifier_Interval) identifier_Interval
)tuple
)argument_list
)call
(block
(return_statement
(identifier_val) identifier_val
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_val) identifier_val
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_NullValue) identifier_NullValue
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(call
(identifier_Array) identifier_Array
(argument_list
(list_splat
(identifier_val) identifier_val
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(return_statement
(call
(identifier_Tuple) identifier_Tuple
(argument_list
(list_splat
(identifier_val) identifier_val
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier__ValueWrapper) identifier__ValueWrapper
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(string_'_wrapper_cls') string_'_wrapper_cls'
(identifier_ValueWrapper) identifier_ValueWrapper
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__ValueWrapper) identifier__ValueWrapper
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
)function_definition
)module | Used for wrapping raw inputs such as numbers in Criterions and Operator.
For example, the expression F('abc')+1 stores the integer part in a ValueWrapper object.
:param val:
Any value.
:return:
Raw string, number, or decimal values will be returned in a ValueWrapper. Fields and other parts of the
querybuilder will be returned as inputted. |
(module
(function_definition
(function_name_remove_items) function_name_remove_items
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_items) identifier_items
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_items) identifier_items
(list_comprehension
(attribute
(identifier_i) identifier_i
(identifier_id) identifier_id
)attribute
(for_in_clause
(identifier_i) identifier_i
(parenthesized_expression
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_process) identifier_process
)attribute
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)await
)parenthesized_expression
)for_in_clause
(if_clause
(comparison_operator
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_items) identifier_items
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connector) identifier_connector
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(call
(attribute
(string_'Playlists/{Id}/Items') string_'Playlists/{Id}/Items'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_Id) identifier_Id
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_EntryIds) identifier_EntryIds
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_remote) identifier_remote
(False) False
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | remove items from the playlist
|coro|
Parameters
----------
items : array_like
list of items to remove(or their ids)
See Also
--------
add_items : |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_source_id) identifier_source_id
(None) None
)default_parameter
(default_parameter
(identifier_profile_id) identifier_profile_id
(None) None
)default_parameter
(default_parameter
(identifier_profile_reference) identifier_profile_reference
(None) None
)default_parameter
(default_parameter
(identifier_filter_id) identifier_filter_id
(None) None
)default_parameter
(default_parameter
(identifier_filter_reference) identifier_filter_reference
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_query_params) identifier_query_params
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"source_id") string_"source_id"
)subscript
(call
(identifier__validate_source_id) identifier__validate_source_id
(argument_list
(identifier_source_id) identifier_source_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_profile_id) identifier_profile_id
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"profile_id") string_"profile_id"
)subscript
(call
(identifier__validate_profile_id) identifier__validate_profile_id
(argument_list
(identifier_profile_id) identifier_profile_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_profile_reference) identifier_profile_reference
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"profile_reference") string_"profile_reference"
)subscript
(call
(identifier__validate_profile_reference) identifier__validate_profile_reference
(argument_list
(identifier_profile_reference) identifier_profile_reference
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_filter_id) identifier_filter_id
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"filter_id") string_"filter_id"
)subscript
(call
(identifier__validate_filter_id) identifier__validate_filter_id
(argument_list
(identifier_filter_id) identifier_filter_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_filter_reference) identifier_filter_reference
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"filter_reference") string_"filter_reference"
)subscript
(call
(identifier__validate_filter_reference) identifier__validate_filter_reference
(argument_list
(identifier_filter_reference) identifier_filter_reference
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'profile/revealing') string_'profile/revealing'
(identifier_query_params) identifier_query_params
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Retrieve the interpretability information.
Args:
source_id: <string>
source id
profile_id: <string>
profile id
filter_id: <string>
filter id
Returns
interpretability information |
(module
(function_definition
(function_name_join) function_name_join
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(default_parameter
(identifier_op) identifier_op
(string_'LEFT JOIN') string_'LEFT JOIN'
)default_parameter
(default_parameter
(identifier_on) identifier_on
(string_'') string_''
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_source) identifier_source
(identifier_SQLConstructor) identifier_SQLConstructor
)argument_list
)call
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_sql) identifier_sql
(identifier_params) identifier_params
(identifier__) identifier__
)tuple_pattern
(call
(attribute
(identifier_source) identifier_source
(identifier_compile) identifier_compile
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_join_params) identifier_join_params
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_jsrc) identifier_jsrc
(call
(attribute
(string_'( {0} )') string_'( {0} )'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_sql) identifier_sql
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_source) identifier_source
(identifier_table_alias) identifier_table_alias
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_jsrc) identifier_jsrc
(binary_operator
(string_' AS ') string_' AS '
(attribute
(identifier_source) identifier_source
(identifier_table_alias) identifier_table_alias
)attribute
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_on) identifier_on
(call
(attribute
(identifier_on) identifier_on
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_r) identifier_r
(attribute
(identifier_source) identifier_source
(identifier_table_alias) identifier_table_alias
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_jsrc) identifier_jsrc
(identifier_source) identifier_source
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_on) identifier_on
(call
(attribute
(identifier_on) identifier_on
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_r) identifier_r
(identifier_source) identifier_source
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_constraint) identifier_constraint
(conditional_expression
(call
(attribute
(string_'ON {0}') string_'ON {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_on) identifier_on
)argument_list
)call
(identifier_on) identifier_on
(string_'') string_''
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_join_source) identifier_join_source
)attribute
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(list
(attribute
(identifier_self) identifier_self
(identifier_join_source) identifier_join_source
)attribute
(identifier_op) identifier_op
(identifier_jsrc) identifier_jsrc
(identifier_constraint) identifier_constraint
)list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Join `source`.
>>> sc = SQLConstructor('main', ['c1', 'c2'])
>>> sc.join('sub', 'JOIN', 'main.id = sub.id')
>>> (sql, params, keys) = sc.compile()
>>> sql
'SELECT c1, c2 FROM main JOIN sub ON main.id = sub.id'
It is possible to pass another `SQLConstructor` as a source.
>>> sc = SQLConstructor('main', ['c1', 'c2'])
>>> sc.add_or_matches('{0} = {1}', 'c1', [111])
>>> subsc = SQLConstructor('sub', ['d1', 'd2'])
>>> subsc.add_or_matches('{0} = {1}', 'd1', ['abc'])
>>> sc.join(subsc, 'JOIN', 'main.id = sub.id')
>>> sc.add_column('d1')
>>> (sql, params, keys) = sc.compile()
>>> print(sql) # doctest: +NORMALIZE_WHITESPACE
SELECT c1, c2, d1 FROM main
JOIN ( SELECT d1, d2 FROM sub WHERE (d1 = ?) )
ON main.id = sub.id
WHERE (c1 = ?)
`params` is set appropriately to include parameters for joined
source:
>>> params
['abc', 111]
Note that `subsc.compile` is called when `sc.join(subsc, ...)`
is called. Therefore, calling `subsc.add_<predicate>` does not
effect `sc`.
:type source: str or SQLConstructor
:arg source: table
:type op: str
:arg op: operation (e.g., 'JOIN')
:type on: str
:arg on: on clause. `source` ("right" source) can be
referred using `{r}` formatting field. |
(module
(function_definition
(function_name_sasml) function_name_sasml
(parameters
(identifier_self) identifier_self
)parameters
(type
(string_'SASml') string_'SASml'
)type
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__loaded_macros) identifier__loaded_macros
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__loadmacros) identifier__loadmacros
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__loaded_macros) identifier__loaded_macros
)attribute
(True) True
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_SASml) identifier_SASml
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)return_statement
)block
)function_definition
)module | This methods creates a SASML object which you can use to run various analytics. See the sasml.py module.
:return: sasml object |
(module
(function_definition
(function_name__validate_state) function_name__validate_state
(parameters
(identifier_state) identifier_state
(identifier_valid_states) identifier_valid_states
)parameters
(block
(if_statement
(comparison_operator
(identifier_state) identifier_state
(identifier_State) identifier_State
)comparison_operator
(block
(return_statement
(attribute
(identifier_state) identifier_state
(identifier_name) identifier_name
)attribute
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_state) identifier_state
(identifier_valid_states) identifier_valid_states
)comparison_operator
(block
(return_statement
(identifier_state) identifier_state
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_Invalid) identifier_Invalid
(argument_list
(string_'Invalid state') string_'Invalid state'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Validate a state string |
(module
(function_definition
(function_name_background_color) function_name_background_color
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__has_real) identifier__has_real
)attribute
(argument_list
)argument_list
)call
(block
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_real_background_color) identifier_real_background_color
)attribute
)return_statement
)block
)if_statement
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_background_color) identifier_background_color
)attribute
)return_statement
)block
)function_definition
)module | Background color. |
(module
(function_definition
(function_name_discover_base_dir) function_name_discover_base_dir
(parameters
(identifier_start_dir) identifier_start_dir
)parameters
(block
(if_statement
(call
(identifier_is_base_dir) identifier_is_base_dir
(argument_list
(identifier_start_dir) identifier_start_dir
)argument_list
)call
(block
(return_statement
(identifier_start_dir) identifier_start_dir
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pcl) identifier_pcl
(call
(attribute
(identifier_start_dir) identifier_start_dir
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_found_base_dir) identifier_found_base_dir
(None) None
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_pcl) identifier_pcl
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_d2c) identifier_d2c
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_pcl) identifier_pcl
(slice
(colon) colon
(unary_operator
(identifier_i) identifier_i
)unary_operator
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_d2c) identifier_d2c
(string_'') string_''
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_d2c) identifier_d2c
(string_'/') string_'/'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_is_base_dir) identifier_is_base_dir
(argument_list
(identifier_d2c) identifier_d2c
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_found_base_dir) identifier_found_base_dir
(identifier_d2c) identifier_d2c
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_found_base_dir) identifier_found_base_dir
)return_statement
)block
)function_definition
)module | Return start_dir or the parent dir that has the s2 marker.
Starting from the specified directory, and going up the parent
chain, check each directory to see if it's a base_dir (contains
the "marker" directory *s2*) and return it. Otherwise, return
the start_dir. |
(module
(function_definition
(function_name_get_attrs) function_name_get_attrs
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_names) identifier_names
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(list_comprehension
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
)argument_list
)call
(for_in_clause
(identifier_name) identifier_name
(identifier_names) identifier_names
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_attrs) identifier_attrs
)return_statement
)block
)function_definition
)module | Get multiple attributes from multiple objects. |
(module
(function_definition
(function_name_venue_healthcheck) function_name_venue_healthcheck
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(identifier_urljoin) identifier_urljoin
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
(string_'venues/TESTEX/heartbeat') string_'venues/TESTEX/heartbeat'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
(string_'ok') string_'ok'
)subscript
)return_statement
)block
)function_definition
)module | Check A Venue Is Up.
https://starfighter.readme.io/docs/venue-healthcheck |
(module
(function_definition
(function_name_set_data_location) function_name_set_data_location
(parameters
(identifier_apps) identifier_apps
(identifier_schema_editor) identifier_schema_editor
)parameters
(block
(expression_statement
(assignment
(identifier_Data) identifier_Data
(call
(attribute
(identifier_apps) identifier_apps
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(string_'flow') string_'flow'
(string_'Data') string_'Data'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_DataLocation) identifier_DataLocation
(call
(attribute
(identifier_apps) identifier_apps
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(string_'flow') string_'flow'
(string_'DataLocation') string_'DataLocation'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_Data) identifier_Data
(identifier_objects) identifier_objects
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(attribute
(identifier_settings) identifier_settings
(identifier_FLOW_EXECUTOR) identifier_FLOW_EXECUTOR
)attribute
(string_'DATA_DIR') string_'DATA_DIR'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_data) identifier_data
(identifier_id) identifier_id
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_transaction) identifier_transaction
(identifier_atomic) identifier_atomic
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_data_location) identifier_data_location
(call
(attribute
(attribute
(identifier_DataLocation) identifier_DataLocation
(identifier_objects) identifier_objects
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(attribute
(identifier_data) identifier_data
(identifier_id) identifier_id
)attribute
)keyword_argument
(keyword_argument
(identifier_subpath) identifier_subpath
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_data) identifier_data
(identifier_id) identifier_id
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_data_location) identifier_data_location
(identifier_data) identifier_data
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
)block
)for_statement
(if_statement
(call
(attribute
(attribute
(identifier_DataLocation) identifier_DataLocation
(identifier_objects) identifier_objects
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_max_id) identifier_max_id
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_DataLocation) identifier_DataLocation
(identifier_objects) identifier_objects
)attribute
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
(identifier_last) identifier_last
)attribute
(argument_list
)argument_list
)call
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_connection) identifier_connection
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_cursor) identifier_cursor
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(string_"ALTER SEQUENCE flow_datalocation_id_seq RESTART WITH {};") string_"ALTER SEQUENCE flow_datalocation_id_seq RESTART WITH {};"
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(identifier_max_id) identifier_max_id
(integer_1) integer_1
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
)block
)function_definition
)module | Create DataLocation for each Data. |
(module
(function_definition
(function_name_state_not_literal) function_name_state_not_literal
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(assignment
(identifier_negate) identifier_negate
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_negate) identifier_negate
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_choice) identifier_choice
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_literals) identifier_literals
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(expression_statement
(yield
(identifier_value) identifier_value
)yield
)expression_statement
)block
)function_definition
)module | Parse not literal. |
(module
(function_definition
(function_name_function_exists) function_name_function_exists
(parameters
(identifier_self) identifier_self
(identifier_fun) identifier_fun
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(comparison_operator
(identifier_fun) identifier_fun
(attribute
(identifier_self) identifier_self
(identifier__rule_functions) identifier__rule_functions
)attribute
)comparison_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_say) identifier_say
)attribute
(argument_list
(binary_operator
(binary_operator
(binary_operator
(string_'function exists:') string_'function exists:'
(call
(identifier_str) identifier_str
(argument_list
(identifier_fun) identifier_fun
)argument_list
)call
)binary_operator
(string_':') string_':'
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)binary_operator
(keyword_argument
(identifier_verbosity) identifier_verbosity
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | get function's existense |
(module
(function_definition
(function_name_write_bits) function_name_write_bits
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_8) integer_8
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Can only write 8 bits at a time") string_"Can only write 8 bits at a time"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_buffer) identifier__output_buffer
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_chr) identifier_chr
(argument_list
(call
(identifier_reduce) identifier_reduce
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(call
(identifier_xor) identifier_xor
(argument_list
(identifier_x) identifier_x
(binary_operator
(subscript
(identifier_args) identifier_args
(identifier_y) identifier_y
)subscript
(identifier_y) identifier_y
)binary_operator
)argument_list
)call
)lambda
(call
(identifier_xrange) identifier_xrange
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Write multiple bits in a single byte field. The bits will be written in
little-endian order, but should be supplied in big endian order. Will
raise ValueError when more than 8 arguments are supplied.
write_bits(True, False) => 0x02 |
(module
(function_definition
(function_name__parse_current_member) function_name__parse_current_member
(parameters
(identifier_self) identifier_self
(identifier_previous_rank) identifier_previous_rank
(identifier_values) identifier_values
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_rank) identifier_rank
(identifier_name) identifier_name
(identifier_vocation) identifier_vocation
(identifier_level) identifier_level
(identifier_joined) identifier_joined
(identifier_status) identifier_status
)pattern_list
(identifier_values) identifier_values
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rank) identifier_rank
(conditional_expression
(subscript
(identifier_previous_rank) identifier_previous_rank
(integer_1) integer_1
)subscript
(comparison_operator
(identifier_rank) identifier_rank
(string_" ") string_" "
)comparison_operator
(identifier_rank) identifier_rank
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_title) identifier_title
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_previous_rank) identifier_previous_rank
(integer_1) integer_1
)subscript
(identifier_rank) identifier_rank
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_title_regex) identifier_title_regex
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_m) identifier_m
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_title) identifier_title
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_members) identifier_members
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_GuildMember) identifier_GuildMember
(argument_list
(identifier_name) identifier_name
(identifier_rank) identifier_rank
(identifier_title) identifier_title
(call
(identifier_int) identifier_int
(argument_list
(identifier_level) identifier_level
)argument_list
)call
(identifier_vocation) identifier_vocation
(keyword_argument
(identifier_joined) identifier_joined
(identifier_joined) identifier_joined
)keyword_argument
(keyword_argument
(identifier_online) identifier_online
(comparison_operator
(identifier_status) identifier_status
(string_"online") string_"online"
)comparison_operator
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Parses the column texts of a member row into a member dictionary.
Parameters
----------
previous_rank: :class:`dict`[int, str]
The last rank present in the rows.
values: tuple[:class:`str`]
A list of row contents. |
(module
(function_definition
(function_name_ReadPermission) function_name_ReadPermission
(parameters
(identifier_self) identifier_self
(identifier_permission_link) identifier_permission_link
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_options) identifier_options
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_base) identifier_base
(identifier_GetPathFromLink) identifier_GetPathFromLink
)attribute
(argument_list
(identifier_permission_link) identifier_permission_link
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_permission_id) identifier_permission_id
(call
(attribute
(identifier_base) identifier_base
(identifier_GetResourceIdOrFullNameFromLink) identifier_GetResourceIdOrFullNameFromLink
)attribute
(argument_list
(identifier_permission_link) identifier_permission_link
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_Read) identifier_Read
)attribute
(argument_list
(identifier_path) identifier_path
(string_'permissions') string_'permissions'
(identifier_permission_id) identifier_permission_id
(None) None
(identifier_options) identifier_options
)argument_list
)call
)return_statement
)block
)function_definition
)module | Reads a permission.
:param str permission_link:
The link to the permission.
:param dict options:
The request options for the request.
:return:
The read permission.
:rtype:
dict |
(module
(function_definition
(function_name_find_root) function_name_find_root
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(identifier_self) identifier_self
)assignment
)expression_statement
(while_statement
(attribute
(identifier_cmd) identifier_cmd
(identifier_parent) identifier_parent
)attribute
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(attribute
(identifier_cmd) identifier_cmd
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_cmd) identifier_cmd
)return_statement
)block
)function_definition
)module | Traverse parent refs to top. |
(module
(function_definition
(function_name_print_command) function_name_print_command
(parameters
(typed_parameter
(identifier_command) identifier_command
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_fname) identifier_fname
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_fname) identifier_fname
(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_out) identifier_out
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_" \\\n") string_" \\\n"
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_command) identifier_command
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(identifier_out) identifier_out
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Format and print command to file.
:param command: Command in args list form.
:param fname: File name to write out. |
(module
(function_definition
(function_name_module_import) function_name_module_import
(parameters
(identifier_module_path) identifier_module_path
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier___import__) identifier___import__
(argument_list
(identifier_module_path) identifier_module_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_components) identifier_components
(call
(attribute
(identifier_module_path) identifier_module_path
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_component) identifier_component
(subscript
(identifier_components) identifier_components
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_module) identifier_module
(identifier_component) identifier_component
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_module) identifier_module
)return_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(raise_statement
(call
(identifier_BadModulePathError) identifier_BadModulePathError
(argument_list
(binary_operator
(string_'Unable to find module "%s".') string_'Unable to find module "%s".'
(tuple
(identifier_module_path) identifier_module_path
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Imports the module indicated in name
Args:
module_path: string representing a module path such as
'app.config' or 'app.extras.my_module'
Returns:
the module matching name of the last component, ie: for
'app.extras.my_module' it returns a
reference to my_module
Raises:
BadModulePathError if the module is not found |
(module
(function_definition
(function_name__set_pseudotime) function_name__set_pseudotime
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_pseudotime) identifier_pseudotime
)attribute
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_distances_dpt) identifier_distances_dpt
)attribute
(attribute
(identifier_self) identifier_self
(identifier_iroot) identifier_iroot
)attribute
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_pseudotime) identifier_pseudotime
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_max) identifier_max
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pseudotime) identifier_pseudotime
)attribute
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_pseudotime) identifier_pseudotime
)attribute
(attribute
(identifier_np) identifier_np
(identifier_inf) identifier_inf
)attribute
)comparison_operator
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Return pseudotime with respect to root point. |
(module
(function_definition
(function_name__max_lengths) function_name__max_lengths
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_max_header_length) identifier_max_header_length
(call
(identifier_max) identifier_max
(argument_list
(list_comprehension
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_x) identifier_x
(identifier_byte_match) identifier_byte_match
)attribute
)argument_list
)call
(attribute
(identifier_x) identifier_x
(identifier_offset) identifier_offset
)attribute
)binary_operator
(for_in_clause
(identifier_x) identifier_x
(identifier_magic_header_array) identifier_magic_header_array
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_max_footer_length) identifier_max_footer_length
(call
(identifier_max) identifier_max
(argument_list
(list_comprehension
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_x) identifier_x
(identifier_byte_match) identifier_byte_match
)attribute
)argument_list
)call
(call
(identifier_abs) identifier_abs
(argument_list
(attribute
(identifier_x) identifier_x
(identifier_offset) identifier_offset
)attribute
)argument_list
)call
)binary_operator
(for_in_clause
(identifier_x) identifier_x
(identifier_magic_footer_array) identifier_magic_footer_array
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_max_header_length) identifier_max_header_length
(identifier_max_footer_length) identifier_max_footer_length
)expression_list
)return_statement
)block
)function_definition
)module | The length of the largest magic string + its offset |
(module
(function_definition
(function_name__clean_dict) function_name__clean_dict
(parameters
(identifier_target_dict) identifier_target_dict
(default_parameter
(identifier_whitelist) identifier_whitelist
(None) None
)default_parameter
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_target_dict) identifier_target_dict
(identifier_dict) identifier_dict
)argument_list
)call
)assert_statement
(return_statement
(dictionary_comprehension
(pair
(call
(attribute
(call
(identifier_ustr) identifier_ustr
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(call
(identifier_ustr) identifier_ustr
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_target_dict) identifier_target_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(boolean_operator
(comparison_operator
(identifier_v) identifier_v
(tuple
(None) None
(identifier_Ellipsis) identifier_Ellipsis
(list
)list
(tuple
)tuple
(string_"") string_""
)tuple
)comparison_operator
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_whitelist) identifier_whitelist
)not_operator
(comparison_operator
(identifier_k) identifier_k
(identifier_whitelist) identifier_whitelist
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)if_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Convenience function that removes a dicts keys that have falsy values |
(module
(function_definition
(function_name_map_version) function_name_map_version
(parameters
(identifier_self) identifier_self
(identifier_requirement) identifier_requirement
(identifier_local_version) identifier_local_version
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__versions_map) identifier__versions_map
)attribute
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__versions_map) identifier__versions_map
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_requirement) identifier_requirement
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_local_version) identifier_local_version
(identifier_local_version) identifier_local_version
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(attribute
(identifier_self) identifier_self
(identifier__versions_map) identifier__versions_map
)attribute
(argument_list
(identifier_requirement) identifier_requirement
(identifier_local_version) identifier_local_version
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_version) identifier_version
)return_statement
)block
)function_definition
)module | Maps a local version name to one recognised by the Requirement class
Parameters
----------
requirement : str
Name of the requirement
version : str
version string |
(module
(function_definition
(function_name_sample_correlations) function_name_sample_correlations
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_C) identifier_C
(call
(attribute
(identifier_np) identifier_np
(identifier_corrcoef) identifier_corrcoef
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_X) identifier_X
)attribute
(identifier_T) identifier_T
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_corr_matrix) identifier_corr_matrix
(call
(identifier_ExpMatrix) identifier_ExpMatrix
(argument_list
(keyword_argument
(identifier_genes) identifier_genes
(attribute
(identifier_self) identifier_self
(identifier_samples) identifier_samples
)attribute
)keyword_argument
(keyword_argument
(identifier_samples) identifier_samples
(attribute
(identifier_self) identifier_self
(identifier_samples) identifier_samples
)attribute
)keyword_argument
(keyword_argument
(identifier_X) identifier_X
(identifier_C) identifier_C
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_corr_matrix) identifier_corr_matrix
)return_statement
)block
)function_definition
)module | Returns an `ExpMatrix` containing all pairwise sample correlations.
Returns
-------
`ExpMatrix`
The sample correlation matrix. |
(module
(function_definition
(function_name_assign) function_name_assign
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_key_split) identifier_key_split
(call
(attribute
(identifier_key) identifier_key
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cur_dict) identifier_cur_dict
(identifier_self) identifier_self
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(subscript
(identifier_key_split) identifier_key_split
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cur_dict) identifier_cur_dict
(subscript
(identifier_cur_dict) identifier_cur_dict
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(subscript
(identifier_cur_dict) identifier_cur_dict
(identifier_k) identifier_k
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cur_dict) identifier_cur_dict
(subscript
(identifier_cur_dict) identifier_cur_dict
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_cur_dict) identifier_cur_dict
(subscript
(identifier_key_split) identifier_key_split
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | an alternative method for assigning values to nested DotDict
instances. It accepts keys in the form of X.Y.Z. If any nested
DotDict instances don't yet exist, they will be created. |
(module
(function_definition
(function_name_publish_event) function_name_publish_event
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_suffix) identifier_suffix
(string_'') string_''
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_event_type) identifier_event_type
(call
(attribute
(identifier_data) identifier_data
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'event_type') string_'event_type'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(dictionary
(pair
(string_'result') string_'result'
(string_'error') string_'error'
)pair
(pair
(string_'message') string_'message'
(string_'Missing event_type in JSON data') string_'Missing event_type in JSON data'
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_publish_event_from_dict) identifier_publish_event_from_dict
)attribute
(argument_list
(identifier_event_type) identifier_event_type
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | AJAX handler to allow client-side code to publish a server-side event |
(module
(function_definition
(function_name_encode_quorum) function_name_encode_quorum
(parameters
(identifier_self) identifier_self
(identifier_rw) identifier_rw
)parameters
(block
(if_statement
(comparison_operator
(identifier_rw) identifier_rw
(identifier_QUORUM_TO_PB) identifier_QUORUM_TO_PB
)comparison_operator
(block
(return_statement
(subscript
(identifier_QUORUM_TO_PB) identifier_QUORUM_TO_PB
(identifier_rw) identifier_rw
)subscript
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_rw) identifier_rw
)argument_list
)call
(identifier_int) identifier_int
)comparison_operator
(comparison_operator
(identifier_rw) identifier_rw
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_rw) identifier_rw
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Converts a symbolic quorum value into its on-the-wire
equivalent.
:param rw: the quorum
:type rw: string, integer
:rtype: integer |
(module
(function_definition
(function_name__crossProduct) function_name__crossProduct
(parameters
(identifier_self) identifier_self
(identifier_ls) identifier_ls
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(subscript
(identifier_ls) identifier_ls
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ds) identifier_ds
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_ls) identifier_ls
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(for_statement
(identifier_i) identifier_i
(subscript
(attribute
(identifier_self) identifier_self
(identifier__parameters) identifier__parameters
)attribute
(identifier_p) identifier_p
)subscript
(block
(expression_statement
(assignment
(identifier_dp) identifier_dp
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_dp) identifier_dp
(identifier_p) identifier_p
)subscript
(identifier_i) identifier_i
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ds) identifier_ds
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_dp) identifier_dp
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ps) identifier_ps
(call
(attribute
(identifier_self) identifier_self
(identifier__crossProduct) identifier__crossProduct
)attribute
(argument_list
(subscript
(identifier_ls) identifier_ls
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(subscript
(attribute
(identifier_self) identifier_self
(identifier__parameters) identifier__parameters
)attribute
(identifier_p) identifier_p
)subscript
(block
(for_statement
(identifier_d) identifier_d
(identifier_ps) identifier_ps
(block
(expression_statement
(assignment
(identifier_dp) identifier_dp
(call
(attribute
(identifier_d) identifier_d
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_dp) identifier_dp
(identifier_p) identifier_p
)subscript
(identifier_i) identifier_i
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ds) identifier_ds
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_dp) identifier_dp
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_ds) identifier_ds
)return_statement
)block
)function_definition
)module | Internal method to generate the cross product of all parameter
values, creating the parameter space for the experiment.
:param ls: an array of parameter names
:returns: list of dicts |
(module
(function_definition
(function_name__filter_attribute) function_name__filter_attribute
(parameters
(identifier_mcs) identifier_mcs
(identifier_attribute_name) identifier_attribute_name
(identifier_attribute_value) identifier_attribute_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_attribute_name) identifier_attribute_name
(string_'__module__') string_'__module__'
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(elif_clause
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_attribute_value) identifier_attribute_value
(string_'_trace_disable') string_'_trace_disable'
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | decides whether the given attribute should be excluded from tracing or not |
(module
(function_definition
(function_name_parse_requirements) function_name_parse_requirements
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_finder) identifier_finder
(None) None
)default_parameter
(default_parameter
(identifier_comes_from) identifier_comes_from
(None) None
)default_parameter
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
(default_parameter
(identifier_session) identifier_session
(None) None
)default_parameter
(default_parameter
(identifier_constraint) identifier_constraint
(False) False
)default_parameter
(default_parameter
(identifier_wheel_cache) identifier_wheel_cache
(None) None
)default_parameter
(default_parameter
(identifier_use_pep517) identifier_use_pep517
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_session) identifier_session
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(concatenated_string
(string_"parse_requirements() missing 1 required keyword argument: ") string_"parse_requirements() missing 1 required keyword argument: "
(string_"'session'") string_"'session'"
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_content) identifier_content
)pattern_list
(call
(identifier_get_file_content) identifier_get_file_content
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_comes_from) identifier_comes_from
(identifier_comes_from) identifier_comes_from
)keyword_argument
(keyword_argument
(identifier_session) identifier_session
(identifier_session) identifier_session
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines_enum) identifier_lines_enum
(call
(identifier_preprocess) identifier_preprocess
(argument_list
(identifier_content) identifier_content
(identifier_options) identifier_options
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_line_number) identifier_line_number
(identifier_line) identifier_line
)pattern_list
(identifier_lines_enum) identifier_lines_enum
(block
(expression_statement
(assignment
(identifier_req_iter) identifier_req_iter
(call
(identifier_process_line) identifier_process_line
(argument_list
(identifier_line) identifier_line
(identifier_filename) identifier_filename
(identifier_line_number) identifier_line_number
(identifier_finder) identifier_finder
(identifier_comes_from) identifier_comes_from
(identifier_options) identifier_options
(identifier_session) identifier_session
(identifier_wheel_cache) identifier_wheel_cache
(keyword_argument
(identifier_use_pep517) identifier_use_pep517
(identifier_use_pep517) identifier_use_pep517
)keyword_argument
(keyword_argument
(identifier_constraint) identifier_constraint
(identifier_constraint) identifier_constraint
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_req) identifier_req
(identifier_req_iter) identifier_req_iter
(block
(expression_statement
(yield
(identifier_req) identifier_req
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Parse a requirements file and yield InstallRequirement instances.
:param filename: Path or url of requirements file.
:param finder: Instance of pip.index.PackageFinder.
:param comes_from: Origin description of requirements.
:param options: cli options.
:param session: Instance of pip.download.PipSession.
:param constraint: If true, parsing a constraint file rather than
requirements file.
:param wheel_cache: Instance of pip.wheel.WheelCache
:param use_pep517: Value of the --use-pep517 option. |
(module
(function_definition
(function_name_find_and_fire_hook) function_name_find_and_fire_hook
(parameters
(identifier_event_name) identifier_event_name
(identifier_instance) identifier_instance
(default_parameter
(identifier_user_override) identifier_user_override
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_contrib) identifier_contrib
(identifier_auth) identifier_auth
)dotted_name
(dotted_name
(identifier_get_user_model) identifier_get_user_model
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_User) identifier_User
(call
(identifier_get_user_model) identifier_get_user_model
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_contrib) identifier_contrib
(identifier_auth) identifier_auth
(identifier_models) identifier_models
)dotted_name
(dotted_name
(identifier_User) identifier_User
)dotted_name
)import_from_statement
)block
)except_clause
)try_statement
(import_from_statement
(dotted_name
(identifier_rest_hooks) identifier_rest_hooks
(identifier_models) identifier_models
)dotted_name
(dotted_name
(identifier_HOOK_EVENTS) identifier_HOOK_EVENTS
)dotted_name
)import_from_statement
(if_statement
(not_operator
(comparison_operator
(identifier_event_name) identifier_event_name
(call
(attribute
(identifier_HOOK_EVENTS) identifier_HOOK_EVENTS
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_'"{}" does not exist in `settings.HOOK_EVENTS`.') string_'"{}" does not exist in `settings.HOOK_EVENTS`.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_event_name) identifier_event_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_filters) identifier_filters
(dictionary
(pair
(string_'event') string_'event'
(identifier_event_name) identifier_event_name
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_user_override) identifier_user_override
(False) False
)comparison_operator
(block
(if_statement
(identifier_user_override) identifier_user_override
(block
(expression_statement
(assignment
(subscript
(identifier_filters) identifier_filters
(string_'user') string_'user'
)subscript
(identifier_user_override) identifier_user_override
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_instance) identifier_instance
(string_'user') string_'user'
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_filters) identifier_filters
(string_'user') string_'user'
)subscript
(attribute
(identifier_instance) identifier_instance
(identifier_user) identifier_user
)attribute
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_instance) identifier_instance
(identifier_User) identifier_User
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_filters) identifier_filters
(string_'user') string_'user'
)subscript
(identifier_instance) identifier_instance
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_'{} has no `user` property. REST Hooks needs this.') string_'{} has no `user` property. REST Hooks needs this.'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_HookModel) identifier_HookModel
(call
(identifier_get_hook_model) identifier_get_hook_model
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hooks) identifier_hooks
(call
(attribute
(attribute
(identifier_HookModel) identifier_HookModel
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(dictionary_splat
(identifier_filters) identifier_filters
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_hook) identifier_hook
(identifier_hooks) identifier_hooks
(block
(expression_statement
(call
(attribute
(identifier_hook) identifier_hook
(identifier_deliver_hook) identifier_deliver_hook
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Look up Hooks that apply |
(module
(function_definition
(function_name_filtering) function_name_filtering
(parameters
(identifier_queryset) identifier_queryset
(identifier_query_dict) identifier_query_dict
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_query_dict) identifier_query_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(assert_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_queryset) identifier_queryset
(identifier_key) identifier_key
)argument_list
)call
(concatenated_string
(string_"Parameter 'query_dict' contains") string_"Parameter 'query_dict' contains"
(string_" non-existent attribute.") string_" non-existent attribute."
)concatenated_string
)assert_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_queryset) identifier_queryset
(identifier_key) identifier_key
)argument_list
)call
(argument_list
(list_splat
(identifier_value) identifier_value
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_queryset) identifier_queryset
(identifier_key) identifier_key
)argument_list
)call
(argument_list
(dictionary_splat
(identifier_value) identifier_value
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_queryset) identifier_queryset
(identifier_key) identifier_key
)argument_list
)call
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_queryset) identifier_queryset
)return_statement
)block
)function_definition
)module | function to apply the pre search condition to the queryset to narrow
down the queryset's size
:param queryset: Django Queryset: queryset of all objects
:param query_dict: dict: contains selected_related, filter and other
customized filter functions
:return: queryset: result after applying the pre search condition dict |
(module
(function_definition
(function_name_redo) function_name_redo
(parameters
(identifier_self) identifier_self
(identifier_channel) identifier_channel
(identifier_image) identifier_image
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__image) identifier__image
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(attribute
(attribute
(identifier_channel) identifier_channel
(identifier_extdata) identifier_extdata
)attribute
(identifier__header_info) identifier__header_info
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_header) identifier_set_header
)attribute
(argument_list
(identifier_info) identifier_info
(identifier_image) identifier_image
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This is called when image changes. |
(module
(function_definition
(function_name_check_picture) function_name_check_picture
(parameters
(identifier_file_name) identifier_file_name
(default_parameter
(identifier_mediainfo_path) identifier_mediainfo_path
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_D) identifier_D
(call
(identifier_call_MediaInfo) identifier_call_MediaInfo
(argument_list
(identifier_file_name) identifier_file_name
(identifier_mediainfo_path) identifier_mediainfo_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(parenthesized_expression
(comparison_operator
(string_"Image") string_"Image"
(identifier_D) identifier_D
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(string_"Width") string_"Width"
(subscript
(identifier_D) identifier_D
(string_"Image") string_"Image"
)subscript
)comparison_operator
)parenthesized_expression
)boolean_operator
(parenthesized_expression
(comparison_operator
(string_"Height") string_"Height"
(subscript
(identifier_D) identifier_D
(string_"Image") string_"Image"
)subscript
)comparison_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
(block
(raise_statement
(call
(identifier_MediaInfoError) identifier_MediaInfoError
(argument_list
(string_"Could not determine all picture paramters") string_"Could not determine all picture paramters"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_D) identifier_D
)return_statement
)block
)function_definition
)module | Scans the given file with MediaInfo and returns the picture
information if all the required parameters were found. |
(module
(function_definition
(function_name__parse_to_recoverable_signature) function_name__parse_to_recoverable_signature
(parameters
(identifier_sig) identifier_sig
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_sig) identifier_sig
(identifier_bytes) identifier_bytes
)argument_list
)call
)assert_statement
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_sig) identifier_sig
)argument_list
)call
(integer_65) integer_65
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_rec_sig) identifier_rec_sig
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_new) identifier_new
)attribute
(argument_list
(string_"secp256k1_ecdsa_recoverable_signature *") string_"secp256k1_ecdsa_recoverable_signature *"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_recid) identifier_recid
(call
(identifier_ord) identifier_ord
(argument_list
(subscript
(identifier_sig) identifier_sig
(slice
(integer_64) integer_64
(colon) colon
(integer_65) integer_65
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parsable_sig) identifier_parsable_sig
(call
(attribute
(identifier_lib) identifier_lib
(identifier_secp256k1_ecdsa_recoverable_signature_parse_compact) identifier_secp256k1_ecdsa_recoverable_signature_parse_compact
)attribute
(argument_list
(identifier_ctx) identifier_ctx
(identifier_rec_sig) identifier_rec_sig
(identifier_sig) identifier_sig
(identifier_recid) identifier_recid
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_parsable_sig) identifier_parsable_sig
)not_operator
(block
(raise_statement
(call
(identifier_InvalidSignatureError) identifier_InvalidSignatureError
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_rec_sig) identifier_rec_sig
)return_statement
)block
)function_definition
)module | Returns a parsed recoverable signature of length 65 bytes |
(module
(function_definition
(function_name_available_composite_ids) function_name_available_composite_ids
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_available_datasets) identifier_available_datasets
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_available_datasets) identifier_available_datasets
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_available_datasets) identifier_available_datasets
(call
(attribute
(identifier_self) identifier_self
(identifier_available_dataset_ids) identifier_available_dataset_ids
)attribute
(argument_list
(keyword_argument
(identifier_composites) identifier_composites
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(not_operator
(call
(identifier_all) identifier_all
(generator_expression
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_ds_id) identifier_ds_id
(identifier_DatasetID) identifier_DatasetID
)argument_list
)call
(for_in_clause
(identifier_ds_id) identifier_ds_id
(identifier_available_datasets) identifier_available_datasets
)for_in_clause
)generator_expression
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"'available_datasets' must all be DatasetID objects") string_"'available_datasets' must all be DatasetID objects"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_all_comps) identifier_all_comps
(call
(attribute
(identifier_self) identifier_self
(identifier_all_composite_ids) identifier_all_composite_ids
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_comps) identifier_comps
(identifier_mods) identifier_mods
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cpl) identifier_cpl
)attribute
(identifier_load_compositors) identifier_load_compositors
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_attrs) identifier_attrs
)attribute
(string_'sensor') string_'sensor'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dep_tree) identifier_dep_tree
(call
(identifier_DependencyTree) identifier_DependencyTree
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_readers) identifier_readers
)attribute
(identifier_comps) identifier_comps
(identifier_mods) identifier_mods
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dep_tree) identifier_dep_tree
(identifier_find_dependencies) identifier_find_dependencies
)attribute
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(binary_operator
(identifier_available_datasets) identifier_available_datasets
(identifier_all_comps) identifier_all_comps
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_available_comps) identifier_available_comps
(call
(identifier_set) identifier_set
(generator_expression
(attribute
(identifier_x) identifier_x
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_dep_tree) identifier_dep_tree
(identifier_trunk) identifier_trunk
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(binary_operator
(identifier_available_comps) identifier_available_comps
(call
(identifier_set) identifier_set
(argument_list
(identifier_all_comps) identifier_all_comps
)argument_list
)call
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get names of compositors that can be generated from the available datasets.
Returns: generator of available compositor's names |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.