sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_share_project) function_name_share_project
(parameters
(identifier_project_id) identifier_project_id
(identifier_usernames) identifier_usernames
(identifier_read_only) identifier_read_only
(identifier_share) identifier_share
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_user_id) identifier_user_id
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'user_id') string_'user_id'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_proj_i) identifier_proj_i
(call
(identifier__get_project) identifier__get_project
(argument_list
(identifier_project_id) identifier_project_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_proj_i) identifier_proj_i
(identifier_check_share_permission) identifier_check_share_permission
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_user_id) identifier_user_id
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_user_id) identifier_user_id
(call
(identifier_int) identifier_int
(argument_list
(identifier_user_id) identifier_user_id
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_owner) identifier_owner
(attribute
(identifier_proj_i) identifier_proj_i
(identifier_owners) identifier_owners
)attribute
(block
(if_statement
(comparison_operator
(identifier_user_id) identifier_user_id
(attribute
(identifier_owner) identifier_owner
(identifier_user_id) identifier_user_id
)attribute
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_HydraError) identifier_HydraError
(argument_list
(string_"Permission Denied. Cannot share project.") string_"Permission Denied. Cannot share project."
)argument_list
)call
)raise_statement
)block
)else_clause
)for_statement
(if_statement
(comparison_operator
(identifier_read_only) identifier_read_only
(string_'Y') string_'Y'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_write) identifier_write
(string_'N') string_'N'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_share) identifier_share
(string_'N') string_'N'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_write) identifier_write
(string_'Y') string_'Y'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_proj_i) identifier_proj_i
(identifier_created_by) identifier_created_by
)attribute
(identifier_user_id) identifier_user_id
)comparison_operator
(comparison_operator
(identifier_share) identifier_share
(string_'Y') string_'Y'
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_HydraError) identifier_HydraError
(argument_list
(binary_operator
(concatenated_string
(string_"Cannot share the 'sharing' ability as user %s is not") string_"Cannot share the 'sharing' ability as user %s is not"
(string_" the owner of project %s") string_" the owner of project %s"
)concatenated_string
(tuple
(identifier_user_id) identifier_user_id
(identifier_project_id) identifier_project_id
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_username) identifier_username
(identifier_usernames) identifier_usernames
(block
(expression_statement
(assignment
(identifier_user_i) identifier_user_i
(call
(identifier__get_user) identifier__get_user
(argument_list
(identifier_username) identifier_username
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_proj_i) identifier_proj_i
(identifier_set_owner) identifier_set_owner
)attribute
(argument_list
(attribute
(identifier_user_i) identifier_user_i
(identifier_id) identifier_id
)attribute
(keyword_argument
(identifier_write) identifier_write
(identifier_write) identifier_write
)keyword_argument
(keyword_argument
(identifier_share) identifier_share
(identifier_share) identifier_share
)keyword_argument
)argument_list
)call
)expression_statement
(for_statement
(identifier_net_i) identifier_net_i
(attribute
(identifier_proj_i) identifier_proj_i
(identifier_networks) identifier_networks
)attribute
(block
(expression_statement
(call
(attribute
(identifier_net_i) identifier_net_i
(identifier_set_owner) identifier_set_owner
)attribute
(argument_list
(attribute
(identifier_user_i) identifier_user_i
(identifier_id) identifier_id
)attribute
(keyword_argument
(identifier_write) identifier_write
(identifier_write) identifier_write
)keyword_argument
(keyword_argument
(identifier_share) identifier_share
(identifier_share) identifier_share
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_DBSession) identifier_DBSession
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Share an entire project with a list of users, identifed by
their usernames.
The read_only flag ('Y' or 'N') must be set
to 'Y' to allow write access or sharing.
The share flat ('Y' or 'N') must be set to 'Y' to allow the
project to be shared with other users |
(module
(function_definition
(function_name_drawing_update) function_name_drawing_update
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_MAVProxy) identifier_MAVProxy
(identifier_modules) identifier_modules
(identifier_mavproxy_map) identifier_mavproxy_map
)dotted_name
(dotted_name
(identifier_mp_slipmap) identifier_mp_slipmap
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_draw_callback) identifier_draw_callback
)attribute
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_draw_line) identifier_draw_line
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_click_position) identifier_click_position
)attribute
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_draw_line) identifier_draw_line
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mpstate) identifier_mpstate
)attribute
(identifier_map) identifier_map
)attribute
(identifier_add_object) identifier_add_object
)attribute
(argument_list
(call
(attribute
(identifier_mp_slipmap) identifier_mp_slipmap
(identifier_SlipPolygon) identifier_SlipPolygon
)attribute
(argument_list
(string_'drawing') string_'drawing'
(attribute
(identifier_self) identifier_self
(identifier_draw_line) identifier_draw_line
)attribute
(keyword_argument
(identifier_layer) identifier_layer
(string_'Drawing') string_'Drawing'
)keyword_argument
(keyword_argument
(identifier_linewidth) identifier_linewidth
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_colour) identifier_colour
(tuple
(integer_128) integer_128
(integer_128) integer_128
(integer_255) integer_255
)tuple
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | update line drawing |
(module
(function_definition
(function_name_add_concept_filter) function_name_add_concept_filter
(parameters
(identifier_self) identifier_self
(identifier_concept) identifier_concept
(default_parameter
(identifier_concept_name) identifier_concept_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_concept) identifier_concept
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(if_statement
(not_operator
(identifier_concept_name) identifier_concept_name
)not_operator
(block
(expression_statement
(assignment
(identifier_concept_name) identifier_concept_name
(identifier_concept) identifier_concept
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
(identifier_concept) identifier_concept
)subscript
(identifier_list) identifier_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_es_version) identifier_es_version
)attribute
(string_'1') string_'1'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_es_filter) identifier_es_filter
(dictionary
(pair
(string_'or') string_'or'
(list
)list
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_or_filter) identifier_or_filter
(subscript
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
(identifier_concept) identifier_concept
)subscript
(block
(expression_statement
(call
(attribute
(subscript
(identifier_es_filter) identifier_es_filter
(string_'or') string_'or'
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__build_concept_term) identifier__build_concept_term
)attribute
(argument_list
(identifier_concept_name) identifier_concept_name
(identifier_or_filter) identifier_or_filter
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_es_filter) identifier_es_filter
(dictionary
(pair
(string_"bool") string_"bool"
(dictionary
(pair
(string_"should") string_"should"
(list
)list
)pair
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_or_filter) identifier_or_filter
(subscript
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
(identifier_concept) identifier_concept
)subscript
(block
(expression_statement
(call
(attribute
(subscript
(subscript
(identifier_es_filter) identifier_es_filter
(string_"bool") string_"bool"
)subscript
(string_"should") string_"should"
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__build_concept_term) identifier__build_concept_term
)attribute
(argument_list
(identifier_concept_name) identifier_concept_name
(identifier_or_filter) identifier_or_filter
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_es_filter) identifier_es_filter
(call
(attribute
(identifier_self) identifier_self
(identifier__build_concept_term) identifier__build_concept_term
)attribute
(argument_list
(identifier_concept_name) identifier_concept_name
(subscript
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
(identifier_concept) identifier_concept
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_filters) identifier_filters
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_es_filter) identifier_es_filter
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Add a concept filter
:param concept: concept which will be used as lowercase string in a search term
:param concept_name: name of the place where there will be searched for |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_client) identifier_client
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(identifier_self) identifier_self
(identifier__require_client) identifier__require_client
)attribute
(argument_list
(identifier_client) identifier_client
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query_params) identifier_query_params
(attribute
(identifier_self) identifier_self
(identifier__query_params) identifier__query_params
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"fields") string_"fields"
)subscript
(string_"name") string_"name"
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_client) identifier_client
(identifier__connection) identifier__connection
)attribute
(identifier_api_request) identifier_api_request
)attribute
(argument_list
(keyword_argument
(identifier_method) identifier_method
(string_"GET") string_"GET"
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)keyword_argument
(keyword_argument
(identifier_query_params) identifier_query_params
(identifier_query_params) identifier_query_params
)keyword_argument
(keyword_argument
(identifier__target_object) identifier__target_object
(None) None
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(identifier_NotFound) identifier_NotFound
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Determines whether or not this blob exists.
If :attr:`user_project` is set on the bucket, bills the API request
to that project.
:type client: :class:`~google.cloud.storage.client.Client` or
``NoneType``
:param client: Optional. The client to use. If not passed, falls back
to the ``client`` stored on the blob's bucket.
:rtype: bool
:returns: True if the blob exists in Cloud Storage. |
(module
(function_definition
(function_name_pylog) function_name_pylog
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(identifier_printerr) identifier_printerr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_format_exc) identifier_format_exc
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Display all available logging information. |
(module
(function_definition
(function_name_export_to_dir) function_name_export_to_dir
(parameters
(identifier_network) identifier_network
(identifier_export_dir) identifier_export_dir
)parameters
(block
(expression_statement
(assignment
(identifier_package_path) identifier_package_path
(subscript
(attribute
(identifier_ding0) identifier_ding0
(identifier___path__) identifier___path__
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_network) identifier_network
(identifier_export_to_csv_folder) identifier_export_to_csv_folder
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_package_path) identifier_package_path
(string_'output') string_'output'
(string_'debug') string_'debug'
(string_'grid') string_'grid'
(identifier_export_dir) identifier_export_dir
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Exports PyPSA network as CSV files to directory
Args:
network: pypsa.Network
export_dir: str
Sub-directory in output/debug/grid/ where csv Files of PyPSA network are exported to. |
(module
(function_definition
(function_name_add_after) function_name_add_after
(parameters
(identifier_self) identifier_self
(identifier_pipeline) identifier_pipeline
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pipeline) identifier_pipeline
(identifier_Pipeline) identifier_Pipeline
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_pipeline) identifier_pipeline
(call
(identifier_Pipeline) identifier_Pipeline
(argument_list
(identifier_pipeline) identifier_pipeline
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_pipes) identifier_pipes
)attribute
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pipes) identifier_pipes
)attribute
(slice
(colon) colon
)slice
)subscript
(subscript
(attribute
(identifier_pipeline) identifier_pipeline
(identifier_pipes) identifier_pipes
)attribute
(slice
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Add a Pipeline to be applied after this processing pipeline.
Arguments:
pipeline: The Pipeline or callable to apply after this
Pipeline. |
(module
(function_definition
(function_name_call_async) function_name_call_async
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_call) function_name_call
(parameters
)parameters
(block
(try_statement
(block
(expression_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_self) identifier_self
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_"failed to call async [%r] with [%r] [%r]") string_"failed to call async [%r] with [%r] [%r]"
(identifier_func) identifier_func
(identifier_args) identifier_args
(identifier_kw) identifier_kw
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
(identifier_call_soon_threadsafe) identifier_call_soon_threadsafe
)attribute
(argument_list
(identifier_call) identifier_call
)argument_list
)call
)expression_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Decorates a function to be called async on the loop thread |
(module
(function_definition
(function_name_decode_cursor) function_name_decode_cursor
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_encoded) identifier_encoded
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_query_params) identifier_query_params
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cursor_query_param) identifier_cursor_query_param
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_encoded) identifier_encoded
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_querystring) identifier_querystring
(call
(attribute
(call
(identifier_b64decode) identifier_b64decode
(argument_list
(call
(attribute
(identifier_encoded) identifier_encoded
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(call
(attribute
(identifier_urlparse) identifier_urlparse
(identifier_parse_qs) identifier_parse_qs
)attribute
(argument_list
(identifier_querystring) identifier_querystring
(keyword_argument
(identifier_keep_blank_values) identifier_keep_blank_values
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_offset) identifier_offset
(subscript
(call
(attribute
(identifier_tokens) identifier_tokens
(identifier_get) identifier_get
)attribute
(argument_list
(string_'o') string_'o'
(list
(string_'0') string_'0'
)list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_offset) identifier_offset
(call
(identifier__positive_int) identifier__positive_int
(argument_list
(identifier_offset) identifier_offset
(keyword_argument
(identifier_cutoff) identifier_cutoff
(attribute
(identifier_self) identifier_self
(identifier_offset_cutoff) identifier_offset_cutoff
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reverse) identifier_reverse
(subscript
(call
(attribute
(identifier_tokens) identifier_tokens
(identifier_get) identifier_get
)attribute
(argument_list
(string_'r') string_'r'
(list
(string_'0') string_'0'
)list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reverse) identifier_reverse
(call
(identifier_bool) identifier_bool
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_reverse) identifier_reverse
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_position) identifier_position
(call
(attribute
(identifier_tokens) identifier_tokens
(identifier_get) identifier_get
)attribute
(argument_list
(string_'p') string_'p'
(None) None
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(raise_statement
(call
(identifier_NotFound) identifier_NotFound
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_invalid_cursor_message) identifier_invalid_cursor_message
)attribute
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_Cursor) identifier_Cursor
(argument_list
(keyword_argument
(identifier_offset) identifier_offset
(identifier_offset) identifier_offset
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(identifier_reverse) identifier_reverse
)keyword_argument
(keyword_argument
(identifier_position) identifier_position
(identifier_position) identifier_position
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given a request with a cursor, return a `Cursor` instance.
Differs from the standard CursorPagination to handle a tuple in the
position field. |
(module
(function_definition
(function_name_is_valid) function_name_is_valid
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(boolean_operator
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ref) identifier_ref
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_alt) identifier_alt
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alt) identifier_alt
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Only retain SNPs or single indels, and are bi-allelic |
(module
(function_definition
(function_name_display_animation) function_name_display_animation
(parameters
(identifier_anim) identifier_anim
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_from_statement
(dotted_name
(identifier_IPython) identifier_IPython
(identifier_display) identifier_display
)dotted_name
(dotted_name
(identifier_HTML) identifier_HTML
)dotted_name
)import_from_statement
(return_statement
(call
(identifier_HTML) identifier_HTML
(argument_list
(call
(identifier_anim_to_html) identifier_anim_to_html
(argument_list
(identifier_anim) identifier_anim
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Display the animation with an IPython HTML object |
(module
(function_definition
(function_name_count) function_name_count
(parameters
(identifier_y_true) identifier_y_true
(default_parameter
(identifier_y_score) identifier_y_score
(None) None
)default_parameter
(default_parameter
(identifier_countna) identifier_countna
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_countna) identifier_countna
)not_operator
(block
(return_statement
(call
(attribute
(parenthesized_expression
(unary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(call
(identifier_to_float) identifier_to_float
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
)argument_list
)call
)unary_operator
)parenthesized_expression
(identifier_sum) identifier_sum
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Counts the number of examples. If countna is False then only count labeled examples,
i.e. those with y_true not NaN |
(module
(function_definition
(function_name__process_path_prefix) function_name__process_path_prefix
(parameters
(identifier_path_prefix) identifier_path_prefix
)parameters
(block
(expression_statement
(call
(identifier__validate_path) identifier__validate_path
(argument_list
(identifier_path_prefix) identifier_path_prefix
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier__GCS_PATH_PREFIX_REGEX) identifier__GCS_PATH_PREFIX_REGEX
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_path_prefix) identifier_path_prefix
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(concatenated_string
(string_'Path prefix should have format /bucket, /bucket/, ') string_'Path prefix should have format /bucket, /bucket/, '
(string_'or /bucket/prefix but got %s.') string_'or /bucket/prefix but got %s.'
)concatenated_string
(identifier_path_prefix) identifier_path_prefix
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_bucket_name_end) identifier_bucket_name_end
(call
(attribute
(identifier_path_prefix) identifier_path_prefix
(identifier_find) identifier_find
)attribute
(argument_list
(string_'/') string_'/'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bucket) identifier_bucket
(identifier_path_prefix) identifier_path_prefix
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_bucket_name_end) identifier_bucket_name_end
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_bucket) identifier_bucket
(subscript
(identifier_path_prefix) identifier_path_prefix
(slice
(colon) colon
(identifier_bucket_name_end) identifier_bucket_name_end
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(boolean_operator
(subscript
(identifier_path_prefix) identifier_path_prefix
(slice
(binary_operator
(identifier_bucket_name_end) identifier_bucket_name_end
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
(None) None
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_bucket) identifier_bucket
(identifier_prefix) identifier_prefix
)expression_list
)return_statement
)block
)function_definition
)module | Validate and process a Google Cloud Stoarge path prefix.
Args:
path_prefix: a Google Cloud Storage path prefix of format '/bucket/prefix'
or '/bucket/' or '/bucket'.
Raises:
ValueError: if path is invalid.
Returns:
a tuple of /bucket and prefix. prefix can be None. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
(typed_default_parameter
(identifier_argv) identifier_argv
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(generic_type
(identifier_Sequence) identifier_Sequence
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_parse_arguments) identifier_parse_arguments
(argument_list
(keyword_argument
(identifier_argv) identifier_argv
(identifier_argv) identifier_argv
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_args) identifier_args
(identifier_logging) identifier_logging
)attribute
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_basicConfig) identifier_basicConfig
)attribute
(argument_list
(keyword_argument
(identifier_level) identifier_level
(attribute
(identifier_logging) identifier_logging
(identifier_DEBUG) identifier_DEBUG
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_handle_skip) identifier_handle_skip
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_action) identifier_action
(attribute
(identifier_args) identifier_args
(identifier_action) identifier_action
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier_parse_request) identifier_parse_request
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Received action %s with request:\n%s') string_'Received action %s with request:\n%s'
(identifier_action) identifier_action
(identifier_request) identifier_request
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_mapping) identifier_mapping
(call
(identifier_parse_mapping) identifier_parse_mapping
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_mapping) identifier_mapping
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_critical) identifier_critical
)attribute
(argument_list
(string_'Unable to parse mapping file') string_'Unable to parse mapping file'
(keyword_argument
(identifier_exc_info) identifier_exc_info
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'Unable to parse mapping file: {error}') string_'Unable to parse mapping file: {error}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_error) identifier_error
(identifier_error) identifier_error
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_action) identifier_action
(string_'get') string_'get'
)comparison_operator
(block
(expression_statement
(call
(identifier_get_password) identifier_get_password
(argument_list
(identifier_request) identifier_request
(identifier_mapping) identifier_mapping
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Action %s is currently not supported') string_'Action %s is currently not supported'
(identifier_action) identifier_action
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Start the pass-git-helper script.
Args:
argv:
If not ``None``, use the provided command line arguments for
parsing. Otherwise, extract them automatically. |
(module
(function_definition
(function_name_parse_record) function_name_parse_record
(parameters
(identifier_header) identifier_header
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(identifier_major_version) identifier_major_version
(subscript
(identifier_header) identifier_header
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(subscript
(identifier_RECORD_PARSER) identifier_RECORD_PARSER
(identifier_major_version) identifier_major_version
)subscript
(argument_list
(identifier_header) identifier_header
(identifier_record) identifier_record
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_KeyError) identifier_KeyError
(attribute
(identifier_struct) identifier_struct
(identifier_error) identifier_error
)attribute
)tuple
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Corrupted USN Record") string_"Corrupted USN Record"
)argument_list
)call
(identifier_error) identifier_error
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Parses a record according to its version. |
(module
(function_definition
(function_name_get_perm_model) function_name_get_perm_model
(parameters
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_django_apps) identifier_django_apps
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_PERM_MODEL) identifier_PERM_MODEL
)attribute
(keyword_argument
(identifier_require_ready) identifier_require_ready
(False) False
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(string_"PERM_MODEL must be of the form 'app_label.model_name'") string_"PERM_MODEL must be of the form 'app_label.model_name'"
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(identifier_LookupError) identifier_LookupError
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(call
(attribute
(string_"PERM_MODEL refers to model '{}' that has not been installed") string_"PERM_MODEL refers to model '{}' that has not been installed"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_PERM_MODEL) identifier_PERM_MODEL
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the Perm model that is active in this project. |
(module
(function_definition
(function_name_group_experiments_greedy) function_name_group_experiments_greedy
(parameters
(typed_parameter
(identifier_tomo_expt) identifier_tomo_expt
(type
(identifier_TomographyExperiment) identifier_TomographyExperiment
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_diag_sets) identifier_diag_sets
(call
(identifier__max_tpb_overlap) identifier__max_tpb_overlap
(argument_list
(identifier_tomo_expt) identifier_tomo_expt
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_grouped_expt_settings_list) identifier_grouped_expt_settings_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_diag_sets) identifier_diag_sets
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_grouped_tomo_expt) identifier_grouped_tomo_expt
(call
(identifier_TomographyExperiment) identifier_TomographyExperiment
(argument_list
(identifier_grouped_expt_settings_list) identifier_grouped_expt_settings_list
(keyword_argument
(identifier_program) identifier_program
(attribute
(identifier_tomo_expt) identifier_tomo_expt
(identifier_program) identifier_program
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_grouped_tomo_expt) identifier_grouped_tomo_expt
)return_statement
)block
)function_definition
)module | Greedy method to group ExperimentSettings in a given TomographyExperiment
:param tomo_expt: TomographyExperiment to group ExperimentSettings within
:return: TomographyExperiment, with grouped ExperimentSettings according to whether
it consists of PauliTerms diagonal in the same tensor product basis |
(module
(function_definition
(function_name__get_hosts_from_ports) function_name__get_hosts_from_ports
(parameters
(identifier_self) identifier_self
(identifier_ports) identifier_ports
)parameters
(block
(expression_statement
(assignment
(identifier_hosts) identifier_hosts
(call
(identifier_map) identifier_map
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(binary_operator
(string_'localhost:%d') string_'localhost:%d'
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_x) identifier_x
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)binary_operator
)lambda
(call
(attribute
(identifier_ports) identifier_ports
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(identifier_hosts) identifier_hosts
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | validate hostnames from a list of ports |
(module
(function_definition
(function_name_create_sequence_rule) function_name_create_sequence_rule
(parameters
(identifier_self) identifier_self
(identifier_sequence_rule_form) identifier_sequence_rule_form
)parameters
(block
(expression_statement
(assignment
(identifier_collection) identifier_collection
(call
(identifier_JSONClientValidated) identifier_JSONClientValidated
(argument_list
(string_'assessment_authoring') string_'assessment_authoring'
(keyword_argument
(identifier_collection) identifier_collection
(string_'SequenceRule') string_'SequenceRule'
)keyword_argument
(keyword_argument
(identifier_runtime) identifier_runtime
(attribute
(identifier_self) identifier_self
(identifier__runtime) identifier__runtime
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_sequence_rule_form) identifier_sequence_rule_form
(identifier_ABCSequenceRuleForm) identifier_ABCSequenceRuleForm
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_InvalidArgument) identifier_InvalidArgument
)attribute
(argument_list
(string_'argument type is not an SequenceRuleForm') string_'argument type is not an SequenceRuleForm'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_sequence_rule_form) identifier_sequence_rule_form
(identifier_is_for_update) identifier_is_for_update
)attribute
(argument_list
)argument_list
)call
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_InvalidArgument) identifier_InvalidArgument
)attribute
(argument_list
(string_'the SequenceRuleForm is for update only, not create') string_'the SequenceRuleForm is for update only, not create'
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__forms) identifier__forms
)attribute
(call
(attribute
(call
(attribute
(identifier_sequence_rule_form) identifier_sequence_rule_form
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
(identifier_get_identifier) identifier_get_identifier
)attribute
(argument_list
)argument_list
)call
)subscript
(identifier_CREATED) identifier_CREATED
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_IllegalState) identifier_IllegalState
)attribute
(argument_list
(string_'sequence_rule_form already used in a create transaction') string_'sequence_rule_form already used in a create transaction'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_Unsupported) identifier_Unsupported
)attribute
(argument_list
(string_'sequence_rule_form did not originate from this session') string_'sequence_rule_form did not originate from this session'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(call
(attribute
(identifier_sequence_rule_form) identifier_sequence_rule_form
(identifier_is_valid) identifier_is_valid
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_InvalidArgument) identifier_InvalidArgument
)attribute
(argument_list
(string_'one or more of the form elements is invalid') string_'one or more of the form elements is invalid'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_insert_result) identifier_insert_result
(call
(attribute
(identifier_collection) identifier_collection
(identifier_insert_one) identifier_insert_one
)attribute
(argument_list
(attribute
(identifier_sequence_rule_form) identifier_sequence_rule_form
(identifier__my_map) identifier__my_map
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__forms) identifier__forms
)attribute
(call
(attribute
(call
(attribute
(identifier_sequence_rule_form) identifier_sequence_rule_form
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
(identifier_get_identifier) identifier_get_identifier
)attribute
(argument_list
)argument_list
)call
)subscript
(identifier_CREATED) identifier_CREATED
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_objects) identifier_objects
(identifier_SequenceRule) identifier_SequenceRule
)attribute
(argument_list
(keyword_argument
(identifier_osid_object_map) identifier_osid_object_map
(call
(attribute
(identifier_collection) identifier_collection
(identifier_find_one) identifier_find_one
)attribute
(argument_list
(dictionary
(pair
(string_'_id') string_'_id'
(attribute
(identifier_insert_result) identifier_insert_result
(identifier_inserted_id) identifier_inserted_id
)attribute
)pair
)dictionary
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_runtime) identifier_runtime
(attribute
(identifier_self) identifier_self
(identifier__runtime) identifier__runtime
)attribute
)keyword_argument
(keyword_argument
(identifier_proxy) identifier_proxy
(attribute
(identifier_self) identifier_self
(identifier__proxy) identifier__proxy
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Creates a new ``SequenceRule``.
arg: sequence_rule_form
(osid.assessment.authoring.SequenceRuleForm): the form
for this ``SequenceRule``
return: (osid.assessment.authoring.SequenceRule) - the new
``SequenceRule``
raise: IllegalState - ``sequence_rule_form`` already used in a
create transaction
raise: InvalidArgument - one or more of the form elements is
invalid
raise: NullArgument - ``sequence_rule_form`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
raise: Unsupported - ``sequence_rule_form`` did not originate
from ``get_sequence_rule_form_for_create()``
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_fetch_viewers) function_name_fetch_viewers
(parameters
(identifier_self) identifier_self
(identifier_game) identifier_game
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_kraken_request) identifier_kraken_request
)attribute
(argument_list
(string_'GET') string_'GET'
(string_'streams/summary') string_'streams/summary'
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_'game') string_'game'
(attribute
(identifier_game) identifier_game
(identifier_name) identifier_name
)attribute
)pair
)dictionary
)keyword_argument
)argument_list
)call
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_game) identifier_game
(identifier_viewers) identifier_viewers
)attribute
(subscript
(identifier_r) identifier_r
(string_'viewers') string_'viewers'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_game) identifier_game
(identifier_channels) identifier_channels
)attribute
(subscript
(identifier_r) identifier_r
(string_'channels') string_'channels'
)subscript
)assignment
)expression_statement
(return_statement
(identifier_game) identifier_game
)return_statement
)block
)function_definition
)module | Query the viewers and channels of the given game and
set them on the object
:returns: the given game
:rtype: :class:`models.Game`
:raises: None |
(module
(function_definition
(function_name_find_substring_edge) function_name_find_substring_edge
(parameters
(identifier_self) identifier_self
(identifier_substring) identifier_substring
(identifier_suffix_tree_id) identifier_suffix_tree_id
)parameters
(block
(expression_statement
(assignment
(identifier_suffix_tree) identifier_suffix_tree
(subscript
(attribute
(identifier_self) identifier_self
(identifier_suffix_tree_repo) identifier_suffix_tree_repo
)attribute
(identifier_suffix_tree_id) identifier_suffix_tree_id
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_started) identifier_started
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_edge) identifier_edge
(identifier_ln) identifier_ln
)pattern_list
(call
(identifier_find_substring_edge) identifier_find_substring_edge
(argument_list
(keyword_argument
(identifier_substring) identifier_substring
(identifier_substring) identifier_substring
)keyword_argument
(keyword_argument
(identifier_suffix_tree) identifier_suffix_tree
(identifier_suffix_tree) identifier_suffix_tree
)keyword_argument
(keyword_argument
(identifier_edge_repo) identifier_edge_repo
(attribute
(identifier_self) identifier_self
(identifier_edge_repo) identifier_edge_repo
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_" - searched for edge in {} for substring: '{}'") string_" - searched for edge in {} for substring: '{}'"
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
(identifier_started) identifier_started
)binary_operator
(identifier_substring) identifier_substring
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_edge) identifier_edge
(identifier_ln) identifier_ln
)expression_list
)return_statement
)block
)function_definition
)module | Returns an edge that matches the given substring. |
(module
(function_definition
(function_name_tau_from_final_mass_spin) function_name_tau_from_final_mass_spin
(parameters
(identifier_final_mass) identifier_final_mass
(identifier_final_spin) identifier_final_spin
(default_parameter
(identifier_l) identifier_l
(integer_2) integer_2
)default_parameter
(default_parameter
(identifier_m) identifier_m
(integer_2) integer_2
)default_parameter
(default_parameter
(identifier_nmodes) identifier_nmodes
(integer_1) integer_1
)default_parameter
)parameters
(block
(return_statement
(subscript
(call
(identifier_get_lm_f0tau) identifier_get_lm_f0tau
(argument_list
(identifier_final_mass) identifier_final_mass
(identifier_final_spin) identifier_final_spin
(identifier_l) identifier_l
(identifier_m) identifier_m
(identifier_nmodes) identifier_nmodes
)argument_list
)call
(integer_1) integer_1
)subscript
)return_statement
)block
)function_definition
)module | Returns QNM damping time for the given mass and spin and mode.
Parameters
----------
final_mass : float or array
Mass of the black hole (in solar masses).
final_spin : float or array
Dimensionless spin of the final black hole.
l : int or array, optional
l-index of the harmonic. Default is 2.
m : int or array, optional
m-index of the harmonic. Default is 2.
nmodes : int, optional
The number of overtones to generate. Default is 1.
Returns
-------
float or array
The damping time of the QNM(s), in seconds. If only a single mode is
requested (and mass, spin, l, and m are not arrays), this will be a
float. If multiple modes requested, will be an array with shape
``[input shape x] nmodes``, where ``input shape`` is the broadcasted
shape of the inputs. |
(module
(function_definition
(function_name_add_repo) function_name_add_repo
(parameters
(identifier_self) identifier_self
(identifier_repo) identifier_repo
(identifier_team) identifier_team
)parameters
(block
(for_statement
(identifier_t) identifier_t
(call
(attribute
(identifier_self) identifier_self
(identifier_iter_teams) identifier_iter_teams
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_team) identifier_team
(attribute
(identifier_t) identifier_t
(identifier_name) identifier_name
)attribute
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_t) identifier_t
(identifier_add_repo) identifier_add_repo
)attribute
(argument_list
(identifier_repo) identifier_repo
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Add ``repo`` to ``team``.
.. note::
This method is of complexity O(n). This iterates over all teams in
your organization and only adds the repo when the team name
matches the team parameter above. If you want constant time, you
should retrieve the team and call ``add_repo`` on that team
directly.
:param str repo: (required), form: 'user/repo'
:param str team: (required), team name |
(module
(function_definition
(function_name_dependency_status) function_name_dependency_status
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_parents_statuses) identifier_parents_statuses
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_DataDependency) identifier_DataDependency
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_child) identifier_child
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_kind) identifier_kind
(attribute
(identifier_DataDependency) identifier_DataDependency
(identifier_KIND_IO) identifier_KIND_IO
)attribute
)keyword_argument
)argument_list
)call
(identifier_distinct) identifier_distinct
)attribute
(argument_list
(string_'parent__status') string_'parent__status'
)argument_list
)call
(identifier_values_list) identifier_values_list
)attribute
(argument_list
(string_'parent__status') string_'parent__status'
(keyword_argument
(identifier_flat) identifier_flat
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_parents_statuses) identifier_parents_statuses
)not_operator
(block
(return_statement
(attribute
(identifier_Data) identifier_Data
(identifier_STATUS_DONE) identifier_STATUS_DONE
)attribute
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(None) None
(identifier_parents_statuses) identifier_parents_statuses
)comparison_operator
(block
(return_statement
(attribute
(identifier_Data) identifier_Data
(identifier_STATUS_ERROR) identifier_STATUS_ERROR
)attribute
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_Data) identifier_Data
(identifier_STATUS_ERROR) identifier_STATUS_ERROR
)attribute
(identifier_parents_statuses) identifier_parents_statuses
)comparison_operator
(block
(return_statement
(attribute
(identifier_Data) identifier_Data
(identifier_STATUS_ERROR) identifier_STATUS_ERROR
)attribute
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parents_statuses) identifier_parents_statuses
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(attribute
(identifier_Data) identifier_Data
(identifier_STATUS_DONE) identifier_STATUS_DONE
)attribute
(identifier_parents_statuses) identifier_parents_statuses
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(identifier_Data) identifier_Data
(identifier_STATUS_DONE) identifier_STATUS_DONE
)attribute
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return abstracted status of dependencies.
- ``STATUS_ERROR`` .. one dependency has error status or was deleted
- ``STATUS_DONE`` .. all dependencies have done status
- ``None`` .. other |
(module
(function_definition
(function_name_upload_to_s3) function_name_upload_to_s3
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_extra_args) identifier_extra_args
(dictionary
(pair
(string_'ACL') string_'ACL'
(attribute
(identifier_self) identifier_self
(identifier_acl) identifier_acl
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_guess) identifier_guess
(call
(attribute
(identifier_mimetypes) identifier_mimetypes
(identifier_guess_type) identifier_guess_type
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_type) identifier_content_type
(subscript
(identifier_guess) identifier_guess
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(subscript
(identifier_guess) identifier_guess
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(identifier_content_type) identifier_content_type
(block
(expression_statement
(assignment
(subscript
(identifier_extra_args) identifier_extra_args
(string_'ContentType') string_'ContentType'
)subscript
(identifier_content_type) identifier_content_type
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_gzip) identifier_gzip
)attribute
(comparison_operator
(identifier_content_type) identifier_content_type
(attribute
(identifier_self) identifier_self
(identifier_gzip_content_types) identifier_gzip_content_types
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(comparison_operator
(identifier_encoding) identifier_encoding
(string_'gzip') string_'gzip'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_extra_args) identifier_extra_args
(string_'ContentEncoding') string_'ContentEncoding'
)subscript
(string_'gzip') string_'gzip'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_content_type) identifier_content_type
(attribute
(identifier_self) identifier_self
(identifier_cache_control) identifier_cache_control
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_extra_args) identifier_extra_args
(string_'CacheControl') string_'CacheControl'
)subscript
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(tuple
(string_'max-age=') string_'max-age='
(call
(identifier_str) identifier_str
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_cache_control) identifier_cache_control
)attribute
(identifier_content_type) identifier_content_type
)subscript
)argument_list
)call
)tuple
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_dry_run) identifier_dry_run
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"Uploading %s") string_"Uploading %s"
(identifier_filename) identifier_filename
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_verbosity) identifier_verbosity
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_"Uploading %s") string_"Uploading %s"
(identifier_filename) identifier_filename
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_s3_obj) identifier_s3_obj
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_s3_resource) identifier_s3_resource
)attribute
(identifier_Object) identifier_Object
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_aws_bucket_name) identifier_aws_bucket_name
)attribute
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_s3_obj) identifier_s3_obj
(identifier_upload_file) identifier_upload_file
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_ExtraArgs) identifier_ExtraArgs
(identifier_extra_args) identifier_extra_args
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_uploaded_files) identifier_uploaded_files
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_uploaded_file_list) identifier_uploaded_file_list
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the content type and gzip headers if applicable
and upload the item to S3 |
(module
(function_definition
(function_name_untar) function_name_untar
(parameters
(identifier_fname) identifier_fname
(default_parameter
(identifier_verbose) identifier_verbose
(True) True
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(call
(attribute
(identifier_fname) identifier_fname
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_".tar.gz") string_".tar.gz"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dirpath) identifier_dirpath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_BIGDATA_PATH) identifier_BIGDATA_PATH
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(slice
(colon) colon
(unary_operator
(integer_7) integer_7
)unary_operator
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_dirpath) identifier_dirpath
)argument_list
)call
(block
(return_statement
(identifier_dirpath) identifier_dirpath
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_tarfile) identifier_tarfile
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(as_pattern_target
(identifier_tf) identifier_tf
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_members) identifier_members
(call
(attribute
(identifier_tf) identifier_tf
(identifier_getmembers) identifier_getmembers
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_member) identifier_member
(call
(identifier_tqdm) identifier_tqdm
(argument_list
(identifier_members) identifier_members
(keyword_argument
(identifier_total) identifier_total
(call
(identifier_len) identifier_len
(argument_list
(identifier_members) identifier_members
)argument_list
)call
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_extract) identifier_extract
)attribute
(argument_list
(identifier_member) identifier_member
(keyword_argument
(identifier_path) identifier_path
(identifier_BIGDATA_PATH) identifier_BIGDATA_PATH
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_dirpath) identifier_dirpath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_BIGDATA_PATH) identifier_BIGDATA_PATH
(attribute
(subscript
(identifier_members) identifier_members
(integer_0) integer_0
)subscript
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_dirpath) identifier_dirpath
)argument_list
)call
(block
(return_statement
(identifier_dirpath) identifier_dirpath
)return_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_"Not a tar.gz file: {}") string_"Not a tar.gz file: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Uunzip and untar a tar.gz file into a subdir of the BIGDATA_PATH directory |
(module
(function_definition
(function_name_add_vtt_file) function_name_add_vtt_file
(parameters
(identifier_self) identifier_self
(identifier_vtt_file) identifier_vtt_file
(default_parameter
(identifier_language_type) identifier_language_type
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_vtt_file) identifier_vtt_file
(identifier_DataInputStream) identifier_DataInputStream
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_InvalidArgument) identifier_InvalidArgument
(argument_list
(string_'vtt_file') string_'vtt_file'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_locale) identifier_locale
(attribute
(identifier_DEFAULT_LANGUAGE_TYPE) identifier_DEFAULT_LANGUAGE_TYPE
(identifier_identifier) identifier_identifier
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_language_type) identifier_language_type
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_locale) identifier_locale
(attribute
(identifier_language_type) identifier_language_type
(identifier_identifier) identifier_identifier
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_my_osid_object_form) identifier_my_osid_object_form
)attribute
(identifier_add_file) identifier_add_file
)attribute
(argument_list
(identifier_vtt_file) identifier_vtt_file
(identifier_locale) identifier_locale
(keyword_argument
(identifier_asset_name) identifier_asset_name
(string_"VTT File Container") string_"VTT File Container"
)keyword_argument
(keyword_argument
(identifier_asset_description) identifier_asset_description
(string_"Used by an asset content to manage multi-language VTT files") string_"Used by an asset content to manage multi-language VTT files"
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds a vtt file tagged as the given language.
arg: vtt_file (displayText): the new vtt_file
raise: InvalidArgument - ``vtt_file`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument - ``media_description`` is ``null``
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_conditional_jit) function_name_conditional_jit
(parameters
(default_parameter
(identifier_function) identifier_function
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_function) identifier_function
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_numba) identifier_numba
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_import_module) identifier_import_module
)attribute
(argument_list
(string_"numba") string_"numba"
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(call
(attribute
(identifier_numba) identifier_numba
(identifier_jit) identifier_jit
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(return_statement
(identifier_function) identifier_function
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
(if_statement
(identifier_function) identifier_function
(block
(return_statement
(call
(identifier_wrapper) identifier_wrapper
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Use numba's jit decorator if numba is installed.
Notes
-----
If called without arguments then return wrapped function.
@conditional_jit
def my_func():
return
else called with arguments
@conditional_jit(nopython=True)
def my_func():
return |
(module
(function_definition
(function_name_set_error_output_file) function_name_set_error_output_file
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fileOutputWindow) identifier_fileOutputWindow
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkFileOutputWindow) identifier_vtkFileOutputWindow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fileOutputWindow) identifier_fileOutputWindow
(identifier_SetFileName) identifier_SetFileName
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_outputWindow) identifier_outputWindow
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkOutputWindow) identifier_vtkOutputWindow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_outputWindow) identifier_outputWindow
(identifier_SetInstance) identifier_SetInstance
)attribute
(argument_list
(identifier_fileOutputWindow) identifier_fileOutputWindow
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_fileOutputWindow) identifier_fileOutputWindow
(identifier_outputWindow) identifier_outputWindow
)expression_list
)return_statement
)block
)function_definition
)module | Sets a file to write out the VTK errors |
(module
(function_definition
(function_name_for_display) function_name_for_display
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_skip) identifier_skip
(string_"") string_""
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_skip) identifier_skip
)attribute
(block
(expression_statement
(assignment
(identifier_skip) identifier_skip
(string_" [SKIP]") string_" [SKIP]"
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(string_"{step_num}: {path}{skip}") string_"{step_num}: {path}{skip}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_step_num) identifier_step_num
(attribute
(identifier_self) identifier_self
(identifier_step_num) identifier_step_num
)attribute
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)keyword_argument
(keyword_argument
(identifier_skip) identifier_skip
(identifier_skip) identifier_skip
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_description) identifier_description
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_task_config) identifier_task_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"description") string_"description"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_description) identifier_description
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(call
(attribute
(string_": {}") string_": {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_description) identifier_description
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Step details formatted for logging output. |
(module
(function_definition
(function_name_assets) function_name_assets
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_asset_type) identifier_asset_type
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_can_update) identifier_can_update
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_handle_error) identifier_handle_error
)attribute
(argument_list
(integer_910) integer_910
(list
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_asset_type) identifier_asset_type
)not_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tc_requests) identifier_tc_requests
)attribute
(identifier_adversary_assets) identifier_adversary_assets
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_type) identifier_api_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_sub_type) identifier_api_sub_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_asset_type) identifier_asset_type
(string_'PHONE') string_'PHONE'
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tc_requests) identifier_tc_requests
)attribute
(identifier_adversary_phone_assets) identifier_adversary_phone_assets
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_type) identifier_api_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_sub_type) identifier_api_sub_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_asset_type) identifier_asset_type
(string_'HANDLER') string_'HANDLER'
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tc_requests) identifier_tc_requests
)attribute
(identifier_adversary_handle_assets) identifier_adversary_handle_assets
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_type) identifier_api_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_sub_type) identifier_api_sub_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_asset_type) identifier_asset_type
(string_'URL') string_'URL'
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tc_requests) identifier_tc_requests
)attribute
(identifier_adversary_url_assets) identifier_adversary_url_assets
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_type) identifier_api_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_sub_type) identifier_api_sub_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_handle_error) identifier_handle_error
)attribute
(argument_list
(integer_925) integer_925
(list
(string_'asset_type') string_'asset_type'
(string_'assets') string_'assets'
(string_'asset_type') string_'asset_type'
(string_'asset_type') string_'asset_type'
(identifier_asset_type) identifier_asset_type
)list
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Retrieves all of the assets of a given asset_type
Args:
asset_type: (str) Either None, PHONE, HANDLER, or URL
Returns: |
(module
(function_definition
(function_name_utime) function_name_utime
(parameters
(identifier_self) identifier_self
(identifier_tarinfo) identifier_tarinfo
(identifier_targetpath) identifier_targetpath
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_os) identifier_os
(string_'utime') string_'utime'
)argument_list
)call
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_utime) identifier_utime
)attribute
(argument_list
(identifier_targetpath) identifier_targetpath
(tuple
(attribute
(identifier_tarinfo) identifier_tarinfo
(identifier_mtime) identifier_mtime
)attribute
(attribute
(identifier_tarinfo) identifier_tarinfo
(identifier_mtime) identifier_mtime
)attribute
)tuple
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_EnvironmentError) identifier_EnvironmentError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ExtractError) identifier_ExtractError
(argument_list
(string_"could not change modification time") string_"could not change modification time"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Set modification time of targetpath according to tarinfo. |
(module
(function_definition
(function_name_get_from_category_qs) function_name_get_from_category_qs
(parameters
(identifier_cls) identifier_cls
(identifier_category) identifier_category
)parameters
(block
(expression_statement
(assignment
(identifier_ids) identifier_ids
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_ties_for_categories_qs) identifier_get_ties_for_categories_qs
)attribute
(argument_list
(identifier_category) identifier_category
)argument_list
)call
(identifier_values_list) identifier_values_list
)attribute
(argument_list
(string_'object_id') string_'object_id'
)argument_list
)call
(identifier_distinct) identifier_distinct
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filter_kwargs) identifier_filter_kwargs
(dictionary
(pair
(string_'id__in') string_'id__in'
(list_comprehension
(subscript
(identifier_i) identifier_i
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_i) identifier_i
(identifier_ids) identifier_ids
)for_in_clause
)list_comprehension
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(dictionary_splat
(identifier_filter_kwargs) identifier_filter_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a QuerySet of objects of this type associated with the given category.
:param Category category:
:rtype: list
:return: |
(module
(function_definition
(function_name_drawImage) function_name_drawImage
(parameters
(identifier_self) identifier_self
(identifier_image) identifier_image
)parameters
(block
(expression_statement
(assignment
(identifier_padding) identifier_padding
(binary_operator
(call
(attribute
(identifier_image) identifier_image
(identifier_width) identifier_width
)attribute
(argument_list
)argument_list
)call
(integer_4) integer_4
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(call
(attribute
(identifier_image) identifier_image
(identifier_height) identifier_height
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tmp) identifier_tmp
(call
(attribute
(identifier_image) identifier_image
(identifier_copy) identifier_copy
)attribute
(argument_list
(integer_0) integer_0
(identifier_i) identifier_i
(binary_operator
(call
(attribute
(identifier_image) identifier_image
(identifier_width) identifier_width
)attribute
(argument_list
)argument_list
)call
(identifier_padding) identifier_padding
)binary_operator
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ptr) identifier_ptr
(call
(attribute
(identifier_tmp) identifier_tmp
(identifier_bits) identifier_bits
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ptr) identifier_ptr
(identifier_setsize) identifier_setsize
)attribute
(argument_list
(call
(attribute
(identifier_tmp) identifier_tmp
(identifier_byteCount) identifier_byteCount
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__controller) identifier__controller
)attribute
(identifier_sendUpdate) identifier_sendUpdate
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__dx) identifier__dx
)attribute
(binary_operator
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier__dy) identifier__dy
)attribute
)binary_operator
(binary_operator
(binary_operator
(call
(attribute
(identifier_image) identifier_image
(identifier_width) identifier_width
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__dx) identifier__dx
)attribute
)binary_operator
(integer_1) integer_1
)binary_operator
(binary_operator
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier__dy) identifier__dy
)attribute
)binary_operator
(call
(attribute
(identifier_tmp) identifier_tmp
(identifier_width) identifier_width
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_tmp) identifier_tmp
(identifier_height) identifier_height
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__colorDepth) identifier__colorDepth
)attribute
(False) False
(call
(attribute
(identifier_ptr) identifier_ptr
(identifier_asstring) identifier_asstring
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Render of widget |
(module
(function_definition
(function_name_check_dependencies_remote) function_name_check_dependencies_remote
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(attribute
(identifier_args) identifier_args
(identifier_python) identifier_python
)attribute
(string_'-m') string_'-m'
(string_'depends') string_'depends'
(attribute
(identifier_args) identifier_args
(identifier_requirement) identifier_requirement
)attribute
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_env) identifier_env
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_PYTHONPATH) identifier_PYTHONPATH
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_env) identifier_env
(identifier_env) identifier_env
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Invoke this command on a remote Python. |
(module
(function_definition
(function_name_coverage) function_name_coverage
(parameters
(default_parameter
(identifier_reportdir) identifier_reportdir
(None) None
)default_parameter
(default_parameter
(identifier_extra) identifier_extra
(None) None
)default_parameter
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_coverage) identifier_coverage
)dotted_name
(identifier_coverage_api) identifier_coverage_api
)aliased_import
)import_statement
(expression_statement
(assignment
(identifier_cov) identifier_cov
(call
(attribute
(identifier_coverage_api) identifier_coverage_api
(identifier_coverage) identifier_coverage
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_opts) identifier_opts
(conditional_expression
(dictionary
(pair
(string_'directory') string_'directory'
(identifier_reportdir) identifier_reportdir
)pair
)dictionary
(identifier_reportdir) identifier_reportdir
(dictionary
)dictionary
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cov) identifier_cov
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_test) identifier_test
(argument_list
(identifier_extra) identifier_extra
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cov) identifier_cov
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cov) identifier_cov
(identifier_html_report) identifier_html_report
)attribute
(argument_list
(dictionary_splat
(identifier_opts) identifier_opts
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Test this project with coverage reports |
(module
(function_definition
(function_name_encode_data_items) function_name_encode_data_items
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_str_list) identifier_str_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_arg) identifier_arg
(identifier_args) identifier_args
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_arg_str) identifier_arg_str
(identifier_arg) identifier_arg
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_int) identifier_int
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_arg_str) identifier_arg_str
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_INTEGER_PREFIX) identifier_INTEGER_PREFIX
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_encode_int) identifier_encode_int
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_arg_str) identifier_arg_str
(call
(identifier_str) identifier_str
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_str_list) identifier_str_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_arg_str) identifier_arg_str
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_concatenated_str) identifier_concatenated_str
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_SEPARATOR) identifier_SEPARATOR
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_str_list) identifier_str_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_concatenated_str) identifier_concatenated_str
)return_statement
)block
)function_definition
)module | Encodes a list of integers and strings into a concatenated string.
- encode string items as-is.
- encode integer items as base-64 with a ``'~'`` prefix.
- concatenate encoded items with a ``'|'`` separator.
Example:
``encode_data_items('abc', 123, 'xyz')`` returns ``'abc|~B7|xyz'`` |
(module
(function_definition
(function_name__is_defaultable) function_name__is_defaultable
(parameters
(identifier_i) identifier_i
(identifier_entry) identifier_entry
(identifier_table) identifier_table
(default_parameter
(identifier_check_for_aliases) identifier_check_for_aliases
(True) True
)default_parameter
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_entry) identifier_entry
(identifier_sources) identifier_sources
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_entry) identifier_entry
(identifier_route) identifier_route
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(comparison_operator
(None) None
(attribute
(identifier_entry) identifier_entry
(identifier_sources) identifier_sources
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_iter) identifier_iter
(argument_list
(attribute
(identifier_entry) identifier_entry
(identifier_sources) identifier_sources
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sink) identifier_sink
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_iter) identifier_iter
(argument_list
(attribute
(identifier_entry) identifier_entry
(identifier_route) identifier_route
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_source) identifier_source
(identifier_is_link) identifier_is_link
)attribute
(attribute
(identifier_sink) identifier_sink
(identifier_is_link) identifier_is_link
)attribute
)boolean_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_source) identifier_source
(identifier_opposite) identifier_opposite
)attribute
(identifier_sink) identifier_sink
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_mask) identifier_mask
)pattern_list
(expression_list
(attribute
(identifier_entry) identifier_entry
(identifier_key) identifier_key
)attribute
(attribute
(identifier_entry) identifier_entry
(identifier_mask) identifier_mask
)attribute
)expression_list
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_check_for_aliases) identifier_check_for_aliases
)not_operator
(line_continuation_\) line_continuation_\
(not_operator
(call
(identifier_any) identifier_any
(generator_expression
(call
(identifier_intersect) identifier_intersect
(argument_list
(identifier_key) identifier_key
(identifier_mask) identifier_mask
(attribute
(identifier_d) identifier_d
(identifier_key) identifier_key
)attribute
(attribute
(identifier_d) identifier_d
(identifier_mask) identifier_mask
)attribute
)argument_list
)call
(for_in_clause
(identifier_d) identifier_d
(subscript
(identifier_table) identifier_table
(slice
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)for_in_clause
)generator_expression
)call
)not_operator
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
)block
)if_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Determine if an entry may be removed from a routing table and be
replaced by a default route.
Parameters
----------
i : int
Position of the entry in the table
entry : RoutingTableEntry
The entry itself
table : [RoutingTableEntry, ...]
The table containing the entry.
check_for_aliases : bool
If True, the table is checked for aliased entries before suggesting a
route may be default routed. |
(module
(function_definition
(function_name_export) function_name_export
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(list
(string_'id') string_'id'
(string_'host') string_'host'
(string_'port') string_'port'
(string_'user') string_'user'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(identifier_fields) identifier_fields
(block
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(identifier_field) identifier_field
)subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_field) identifier_field
(None) None
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_'mountOptions') string_'mountOptions'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_mount_opts) identifier_mount_opts
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_'mountPoint') string_'mountPoint'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_mount_point) identifier_mount_point
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_'beforeMount') string_'beforeMount'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_cmd_before_mount) identifier_cmd_before_mount
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_'authType') string_'authType'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_auth_method) identifier_auth_method
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_'sshKey') string_'sshKey'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_ssh_key) identifier_ssh_key
)attribute
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_out) identifier_out
(keyword_argument
(identifier_indent) identifier_indent
(integer_4) integer_4
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Serializes to JSON. |
(module
(function_definition
(function_name_string_array_to_list) function_name_string_array_to_list
(parameters
(identifier_a) identifier_a
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_length) identifier_length
(call
(attribute
(call
(attribute
(identifier_javabridge) identifier_javabridge
(identifier_get_env) identifier_get_env
)attribute
(argument_list
)argument_list
)call
(identifier_get_array_length) identifier_get_array_length
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wrapped) identifier_wrapped
(call
(attribute
(call
(attribute
(identifier_javabridge) identifier_javabridge
(identifier_get_env) identifier_get_env
)attribute
(argument_list
)argument_list
)call
(identifier_get_object_array_elements) identifier_get_object_array_elements
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_length) identifier_length
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_javabridge) identifier_javabridge
(identifier_get_env) identifier_get_env
)attribute
(argument_list
)argument_list
)call
(identifier_get_string) identifier_get_string
)attribute
(argument_list
(subscript
(identifier_wrapped) identifier_wrapped
(identifier_i) identifier_i
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Turns the Java string array into Python unicode string list.
:param a: the string array to convert
:type a: JB_Object
:return: the string list
:rtype: list |
(module
(function_definition
(function_name_list_all_native_quantities) function_name_list_all_native_quantities
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_with_info) identifier_with_info
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_q) identifier_q
(attribute
(identifier_self) identifier_self
(identifier__native_quantities) identifier__native_quantities
)attribute
)assignment
)expression_statement
(return_statement
(conditional_expression
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(call
(attribute
(identifier_self) identifier_self
(identifier_get_quantity_info) identifier_get_quantity_info
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)pair
(for_in_clause
(identifier_k) identifier_k
(identifier_q) identifier_q
)for_in_clause
)dictionary_comprehension
(identifier_with_info) identifier_with_info
(call
(identifier_list) identifier_list
(argument_list
(identifier_q) identifier_q
)argument_list
)call
)conditional_expression
)return_statement
)block
)function_definition
)module | Return a list of all available native quantities in this catalog.
If *with_info* is `True`, return a dict with quantity info.
See also: list_all_quantities |
(module
(function_definition
(function_name_commit_buildroot) function_name_commit_buildroot
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"committing buildroot") string_"committing buildroot"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ensure_is_built) identifier_ensure_is_built
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_commit_message) identifier_commit_message
(binary_operator
(string_"docker build of '%s' (%s)") string_"docker build of '%s' (%s)"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_image) identifier_image
)attribute
(attribute
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)attribute
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buildroot_image_name) identifier_buildroot_image_name
)attribute
(call
(identifier_ImageName) identifier_ImageName
(argument_list
(keyword_argument
(identifier_repo) identifier_repo
(binary_operator
(string_"buildroot-%s") string_"buildroot-%s"
(attribute
(identifier_self) identifier_self
(identifier_image) identifier_image
)attribute
)binary_operator
)keyword_argument
(keyword_argument
(identifier_tag) identifier_tag
(call
(attribute
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%Y-%m-%d-%H-%M-%S') string_'%Y-%m-%d-%H-%M-%S'
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buildroot_image_id) identifier_buildroot_image_id
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dt) identifier_dt
)attribute
(identifier_commit_container) identifier_commit_container
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_build_container_id) identifier_build_container_id
)attribute
(identifier_commit_message) identifier_commit_message
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_buildroot_image_id) identifier_buildroot_image_id
)attribute
)return_statement
)block
)function_definition
)module | create image from buildroot
:return: |
(module
(function_definition
(function_name_set_posts_param_modified_after) function_name_set_posts_param_modified_after
(parameters
(identifier_self) identifier_self
(identifier_params) identifier_params
(identifier_post_type) identifier_post_type
(identifier_status) identifier_status
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_purge_first) identifier_purge_first
)attribute
)not_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_full) identifier_full
)attribute
)not_operator
)boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_modified_after) identifier_modified_after
)attribute
)not_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_status) identifier_status
(string_"any") string_"any"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_latest) identifier_latest
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_Post) identifier_Post
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_post_type) identifier_post_type
(identifier_post_type) identifier_post_type
)keyword_argument
)argument_list
)call
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_"-modified") string_"-modified"
)argument_list
)call
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_latest) identifier_latest
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_Post) identifier_Post
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_post_type) identifier_post_type
(identifier_post_type) identifier_post_type
)keyword_argument
(keyword_argument
(identifier_status) identifier_status
(identifier_status) identifier_status
)keyword_argument
)argument_list
)call
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_"-modified") string_"-modified"
)argument_list
)call
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_latest) identifier_latest
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_modified_after) identifier_modified_after
)attribute
(attribute
(identifier_latest) identifier_latest
(identifier_modified) identifier_modified
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_modified_after) identifier_modified_after
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"modified_after") string_"modified_after"
)subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_modified_after) identifier_modified_after
)attribute
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"getting posts after: %s") string_"getting posts after: %s"
(subscript
(identifier_params) identifier_params
(string_"modified_after") string_"modified_after"
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Set modified_after date to "continue where we left off" if appropriate
:param params: the GET params dict, which may be updated to include the "modified_after" key
:param post_type: post, page, attachment, or any custom post type set up in the WP API
:param status: publish, private, draft, etc.
:return: None |
(module
(function_definition
(function_name_get_output_score_metadata) function_name_get_output_score_metadata
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(identifier_dict) identifier_dict
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__mdata) identifier__mdata
)attribute
(string_'output_score') string_'output_score'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'existing_decimal_values') string_'existing_decimal_values'
(subscript
(attribute
(identifier_self) identifier_self
(identifier__my_map) identifier__my_map
)attribute
(string_'outputScore') string_'outputScore'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_Metadata) identifier_Metadata
(argument_list
(dictionary_splat
(identifier_metadata) identifier_metadata
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the metadata for the output score start range.
return: (osid.Metadata) - metadata for the output score start
range
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_integers) function_name_integers
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_start) identifier_start
(type
(identifier_int) identifier_int
)type
(integer_0) integer_0
)typed_default_parameter
(typed_default_parameter
(identifier_end) identifier_end
(type
(identifier_int) identifier_int
)type
(integer_10) integer_10
)typed_default_parameter
(typed_default_parameter
(identifier_length) identifier_length
(type
(identifier_int) identifier_int
)type
(integer_10) integer_10
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_randints) identifier_randints
)attribute
(argument_list
(identifier_length) identifier_length
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate a list of random integers.
Integers can be negative or positive numbers.
.. note: You can use both positive and negative numbers.
:param start: Start.
:param end: End.
:param length: Length of list.
:return: List of integers.
:Example:
[-20, -19, -18, -17] |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_gandi) identifier_gandi
(identifier_datacenter) identifier_datacenter
(identifier_bandwidth) identifier_bandwidth
(identifier_ip_version) identifier_ip_version
(identifier_vlan) identifier_vlan
(identifier_ip) identifier_ip
(identifier_attach) identifier_attach
(identifier_background) identifier_background
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_ip_version) identifier_ip_version
(integer_4) integer_4
)comparison_operator
(identifier_vlan) identifier_vlan
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_gandi) identifier_gandi
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_'You must have an --ip-version to 4 when having a vlan.') string_'You must have an --ip-version to 4 when having a vlan.'
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_ip) identifier_ip
(not_operator
(identifier_vlan) identifier_vlan
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_gandi) identifier_gandi
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_'You must have a --vlan when giving an --ip.') string_'You must have a --vlan when giving an --ip.'
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_vm_) identifier_vm_
(conditional_expression
(call
(attribute
(attribute
(identifier_gandi) identifier_gandi
(identifier_iaas) identifier_iaas
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_attach) identifier_attach
)argument_list
)call
(identifier_attach) identifier_attach
(None) None
)conditional_expression
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_datacenter) identifier_datacenter
(identifier_vm_) identifier_vm_
)boolean_operator
(block
(expression_statement
(assignment
(identifier_dc_id) identifier_dc_id
(call
(attribute
(attribute
(identifier_gandi) identifier_gandi
(identifier_datacenter) identifier_datacenter
)attribute
(identifier_usable_id) identifier_usable_id
)attribute
(argument_list
(identifier_datacenter) identifier_datacenter
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dc_id) identifier_dc_id
(subscript
(identifier_vm_) identifier_vm_
(string_'datacenter_id') string_'datacenter_id'
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_gandi) identifier_gandi
(identifier_echo) identifier_echo
)attribute
(argument_list
(concatenated_string
(string_'The datacenter you provided does not match the ') string_'The datacenter you provided does not match the '
(string_'datacenter of the vm you want to attach to.') string_'datacenter of the vm you want to attach to.'
)concatenated_string
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_datacenter) identifier_datacenter
)not_operator
(block
(expression_statement
(assignment
(identifier_datacenter) identifier_datacenter
(conditional_expression
(subscript
(identifier_vm_) identifier_vm_
(string_'datacenter_id') string_'datacenter_id'
)subscript
(identifier_vm_) identifier_vm_
(string_'LU') string_'LU'
)conditional_expression
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_gandi) identifier_gandi
(identifier_datacenter) identifier_datacenter
)attribute
(identifier_is_opened) identifier_is_opened
)attribute
(argument_list
(identifier_datacenter) identifier_datacenter
(string_'iaas') string_'iaas'
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_DatacenterLimited) identifier_DatacenterLimited
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_gandi) identifier_gandi
(identifier_echo) identifier_echo
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_'/!\ Datacenter %s will be closed on %s, ') string_'/!\ Datacenter %s will be closed on %s, '
(string_'please consider using another datacenter.') string_'please consider using another datacenter.'
)concatenated_string
(tuple
(identifier_datacenter) identifier_datacenter
(attribute
(identifier_exc) identifier_exc
(identifier_date) identifier_date
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(attribute
(identifier_gandi) identifier_gandi
(identifier_ip) identifier_ip
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_ip_version) identifier_ip_version
(identifier_datacenter) identifier_datacenter
(identifier_bandwidth) identifier_bandwidth
(identifier_attach) identifier_attach
(identifier_vlan) identifier_vlan
(identifier_ip) identifier_ip
(identifier_background) identifier_background
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a public or private ip |
(module
(function_definition
(function_name_load_usps) function_name_load_usps
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_dataset_path) identifier_dataset_path
(call
(identifier__load) identifier__load
(argument_list
(string_'usps') string_'usps'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(identifier__load_csv) identifier__load_csv
(argument_list
(identifier_dataset_path) identifier_dataset_path
(string_'data') string_'data'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_X) identifier_X
(call
(identifier__load_images) identifier__load_images
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dataset_path) identifier_dataset_path
(string_'images') string_'images'
)argument_list
)call
(attribute
(identifier_df) identifier_df
(identifier_image) identifier_image
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(attribute
(attribute
(identifier_df) identifier_df
(identifier_label) identifier_label
)attribute
(identifier_values) identifier_values
)attribute
)assignment
)expression_statement
(return_statement
(call
(identifier_Dataset) identifier_Dataset
(argument_list
(attribute
(identifier_load_usps) identifier_load_usps
(identifier___doc__) identifier___doc__
)attribute
(identifier_X) identifier_X
(identifier_y) identifier_y
(identifier_accuracy_score) identifier_accuracy_score
(keyword_argument
(identifier_stratify) identifier_stratify
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | USPs Digits Dataset.
The data of this dataset is a 3d numpy array vector with shape (224, 224, 3)
containing 9298 224x224 RGB photos of handwritten digits, and the target is
a 1d numpy integer array containing the label of the digit represented in
the image. |
(module
(function_definition
(function_name_create_filter_predicate) function_name_create_filter_predicate
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_query_content_id) identifier_query_content_id
)attribute
(None) None
)comparison_operator
(string_'must call SearchEngine.set_query_id first') string_'must call SearchEngine.set_query_id first'
)assert_statement
(expression_statement
(assignment
(identifier_filter_names) identifier_filter_names
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
(identifier_getlist) identifier_getlist
)attribute
(argument_list
(string_'filter') string_'filter'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_filter_names) identifier_filter_names
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(comparison_operator
(string_'already_labeled') string_'already_labeled'
(attribute
(identifier_self) identifier_self
(identifier__filters) identifier__filters
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_filter_names) identifier_filter_names
(list
(string_'already_labeled') string_'already_labeled'
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_init_filters) identifier_init_filters
(list_comprehension
(tuple
(identifier_n) identifier_n
(subscript
(attribute
(identifier_self) identifier_self
(identifier__filters) identifier__filters
)attribute
(identifier_n) identifier_n
)subscript
)tuple
(for_in_clause
(identifier_n) identifier_n
(identifier_filter_names) identifier_filter_names
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_preds) identifier_preds
(list
(lambda
(lambda_parameters
(identifier__) identifier__
)lambda_parameters
(True) True
)lambda
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_p) identifier_p
)pattern_list
(identifier_init_filters) identifier_init_filters
(block
(expression_statement
(call
(attribute
(identifier_preds) identifier_preds
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_p) identifier_p
(identifier_set_query_id) identifier_set_query_id
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_query_content_id) identifier_query_content_id
)attribute
)argument_list
)call
(identifier_set_query_params) identifier_set_query_params
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_query_params) identifier_query_params
)attribute
)argument_list
)call
(identifier_create_predicate) identifier_create_predicate
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(lambda
(lambda_parameters
(tuple_pattern
(identifier_cid) identifier_cid
(identifier_fc) identifier_fc
)tuple_pattern
)lambda_parameters
(boolean_operator
(comparison_operator
(identifier_fc) identifier_fc
(None) None
)comparison_operator
(call
(identifier_all) identifier_all
(generator_expression
(call
(identifier_p) identifier_p
(argument_list
(tuple
(identifier_cid) identifier_cid
(identifier_fc) identifier_fc
)tuple
)argument_list
)call
(for_in_clause
(identifier_p) identifier_p
(identifier_preds) identifier_preds
)for_in_clause
)generator_expression
)call
)boolean_operator
)lambda
)return_statement
)block
)function_definition
)module | Creates a filter predicate.
The list of available filters is given by calls to
``add_filter``, and the list of filters to use is given by
parameters in ``params``.
In this default implementation, multiple filters can be
specified with the ``filter`` parameter. Each filter is
initialized with the same set of query parameters given to the
search engine.
The returned function accepts a ``(content_id, FC)`` and
returns ``True`` if and only if every selected predicate
returns ``True`` on the same input. |
(module
(function_definition
(function_name_cx_to_networkx) function_name_cx_to_networkx
(parameters
(identifier_cx) identifier_cx
)parameters
(block
(expression_statement
(assignment
(identifier_graph) identifier_graph
(call
(attribute
(identifier_networkx) identifier_networkx
(identifier_MultiDiGraph) identifier_MultiDiGraph
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_node_entry) identifier_node_entry
(call
(identifier_get_aspect) identifier_get_aspect
(argument_list
(identifier_cx) identifier_cx
(string_'nodes') string_'nodes'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_id) identifier_id
(subscript
(identifier_node_entry) identifier_node_entry
(string_'@id') string_'@id'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(call
(identifier_get_attributes) identifier_get_attributes
(argument_list
(call
(identifier_get_aspect) identifier_get_aspect
(argument_list
(identifier_cx) identifier_cx
(string_'nodeAttributes') string_'nodeAttributes'
)argument_list
)call
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_attrs) identifier_attrs
(string_'n') string_'n'
)subscript
(subscript
(identifier_node_entry) identifier_node_entry
(string_'n') string_'n'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_graph) identifier_graph
(identifier_add_node) identifier_add_node
)attribute
(argument_list
(identifier_id) identifier_id
(dictionary_splat
(identifier_attrs) identifier_attrs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_edge_entry) identifier_edge_entry
(call
(identifier_get_aspect) identifier_get_aspect
(argument_list
(identifier_cx) identifier_cx
(string_'edges') string_'edges'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_id) identifier_id
(subscript
(identifier_edge_entry) identifier_edge_entry
(string_'@id') string_'@id'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(call
(identifier_get_attributes) identifier_get_attributes
(argument_list
(call
(identifier_get_aspect) identifier_get_aspect
(argument_list
(identifier_cx) identifier_cx
(string_'edgeAttributes') string_'edgeAttributes'
)argument_list
)call
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_attrs) identifier_attrs
(string_'i') string_'i'
)subscript
(subscript
(identifier_edge_entry) identifier_edge_entry
(string_'i') string_'i'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_graph) identifier_graph
(identifier_add_edge) identifier_add_edge
)attribute
(argument_list
(subscript
(identifier_edge_entry) identifier_edge_entry
(string_'s') string_'s'
)subscript
(subscript
(identifier_edge_entry) identifier_edge_entry
(string_'t') string_'t'
)subscript
(keyword_argument
(identifier_key) identifier_key
(identifier_id) identifier_id
)keyword_argument
(dictionary_splat
(identifier_attrs) identifier_attrs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_graph) identifier_graph
)return_statement
)block
)function_definition
)module | Return a MultiDiGraph representation of a CX network. |
(module
(function_definition
(function_name_prep_pdf) function_name_prep_pdf
(parameters
(identifier_qc_dir) identifier_qc_dir
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_html_file) identifier_html_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_qc_dir) identifier_qc_dir
(string_"fastqc") string_"fastqc"
(string_"fastqc_report.html") string_"fastqc_report.html"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_html_fixed) identifier_html_fixed
(binary_operator
(string_"%s-fixed%s") string_"%s-fixed%s"
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_html_file) identifier_html_file
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_topdf) identifier_topdf
(call
(attribute
(identifier_config_utils) identifier_config_utils
(identifier_get_program) identifier_get_program
)attribute
(argument_list
(string_"wkhtmltopdf") string_"wkhtmltopdf"
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_config_utils) identifier_config_utils
(identifier_CmdNotFound) identifier_CmdNotFound
)attribute
(block
(expression_statement
(assignment
(identifier_topdf) identifier_topdf
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(identifier_topdf) identifier_topdf
(call
(attribute
(identifier_utils) identifier_utils
(identifier_file_exists) identifier_file_exists
)attribute
(argument_list
(identifier_html_file) identifier_html_file
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_out_file) identifier_out_file
(binary_operator
(string_"%s.pdf") string_"%s.pdf"
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_html_file) identifier_html_file
)argument_list
)call
(integer_0) integer_0
)subscript
)binary_operator
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_utils) identifier_utils
(identifier_file_exists) identifier_file_exists
)attribute
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(parenthesized_expression
(binary_operator
(string_"sed 's/div.summary/div.summary-no/' %s | sed 's/div.main/div.main-no/' > %s") string_"sed 's/div.summary/div.summary-no/' %s | sed 's/div.main/div.main-no/' > %s"
(tuple
(identifier_html_file) identifier_html_file
(identifier_html_fixed) identifier_html_fixed
)tuple
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_do) identifier_do
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(string_"Fix fastqc CSS to be compatible with wkhtmltopdf") string_"Fix fastqc CSS to be compatible with wkhtmltopdf"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(identifier_topdf) identifier_topdf
(identifier_html_fixed) identifier_html_fixed
(identifier_out_file) identifier_out_file
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_do) identifier_do
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(string_"Convert QC HTML to PDF") string_"Convert QC HTML to PDF"
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_out_file) identifier_out_file
)return_statement
)block
)if_statement
)block
)function_definition
)module | Create PDF from HTML summary outputs in QC directory.
Requires wkhtmltopdf installed: http://www.msweet.org/projects.php?Z1
Thanks to: https://www.biostars.org/p/16991/
Works around issues with CSS conversion on CentOS by adjusting CSS. |
(module
(function_definition
(function_name_unpack) function_name_unpack
(parameters
(identifier_iterable) identifier_iterable
(identifier_count) identifier_count
(default_parameter
(identifier_fill) identifier_fill
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_iterable) identifier_iterable
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cnt) identifier_cnt
(conditional_expression
(identifier_count) identifier_count
(comparison_operator
(identifier_count) identifier_count
(call
(identifier_len) identifier_len
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(list_comprehension
(subscript
(subscript
(identifier_iterable) identifier_iterable
(identifier_i) identifier_i
)subscript
(integer_1) integer_1
)subscript
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_cnt) identifier_cnt
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(identifier_merge) identifier_merge
(argument_list
(identifier_results) identifier_results
(list_comprehension
(identifier_fill) identifier_fill
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(identifier_count) identifier_count
(identifier_cnt) identifier_cnt
)binary_operator
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_results) identifier_results
)argument_list
)call
)return_statement
)block
)function_definition
)module | The iter data unpack function.
Example 1:
In[1]: source = 'abc'
In[2]: a, b = safe_unpack(source, 2)
In[3]: print(a, b)
a b
Example 2:
In[1]: source = 'abc'
In[2]: a, b, c, d = safe_unpack(source, 4)
In[3]: print(a, b, c, d)
a b None None |
(module
(function_definition
(function_name_get_productivity_stats) function_name_get_productivity_stats
(parameters
(identifier_self) identifier_self
(identifier_api_token) identifier_api_token
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'token') string_'token'
(identifier_api_token) identifier_api_token
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get) identifier__get
)attribute
(argument_list
(string_'get_productivity_stats') string_'get_productivity_stats'
(identifier_params) identifier_params
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a user's productivity stats.
:param api_token: The user's login api_token.
:type api_token: str
:return: The HTTP response to the request.
:rtype: :class:`requests.Response` |
(module
(function_definition
(function_name_aggregate_registry_timers) function_name_aggregate_registry_timers
(parameters
)parameters
(block
(import_statement
(dotted_name
(identifier_itertools) identifier_itertools
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_timers) identifier_timers
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_shared_registry) identifier_shared_registry
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_t) identifier_t
)lambda_parameters
(attribute
(identifier_t) identifier_t
(identifier_desc) identifier_desc
)attribute
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_aggregate_timers) identifier_aggregate_timers
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_g) identifier_g
)pattern_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_groupby) identifier_groupby
)attribute
(argument_list
(identifier_timers) identifier_timers
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_t) identifier_t
)lambda_parameters
(attribute
(identifier_t) identifier_t
(identifier_desc) identifier_desc
)attribute
)lambda
)keyword_argument
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_group) identifier_group
(call
(identifier_list) identifier_list
(argument_list
(identifier_g) identifier_g
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_num_calls) identifier_num_calls
(call
(identifier_len) identifier_len
(argument_list
(identifier_group) identifier_group
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_elapsed_ms) identifier_total_elapsed_ms
(call
(identifier_sum) identifier_sum
(generator_expression
(attribute
(identifier_t) identifier_t
(identifier_elapsed_time_ms) identifier_elapsed_time_ms
)attribute
(for_in_clause
(identifier_t) identifier_t
(identifier_group) identifier_group
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_first_start_time) identifier_first_start_time
(call
(identifier_min) identifier_min
(generator_expression
(attribute
(identifier_t) identifier_t
(identifier_start_time) identifier_start_time
)attribute
(for_in_clause
(identifier_t) identifier_t
(identifier_group) identifier_group
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_aggregate_timers) identifier_aggregate_timers
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_first_start_time) identifier_first_start_time
(tuple
(identifier_k) identifier_k
(identifier_total_elapsed_ms) identifier_total_elapsed_ms
(identifier_num_calls) identifier_num_calls
)tuple
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_aggregate_timers) identifier_aggregate_timers
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(subscript
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_aggregate_timers) identifier_aggregate_timers
)list_splat
)argument_list
)call
(integer_1) integer_1
)subscript
)return_statement
)block
)function_definition
)module | Returns a list of aggregate timing information for registered timers.
Each element is a 3-tuple of
- timer description
- aggregate elapsed time
- number of calls
The list is sorted by the first start time of each aggregate timer. |
(module
(function_definition
(function_name_copy_foreign_keys) function_name_copy_foreign_keys
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_event_keys) identifier_event_keys
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_event) identifier_event
(identifier__meta) identifier__meta
)attribute
(identifier_fields) identifier_fields
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_obj_keys) identifier_obj_keys
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__meta) identifier__meta
)attribute
(identifier_fields) identifier_fields
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_matching_keys) identifier_matching_keys
(call
(attribute
(identifier_event_keys) identifier_event_keys
(identifier_intersection) identifier_intersection
)attribute
(argument_list
(identifier_obj_keys) identifier_obj_keys
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_matching_keys) identifier_matching_keys
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(string_'created_by') string_'created_by'
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__meta) identifier__meta
)attribute
(identifier_fields) identifier_fields
)attribute
(identifier_key) identifier_key
)subscript
(attribute
(identifier_peewee) identifier_peewee
(identifier_ForeignKeyField) identifier_ForeignKeyField
)attribute
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_event) identifier_event
(identifier_key) identifier_key
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_possible_key) identifier_possible_key
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_possible_key) identifier_possible_key
(identifier_event_keys) identifier_event_keys
)comparison_operator
(comparison_operator
(attribute
(identifier_event) identifier_event
(identifier_code) identifier_code
)attribute
(string_'AUDIT_DELETE') string_'AUDIT_DELETE'
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_event) identifier_event
(identifier_possible_key) identifier_possible_key
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Copies possible foreign key values from the object into the Event,
skipping common keys like modified and created.
Args:
event (Event): The Event instance to copy the FKs into
obj (fleaker.db.Model): The object to pull the values from |
(module
(function_definition
(function_name_purge) function_name_purge
(parameters
(identifier_opts) identifier_opts
)parameters
(block
(expression_statement
(assignment
(identifier_old) identifier_old
(False) False
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_environment) identifier_environment
(call
(attribute
(identifier_Environment) identifier_Environment
(identifier_load) identifier_load
)attribute
(argument_list
(subscript
(identifier_opts) identifier_opts
(string_'ENVIRONMENT') string_'ENVIRONMENT'
)subscript
(subscript
(identifier_opts) identifier_opts
(string_'--site') string_'--site'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_DatacatsError) identifier_DatacatsError
(block
(expression_statement
(assignment
(identifier_environment) identifier_environment
(call
(attribute
(identifier_Environment) identifier_Environment
(identifier_load) identifier_load
)attribute
(argument_list
(subscript
(identifier_opts) identifier_opts
(string_'ENVIRONMENT') string_'ENVIRONMENT'
)subscript
(subscript
(identifier_opts) identifier_opts
(string_'--site') string_'--site'
)subscript
(keyword_argument
(identifier_data_only) identifier_data_only
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_get_format_version) identifier_get_format_version
(argument_list
(attribute
(identifier_environment) identifier_environment
(identifier_datadir) identifier_datadir
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_old) identifier_old
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_environment) identifier_environment
(call
(attribute
(identifier_Environment) identifier_Environment
(identifier_load) identifier_load
)attribute
(argument_list
(subscript
(identifier_opts) identifier_opts
(string_'ENVIRONMENT') string_'ENVIRONMENT'
)subscript
(subscript
(identifier_opts) identifier_opts
(string_'--site') string_'--site'
)subscript
(keyword_argument
(identifier_allow_old) identifier_allow_old
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(not_operator
(subscript
(identifier_opts) identifier_opts
(string_'--delete-environment') string_'--delete-environment'
)subscript
)not_operator
(not_operator
(identifier_old) identifier_old
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_environment) identifier_environment
(identifier_require_valid_site) identifier_require_valid_site
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sites) identifier_sites
(conditional_expression
(list
(subscript
(identifier_opts) identifier_opts
(string_'--site') string_'--site'
)subscript
)list
(not_operator
(subscript
(identifier_opts) identifier_opts
(string_'--delete-environment') string_'--delete-environment'
)subscript
)not_operator
(attribute
(identifier_environment) identifier_environment
(identifier_sites) identifier_sites
)attribute
)conditional_expression
)assignment
)expression_statement
(if_statement
(not_operator
(subscript
(identifier_opts) identifier_opts
(string_'--yes') string_'--yes'
)subscript
)not_operator
(block
(expression_statement
(call
(identifier_y_or_n_prompt) identifier_y_or_n_prompt
(argument_list
(string_'datacats purge will delete all stored data') string_'datacats purge will delete all stored data'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_environment) identifier_environment
(identifier_stop_ckan) identifier_stop_ckan
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_environment) identifier_environment
(identifier_stop_supporting_containers) identifier_stop_supporting_containers
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_environment) identifier_environment
(identifier_purge_data) identifier_purge_data
)attribute
(argument_list
(identifier_sites) identifier_sites
)argument_list
)call
)expression_statement
(if_statement
(subscript
(identifier_opts) identifier_opts
(string_'--delete-environment') string_'--delete-environment'
)subscript
(block
(if_statement
(attribute
(identifier_environment) identifier_environment
(identifier_target) identifier_target
)attribute
(block
(expression_statement
(call
(identifier_rmtree) identifier_rmtree
(argument_list
(attribute
(identifier_environment) identifier_environment
(identifier_target) identifier_target
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_DatacatsError) identifier_DatacatsError
(argument_list
(parenthesized_expression
(concatenated_string
(string_"Unable to find the environment source") string_"Unable to find the environment source"
(string_" directory so that it can be deleted.\n") string_" directory so that it can be deleted.\n"
(string_"Chances are it's because it already does not exist") string_"Chances are it's because it already does not exist"
)concatenated_string
)parenthesized_expression
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Purge environment database and uploaded files
Usage:
datacats purge [-s NAME | --delete-environment] [-y] [ENVIRONMENT]
Options:
--delete-environment Delete environment directory as well as its data, as
well as the data for **all** sites.
-s --site=NAME Specify a site to be purge [default: primary]
-y --yes Respond yes to all prompts (i.e. force)
ENVIRONMENT may be an environment name or a path to an environment directory.
Default: '.' |
(module
(function_definition
(function_name_pixels_to_tiles) function_name_pixels_to_tiles
(parameters
(identifier_self) identifier_self
(identifier_coords) identifier_coords
(default_parameter
(identifier_clamp) identifier_clamp
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tile_coords) identifier_tile_coords
(call
(identifier_Vector2) identifier_Vector2
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_tile_coords) identifier_tile_coords
(identifier_X) identifier_X
)attribute
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_coords) identifier_coords
(integer_0) integer_0
)subscript
)argument_list
)call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_spritesheet) identifier_spritesheet
)attribute
(integer_0) integer_0
)subscript
(identifier_width) identifier_width
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_tile_coords) identifier_tile_coords
(identifier_Y) identifier_Y
)attribute
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_coords) identifier_coords
(integer_1) integer_1
)subscript
)argument_list
)call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_spritesheet) identifier_spritesheet
)attribute
(integer_0) integer_0
)subscript
(identifier_height) identifier_height
)attribute
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_clamp) identifier_clamp
(block
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_tile_coords) identifier_tile_coords
(identifier_X) identifier_X
)attribute
(attribute
(identifier_tile_coords) identifier_tile_coords
(identifier_Y) identifier_Y
)attribute
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_clamp_within_range) identifier_clamp_within_range
)attribute
(argument_list
(attribute
(identifier_tile_coords) identifier_tile_coords
(identifier_X) identifier_X
)attribute
(attribute
(identifier_tile_coords) identifier_tile_coords
(identifier_Y) identifier_Y
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_tile_coords) identifier_tile_coords
)return_statement
)block
)function_definition
)module | Convert pixel coordinates into tile coordinates.
clamp determines if we should clamp the tiles to ones only on the tilemap. |
(module
(function_definition
(function_name_has_uncacheable_headers) function_name_has_uncacheable_headers
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_cc_dict) identifier_cc_dict
(call
(identifier_get_header_dict) identifier_get_header_dict
(argument_list
(identifier_response) identifier_response
(string_'Cache-Control') string_'Cache-Control'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_cc_dict) identifier_cc_dict
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'max-age') string_'max-age'
(identifier_cc_dict) identifier_cc_dict
)comparison_operator
(comparison_operator
(subscript
(identifier_cc_dict) identifier_cc_dict
(string_'max-age') string_'max-age'
)subscript
(string_'0') string_'0'
)comparison_operator
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'no-cache') string_'no-cache'
(identifier_cc_dict) identifier_cc_dict
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'private') string_'private'
(identifier_cc_dict) identifier_cc_dict
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_has_header) identifier_has_header
)attribute
(argument_list
(string_'Expires') string_'Expires'
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_parse_http_date) identifier_parse_http_date
(argument_list
(subscript
(identifier_response) identifier_response
(string_'Expires') string_'Expires'
)subscript
)argument_list
)call
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Should this response be cached based on it's headers
broken out from should_cache for flexibility |
(module
(function_definition
(function_name_send_msg_to_webhook) function_name_send_msg_to_webhook
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'content') string_'content'
(identifier_message) identifier_message
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header) identifier_header
(dictionary
(pair
(string_'Content-Type') string_'Content-Type'
(string_'application/json') string_'application/json'
)pair
)dictionary
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_url) identifier_api_url
)attribute
(keyword_argument
(identifier_headers) identifier_headers
(identifier_header) identifier_header
)keyword_argument
(keyword_argument
(identifier_json) identifier_json
(identifier_payload) identifier_payload
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_request) identifier_request
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_error_msg) identifier_error_msg
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_warning_msg) identifier_warning_msg
(parenthesized_expression
(binary_operator
(binary_operator
(string_'EXCEPTION: UNABLE TO COMMIT LOG MESSAGE') string_'EXCEPTION: UNABLE TO COMMIT LOG MESSAGE'
(call
(attribute
(string_'\n\texception={0}') string_'\n\texception={0}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_error_msg) identifier_error_msg
)argument_list
)call
)argument_list
)call
)binary_operator
(call
(attribute
(string_'\n\tmessage={0}') string_'\n\tmessage={0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_warning_msg) identifier_warning_msg
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_WebhookFailedEmitWarning) identifier_WebhookFailedEmitWarning
)attribute
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | separated Requests logic for easier testing
Args:
message (str): actual logging string to be passed to REST endpoint
Todo:
* Requests.text/json return for better testing options |
(module
(function_definition
(function_name_remover) function_name_remover
(parameters
(identifier_self) identifier_self
(identifier_id_rack) identifier_id_rack
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_valid_int_param) identifier_is_valid_int_param
(argument_list
(identifier_id_rack) identifier_id_rack
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_InvalidParameterError) identifier_InvalidParameterError
(argument_list
(string_u'The identifier of Rack is invalid or was not informed.') string_u'The identifier of Rack is invalid or was not informed.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(string_'rack/') string_'rack/'
(call
(identifier_str) identifier_str
(argument_list
(identifier_id_rack) identifier_id_rack
)argument_list
)call
)binary_operator
(string_'/') string_'/'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_submit) identifier_submit
)attribute
(argument_list
(None) None
(string_'DELETE') string_'DELETE'
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(argument_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove Rack by the identifier.
:param id_rack: Identifier of the Rack. Integer value and greater than zero.
:return: None
:raise InvalidParameterError: The identifier of Rack is null and invalid.
:raise RackNaoExisteError: Rack not registered.
:raise RackError: Rack is associated with a script.
:raise DataBaseError: Networkapi failed to access the database.
:raise XMLError: Networkapi failed to generate the XML response. |
(module
(function_definition
(function_name_reflect_right) function_name_reflect_right
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_self) identifier_self
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_reflect) identifier_reflect
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Only reflects the value if is < self. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_zengine) identifier_zengine
(identifier_models) identifier_models
)dotted_name
(dotted_name
(identifier_User) identifier_User
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(identifier_User) identifier_User
(argument_list
(keyword_argument
(identifier_username) identifier_username
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_args) identifier_args
)attribute
(identifier_username) identifier_username
)attribute
)keyword_argument
(keyword_argument
(identifier_superuser) identifier_superuser
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_args) identifier_args
)attribute
(identifier_super) identifier_super
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_user) identifier_user
(identifier_set_password) identifier_set_password
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_args) identifier_args
)attribute
(identifier_password) identifier_password
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_user) identifier_user
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"New user created with ID: %s") string_"New user created with ID: %s"
(attribute
(identifier_user) identifier_user
(identifier_key) identifier_key
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Creates user, encrypts password. |
(module
(function_definition
(function_name_create_fw) function_name_create_fw
(parameters
(identifier_self) identifier_self
(identifier_tenant_id) identifier_tenant_id
(identifier_data) identifier_data
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__create_fw) identifier__create_fw
)attribute
(argument_list
(identifier_tenant_id) identifier_tenant_id
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(concatenated_string
(string_"Failed to create FW for device native, tenant ") string_"Failed to create FW for device native, tenant "
(string_"%(tenant)s data %(data)s Exc %(exc)s") string_"%(tenant)s data %(data)s Exc %(exc)s"
)concatenated_string
(dictionary
(pair
(string_'tenant') string_'tenant'
(identifier_tenant_id) identifier_tenant_id
)pair
(pair
(string_'data') string_'data'
(identifier_data) identifier_data
)pair
(pair
(string_'exc') string_'exc'
(identifier_exc) identifier_exc
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Top level routine called when a FW is created. |
(module
(function_definition
(function_name_ReplaceHomoglyphs) function_name_ReplaceHomoglyphs
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_homoglyphs) identifier_homoglyphs
(dictionary
(pair
(string_'\xa0') string_'\xa0'
(string_' ') string_' '
)pair
(pair
(string_'\u00e3') string_'\u00e3'
(string_'') string_''
)pair
(pair
(string_'\u00a0') string_'\u00a0'
(string_' ') string_' '
)pair
(pair
(string_'\u00a9') string_'\u00a9'
(string_'(C)') string_'(C)'
)pair
(pair
(string_'\u00ae') string_'\u00ae'
(string_'(R)') string_'(R)'
)pair
(pair
(string_'\u2014') string_'\u2014'
(string_'-') string_'-'
)pair
(pair
(string_'\u2018') string_'\u2018'
(string_"'") string_"'"
)pair
(pair
(string_'\u2019') string_'\u2019'
(string_"'") string_"'"
)pair
(pair
(string_'\u201c') string_'\u201c'
(string_'"') string_'"'
)pair
(pair
(string_'\u201d') string_'\u201d'
(string_'"') string_'"'
)pair
(pair
(string_'\u2026') string_'\u2026'
(string_'...') string_'...'
)pair
(pair
(string_'\u2e3a') string_'\u2e3a'
(string_'-') string_'-'
)pair
)dictionary
)assignment
)expression_statement
(function_definition
(function_name__ReplaceOne) function_name__ReplaceOne
(parameters
(identifier_c) identifier_c
)parameters
(block
(expression_statement
(assignment
(identifier_equiv) identifier_equiv
(call
(attribute
(identifier_homoglyphs) identifier_homoglyphs
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_equiv) identifier_equiv
(None) None
)comparison_operator
(block
(return_statement
(identifier_equiv) identifier_equiv
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)expression_statement
(return_statement
(identifier_c) identifier_c
)return_statement
)block
(except_clause
(identifier_UnicodeError) identifier_UnicodeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(try_statement
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_c) identifier_c
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'unicode-escape') string_'unicode-escape'
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_UnicodeError) identifier_UnicodeError
(block
(return_statement
(string_'?') string_'?'
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier__ReplaceOne) identifier__ReplaceOne
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(identifier_s) identifier_s
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns s with unicode homoglyphs replaced by ascii equivalents. |
(module
(function_definition
(function_name_get_first_model_with_rest_name) function_name_get_first_model_with_rest_name
(parameters
(identifier_cls) identifier_cls
(identifier_rest_name) identifier_rest_name
)parameters
(block
(expression_statement
(assignment
(identifier_models) identifier_models
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_models_with_rest_name) identifier_get_models_with_rest_name
)attribute
(argument_list
(identifier_rest_name) identifier_rest_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_models) identifier_models
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(subscript
(identifier_models) identifier_models
(integer_0) integer_0
)subscript
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Get the first model corresponding to a rest_name
Args:
rest_name: the rest name |
(module
(function_definition
(function_name_outline) function_name_outline
(parameters
(identifier_self) identifier_self
(identifier_inner) identifier_inner
(identifier_outer) identifier_outer
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_dilate) identifier_dilate
)attribute
(argument_list
(identifier_outer) identifier_outer
)argument_list
)call
(identifier_exclude) identifier_exclude
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_dilate) identifier_dilate
)attribute
(argument_list
(identifier_inner) identifier_inner
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute region outline by differencing two dilations.
Parameters
----------
inner : int
Size of inner outline boundary (in pixels)
outer : int
Size of outer outline boundary (in pixels) |
(module
(function_definition
(function_name_kwargs_to_variable_assignment) function_name_kwargs_to_variable_assignment
(parameters
(typed_parameter
(identifier_kwargs) identifier_kwargs
(type
(identifier_dict) identifier_dict
)type
)typed_parameter
(default_parameter
(identifier_value_representation) identifier_value_representation
(identifier_repr) identifier_repr
)default_parameter
(typed_default_parameter
(identifier_assignment_operator) identifier_assignment_operator
(type
(identifier_str) identifier_str
)type
(string_' = ') string_' = '
)typed_default_parameter
(typed_default_parameter
(identifier_statement_separator) identifier_statement_separator
(type
(identifier_str) identifier_str
)type
(string_'\n') string_'\n'
)typed_default_parameter
(typed_default_parameter
(identifier_statement_per_line) identifier_statement_per_line
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_join_str) identifier_join_str
(conditional_expression
(string_'\n') string_'\n'
(identifier_statement_per_line) identifier_statement_per_line
(string_'') string_''
)conditional_expression
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_code) identifier_code
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(binary_operator
(binary_operator
(identifier_key) identifier_key
(identifier_assignment_operator) identifier_assignment_operator
)binary_operator
(call
(identifier_value_representation) identifier_value_representation
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)binary_operator
(identifier_statement_separator) identifier_statement_separator
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_join_str) identifier_join_str
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_code) identifier_code
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert a dictionary into a string with assignments
Each assignment is constructed based on:
key assignment_operator value_representation(value) statement_separator,
where key and value are the key and value of the dictionary.
Moreover one can seprate the assignment statements by new lines.
Parameters
----------
kwargs : dict
assignment_operator: str, optional:
Assignment operator (" = " in python)
value_representation: str, optinal
How to represent the value in the assignments (repr function in python)
statement_separator : str, optional:
Statement separator (new line in python)
statement_per_line: bool, optional
Insert each statement on a different line
Returns
-------
str
All the assignemnts.
>>> kwargs_to_variable_assignment({'a': 2, 'b': "abc"})
"a = 2\\nb = 'abc'\\n"
>>> kwargs_to_variable_assignment({'a':2 ,'b': "abc"}, statement_per_line=True)
"a = 2\\n\\nb = 'abc'\\n"
>>> kwargs_to_variable_assignment({'a': 2})
'a = 2\\n'
>>> kwargs_to_variable_assignment({'a': 2}, statement_per_line=True)
'a = 2\\n' |
(module
(function_definition
(function_name_add_schema) function_name_add_schema
(parameters
(identifier_self) identifier_self
(identifier_schema) identifier_schema
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_schema) identifier_schema
(identifier_SchemaBuilder) identifier_SchemaBuilder
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_schema_uri) identifier_schema_uri
(attribute
(identifier_schema) identifier_schema
(identifier_schema_uri) identifier_schema_uri
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(attribute
(identifier_schema) identifier_schema
(identifier_to_schema) identifier_to_schema
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_schema_uri) identifier_schema_uri
(None) None
)comparison_operator
(block
(delete_statement
(subscript
(identifier_schema) identifier_schema
(string_'$schema') string_'$schema'
)subscript
)delete_statement
)block
)if_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_schema) identifier_schema
(identifier_SchemaNode) identifier_SchemaNode
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(attribute
(identifier_schema) identifier_schema
(identifier_to_schema) identifier_to_schema
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(string_'$schema') string_'$schema'
(identifier_schema) identifier_schema
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_schema_uri) identifier_schema_uri
)attribute
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_schema_uri) identifier_schema_uri
)attribute
(subscript
(identifier_schema) identifier_schema
(string_'$schema') string_'$schema'
)subscript
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_schema) identifier_schema
)argument_list
)call
)assignment
)expression_statement
(delete_statement
(subscript
(identifier_schema) identifier_schema
(string_'$schema') string_'$schema'
)subscript
)delete_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__root_node) identifier__root_node
)attribute
(identifier_add_schema) identifier_add_schema
)attribute
(argument_list
(identifier_schema) identifier_schema
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Merge in a JSON schema. This can be a ``dict`` or another
``SchemaBuilder``
:param schema: a JSON Schema
.. note::
There is no schema validation. If you pass in a bad schema,
you might get back a bad schema. |
(module
(function_definition
(function_name_gaussian_pdf) function_name_gaussian_pdf
(parameters
(identifier_x) identifier_x
(identifier_g) identifier_g
)parameters
(block
(return_statement
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_exp) identifier_exp
)attribute
(argument_list
(binary_operator
(binary_operator
(unary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_x) identifier_x
(attribute
(identifier_g) identifier_g
(identifier_mean) identifier_mean
)attribute
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)unary_operator
(float_2.) float_2.
)binary_operator
(attribute
(identifier_g) identifier_g
(identifier_var) identifier_var
)attribute
)binary_operator
)argument_list
)call
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(binary_operator
(attribute
(identifier_g) identifier_g
(identifier_var) identifier_var
)attribute
(integer_2) integer_2
)binary_operator
(attribute
(identifier_numpy) identifier_numpy
(identifier_pi) identifier_pi
)attribute
)binary_operator
)argument_list
)call
)binary_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Gaussian probability density function at ``x`` for |GVar| ``g``. |
(module
(function_definition
(function_name_view_set) function_name_view_set
(parameters
(identifier_method_name) identifier_method_name
)parameters
(block
(function_definition
(function_name_view_set) function_name_view_set
(parameters
(identifier_value) identifier_value
(identifier_context) identifier_context
(dictionary_splat_pattern
(identifier__params) identifier__params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(call
(identifier_getattr) identifier_getattr
(argument_list
(subscript
(identifier_context) identifier_context
(string_"view") string_"view"
)subscript
(identifier_method_name) identifier_method_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__set) identifier__set
(argument_list
(identifier_method) identifier_method
(subscript
(identifier_context) identifier_context
(string_"key") string_"key"
)subscript
(identifier_value) identifier_value
(tuple
)tuple
(dictionary
)dictionary
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(identifier_view_set) identifier_view_set
)return_statement
)block
)function_definition
)module | Creates a setter that will call the view method with the context's
key as first parameter and the value as second parameter.
@param method_name: the name of a method belonging to the view.
@type method_name: str |
(module
(function_definition
(function_name_download_as_json) function_name_download_as_json
(parameters
(identifier_url) identifier_url
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(call
(identifier_Response) identifier_Response
(argument_list
(string_'application/json') string_'application/json'
(call
(identifier_request) identifier_request
(argument_list
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
)argument_list
)call
)argument_list
)call
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_HTTPError) identifier_HTTPError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ResponseException) identifier_ResponseException
(argument_list
(string_'application/json') string_'application/json'
(identifier_err) identifier_err
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Download the data at the URL and load it as JSON |
(module
(function_definition
(function_name_get_filename) function_name_get_filename
(parameters
(identifier_self) identifier_self
(identifier_variable) identifier_variable
)parameters
(block
(expression_statement
(assignment
(identifier_fn2var) identifier_fn2var
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__type2filename2variable) identifier__type2filename2variable
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_variable) identifier_variable
)argument_list
)call
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(for_statement
(tuple_pattern
(identifier_fn_) identifier_fn_
(identifier_var) identifier_var
)tuple_pattern
(call
(attribute
(identifier_fn2var) identifier_fn2var
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_var) identifier_var
(identifier_variable) identifier_variable
)comparison_operator
(block
(return_statement
(identifier_fn_) identifier_fn_
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return the auxiliary file name the given variable is allocated
to or |None| if the given variable is not allocated to any
auxiliary file name.
>>> from hydpy import dummies
>>> eqb = dummies.v2af.eqb[0]
>>> dummies.v2af.get_filename(eqb)
'file1'
>>> eqb += 500.0
>>> dummies.v2af.get_filename(eqb) |
(module
(function_definition
(function_name_get_pdffilepath) function_name_get_pdffilepath
(parameters
(identifier_pdffilename) identifier_pdffilename
)parameters
(block
(return_statement
(call
(attribute
(identifier_FILEPATHSTR) identifier_FILEPATHSTR
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_root_dir) identifier_root_dir
(identifier_ROOT_DIR) identifier_ROOT_DIR
)keyword_argument
(keyword_argument
(identifier_os_sep) identifier_os_sep
(attribute
(identifier_os) identifier_os
(identifier_sep) identifier_sep
)attribute
)keyword_argument
(keyword_argument
(identifier_os_extsep) identifier_os_extsep
(attribute
(identifier_os) identifier_os
(identifier_extsep) identifier_extsep
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_pdffilename) identifier_pdffilename
)keyword_argument
(keyword_argument
(identifier_folder) identifier_folder
(call
(attribute
(call
(attribute
(identifier_PURPOSE) identifier_PURPOSE
(identifier_get) identifier_get
)attribute
(argument_list
(string_"plots") string_"plots"
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_"folder") string_"folder"
(string_"plots") string_"plots"
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_ext) identifier_ext
(call
(attribute
(call
(attribute
(identifier_PURPOSE) identifier_PURPOSE
(identifier_get) identifier_get
)attribute
(argument_list
(string_"plots") string_"plots"
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_"extension") string_"extension"
(string_"pdf") string_"pdf"
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the path for the pdf file
args:
pdffilename: string
returns path for the plots folder / pdffilename.pdf |
(module
(function_definition
(function_name_ast_to_html) function_name_ast_to_html
(parameters
(identifier_self) identifier_self
(identifier_ast) identifier_ast
(identifier_link_resolver) identifier_link_resolver
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_out) identifier_out
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_cmark) identifier_cmark
(identifier_ast_to_html) identifier_ast_to_html
)attribute
(argument_list
(identifier_ast) identifier_ast
(identifier_link_resolver) identifier_link_resolver
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | See the documentation of `to_ast` for
more information.
Args:
ast: PyCapsule, a capsule as returned by `to_ast`
link_resolver: hotdoc.core.links.LinkResolver, a link
resolver instance. |
(module
(function_definition
(function_name__check_input_symbols) function_name__check_input_symbols
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
)parameters
(block
(expression_statement
(assignment
(identifier_symbols) identifier_symbols
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(identifier_X) identifier_X
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_symbols) identifier_symbols
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(not_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_issubdtype) identifier_issubdtype
)attribute
(argument_list
(attribute
(identifier_symbols) identifier_symbols
(identifier_dtype) identifier_dtype
)attribute
(attribute
(identifier_np) identifier_np
(identifier_integer) identifier_integer
)attribute
)argument_list
)call
)not_operator
)boolean_operator
(call
(attribute
(parenthesized_expression
(comparison_operator
(identifier_symbols) identifier_symbols
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)parenthesized_expression
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_u) identifier_u
(call
(attribute
(identifier_np) identifier_np
(identifier_unique) identifier_unique
)attribute
(argument_list
(identifier_symbols) identifier_symbols
)argument_list
)call
)assignment
)expression_statement
(return_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_u) identifier_u
(integer_0) integer_0
)subscript
(integer_0) integer_0
)comparison_operator
(comparison_operator
(subscript
(identifier_u) identifier_u
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_u) identifier_u
)argument_list
)call
(integer_1) integer_1
)binary_operator
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Check if ``X`` is a sample from a Multinomial distribution.
That is ``X`` should be an array of non-negative integers from
range ``[min(X), max(X)]``, such that each integer from the range
occurs in ``X`` at least once.
For example ``[0, 0, 2, 1, 3, 1, 1]`` is a valid sample from a
Multinomial distribution, while ``[0, 0, 3, 5, 10]`` is not. |
(module
(function_definition
(function_name_summary) function_name_summary
(parameters
(identifier_self) identifier_self
(identifier_h) identifier_h
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_losses) identifier_losses
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
(argument_list
(keyword_argument
(identifier_h) identifier_h
(identifier_h) identifier_h
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(identifier_losses) identifier_losses
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_df) identifier_df
(identifier_index) identifier_index
)attribute
(binary_operator
(list
(string_'Ensemble') string_'Ensemble'
)list
(attribute
(identifier_self) identifier_self
(identifier_model_names) identifier_model_names
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
(list
(attribute
(identifier_self) identifier_self
(identifier_loss_name) identifier_loss_name
)attribute
)list
)assignment
)expression_statement
(return_statement
(identifier_df) identifier_df
)return_statement
)block
)function_definition
)module | Summarize the results for each model for h steps of the algorithm
Parameters
----------
h : int
How many steps to run the aggregating algorithm on
Returns
----------
- pd.DataFrame of losses for each model |
(module
(function_definition
(function_name_init) function_name_init
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_advertise_addr) identifier_advertise_addr
(type
(identifier_str) identifier_str
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_listen_addr) identifier_listen_addr
(type
(identifier_str) identifier_str
)type
(string_"0.0.0.0:2377") string_"0.0.0.0:2377"
)typed_default_parameter
(typed_default_parameter
(identifier_force_new_cluster) identifier_force_new_cluster
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_swarm_spec) identifier_swarm_spec
(type
(identifier_Mapping) identifier_Mapping
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_"AdvertiseAddr") string_"AdvertiseAddr"
(identifier_advertise_addr) identifier_advertise_addr
)pair
(pair
(string_"ListenAddr") string_"ListenAddr"
(identifier_listen_addr) identifier_listen_addr
)pair
(pair
(string_"ForceNewCluster") string_"ForceNewCluster"
(identifier_force_new_cluster) identifier_force_new_cluster
)pair
(pair
(string_"Spec") string_"Spec"
(identifier_swarm_spec) identifier_swarm_spec
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_docker) identifier_docker
)attribute
(identifier__query_json) identifier__query_json
)attribute
(argument_list
(string_"swarm/init") string_"swarm/init"
(keyword_argument
(identifier_method) identifier_method
(string_"POST") string_"POST"
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Initialize a new swarm.
Args:
ListenAddr: listen address used for inter-manager communication
AdvertiseAddr: address advertised to other nodes.
ForceNewCluster: Force creation of a new swarm.
SwarmSpec: User modifiable swarm configuration.
Returns:
id of the swarm node |
(module
(function_definition
(function_name__collect_unused) function_name__collect_unused
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_start) identifier_start
(type
(identifier_GridQubit) identifier_GridQubit
)type
)typed_parameter
(typed_parameter
(identifier_used) identifier_used
(type
(generic_type
(identifier_Set) identifier_Set
(type_parameter
(type
(identifier_GridQubit) identifier_GridQubit
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Set) identifier_Set
(type_parameter
(type
(identifier_GridQubit) identifier_GridQubit
)type
)type_parameter
)generic_type
)type
(block
(function_definition
(function_name_collect) function_name_collect
(parameters
(typed_parameter
(identifier_n) identifier_n
(type
(identifier_GridQubit) identifier_GridQubit
)type
)typed_parameter
(typed_parameter
(identifier_visited) identifier_visited
(type
(generic_type
(identifier_Set) identifier_Set
(type_parameter
(type
(identifier_GridQubit) identifier_GridQubit
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_visited) identifier_visited
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
)expression_statement
(for_statement
(identifier_m) identifier_m
(subscript
(attribute
(identifier_self) identifier_self
(identifier__c_adj) identifier__c_adj
)attribute
(identifier_n) identifier_n
)subscript
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_m) identifier_m
(identifier_used) identifier_used
)comparison_operator
(comparison_operator
(identifier_m) identifier_m
(identifier_visited) identifier_visited
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_collect) identifier_collect
(argument_list
(identifier_m) identifier_m
(identifier_visited) identifier_visited
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_visited) identifier_visited
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_collect) identifier_collect
(argument_list
(identifier_start) identifier_start
(identifier_visited) identifier_visited
)argument_list
)call
)expression_statement
(return_statement
(identifier_visited) identifier_visited
)return_statement
)block
)function_definition
)module | Lists all the qubits that are reachable from given qubit.
Args:
start: The first qubit for which connectivity should be calculated.
Might be a member of used set.
used: Already used qubits, which cannot be used during the
collection.
Returns:
Set of qubits that are reachable from starting qubit without
traversing any of the used qubits. |
(module
(function_definition
(function_name_merge_config) function_name_merge_config
(parameters
(typed_parameter
(identifier_config) identifier_config
(type
(generic_type
(identifier_Mapping) identifier_Mapping
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_default_parameter
(identifier_override_config) identifier_override_config
(type
(generic_type
(identifier_Mapping) identifier_Mapping
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_override_config_fn) identifier_override_config_fn
(type
(identifier_str) identifier_str
)type
(None) None
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_Mapping) identifier_Mapping
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
(block
(if_statement
(identifier_override_config_fn) identifier_override_config_fn
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_override_config_fn) identifier_override_config_fn
(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_override_config) identifier_override_config
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
(keyword_argument
(identifier_Loader) identifier_Loader
(attribute
(identifier_yaml) identifier_yaml
(identifier_SafeLoader) identifier_SafeLoader
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_override_config) identifier_override_config
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Missing override_config") string_"Missing override_config"
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_functools) identifier_functools
(identifier_reduce) identifier_reduce
)attribute
(argument_list
(identifier_rec_merge) identifier_rec_merge
(tuple
(identifier_config) identifier_config
(identifier_override_config) identifier_override_config
)tuple
)argument_list
)call
)return_statement
)block
)function_definition
)module | Override config with additional configuration in override_config or override_config_fn
Used in script to merge CLI options with Config
Args:
config: original configuration
override_config: new configuration to override/extend current config
override_config_fn: new configuration filename as YAML file |
(module
(function_definition
(function_name_new_project) function_name_new_project
(parameters
(identifier_self) identifier_self
(identifier_project_root) identifier_project_root
)parameters
(block
(expression_statement
(assignment
(identifier_profile) identifier_profile
(call
(identifier_Profile) identifier_Profile
(argument_list
(dictionary_splat
(call
(attribute
(identifier_self) identifier_self
(identifier_to_profile_info) identifier_to_profile_info
)attribute
(argument_list
)argument_list
)call
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_profile) identifier_profile
(identifier_validate) identifier_validate
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_project) identifier_project
(call
(attribute
(identifier_Project) identifier_Project
(identifier_from_project_root) identifier_from_project_root
)attribute
(argument_list
(identifier_project_root) identifier_project_root
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cfg) identifier_cfg
(call
(attribute
(identifier_self) identifier_self
(identifier_from_parts) identifier_from_parts
)attribute
(argument_list
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cfg) identifier_cfg
(identifier_quoting) identifier_quoting
)attribute
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_quoting) identifier_quoting
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_cfg) identifier_cfg
)return_statement
)block
)function_definition
)module | Given a new project root, read in its project dictionary, supply the
existing project's profile info, and create a new project file.
:param project_root str: A filepath to a dbt project.
:raises DbtProfileError: If the profile is invalid.
:raises DbtProjectError: If project is missing or invalid.
:returns RuntimeConfig: The new configuration. |
(module
(function_definition
(function_name_start_new_gui_thread) function_name_start_new_gui_thread
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_PyGUIThread) identifier_PyGUIThread
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_ROOT) identifier_ROOT
(string_'PyGUIThread') string_'PyGUIThread'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_PyGUIThread) identifier_PyGUIThread
(None) None
)comparison_operator
(block
(assert_statement
(not_operator
(call
(attribute
(identifier_PyGUIThread) identifier_PyGUIThread
(identifier_isAlive) identifier_isAlive
)attribute
(argument_list
)argument_list
)call
)not_operator
(string_"GUI thread already running!") string_"GUI thread already running!"
)assert_statement
)block
)if_statement
(assert_statement
(identifier__processRootEvents) identifier__processRootEvents
(parenthesized_expression
(concatenated_string
(string_"GUI thread wasn't started when rootwait was imported, ") string_"GUI thread wasn't started when rootwait was imported, "
(string_"so it can't be restarted") string_"so it can't be restarted"
)concatenated_string
)parenthesized_expression
)assert_statement
(expression_statement
(assignment
(attribute
(identifier_ROOT) identifier_ROOT
(identifier_keeppolling) identifier_keeppolling
)attribute
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_ROOT) identifier_ROOT
(identifier_PyGUIThread) identifier_PyGUIThread
)attribute
(call
(attribute
(identifier_threading) identifier_threading
(identifier_Thread) identifier_Thread
)attribute
(argument_list
(None) None
(identifier__processRootEvents) identifier__processRootEvents
(None) None
(tuple
(identifier_ROOT) identifier_ROOT
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_ROOT) identifier_ROOT
(identifier_PyGUIThread) identifier_PyGUIThread
)attribute
(identifier_finishSchedule) identifier_finishSchedule
)attribute
(identifier__finishSchedule) identifier__finishSchedule
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_ROOT) identifier_ROOT
(identifier_PyGUIThread) identifier_PyGUIThread
)attribute
(identifier_setDaemon) identifier_setDaemon
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_ROOT) identifier_ROOT
(identifier_PyGUIThread) identifier_PyGUIThread
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"successfully started a new GUI thread") string_"successfully started a new GUI thread"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Attempt to start a new GUI thread, if possible.
It is only possible to start one if there was one running on module import. |
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_timeout) identifier_timeout
(type
(identifier_int) identifier_int
)type
(integer_15) integer_15
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(list
(string_"-version") string_"-version"
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_open) identifier_is_open
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_open
)attribute
(argument_list
(keyword_argument
(identifier_cmd) identifier_cmd
(identifier_command) identifier_command
)keyword_argument
(keyword_argument
(identifier_input_source) identifier_input_source
(None) None
)keyword_argument
(keyword_argument
(identifier_output) identifier_output
(string_"") string_""
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_is_open) identifier_is_open
)not_operator
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Error starting FFmpeg.") string_"Error starting FFmpeg."
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_proc_func) identifier_proc_func
(call
(attribute
(identifier_functools) identifier_functools
(identifier_partial) identifier_partial
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__proc) identifier__proc
)attribute
(identifier_communicate) identifier_communicate
)attribute
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_output) identifier_output
(identifier__) identifier__
)pattern_list
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
(identifier_run_in_executor) identifier_run_in_executor
)attribute
(argument_list
(None) None
(identifier_proc_func) identifier_proc_func
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_r"ffmpeg version (\S*)") string_r"ffmpeg version (\S*)"
(call
(attribute
(identifier_output) identifier_output
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)return_statement
)block
)if_statement
)block
(except_clause
(tuple
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_TimeoutExpired) identifier_TimeoutExpired
)attribute
(identifier_ValueError) identifier_ValueError
)tuple
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Timeout reading stdout.") string_"Timeout reading stdout."
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_kill) identifier_kill
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Execute FFmpeg process and parse the version information.
Return full FFmpeg version string. Such as 3.4.2-tessus |
(module
(function_definition
(function_name_flds_firstsort) function_name_flds_firstsort
(parameters
(identifier_d) identifier_d
)parameters
(block
(expression_statement
(assignment
(identifier_shape) identifier_shape
(list_comprehension
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_unique) identifier_unique
)attribute
(argument_list
(subscript
(identifier_d) identifier_d
(identifier_l) identifier_l
)subscript
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_l) identifier_l
(list
(string_'xs') string_'xs'
(string_'ys') string_'ys'
(string_'zs') string_'zs'
)list
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_si) identifier_si
(call
(attribute
(identifier_np) identifier_np
(identifier_lexsort) identifier_lexsort
)attribute
(argument_list
(tuple
(subscript
(identifier_d) identifier_d
(string_'z') string_'z'
)subscript
(subscript
(identifier_d) identifier_d
(string_'y') string_'y'
)subscript
(subscript
(identifier_d) identifier_d
(string_'x') string_'x'
)subscript
)tuple
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_si) identifier_si
(identifier_shape) identifier_shape
)expression_list
)return_statement
)block
)function_definition
)module | Perform a lexsort and return the sort indices and shape as a tuple. |
(module
(function_definition
(function_name_init_can) function_name_init_can
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_channel) identifier_channel
(attribute
(identifier_Channel) identifier_Channel
(identifier_CHANNEL_CH0) identifier_CHANNEL_CH0
)attribute
)default_parameter
(default_parameter
(identifier_BTR) identifier_BTR
(attribute
(identifier_Baudrate) identifier_Baudrate
(identifier_BAUD_1MBit) identifier_BAUD_1MBit
)attribute
)default_parameter
(default_parameter
(identifier_baudrate) identifier_baudrate
(attribute
(identifier_BaudrateEx) identifier_BaudrateEx
(identifier_BAUDEX_USE_BTR01) identifier_BAUDEX_USE_BTR01
)attribute
)default_parameter
(default_parameter
(identifier_AMR) identifier_AMR
(identifier_AMR_ALL) identifier_AMR_ALL
)default_parameter
(default_parameter
(identifier_ACR) identifier_ACR
(identifier_ACR_ALL) identifier_ACR_ALL
)default_parameter
(default_parameter
(identifier_mode) identifier_mode
(attribute
(identifier_Mode) identifier_Mode
(identifier_MODE_NORMAL) identifier_MODE_NORMAL
)attribute
)default_parameter
(default_parameter
(identifier_OCR) identifier_OCR
(attribute
(identifier_OutputControl) identifier_OutputControl
(identifier_OCR_DEFAULT) identifier_OCR_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_rx_buffer_entries) identifier_rx_buffer_entries
(identifier_DEFAULT_BUFFER_ENTRIES) identifier_DEFAULT_BUFFER_ENTRIES
)default_parameter
(default_parameter
(identifier_tx_buffer_entries) identifier_tx_buffer_entries
(identifier_DEFAULT_BUFFER_ENTRIES) identifier_DEFAULT_BUFFER_ENTRIES
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ch_is_initialized) identifier__ch_is_initialized
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_channel) identifier_channel
(False) False
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_init_param) identifier_init_param
(call
(identifier_InitCanParam) identifier_InitCanParam
(argument_list
(identifier_mode) identifier_mode
(identifier_BTR) identifier_BTR
(identifier_OCR) identifier_OCR
(identifier_AMR) identifier_AMR
(identifier_ACR) identifier_ACR
(identifier_baudrate) identifier_baudrate
(identifier_rx_buffer_entries) identifier_rx_buffer_entries
(identifier_tx_buffer_entries) identifier_tx_buffer_entries
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_UcanInitCanEx2) identifier_UcanInitCanEx2
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__handle) identifier__handle
)attribute
(identifier_channel) identifier_channel
(identifier_init_param) identifier_init_param
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__ch_is_initialized) identifier__ch_is_initialized
)attribute
(identifier_channel) identifier_channel
)subscript
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Initializes a specific CAN channel of a device.
:param int channel: CAN channel to be initialized (:data:`Channel.CHANNEL_CH0` or :data:`Channel.CHANNEL_CH1`).
:param int BTR:
Baud rate register BTR0 as high byte, baud rate register BTR1 as low byte (see enum :class:`Baudrate`).
:param int baudrate: Baud rate register for all systec USB-CANmoduls (see enum :class:`BaudrateEx`).
:param int AMR: Acceptance filter mask (see method :meth:`set_acceptance`).
:param int ACR: Acceptance filter code (see method :meth:`set_acceptance`).
:param int mode: Transmission mode of CAN channel (see enum :class:`Mode`).
:param int OCR: Output Control Register (see enum :class:`OutputControl`).
:param int rx_buffer_entries: The number of maximum entries in the receive buffer.
:param int tx_buffer_entries: The number of maximum entries in the transmit buffer. |
(module
(function_definition
(function_name_show_warning) function_name_show_warning
(parameters
(identifier_message) identifier_message
)parameters
(block
(try_statement
(block
(import_statement
(dotted_name
(identifier_Tkinter) identifier_Tkinter
)dotted_name
(dotted_name
(identifier_tkMessageBox) identifier_tkMessageBox
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(identifier_Tkinter) identifier_Tkinter
(identifier_Tk) identifier_Tk
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_root) identifier_root
(identifier_withdraw) identifier_withdraw
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_tkMessageBox) identifier_tkMessageBox
(identifier_showerror) identifier_showerror
)attribute
(argument_list
(string_"Spyder") string_"Spyder"
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Show warning using Tkinter if available |
(module
(function_definition
(function_name_iter_breadth_first) function_name_iter_breadth_first
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_root) identifier_root
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_root) identifier_root
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(identifier_self) identifier_self
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(yield
(identifier_root) identifier_root
)yield
)expression_statement
(expression_statement
(assignment
(identifier_last) identifier_last
(identifier_root) identifier_root
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(call
(attribute
(identifier_self) identifier_self
(identifier_iter_breadth_first) identifier_iter_breadth_first
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_node) identifier_node
(identifier_DictCell) identifier_DictCell
)argument_list
)call
(block
(for_statement
(identifier_subpart) identifier_subpart
(identifier_node) identifier_node
(block
(expression_statement
(yield
(identifier_subpart) identifier_subpart
)yield
)expression_statement
(expression_statement
(assignment
(identifier_last) identifier_last
(identifier_subpart) identifier_subpart
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_last) identifier_last
(identifier_node) identifier_node
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Traverses the belief state's structure breadth-first |
(module
(function_definition
(function_name_micromanager_metadata) function_name_micromanager_metadata
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_is_micromanager) identifier_is_micromanager
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_read_micromanager_metadata) identifier_read_micromanager_metadata
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__fh) identifier__fh
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pages) identifier_pages
)attribute
(integer_0) integer_0
)subscript
(identifier_tags) identifier_tags
)attribute
(string_'MicroManagerMetadata') string_'MicroManagerMetadata'
)subscript
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return consolidated MicroManager metadata as dict. |
(module
(function_definition
(function_name_handle_json_wrapper_GET) function_name_handle_json_wrapper_GET
(parameters
(identifier_self) identifier_self
(identifier_handler) identifier_handler
(identifier_parsed_params) identifier_parsed_params
)parameters
(block
(expression_statement
(assignment
(identifier_schedule) identifier_schedule
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_schedule) identifier_schedule
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_parsed_params) identifier_parsed_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(call
(identifier_ResultEncoder) identifier_ResultEncoder
(argument_list
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_response) identifier_send_response
)attribute
(argument_list
(integer_200) integer_200
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_header) identifier_send_header
)attribute
(argument_list
(string_'Content-Type') string_'Content-Type'
(string_'text/plain') string_'text/plain'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_header) identifier_send_header
)attribute
(argument_list
(string_'Content-Length') string_'Content-Length'
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_end_headers) identifier_end_headers
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wfile) identifier_wfile
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Call handler and output the return value in JSON. |
(module
(function_definition
(function_name_guess_wxr_version) function_name_guess_wxr_version
(parameters
(identifier_self) identifier_self
(identifier_tree) identifier_tree
)parameters
(block
(for_statement
(identifier_v) identifier_v
(tuple
(string_'1.2') string_'1.2'
(string_'1.1') string_'1.1'
(string_'1.0') string_'1.0'
)tuple
(block
(try_statement
(block
(expression_statement
(attribute
(call
(attribute
(identifier_tree) identifier_tree
(identifier_find) identifier_find
)attribute
(argument_list
(binary_operator
(string_'channel/{%s}wxr_version') string_'channel/{%s}wxr_version'
(parenthesized_expression
(binary_operator
(identifier_WP_NS) identifier_WP_NS
(identifier_v) identifier_v
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
(identifier_text) identifier_text
)attribute
)expression_statement
(return_statement
(identifier_v) identifier_v
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(raise_statement
(call
(identifier_CommandError) identifier_CommandError
(argument_list
(string_'Cannot resolve the wordpress namespace') string_'Cannot resolve the wordpress namespace'
)argument_list
)call
)raise_statement
)block
)function_definition
)module | We will try to guess the wxr version used
to complete the wordpress xml namespace name. |
(module
(function_definition
(function_name_label_search) function_name_label_search
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_label) identifier_label
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_dict) identifier_dict
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_ilx_rows) identifier_ilx_rows
(call
(attribute
(identifier_self) identifier_self
(identifier_label2rows) identifier_label2rows
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_local_degrade) identifier_local_degrade
)attribute
(argument_list
(identifier_label) identifier_label
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ilx_rows) identifier_ilx_rows
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_ilx_rows) identifier_ilx_rows
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the rows in InterLex associated with that label
Note:
Pressumed to have duplicated labels in InterLex
Args:
label: label of the entity you want to find
Returns:
None or List[dict] |
(module
(function_definition
(function_name_episode_info) function_name_episode_info
(parameters
(identifier_self) identifier_self
(identifier_cosmoid) identifier_cosmoid
(identifier_season) identifier_season
(identifier_episode) identifier_episode
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_resource) identifier_resource
(binary_operator
(string_'season/%d/episode/%d/info') string_'season/%d/episode/%d/info'
(tuple
(identifier_season) identifier_season
(identifier_episode) identifier_episode
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__cosmoid_request) identifier__cosmoid_request
)attribute
(argument_list
(identifier_resource) identifier_resource
(identifier_cosmoid) identifier_cosmoid
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns information about an episode in a television series
Maps to the `episode info <http://prod-doc.rovicorp.com/mashery/index.php/V1.MetaData.VideoService.Video:SeasonEpisode>`_ API method. |
(module
(function_definition
(function_name_enrich) function_name_enrich
(parameters
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)parameters
(block
(for_statement
(identifier_column) identifier_column
(identifier_columns) identifier_columns
(block
(if_statement
(comparison_operator
(identifier_column) identifier_column
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_columns) identifier_columns
)attribute
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_first_column) identifier_first_column
(call
(identifier_list) identifier_list
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(subscript
(identifier_columns) identifier_columns
(integer_0) integer_0
)subscript
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_append_df) identifier_append_df
(call
(attribute
(identifier_pandas) identifier_pandas
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_cell) identifier_cell
(identifier_first_column) identifier_first_column
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_cell) identifier_cell
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_pandas) identifier_pandas
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_column) identifier_column
(identifier_columns) identifier_columns
(block
(expression_statement
(assignment
(subscript
(identifier_df) identifier_df
(identifier_column) identifier_column
)subscript
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_loc) identifier_loc
)attribute
(identifier_count) identifier_count
(identifier_column) identifier_column
)subscript
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_extra_df) identifier_extra_df
(call
(attribute
(identifier_pandas) identifier_pandas
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(binary_operator
(list
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_loc) identifier_loc
)attribute
(identifier_count) identifier_count
)subscript
)list
(call
(identifier_len) identifier_len
(argument_list
(identifier_df) identifier_df
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_column) identifier_column
(identifier_columns) identifier_columns
(block
(expression_statement
(assignment
(subscript
(identifier_extra_df) identifier_extra_df
(identifier_column) identifier_column
)subscript
(call
(identifier_list) identifier_list
(argument_list
(subscript
(identifier_df) identifier_df
(identifier_column) identifier_column
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_append_df) identifier_append_df
(call
(attribute
(identifier_append_df) identifier_append_df
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_extra_df) identifier_extra_df
(keyword_argument
(identifier_ignore_index) identifier_ignore_index
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extra_df) identifier_extra_df
(call
(attribute
(identifier_pandas) identifier_pandas
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(binary_operator
(identifier_count) identifier_count
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_append_df) identifier_append_df
(keyword_argument
(identifier_ignore_index) identifier_ignore_index
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)return_statement
)block
)function_definition
)module | This method appends at the end of the dataframe as many
rows as items are found in the list of elemnents in the
provided columns.
This assumes that the length of the lists for the several
specified columns is the same. As an example, for the row A
{"C1":"V1", "C2":field1, "C3":field2, "C4":field3}
we have three cells with a list of four elements each of them:
* field1: [1,2,3,4]
* field2: ["a", "b", "c", "d"]
* field3: [1.1, 2.2, 3.3, 4.4]
This method converts each of the elements of each cell in a new
row keeping the columns name:
{"C1":"V1", "C2":1, "C3":"a", "C4":1.1}
{"C1":"V1", "C2":2, "C3":"b", "C4":2.2}
{"C1":"V1", "C2":3, "C3":"c", "C4":3.3}
{"C1":"V1", "C2":4, "C3":"d", "C4":4.4}
:param columns: list of strings
:rtype pandas.DataFrame |
(module
(function_definition
(function_name_kruskal) function_name_kruskal
(parameters
(identifier_graph) identifier_graph
(identifier_weight) identifier_weight
)parameters
(block
(expression_statement
(assignment
(identifier_uf) identifier_uf
(call
(identifier_UnionFind) identifier_UnionFind
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_graph) identifier_graph
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edges) identifier_edges
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_u) identifier_u
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_graph) identifier_graph
)argument_list
)call
)argument_list
)call
(block
(for_statement
(identifier_v) identifier_v
(subscript
(identifier_graph) identifier_graph
(identifier_u) identifier_u
)subscript
(block
(expression_statement
(call
(attribute
(identifier_edges) identifier_edges
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(subscript
(subscript
(identifier_weight) identifier_weight
(identifier_u) identifier_u
)subscript
(identifier_v) identifier_v
)subscript
(identifier_u) identifier_u
(identifier_v) identifier_v
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_edges) identifier_edges
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_mst) identifier_mst
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_w) identifier_w
(identifier_u) identifier_u
(identifier_v) identifier_v
)pattern_list
(identifier_edges) identifier_edges
(block
(if_statement
(call
(attribute
(identifier_uf) identifier_uf
(identifier_union) identifier_union
)attribute
(argument_list
(identifier_u) identifier_u
(identifier_v) identifier_v
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_mst) identifier_mst
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_u) identifier_u
(identifier_v) identifier_v
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_mst) identifier_mst
)return_statement
)block
)function_definition
)module | Minimum spanning tree by Kruskal
:param graph: undirected graph in listlist or listdict format
:param weight: in matrix format or same listdict graph
:returns: list of edges of the tree
:complexity: ``O(|E|log|E|)`` |
(module
(function_definition
(function_name_descriptions) function_name_descriptions
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(attribute
(identifier_cls) identifier_cls
(identifier_json_get) identifier_json_get
)attribute
(argument_list
(binary_operator
(string_'%s/status/schema') string_'%s/status/schema'
(attribute
(identifier_cls) identifier_cls
(identifier_api_url) identifier_api_url
)attribute
)binary_operator
(keyword_argument
(identifier_empty_key) identifier_empty_key
(True) True
)keyword_argument
(keyword_argument
(identifier_send_key) identifier_send_key
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_descs) identifier_descs
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_val) identifier_val
(subscript
(subscript
(subscript
(identifier_schema) identifier_schema
(string_'fields') string_'fields'
)subscript
(string_'status') string_'status'
)subscript
(string_'value') string_'value'
)subscript
(block
(expression_statement
(call
(attribute
(identifier_descs) identifier_descs
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_descs) identifier_descs
)return_statement
)block
)function_definition
)module | Retrieve status descriptions from status.gandi.net. |
(module
(function_definition
(function_name_queue_files) function_name_queue_files
(parameters
(identifier_dirpath) identifier_dirpath
(identifier_queue) identifier_queue
)parameters
(block
(for_statement
(pattern_list
(identifier_root) identifier_root
(identifier__) identifier__
(identifier_files) identifier_files
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier_dirpath) identifier_dirpath
)argument_list
)call
)argument_list
)call
(block
(if_statement
(not_operator
(identifier_files) identifier_files
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_filename) identifier_filename
(identifier_files) identifier_files
(block
(expression_statement
(call
(attribute
(identifier_queue) identifier_queue
(identifier_put) identifier_put
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root) identifier_root
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Add files in a directory to a queue |
(module
(function_definition
(function_name_generate_sample_cfn_module) function_name_generate_sample_cfn_module
(parameters
(identifier_env_root) identifier_env_root
(default_parameter
(identifier_module_dir) identifier_module_dir
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_module_dir) identifier_module_dir
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_module_dir) identifier_module_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_env_root) identifier_env_root
(string_'sampleapp.cfn') string_'sampleapp.cfn'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_generate_sample_module) identifier_generate_sample_module
(argument_list
(identifier_module_dir) identifier_module_dir
)argument_list
)call
)expression_statement
(for_statement
(identifier_i) identifier_i
(list
(string_'stacks.yaml') string_'stacks.yaml'
(string_'dev-us-east-1.env') string_'dev-us-east-1.env'
)list
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copyfile) identifier_copyfile
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_ROOT) identifier_ROOT
(string_'templates') string_'templates'
(string_'cfn') string_'cfn'
(identifier_i) identifier_i
)argument_list
)call
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_module_dir) identifier_module_dir
(identifier_i) identifier_i
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_mkdir) identifier_mkdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_module_dir) identifier_module_dir
(string_'templates') string_'templates'
)argument_list
)call
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_module_dir) identifier_module_dir
(string_'templates') string_'templates'
(string_'tf_state.yml') string_'tf_state.yml'
)argument_list
)call
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_stream) identifier_stream
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_cfn_flip) identifier_cfn_flip
(identifier_flip) identifier_flip
)attribute
(argument_list
(call
(identifier_check_output) identifier_check_output
(argument_list
(list
(attribute
(identifier_sys) identifier_sys
(identifier_executable) identifier_executable
)attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_ROOT) identifier_ROOT
(string_'templates') string_'templates'
(string_'stacker') string_'stacker'
(string_'tfstate_blueprints') string_'tfstate_blueprints'
(string_'tf_state.py') string_'tf_state.py'
)argument_list
)call
)list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Sample CloudFormation module created at %s") string_"Sample CloudFormation module created at %s"
(identifier_module_dir) identifier_module_dir
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Generate skeleton CloudFormation sample module. |
(module
(function_definition
(function_name_namespace) function_name_namespace
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_prefix) identifier_prefix
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(call
(attribute
(identifier_self) identifier_self
(identifier___deref) identifier___deref
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_e) identifier_e
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_e) identifier_e
(identifier_namespace) identifier_namespace
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_Element) identifier_Element
(identifier_self) identifier_self
)argument_list
)call
(identifier_namespace) identifier_namespace
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get this schema element's target namespace.
In case of reference elements, the target namespace is defined by the
referenced and not the referencing element node.
@param prefix: The default prefix.
@type prefix: str
@return: The schema element's target namespace
@rtype: (I{prefix},I{URI}) |
(module
(function_definition
(function_name_query_boost_version) function_name_query_boost_version
(parameters
(identifier_boost_root) identifier_boost_root
)parameters
(block
(expression_statement
(assignment
(identifier_boost_version) identifier_boost_version
(None) None
)assignment
)expression_statement
(if_statement
(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_boost_root) identifier_boost_root
(string_'Jamroot') string_'Jamroot'
)argument_list
)call
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_open) identifier_open
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_boost_root) identifier_boost_root
(string_'Jamroot') string_'Jamroot'
)argument_list
)call
(string_'r') string_'r'
(string_'utf-8') string_'utf-8'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_f) identifier_f
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
(integer_5) integer_5
)comparison_operator
(comparison_operator
(subscript
(identifier_parts) identifier_parts
(integer_1) integer_1
)subscript
(string_'BOOST_VERSION') string_'BOOST_VERSION'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_boost_version) identifier_boost_version
(subscript
(identifier_parts) identifier_parts
(integer_3) integer_3
)subscript
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_boost_version) identifier_boost_version
)not_operator
(block
(expression_statement
(assignment
(identifier_boost_version) identifier_boost_version
(string_'default') string_'default'
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_boost_version) identifier_boost_version
)return_statement
)block
)function_definition
)module | Read in the Boost version from a given boost_root. |
(module
(function_definition
(function_name_get_tool_definition) function_name_get_tool_definition
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
)parameters
(block
(if_statement
(comparison_operator
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier_targets_mcu_list) identifier_targets_mcu_list
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Target not found in definitions") string_"Target not found in definitions"
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_mcu_record) identifier_mcu_record
(conditional_expression
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_targets) identifier_targets
)attribute
(identifier_get_mcu_record) identifier_get_mcu_record
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mcus) identifier_mcus
)attribute
(identifier_get_mcu_record) identifier_get_mcu_record
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
(None) None
)comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mcus) identifier_mcus
)attribute
(identifier_get_mcu_record) identifier_get_mcu_record
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(try_statement
(block
(return_statement
(subscript
(subscript
(identifier_mcu_record) identifier_mcu_record
(string_'tool_specific') string_'tool_specific'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_tool) identifier_tool
)attribute
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns tool specific dic or None if it does not exist for defined tool |
(module
(function_definition
(function_name_get_rotated) function_name_get_rotated
(parameters
(identifier_self) identifier_self
(identifier_angle) identifier_angle
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_rotate) identifier_rotate
)attribute
(argument_list
(identifier_angle) identifier_angle
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return a vector rotated by angle from the given vector. Angle measured in radians counter-clockwise. |
(module
(function_definition
(function_name_out_interactions_iter) function_name_out_interactions_iter
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_nbunch) identifier_nbunch
(None) None
)default_parameter
(default_parameter
(identifier_t) identifier_t
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_nbunch) identifier_nbunch
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_nodes_nbrs_succ) identifier_nodes_nbrs_succ
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__succ) identifier__succ
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_nodes_nbrs_succ) identifier_nodes_nbrs_succ
(list_comprehension
(tuple
(identifier_n) identifier_n
(subscript
(attribute
(identifier_self) identifier_self
(identifier__succ) identifier__succ
)attribute
(identifier_n) identifier_n
)subscript
)tuple
(for_in_clause
(identifier_n) identifier_n
(call
(attribute
(identifier_self) identifier_self
(identifier_nbunch_iter) identifier_nbunch_iter
)attribute
(argument_list
(identifier_nbunch) identifier_nbunch
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(pattern_list
(identifier_n) identifier_n
(identifier_nbrs) identifier_nbrs
)pattern_list
(identifier_nodes_nbrs_succ) identifier_nodes_nbrs_succ
(block
(for_statement
(identifier_nbr) identifier_nbr
(identifier_nbrs) identifier_nbrs
(block
(if_statement
(comparison_operator
(identifier_t) identifier_t
(None) None
)comparison_operator
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___presence_test) identifier___presence_test
)attribute
(argument_list
(identifier_n) identifier_n
(identifier_nbr) identifier_nbr
(identifier_t) identifier_t
)argument_list
)call
(block
(expression_statement
(yield
(tuple
(identifier_n) identifier_n
(identifier_nbr) identifier_nbr
(dictionary
(pair
(string_"t") string_"t"
(list
(identifier_t) identifier_t
)list
)pair
)dictionary
)tuple
)yield
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_nbr) identifier_nbr
(subscript
(attribute
(identifier_self) identifier_self
(identifier__succ) identifier__succ
)attribute
(identifier_n) identifier_n
)subscript
)comparison_operator
(block
(expression_statement
(yield
(tuple
(identifier_n) identifier_n
(identifier_nbr) identifier_nbr
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__succ) identifier__succ
)attribute
(identifier_n) identifier_n
)subscript
(identifier_nbr) identifier_nbr
)subscript
)tuple
)yield
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Return an iterator over the out interactions present in a given snapshot.
Edges are returned as tuples
in the order (node, neighbor).
Parameters
----------
nbunch : iterable container, optional (default= all nodes)
A container of nodes. The container will be iterated
through once.
t : snapshot id (default=None)
If None the the method returns an iterator over the edges of the flattened graph.
Returns
-------
edge_iter : iterator
An iterator of (u,v) tuples of interaction.
Notes
-----
Nodes in nbunch that are not in the graph will be (quietly) ignored.
For directed graphs this returns the out-interaction.
Examples
--------
>>> G = dn.DynDiGraph()
>>> G.add_interaction(0,1, 0)
>>> G.add_interaction(1,2, 0)
>>> G.add_interaction(2,3,1)
>>> [e for e in G.out_interactions_iter(t=0)]
[(0, 1), (1, 2)]
>>> list(G.out_interactions_iter())
[(0, 1), (1, 2), (2, 3)] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.