sequence
stringlengths 557
12.7k
| docstring
stringlengths 4
15.2k
|
|---|---|
(module
(function_definition
(function_name_uuid) function_name_uuid
(parameters
(identifier_self) identifier_self
(identifier_type) identifier_type
(identifier_val) identifier_val
)parameters
(block
(expression_statement
(assignment
(identifier_picker) identifier_picker
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_x) identifier_x
(identifier_get) identifier_get
)attribute
(argument_list
(string_'uuid') string_'uuid'
(identifier_x) identifier_x
)argument_list
)call
)lambda
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get) identifier__get
)attribute
(argument_list
(tuple
(identifier_type) identifier_type
(identifier_val) identifier_val
)tuple
(identifier_picker) identifier_picker
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Return the item-uuid for a identifier
|
(module
(function_definition
(function_name_fail_hosts) function_name_fail_hosts
(parameters
(identifier_self) identifier_self
(identifier_hosts_to_fail) identifier_hosts_to_fail
(default_parameter
(identifier_activated_count) identifier_activated_count
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_hosts_to_fail) identifier_hosts_to_fail
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_activated_count) identifier_activated_count
(boolean_operator
(identifier_activated_count) identifier_activated_count
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_activated_hosts) identifier_activated_hosts
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Failing hosts: {0}') string_'Failing hosts: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(generator_expression
(attribute
(identifier_host) identifier_host
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_host) identifier_host
(identifier_hosts_to_fail) identifier_hosts_to_fail
)for_in_clause
)generator_expression
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_active_hosts) identifier_active_hosts
)attribute
(identifier_hosts_to_fail) identifier_hosts_to_fail
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_active_hosts) identifier_active_hosts
(attribute
(identifier_self) identifier_self
(identifier_active_hosts) identifier_active_hosts
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_active_hosts) identifier_active_hosts
)not_operator
(block
(raise_statement
(call
(identifier_PyinfraError) identifier_PyinfraError
(argument_list
(string_'No hosts remaining!') string_'No hosts remaining!'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_FAIL_PERCENT) identifier_FAIL_PERCENT
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_percent_failed) identifier_percent_failed
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_active_hosts) identifier_active_hosts
)argument_list
)call
(identifier_activated_count) identifier_activated_count
)binary_operator
)binary_operator
)parenthesized_expression
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_percent_failed) identifier_percent_failed
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_FAIL_PERCENT) identifier_FAIL_PERCENT
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_PyinfraError) identifier_PyinfraError
(argument_list
(call
(attribute
(string_'Over {0}% of hosts failed ({1}%)') string_'Over {0}% of hosts failed ({1}%)'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_FAIL_PERCENT) identifier_FAIL_PERCENT
)attribute
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_round) identifier_round
(argument_list
(identifier_percent_failed) identifier_percent_failed
)argument_list
)call
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module
|
Flag a ``set`` of hosts as failed, error for ``config.FAIL_PERCENT``.
|
(module
(function_definition
(function_name_Initialize) function_name_Initialize
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_GRRFlow) identifier_GRRFlow
(identifier_self) identifier_self
)argument_list
)call
(identifier_Initialize) identifier_Initialize
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__client_version) identifier__client_version
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__client_os) identifier__client_os
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__client_knowledge_base) identifier__client_knowledge_base
)attribute
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_"r") string_"r"
(attribute
(identifier_self) identifier_self
(identifier_mode) identifier_mode
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(attribute
(identifier_self) identifier_self
(identifier_Get) identifier_Get
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Schema) identifier_Schema
)attribute
(identifier_FLOW_STATE_DICT) identifier_FLOW_STATE_DICT
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_Get) identifier_Get
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Schema) identifier_Schema
)attribute
(identifier_FLOW_CONTEXT) identifier_FLOW_CONTEXT
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_runner_args) identifier_runner_args
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_Get) identifier_Get
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Schema) identifier_Schema
)attribute
(identifier_FLOW_RUNNER_ARGS) identifier_FLOW_RUNNER_ARGS
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_self) identifier_self
(identifier_Get) identifier_Get
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Schema) identifier_Schema
)attribute
(identifier_FLOW_ARGS) identifier_FLOW_ARGS
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_args) identifier_args
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
(attribute
(identifier_args) identifier_args
(identifier_payload) identifier_payload
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_state) identifier_state
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(call
(identifier_AttributedDict) identifier_AttributedDict
(argument_list
(call
(attribute
(identifier_state) identifier_state
(identifier_ToDict) identifier_ToDict
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(call
(identifier_AttributedDict) identifier_AttributedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_Load) identifier_Load
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(call
(identifier_AttributedDict) identifier_AttributedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
The initialization method.
|
(module
(function_definition
(function_name__delay) function_name__delay
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_clock_func) identifier_clock_func
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_interval) identifier_interval
)attribute
)binary_operator
)assignment
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_current) identifier_current
(call
(attribute
(identifier_self) identifier_self
(identifier_clock_func) identifier_clock_func
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_current) identifier_current
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_extratime) identifier_extratime
(binary_operator
(identifier_current) identifier_current
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
(binary_operator
(binary_operator
(identifier_current) identifier_current
(attribute
(identifier_self) identifier_self
(identifier_interval) identifier_interval
)attribute
)binary_operator
(identifier_extratime) identifier_extratime
)binary_operator
)assignment
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_delay_amt) identifier_delay_amt
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
(identifier_current) identifier_current
)binary_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_allow_negative_sleep) identifier_allow_negative_sleep
)attribute
(comparison_operator
(identifier_delay_amt) identifier_delay_amt
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_sleep_func) identifier_sleep_func
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_next_scheduled) identifier_next_scheduled
)attribute
(identifier_current) identifier_current
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module
|
Delay for between zero and self.interval time units
|
(module
(function_definition
(function_name_OnCellTextRotation) function_name_OnCellTextRotation
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_undo) identifier_undo
(identifier_group) identifier_group
)attribute
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_"Rotation") string_"Rotation"
)argument_list
)call
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_actions) identifier_actions
)attribute
(identifier_toggle_attr) identifier_toggle_attr
)attribute
(argument_list
(string_"angle") string_"angle"
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_ForceRefresh) identifier_ForceRefresh
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_update_attribute_toolbar) identifier_update_attribute_toolbar
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(call
(identifier_is_gtk) identifier_is_gtk
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_wx) identifier_wx
(identifier_Yield) identifier_Yield
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_event) identifier_event
(identifier_Skip) identifier_Skip
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Cell text rotation event handler
|
(module
(function_definition
(function_name_filter_inactive_ports) function_name_filter_inactive_ports
(parameters
(identifier_query) identifier_query
)parameters
(block
(expression_statement
(assignment
(identifier_port_model) identifier_port_model
(attribute
(identifier_models_v2) identifier_models_v2
(identifier_Port) identifier_Port
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(parenthesized_expression
(call
(attribute
(identifier_query) identifier_query
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_port_model) identifier_port_model
(identifier_status) identifier_status
)attribute
(attribute
(identifier_n_const) identifier_n_const
(identifier_PORT_STATUS_ACTIVE) identifier_PORT_STATUS_ACTIVE
)attribute
)comparison_operator
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(identifier_query) identifier_query
)return_statement
)block
)function_definition
)module
|
Filter ports that aren't in active status
|
(module
(function_definition
(function_name__irc_upper) function_name__irc_upper
(parameters
(identifier_self) identifier_self
(identifier_in_string) identifier_in_string
)parameters
(block
(expression_statement
(assignment
(identifier_conv_string) identifier_conv_string
(call
(attribute
(identifier_self) identifier_self
(identifier__translate) identifier__translate
)attribute
(argument_list
(identifier_in_string) identifier_in_string
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__upper_trans) identifier__upper_trans
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_conv_string) identifier_conv_string
(call
(attribute
(identifier_in_string) identifier_in_string
(identifier_translate) identifier_translate
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__upper_trans) identifier__upper_trans
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_str) identifier_str
(identifier_upper) identifier_upper
)attribute
(argument_list
(identifier_conv_string) identifier_conv_string
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Convert us to our upper-case equivalent, given our std.
|
(module
(function_definition
(function_name_drop_all) function_name_drop_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'dropping tables in %s') string_'dropping tables in %s'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
(identifier_url) identifier_url
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_models) identifier_models
(identifier_Base) identifier_Base
)attribute
(identifier_metadata) identifier_metadata
)attribute
(identifier_drop_all) identifier_drop_all
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Drops all tables in the database
|
(module
(function_definition
(function_name_lookup_announce_alias) function_name_lookup_announce_alias
(parameters
(identifier_name) identifier_name
)parameters
(block
(for_statement
(pattern_list
(identifier_alias) identifier_alias
(identifier_urls) identifier_urls
)pattern_list
(call
(attribute
(identifier_announce) identifier_announce
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_alias) identifier_alias
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_name) identifier_name
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(expression_list
(identifier_alias) identifier_alias
(identifier_urls) identifier_urls
)expression_list
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(binary_operator
(string_"Unknown alias %s") string_"Unknown alias %s"
(tuple
(identifier_name) identifier_name
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module
|
Get canonical alias name and announce URL list for the given alias.
|
(module
(function_definition
(function_name_parse_client_cert_pair) function_name_parse_client_cert_pair
(parameters
(identifier_config_value) identifier_config_value
)parameters
(block
(if_statement
(not_operator
(identifier_config_value) identifier_config_value
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_client_cert) identifier_client_cert
(call
(attribute
(identifier_config_value) identifier_config_value
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_client_cert) identifier_client_cert
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tips) identifier_tips
(parenthesized_expression
(concatenated_string
(string_'client_cert should be formatted like ') string_'client_cert should be formatted like '
(string_'"/path/to/cert.pem:/path/to/key.pem"') string_'"/path/to/cert.pem:/path/to/key.pem"'
)concatenated_string
)parenthesized_expression
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'{0!r} is invalid.\n{1}') string_'{0!r} is invalid.\n{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_config_value) identifier_config_value
(identifier_tips) identifier_tips
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_client_cert) identifier_client_cert
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Parses the client cert pair from config item.
:param config_value: the string value of config item.
:returns: tuple or none.
|
(module
(function_definition
(function_name_apply) function_name_apply
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(identifier_new_node) identifier_new_node
(call
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(attribute
(identifier_self) identifier_self
(identifier_update) identifier_update
)attribute
(identifier_new_node) identifier_new_node
)expression_list
)return_statement
)block
)function_definition
)module
|
Apply transformation and return if an update happened.
|
(module
(function_definition
(function_name__check_classes) function_name__check_classes
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_classes) identifier_classes
)attribute
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_imdbs) identifier_imdbs
)attribute
(integer_0) integer_0
)subscript
(identifier_classes) identifier_classes
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_num_classes) identifier_num_classes
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_classes) identifier_classes
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_num_classes) identifier_num_classes
)attribute
(integer_0) integer_0
)comparison_operator
(block
(for_statement
(identifier_db) identifier_db
(attribute
(identifier_self) identifier_self
(identifier_imdbs) identifier_imdbs
)attribute
(block
(assert_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_classes) identifier_classes
)attribute
(attribute
(identifier_db) identifier_db
(identifier_classes) identifier_classes
)attribute
)comparison_operator
(string_"Multiple imdb must have same classes") string_"Multiple imdb must have same classes"
)assert_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module
|
check input imdbs, make sure they have same classes
|
(module
(function_definition
(function_name__list_paths) function_name__list_paths
(parameters
(identifier_self) identifier_self
(identifier_bucket) identifier_bucket
(identifier_prefix) identifier_prefix
)parameters
(block
(expression_statement
(assignment
(identifier_s3) identifier_s3
(attribute
(identifier_self) identifier_self
(identifier_s3) identifier_s3
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
(pair
(string_"Bucket") string_"Bucket"
(identifier_bucket) identifier_bucket
)pair
(pair
(string_"Prefix") string_"Prefix"
(identifier_prefix) identifier_prefix
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_list_objects) identifier_list_objects
)attribute
(block
(expression_statement
(assignment
(identifier_list_objects_api) identifier_list_objects_api
(string_"list_objects") string_"list_objects"
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_list_objects_api) identifier_list_objects_api
(string_"list_objects_v2") string_"list_objects_v2"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_paginator) identifier_paginator
(call
(attribute
(identifier_s3) identifier_s3
(identifier_get_paginator) identifier_get_paginator
)attribute
(argument_list
(identifier_list_objects_api) identifier_list_objects_api
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_page) identifier_page
(call
(attribute
(identifier_paginator) identifier_paginator
(identifier_paginate) identifier_paginate
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(attribute
(identifier_page) identifier_page
(identifier_get) identifier_get
)attribute
(argument_list
(string_"Contents") string_"Contents"
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_contents) identifier_contents
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_item) identifier_item
(identifier_contents) identifier_contents
(block
(expression_statement
(yield
(subscript
(identifier_item) identifier_item
(string_"Key") string_"Key"
)subscript
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module
|
Read config for list object api, paginate through list objects.
|
(module
(function_definition
(function_name_is_asdf) function_name_is_asdf
(parameters
(identifier_raw) identifier_raw
)parameters
(block
(expression_statement
(assignment
(identifier_reverse) identifier_reverse
(subscript
(identifier_raw) identifier_raw
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_asdf) identifier_asdf
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_ASDF) identifier_ASDF
)argument_list
)call
)assignment
)expression_statement
(return_statement
(boolean_operator
(comparison_operator
(identifier_raw) identifier_raw
(identifier_asdf) identifier_asdf
)comparison_operator
(comparison_operator
(identifier_reverse) identifier_reverse
(identifier_asdf) identifier_asdf
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module
|
If the password is in the order on keyboard.
|
(module
(function_definition
(function_name_get_vcl_html) function_name_get_vcl_html
(parameters
(identifier_self) identifier_self
(identifier_service_id) identifier_service_id
(identifier_version_number) identifier_version_number
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_self) identifier_self
(identifier__fetch) identifier__fetch
)attribute
(argument_list
(binary_operator
(string_"/service/%s/version/%d/vcl/%s/content") string_"/service/%s/version/%d/vcl/%s/content"
(tuple
(identifier_service_id) identifier_service_id
(identifier_version_number) identifier_version_number
(identifier_name) identifier_name
)tuple
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_content) identifier_content
(identifier_get) identifier_get
)attribute
(argument_list
(string_"content") string_"content"
(None) None
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Get the uploaded VCL for a particular service and version with HTML syntax highlighting.
|
(module
(function_definition
(function_name_sideral) function_name_sideral
(parameters
(identifier_date) identifier_date
(default_parameter
(identifier_longitude) identifier_longitude
(float_0.) float_0.
)default_parameter
(default_parameter
(identifier_model) identifier_model
(string_'mean') string_'mean'
)default_parameter
(default_parameter
(identifier_eop_correction) identifier_eop_correction
(True) True
)default_parameter
(default_parameter
(identifier_terms) identifier_terms
(integer_106) integer_106
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_theta) identifier_theta
(call
(identifier__sideral) identifier__sideral
(argument_list
(identifier_date) identifier_date
(identifier_longitude) identifier_longitude
(identifier_model) identifier_model
(identifier_eop_correction) identifier_eop_correction
(identifier_terms) identifier_terms
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_rot3) identifier_rot3
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_deg2rad) identifier_deg2rad
)attribute
(argument_list
(unary_operator
(identifier_theta) identifier_theta
)unary_operator
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Sideral time as a rotation matrix
|
(module
(function_definition
(function_name__setDefaults) function_name__setDefaults
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_configName) identifier_configName
(identifier_configDict) identifier_configDict
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_configs) identifier_configs
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__setConfig) identifier__setConfig
)attribute
(argument_list
(identifier_configName) identifier_configName
(subscript
(identifier_configDict) identifier_configDict
(string_'default') string_'default'
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module
|
Sets all the expected configuration options on the config object as either the requested default value, or None.
|
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_uid) identifier_uid
(identifier_post_data) identifier_post_data
)parameters
(block
(expression_statement
(assignment
(identifier_raw_rec) identifier_raw_rec
(call
(attribute
(identifier_TabTag) identifier_TabTag
(identifier_get) identifier_get
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_TabTag) identifier_TabTag
(identifier_uid) identifier_uid
)attribute
(identifier_uid) identifier_uid
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_entry) identifier_entry
(call
(attribute
(call
(attribute
(identifier_TabTag) identifier_TabTag
(identifier_update) identifier_update
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(conditional_expression
(subscript
(identifier_post_data) identifier_post_data
(string_'name') string_'name'
)subscript
(comparison_operator
(string_'name') string_'name'
(identifier_post_data) identifier_post_data
)comparison_operator
(attribute
(identifier_raw_rec) identifier_raw_rec
(identifier_name) identifier_name
)attribute
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_slug) identifier_slug
(conditional_expression
(subscript
(identifier_post_data) identifier_post_data
(string_'slug') string_'slug'
)subscript
(comparison_operator
(string_'slug') string_'slug'
(identifier_post_data) identifier_post_data
)comparison_operator
(attribute
(identifier_raw_rec) identifier_raw_rec
(identifier_slug) identifier_slug
)attribute
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_order) identifier_order
(conditional_expression
(subscript
(identifier_post_data) identifier_post_data
(string_'order') string_'order'
)subscript
(comparison_operator
(string_'order') string_'order'
(identifier_post_data) identifier_post_data
)comparison_operator
(attribute
(identifier_raw_rec) identifier_raw_rec
(identifier_order) identifier_order
)attribute
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_kind) identifier_kind
(conditional_expression
(subscript
(identifier_post_data) identifier_post_data
(string_'kind') string_'kind'
)subscript
(comparison_operator
(string_'kind') string_'kind'
(identifier_post_data) identifier_post_data
)comparison_operator
(attribute
(identifier_raw_rec) identifier_raw_rec
(identifier_kind) identifier_kind
)attribute
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_pid) identifier_pid
(subscript
(identifier_post_data) identifier_post_data
(string_'pid') string_'pid'
)subscript
)keyword_argument
)argument_list
)call
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_TabTag) identifier_TabTag
(identifier_uid) identifier_uid
)attribute
(identifier_uid) identifier_uid
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_entry) identifier_entry
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Update the category.
|
(module
(function_definition
(function_name_save_and_restore) function_name_save_and_restore
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier__func) identifier__func
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_config_values) identifier_config_values
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_functools) identifier_functools
(subscript
(attribute
(identifier_self) identifier_self
(identifier__modules) identifier__modules
)attribute
(string_'functools') string_'functools'
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(identifier__func) identifier__func
)not_operator
(block
(return_statement
(call
(attribute
(identifier_functools) identifier_functools
(identifier_partial) identifier_partial
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_save_and_restore) identifier_save_and_restore
)attribute
(dictionary_splat
(identifier_config_values) identifier_config_values
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier__func) identifier__func
)argument_list
)call
)decorator
(function_definition
(function_name__saving_wrapper) function_name__saving_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_saved_config) identifier_saved_config
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__loaded_values) identifier__loaded_values
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_load_from_dict) identifier_load_from_dict
)attribute
(argument_list
(identifier_config_values) identifier_config_values
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier__func) identifier__func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(finally_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__loaded_values) identifier__loaded_values
)attribute
(identifier_saved_config) identifier_saved_config
)assignment
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier__saving_wrapper) identifier__saving_wrapper
)return_statement
)block
)function_definition
)module
|
Decorator for saving conf state and restoring it after a function.
This decorator is primarily for use in tests, where conf keys may be updated
for individual test cases, but those values need to be reverted after the
test case is done.
Examples:
conf.declare('my_conf_key')
@conf.save_and_restore
def MyTestFunc():
conf.load(my_conf_key='baz')
SomeFuncUnderTestThatUsesMyConfKey()
conf.load(my_conf_key='foo')
MyTestFunc()
print conf.my_conf_key # Prints 'foo', *NOT* 'baz'
# Without the save_and_restore decorator, MyTestFunc() would have had the
# side effect of altering the conf value of 'my_conf_key' to 'baz'.
# Config keys can also be initialized for the context inline at decoration
# time. This is the same as setting them at the beginning of the
# function, but is a little clearer syntax if you know ahead of time what
# config keys and values you need to set.
@conf.save_and_restore(my_conf_key='baz')
def MyOtherTestFunc():
print conf.my_conf_key # Prints 'baz'
MyOtherTestFunc()
print conf.my_conf_key # Prints 'foo' again, for the same reason.
Args:
_func: The function to wrap. The returned wrapper will invoke the
function and restore the config to the state it was in at invocation.
**config_values: Config keys can be set inline at decoration time, see
examples. Note that config keys can't begin with underscore, so
there can be no name collision with _func.
Returns:
Wrapper to replace _func, as per Python decorator semantics.
|
(module
(function_definition
(function_name_go_to_next_cell) function_name_go_to_next_cell
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(identifier_self) identifier_self
(identifier_textCursor) identifier_textCursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_movePosition) identifier_movePosition
)attribute
(argument_list
(attribute
(identifier_QTextCursor) identifier_QTextCursor
(identifier_NextBlock) identifier_NextBlock
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cur_pos) identifier_cur_pos
(assignment
(identifier_prev_pos) identifier_prev_pos
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_position) identifier_position
)attribute
(argument_list
)argument_list
)call
)assignment
)assignment
)expression_statement
(while_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_cell_separator) identifier_is_cell_separator
)attribute
(argument_list
(identifier_cursor) identifier_cursor
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_movePosition) identifier_movePosition
)attribute
(argument_list
(attribute
(identifier_QTextCursor) identifier_QTextCursor
(identifier_NextBlock) identifier_NextBlock
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_prev_pos) identifier_prev_pos
(identifier_cur_pos) identifier_cur_pos
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cur_pos) identifier_cur_pos
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_position) identifier_position
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cur_pos) identifier_cur_pos
(identifier_prev_pos) identifier_prev_pos
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setTextCursor) identifier_setTextCursor
)attribute
(argument_list
(identifier_cursor) identifier_cursor
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Go to the next cell of lines
|
(module
(function_definition
(function_name_get_tensors) function_name_get_tensors
(parameters
(identifier_object_) identifier_object_
)parameters
(block
(if_statement
(call
(attribute
(identifier_torch) identifier_torch
(identifier_is_tensor) identifier_is_tensor
)attribute
(argument_list
(identifier_object_) identifier_object_
)argument_list
)call
(block
(return_statement
(list
(identifier_object_) identifier_object_
)list
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_object_) identifier_object_
(tuple
(identifier_str) identifier_str
(identifier_float) identifier_float
(identifier_int) identifier_int
)tuple
)argument_list
)call
(block
(return_statement
(list
)list
)return_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_tensors) identifier_tensors
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_object_) identifier_object_
(attribute
(attribute
(identifier_collections) identifier_collections
(identifier_abc) identifier_abc
)attribute
(identifier_Mapping) identifier_Mapping
)attribute
)argument_list
)call
(block
(for_statement
(identifier_value) identifier_value
(call
(attribute
(identifier_object_) identifier_object_
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_tensors) identifier_tensors
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_get_tensors) identifier_get_tensors
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_object_) identifier_object_
(attribute
(attribute
(identifier_collections) identifier_collections
(identifier_abc) identifier_abc
)attribute
(identifier_Iterable) identifier_Iterable
)attribute
)argument_list
)call
(block
(for_statement
(identifier_value) identifier_value
(identifier_object_) identifier_object_
(block
(expression_statement
(call
(attribute
(identifier_tensors) identifier_tensors
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_get_tensors) identifier_get_tensors
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_members) identifier_members
(list_comprehension
(identifier_value) identifier_value
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getmembers) identifier_getmembers
)attribute
(argument_list
(identifier_object_) identifier_object_
)argument_list
)call
)for_in_clause
(if_clause
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(tuple
(attribute
(attribute
(identifier_collections) identifier_collections
(identifier_abc) identifier_abc
)attribute
(identifier_Callable) identifier_Callable
)attribute
(call
(identifier_type) identifier_type
(argument_list
(None) None
)argument_list
)call
)tuple
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tensors) identifier_tensors
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_get_tensors) identifier_get_tensors
(argument_list
(identifier_members) identifier_members
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_tensors) identifier_tensors
)return_statement
)block
)function_definition
)module
|
Get all tensors associated with ``object_``
Args:
object_ (any): Any object to look for tensors.
Returns:
(list of torch.tensor): List of tensors that are associated with ``object_``.
|
(module
(function_definition
(function_name_validate_description) function_name_validate_description
(parameters
(identifier_xml_data) identifier_xml_data
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(identifier_ET) identifier_ET
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(binary_operator
(binary_operator
(string_'<document>') string_'<document>'
(identifier_xml_data) identifier_xml_data
)binary_operator
(string_'</document>') string_'</document>'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_StdlibParseError) identifier_StdlibParseError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ParseError) identifier_ParseError
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier__parse_desc) identifier__parse_desc
(argument_list
(identifier_root) identifier_root
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Validate the description for validity
|
(module
(function_definition
(function_name_formatfooter) function_name_formatfooter
(parameters
(identifier_self) identifier_self
(identifier_previous_month) identifier_previous_month
(identifier_next_month) identifier_next_month
)parameters
(block
(expression_statement
(assignment
(identifier_footer) identifier_footer
(concatenated_string
(string_'<tfoot><tr>') string_'<tfoot><tr>'
(string_'<td colspan="3" class="prev">%s</td>') string_'<td colspan="3" class="prev">%s</td>'
(string_'<td class="pad"> </td>') string_'<td class="pad"> </td>'
(string_'<td colspan="3" class="next">%s</td>') string_'<td colspan="3" class="next">%s</td>'
(string_'</tr></tfoot>') string_'</tr></tfoot>'
)concatenated_string
)assignment
)expression_statement
(if_statement
(identifier_previous_month) identifier_previous_month
(block
(expression_statement
(assignment
(identifier_previous_content) identifier_previous_content
(binary_operator
(string_'<a href="%s" class="previous-month">%s</a>') string_'<a href="%s" class="previous-month">%s</a>'
(tuple
(call
(identifier_reverse) identifier_reverse
(argument_list
(string_'zinnia:entry_archive_month') string_'zinnia:entry_archive_month'
(keyword_argument
(identifier_args) identifier_args
(list
(call
(attribute
(identifier_previous_month) identifier_previous_month
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%Y') string_'%Y'
)argument_list
)call
(call
(attribute
(identifier_previous_month) identifier_previous_month
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%m') string_'%m'
)argument_list
)call
)list
)keyword_argument
)argument_list
)call
(call
(identifier_date_format) identifier_date_format
(argument_list
(identifier_previous_month) identifier_previous_month
(string_'YEAR_MONTH_FORMAT') string_'YEAR_MONTH_FORMAT'
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_previous_content) identifier_previous_content
(string_' ') string_' '
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_next_month) identifier_next_month
(block
(expression_statement
(assignment
(identifier_next_content) identifier_next_content
(binary_operator
(string_'<a href="%s" class="next-month">%s</a>') string_'<a href="%s" class="next-month">%s</a>'
(tuple
(call
(identifier_reverse) identifier_reverse
(argument_list
(string_'zinnia:entry_archive_month') string_'zinnia:entry_archive_month'
(keyword_argument
(identifier_args) identifier_args
(list
(call
(attribute
(identifier_next_month) identifier_next_month
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%Y') string_'%Y'
)argument_list
)call
(call
(attribute
(identifier_next_month) identifier_next_month
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%m') string_'%m'
)argument_list
)call
)list
)keyword_argument
)argument_list
)call
(call
(identifier_date_format) identifier_date_format
(argument_list
(identifier_next_month) identifier_next_month
(string_'YEAR_MONTH_FORMAT') string_'YEAR_MONTH_FORMAT'
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_next_content) identifier_next_content
(string_' ') string_' '
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(binary_operator
(identifier_footer) identifier_footer
(tuple
(identifier_previous_content) identifier_previous_content
(identifier_next_content) identifier_next_content
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module
|
Return a footer for a previous and next month.
|
(module
(function_definition
(function_name_second_order_score) function_name_second_order_score
(parameters
(identifier_y) identifier_y
(identifier_mean) identifier_mean
(identifier_scale) identifier_scale
(identifier_shape) identifier_shape
(identifier_skewness) identifier_skewness
)parameters
(block
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
(call
(identifier_float) identifier_float
(argument_list
(binary_operator
(identifier_scale) identifier_scale
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)argument_list
)call
)binary_operator
)argument_list
)call
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(unary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
(integer_2) integer_2
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(binary_operator
(identifier_mean) identifier_mean
(identifier_y) identifier_y
)binary_operator
)argument_list
)call
(integer_2) integer_2
)argument_list
)call
)binary_operator
)parenthesized_expression
)unary_operator
(parenthesized_expression
(binary_operator
(identifier_scale) identifier_scale
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(binary_operator
(identifier_mean) identifier_mean
(identifier_y) identifier_y
)binary_operator
)argument_list
)call
(integer_3) integer_3
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module
|
GAS Laplace Update term potentially using second-order information - native Python function
Parameters
----------
y : float
datapoint for the time series
mean : float
location parameter for the Laplace distribution
scale : float
scale parameter for the Laplace distribution
shape : float
tail thickness parameter for the Laplace distribution
skewness : float
skewness parameter for the Laplace distribution
Returns
----------
- Adjusted score of the Laplace family
|
(module
(function_definition
(function_name_set_text) function_name_set_text
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_text) identifier_new_text
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_text) identifier_text
)attribute
(argument_list
)argument_list
)call
(identifier_text) identifier_text
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setText) identifier_setText
)attribute
(argument_list
(identifier_new_text) identifier_new_text
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Set the filter text.
|
(module
(function_definition
(function_name_start_worker) function_name_start_worker
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_cmd) identifier_cmd
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_input_source) identifier_input_source
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_output) identifier_output
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_extra_cmd) identifier_extra_cmd
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_pattern) identifier_pattern
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_reading) identifier_reading
(type
(identifier_str) identifier_str
)type
(identifier_FFMPEG_STDERR) identifier_FFMPEG_STDERR
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_is_running) identifier_is_running
)attribute
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Can't start worker. It is allready running!") string_"Can't start worker. It is allready running!"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_reading) identifier_reading
(identifier_FFMPEG_STDERR) identifier_FFMPEG_STDERR
)comparison_operator
(block
(expression_statement
(assignment
(identifier_stdout) identifier_stdout
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stderr) identifier_stderr
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_stdout) identifier_stdout
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stderr) identifier_stderr
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_open
)attribute
(argument_list
(keyword_argument
(identifier_cmd) identifier_cmd
(identifier_cmd) identifier_cmd
)keyword_argument
(keyword_argument
(identifier_input_source) identifier_input_source
(identifier_input_source) identifier_input_source
)keyword_argument
(keyword_argument
(identifier_output) identifier_output
(identifier_output) identifier_output
)keyword_argument
(keyword_argument
(identifier_extra_cmd) identifier_extra_cmd
(identifier_extra_cmd) identifier_extra_cmd
)keyword_argument
(keyword_argument
(identifier_stdout_pipe) identifier_stdout_pipe
(identifier_stdout) identifier_stdout
)keyword_argument
(keyword_argument
(identifier_stderr_pipe) identifier_stderr_pipe
(identifier_stderr) identifier_stderr
)keyword_argument
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__input) identifier__input
)attribute
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_get_reader) identifier_get_reader
)attribute
(argument_list
(identifier_reading) identifier_reading
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__read_task) identifier__read_task
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
(identifier_create_task) identifier_create_task
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__process_lines) identifier__process_lines
)attribute
(argument_list
(identifier_pattern) identifier_pattern
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
(identifier_create_task) identifier_create_task
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__worker_process) identifier__worker_process
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Start ffmpeg do process data from output.
|
(module
(function_definition
(function_name_id_to_root_name) function_name_id_to_root_name
(parameters
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_root_names) identifier_root_names
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_name) identifier_name
)not_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)function_definition
)module
|
Convert a PDG ID to a string with root markup.
|
(module
(function_definition
(function_name_footer_length) function_name_footer_length
(parameters
(identifier_header) identifier_header
)parameters
(block
(expression_statement
(assignment
(identifier_footer_length) identifier_footer_length
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_header) identifier_header
(identifier_algorithm) identifier_algorithm
)attribute
(identifier_signing_algorithm_info) identifier_signing_algorithm_info
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_footer_length) identifier_footer_length
(integer_2) integer_2
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_footer_length) identifier_footer_length
(attribute
(attribute
(identifier_header) identifier_header
(identifier_algorithm) identifier_algorithm
)attribute
(identifier_signature_len) identifier_signature_len
)attribute
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_footer_length) identifier_footer_length
)return_statement
)block
)function_definition
)module
|
Calculates the ciphertext message footer length, given a complete header.
:param header: Complete message header object
:type header: aws_encryption_sdk.structures.MessageHeader
:rtype: int
|
(module
(function_definition
(function_name_rotate_around) function_name_rotate_around
(parameters
(identifier_self) identifier_self
(identifier_axis) identifier_axis
(identifier_theta) identifier_theta
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_z) identifier_z
)pattern_list
(expression_list
(attribute
(identifier_self) identifier_self
(identifier_x) identifier_x
)attribute
(attribute
(identifier_self) identifier_self
(identifier_y) identifier_y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_z) identifier_z
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_u) identifier_u
(identifier_v) identifier_v
(identifier_w) identifier_w
)pattern_list
(expression_list
(attribute
(identifier_axis) identifier_axis
(identifier_x) identifier_x
)attribute
(attribute
(identifier_axis) identifier_axis
(identifier_y) identifier_y
)attribute
(attribute
(identifier_axis) identifier_axis
(identifier_z) identifier_z
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r2) identifier_r2
(binary_operator
(binary_operator
(binary_operator
(identifier_u) identifier_u
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_v) identifier_v
(integer_2) integer_2
)binary_operator
)binary_operator
(binary_operator
(identifier_w) identifier_w
(integer_2) integer_2
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_math) identifier_math
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(identifier_r2) identifier_r2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ct) identifier_ct
(call
(attribute
(identifier_math) identifier_math
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_theta) identifier_theta
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_st) identifier_st
(binary_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_theta) identifier_theta
)argument_list
)call
(identifier_r) identifier_r
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dt) identifier_dt
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(identifier_u) identifier_u
(identifier_x) identifier_x
)binary_operator
(binary_operator
(identifier_v) identifier_v
(identifier_y) identifier_y
)binary_operator
)binary_operator
(binary_operator
(identifier_w) identifier_w
(identifier_z) identifier_z
)binary_operator
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_ct) identifier_ct
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_r2) identifier_r2
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_Vector3) identifier_Vector3
(argument_list
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(identifier_u) identifier_u
(identifier_dt) identifier_dt
)binary_operator
(binary_operator
(identifier_x) identifier_x
(identifier_ct) identifier_ct
)binary_operator
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(unary_operator
(identifier_w) identifier_w
)unary_operator
(identifier_y) identifier_y
)binary_operator
(binary_operator
(identifier_v) identifier_v
(identifier_z) identifier_z
)binary_operator
)binary_operator
)parenthesized_expression
(identifier_st) identifier_st
)binary_operator
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(identifier_v) identifier_v
(identifier_dt) identifier_dt
)binary_operator
(binary_operator
(identifier_y) identifier_y
(identifier_ct) identifier_ct
)binary_operator
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_w) identifier_w
(identifier_x) identifier_x
)binary_operator
(binary_operator
(identifier_u) identifier_u
(identifier_z) identifier_z
)binary_operator
)binary_operator
)parenthesized_expression
(identifier_st) identifier_st
)binary_operator
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(identifier_w) identifier_w
(identifier_dt) identifier_dt
)binary_operator
(binary_operator
(identifier_z) identifier_z
(identifier_ct) identifier_ct
)binary_operator
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(unary_operator
(identifier_v) identifier_v
)unary_operator
(identifier_x) identifier_x
)binary_operator
(binary_operator
(identifier_u) identifier_u
(identifier_y) identifier_y
)binary_operator
)binary_operator
)parenthesized_expression
(identifier_st) identifier_st
)binary_operator
)binary_operator
)parenthesized_expression
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Return the vector rotated around axis through angle theta.
Right hand rule applies.
|
(module
(function_definition
(function_name___get_min_reads) function_name___get_min_reads
(parameters
(identifier_current_provisioning) identifier_current_provisioning
(identifier_min_provisioned_reads) identifier_min_provisioned_reads
(identifier_log_tag) identifier_log_tag
)parameters
(block
(expression_statement
(assignment
(identifier_reads) identifier_reads
(integer_1) integer_1
)assignment
)expression_statement
(if_statement
(identifier_min_provisioned_reads) identifier_min_provisioned_reads
(block
(expression_statement
(assignment
(identifier_reads) identifier_reads
(call
(identifier_int) identifier_int
(argument_list
(identifier_min_provisioned_reads) identifier_min_provisioned_reads
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_reads) identifier_reads
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_current_provisioning) identifier_current_provisioning
(integer_2) integer_2
)binary_operator
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reads) identifier_reads
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_current_provisioning) identifier_current_provisioning
(integer_2) integer_2
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(concatenated_string
(string_'{0} - ') string_'{0} - '
(string_'Cannot reach min-provisioned-reads as max scale up ') string_'Cannot reach min-provisioned-reads as max scale up '
(string_'is 100% of current provisioning') string_'is 100% of current provisioning'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_log_tag) identifier_log_tag
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'{0} - Setting min provisioned reads to {1}') string_'{0} - Setting min provisioned reads to {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_log_tag) identifier_log_tag
(identifier_min_provisioned_reads) identifier_min_provisioned_reads
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_reads) identifier_reads
)return_statement
)block
)function_definition
)module
|
Get the minimum number of reads to current_provisioning
:type current_provisioning: int
:param current_provisioning: Current provisioned reads
:type min_provisioned_reads: int
:param min_provisioned_reads: Configured min provisioned reads
:type log_tag: str
:param log_tag: Prefix for the log
:returns: int -- Minimum number of reads
|
(module
(function_definition
(function_name_main) function_name_main
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(boolean_operator
(identifier_args) identifier_args
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_PARSER) identifier_PARSER
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_log) identifier_log
)dotted_name
)relative_import
(dotted_name
(identifier_setup_logging) identifier_setup_logging
)dotted_name
)import_from_statement
(expression_statement
(call
(identifier_setup_logging) identifier_setup_logging
(argument_list
(call
(attribute
(attribute
(identifier_params) identifier_params
(identifier_level) identifier_level
)attribute
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_core) identifier_core
)dotted_name
)relative_import
(dotted_name
(identifier_Starter) identifier_Starter
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_starter) identifier_starter
(call
(identifier_Starter) identifier_Starter
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(attribute
(attribute
(identifier_starter) identifier_starter
(identifier_params) identifier_params
)attribute
(identifier_TEMPLATES) identifier_TEMPLATES
)attribute
)not_operator
(attribute
(attribute
(identifier_starter) identifier_starter
(identifier_params) identifier_params
)attribute
(identifier_list) identifier_list
)attribute
)boolean_operator
(block
(expression_statement
(call
(identifier_setup_logging) identifier_setup_logging
(argument_list
(string_'WARN') string_'WARN'
)argument_list
)call
)expression_statement
(for_statement
(identifier_t) identifier_t
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_starter) identifier_starter
(identifier_iterate_templates) identifier_iterate_templates
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"%s -- %s") string_"%s -- %s"
(attribute
(identifier_t) identifier_t
(identifier_name) identifier_name
)attribute
(call
(attribute
(attribute
(identifier_t) identifier_t
(identifier_params) identifier_params
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'description') string_'description'
(string_'no description') string_'no description'
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_starter) identifier_starter
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Enter point.
|
(module
(function_definition
(function_name_create_index) function_name_create_index
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_indexname) identifier_indexname
(None) None
)default_parameter
(default_parameter
(identifier_index_conf) identifier_index_conf
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_indexname) identifier_indexname
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_indexname) identifier_indexname
(attribute
(identifier_self) identifier_self
(identifier_index_name) identifier_index_name
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Creating new index: '{0}'") string_"Creating new index: '{0}'"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_indexname) identifier_indexname
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_index_conf) identifier_index_conf
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_index_conf) identifier_index_conf
(dictionary
(pair
(string_'settings') string_'settings'
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
)pair
(pair
(string_'mappings') string_'mappings'
(dictionary
(pair
(string_'book') string_'book'
(dictionary
(pair
(string_'properties') string_'properties'
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
)pair
)dictionary
)pair
)dictionary
)pair
)dictionary
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_es) identifier_es
)attribute
(identifier_indices) identifier_indices
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(identifier_indexname) identifier_indexname
)keyword_argument
(keyword_argument
(identifier_body) identifier_body
(identifier_index_conf) identifier_index_conf
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_TransportError) identifier_TransportError
(as_pattern_target
(identifier_te) identifier_te
)as_pattern_target
)as_pattern
(block
(if_statement
(call
(attribute
(attribute
(identifier_te) identifier_te
(identifier_error) identifier_error
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"IndexAlreadyExistsException") string_"IndexAlreadyExistsException"
)argument_list
)call
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_"Cannot create index '{}', already exists") string_"Cannot create index '{}', already exists"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_indexname) identifier_indexname
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(raise_statement
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Create the index
Create the index with given configuration.
If `indexname` is provided it will be used as the new index name
instead of the class one (:py:attr:`DB.index_name`)
:param index_conf: configuration to be used in index creation. If this
is not specified the default index configuration will be used.
:raises Exception: if the index already exists.
|
(module
(function_definition
(function_name_get_changeset) function_name_get_changeset
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_cid) identifier_cid
(call
(attribute
(identifier_options) identifier_options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'changeset_id') string_'changeset_id'
(None) None
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_repo) identifier_repo
)attribute
(identifier_get_changeset) identifier_get_changeset
)attribute
(argument_list
(identifier_cid) identifier_cid
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns changeset for given ``options``.
|
(module
(function_definition
(function_name_setCurrentIndex) function_name_setCurrentIndex
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_XViewPanel) identifier_XViewPanel
(identifier_self) identifier_self
)argument_list
)call
(identifier_setCurrentIndex) identifier_setCurrentIndex
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_tabBar) identifier_tabBar
)attribute
(argument_list
)argument_list
)call
(identifier_setCurrentIndex) identifier_setCurrentIndex
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Sets the current index on self and on the tab bar to keep the two insync.
:param index | <int>
|
(module
(function_definition
(function_name_process_checkpoint) function_name_process_checkpoint
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_msg) identifier_msg
(type
(identifier_Checkpoint) identifier_Checkpoint
)type
)typed_parameter
(typed_parameter
(identifier_sender) identifier_sender
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'{} processing checkpoint {} from {}') string_'{} processing checkpoint {} from {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_msg) identifier_msg
(identifier_sender) identifier_sender
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_result) identifier_result
(identifier_reason) identifier_reason
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_validator) identifier_validator
)attribute
(identifier_validate_checkpoint_msg) identifier_validate_checkpoint_msg
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(identifier_DISCARD) identifier_DISCARD
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_discard) identifier_discard
)attribute
(argument_list
(identifier_msg) identifier_msg
(call
(attribute
(concatenated_string
(string_"{} discard message {} from {} ") string_"{} discard message {} from {} "
(string_"with the reason: {}") string_"with the reason: {}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_msg) identifier_msg
(identifier_sender) identifier_sender
(identifier_reason) identifier_reason
)argument_list
)call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_trace) identifier_trace
)attribute
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_result) identifier_result
(identifier_PROCESS) identifier_PROCESS
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__do_process_checkpoint) identifier__do_process_checkpoint
)attribute
(argument_list
(identifier_msg) identifier_msg
(identifier_sender) identifier_sender
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(concatenated_string
(string_"{} stashing checkpoint message {} with ") string_"{} stashing checkpoint message {} with "
(string_"the reason: {}") string_"the reason: {}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_msg) identifier_msg
(identifier_reason) identifier_reason
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stasher) identifier_stasher
)attribute
(identifier_stash) identifier_stash
)attribute
(argument_list
(tuple
(identifier_msg) identifier_msg
(identifier_sender) identifier_sender
)tuple
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module
|
Process checkpoint messages
:return: whether processed (True) or stashed (False)
|
(module
(function_definition
(function_name_get_crimes_no_location) function_name_get_crimes_no_location
(parameters
(identifier_self) identifier_self
(identifier_force) identifier_force
(default_parameter
(identifier_date) identifier_date
(None) None
)default_parameter
(default_parameter
(identifier_category) identifier_category
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_force) identifier_force
(identifier_Force) identifier_Force
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_force) identifier_force
(call
(identifier_Force) identifier_Force
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_id) identifier_id
(identifier_force) identifier_force
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_category) identifier_category
(identifier_CrimeCategory) identifier_CrimeCategory
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_category) identifier_category
(attribute
(identifier_category) identifier_category
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
(pair
(string_'force') string_'force'
(attribute
(identifier_force) identifier_force
(identifier_id) identifier_id
)attribute
)pair
(pair
(string_'category') string_'category'
(boolean_operator
(identifier_category) identifier_category
(string_'all-crime') string_'all-crime'
)boolean_operator
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_crimes) identifier_crimes
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_date) identifier_date
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'date') string_'date'
)subscript
(identifier_date) identifier_date
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_c) identifier_c
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'GET') string_'GET'
(string_'crimes-no-location') string_'crimes-no-location'
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_crimes) identifier_crimes
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_NoLocationCrime) identifier_NoLocationCrime
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_data) identifier_data
(identifier_c) identifier_c
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_crimes) identifier_crimes
)return_statement
)block
)function_definition
)module
|
Get crimes with no location for a force. Uses the crimes-no-location_
API call.
.. _crimes-no-location:
https://data.police.uk/docs/method/crimes-no-location/
:rtype: list
:param force: The force to get no-location crimes for.
:type force: str or Force
:param date: The month in which the crimes were reported in the format
``YYYY-MM`` (the latest date is used if ``None``).
:type date: str or None
:param category: The category of the crimes to filter by (either by ID
or CrimeCategory object)
:type category: str or CrimeCategory
:return: A ``list`` of :class:`crime.NoLocationCrime` objects which
were reported in the given month, by the specified force, but
which don't have a location.
|
(module
(function_definition
(function_name__clear_state) function_name__clear_state
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_start_time) identifier_start_time
)attribute
(call
(identifier_time) identifier_time
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_run_stats) identifier_run_stats
)attribute
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_best_index) identifier_best_index
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_best_score) identifier_best_score
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_best_config) identifier_best_config
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_search_space) identifier_search_space
)attribute
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_seed) identifier_seed
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rng) identifier_rng
)attribute
(call
(attribute
(identifier_random) identifier_random
(identifier_Random) identifier_Random
)attribute
(argument_list
(identifier_seed) identifier_seed
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Clears the state, starts clock
|
(module
(function_definition
(function_name_match_events) function_name_match_events
(parameters
(identifier_ref) identifier_ref
(identifier_est) identifier_est
(identifier_window) identifier_window
(default_parameter
(identifier_distance) identifier_distance
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_distance) identifier_distance
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_hits) identifier_hits
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(call
(identifier_distance) identifier_distance
(argument_list
(identifier_ref) identifier_ref
(identifier_est) identifier_est
)argument_list
)call
(identifier_window) identifier_window
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_hits) identifier_hits
(call
(identifier__fast_hit_windows) identifier__fast_hit_windows
(argument_list
(identifier_ref) identifier_ref
(identifier_est) identifier_est
(identifier_window) identifier_window
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_G) identifier_G
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_ref_i) identifier_ref_i
(identifier_est_i) identifier_est_i
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_hits) identifier_hits
)list_splat
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_est_i) identifier_est_i
(identifier_G) identifier_G
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_G) identifier_G
(identifier_est_i) identifier_est_i
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(subscript
(identifier_G) identifier_G
(identifier_est_i) identifier_est_i
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_ref_i) identifier_ref_i
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_matching) identifier_matching
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(call
(identifier__bipartite_match) identifier__bipartite_match
(argument_list
(identifier_G) identifier_G
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_matching) identifier_matching
)return_statement
)block
)function_definition
)module
|
Compute a maximum matching between reference and estimated event times,
subject to a window constraint.
Given two lists of event times ``ref`` and ``est``, we seek the largest set
of correspondences ``(ref[i], est[j])`` such that
``distance(ref[i], est[j]) <= window``, and each
``ref[i]`` and ``est[j]`` is matched at most once.
This is useful for computing precision/recall metrics in beat tracking,
onset detection, and segmentation.
Parameters
----------
ref : np.ndarray, shape=(n,)
Array of reference values
est : np.ndarray, shape=(m,)
Array of estimated values
window : float > 0
Size of the window.
distance : function
function that computes the outer distance of ref and est.
By default uses ``|ref[i] - est[j]|``
Returns
-------
matching : list of tuples
A list of matched reference and event numbers.
``matching[i] == (i, j)`` where ``ref[i]`` matches ``est[j]``.
|
(module
(function_definition
(function_name_pvector_field) function_name_pvector_field
(parameters
(identifier_item_type) identifier_item_type
(default_parameter
(identifier_optional) identifier_optional
(False) False
)default_parameter
(default_parameter
(identifier_initial) identifier_initial
(tuple
)tuple
)default_parameter
)parameters
(block
(return_statement
(call
(identifier__sequence_field) identifier__sequence_field
(argument_list
(identifier_CheckedPVector) identifier_CheckedPVector
(identifier_item_type) identifier_item_type
(identifier_optional) identifier_optional
(identifier_initial) identifier_initial
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Create checked ``PVector`` field.
:param item_type: The required type for the items in the vector.
:param optional: If true, ``None`` can be used as a value for
this field.
:param initial: Initial value to pass to factory if no value is given
for the field.
:return: A ``field`` containing a ``CheckedPVector`` of the given type.
|
(module
(function_definition
(function_name_reprocess_tree_node) function_name_reprocess_tree_node
(parameters
(identifier_self) identifier_self
(identifier_tree_node) identifier_tree_node
(default_parameter
(identifier_tx_context) identifier_tx_context
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_tx_context) identifier_tx_context
)not_operator
(block
(expression_statement
(assignment
(identifier_tx_context) identifier_tx_context
(call
(attribute
(identifier_collections) identifier_collections
(identifier_defaultdict) identifier_defaultdict
)attribute
(argument_list
(identifier_dict) identifier_dict
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_parent) identifier_parent
)attribute
(None) None
)comparison_operator
(block
(return_statement
(identifier_tx_context) identifier_tx_context
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_timeperiod) identifier_timeperiod
)attribute
(subscript
(identifier_tx_context) identifier_tx_context
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_process_name) identifier_process_name
)attribute
)subscript
)comparison_operator
(block
(return_statement
(identifier_tx_context) identifier_tx_context
)return_statement
)block
)if_statement
(if_statement
(attribute
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_job_record) identifier_job_record
)attribute
(identifier_is_embryo) identifier_is_embryo
)attribute
(block
(pass_statement
)pass_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_state_machine_name) identifier_state_machine_name
(attribute
(subscript
(attribute
(identifier_context) identifier_context
(identifier_process_context) identifier_process_context
)attribute
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_process_name) identifier_process_name
)attribute
)subscript
(identifier_state_machine_name) identifier_state_machine_name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_state_machine) identifier_state_machine
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state_machines) identifier_state_machines
)attribute
(identifier_state_machine_name) identifier_state_machine_name
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_state_machine) identifier_state_machine
(identifier_reprocess_job) identifier_reprocess_job
)attribute
(argument_list
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_job_record) identifier_job_record
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_tx_context) identifier_tx_context
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_process_name) identifier_process_name
)attribute
)subscript
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_timeperiod) identifier_timeperiod
)attribute
)subscript
(identifier_tree_node) identifier_tree_node
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reprocess_tree_node) identifier_reprocess_tree_node
)attribute
(argument_list
(attribute
(identifier_tree_node) identifier_tree_node
(identifier_parent) identifier_parent
)attribute
(identifier_tx_context) identifier_tx_context
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_dependant_nodes) identifier_dependant_nodes
(call
(attribute
(identifier_self) identifier_self
(identifier__find_dependant_tree_nodes) identifier__find_dependant_tree_nodes
)attribute
(argument_list
(identifier_tree_node) identifier_tree_node
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(identifier_dependant_nodes) identifier_dependant_nodes
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reprocess_tree_node) identifier_reprocess_tree_node
)attribute
(argument_list
(identifier_node) identifier_node
(identifier_tx_context) identifier_tx_context
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_tx_context) identifier_tx_context
)return_statement
)block
)function_definition
)module
|
method reprocesses the node and all its dependants and parent nodes
|
(module
(function_definition
(function_name_user_list_membership) function_name_user_list_membership
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(default_parameter
(identifier_member_type) identifier_member_type
(string_"USER") string_"USER"
)default_parameter
(default_parameter
(identifier_recursive) identifier_recursive
(True) True
)default_parameter
(default_parameter
(identifier_max_return_count) identifier_max_return_count
(integer_999) integer_999
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_service) identifier_service
)attribute
(identifier_getUserListMembership) identifier_getUserListMembership
)attribute
(argument_list
(identifier_username) identifier_username
(identifier_member_type) identifier_member_type
(identifier_recursive) identifier_recursive
(identifier_max_return_count) identifier_max_return_count
(attribute
(identifier_self) identifier_self
(identifier_proxy_id) identifier_proxy_id
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Get info for lists a user is a member of.
This is similar to :meth:`user_lists` but with a few differences:
#. It returns list info objects instead of list names.
#. It has an option to fully resolve a user's list hierarchy. That
is, if a user is a member of a nested list, this method can
retrieve both the nested list and the parent lists that contain
the nested list.
Args:
username (str): The MIT username of the user
member_type(str): The type of user, "USER" or "STRING"
recursive(bool): Whether to fully resolve the list hierarchy
max_return_count(int): limit the number of items returned
Returns:
list of dicts: info dicts, one per list.
|
(module
(function_definition
(function_name_remove_rules) function_name_remove_rules
(parameters
(identifier_self) identifier_self
(identifier_description) identifier_description
)parameters
(block
(expression_statement
(assignment
(identifier_rm) identifier_rm
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_description) identifier_description
(call
(attribute
(identifier_description) identifier_description
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_extract_rules) identifier_extract_rules
)attribute
)argument_list
)call
)argument_list
)call
(block
(if_statement
(call
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_extract_rules) identifier_extract_rules
)attribute
(identifier_i) identifier_i
)subscript
(string_'regex') string_'regex'
)subscript
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_description) identifier_description
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_rm) identifier_rm
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_i) identifier_i
(identifier_rm) identifier_rm
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_extract_rules) identifier_extract_rules
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_rm) identifier_rm
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Remove all rules that match a specified description.
@description - The description to match against.
Returns the number of rules removed.
|
(module
(function_definition
(function_name_get_tags) function_name_get_tags
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_get_request) identifier_get_request
)attribute
(argument_list
(string_'/tag') string_'/tag'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(call
(identifier_Tag) identifier_Tag
(argument_list
(keyword_argument
(identifier_cloud_manager) identifier_cloud_manager
(identifier_self) identifier_self
)keyword_argument
(dictionary_splat
(identifier_tag) identifier_tag
)dictionary_splat
)argument_list
)call
(for_in_clause
(identifier_tag) identifier_tag
(subscript
(subscript
(identifier_res) identifier_res
(string_'tags') string_'tags'
)subscript
(string_'tag') string_'tag'
)subscript
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module
|
List all tags as Tag objects.
|
(module
(function_definition
(function_name_readTempC) function_name_readTempC
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__device) identifier__device
)attribute
(identifier_readU16BE) identifier_readU16BE
)attribute
(argument_list
(identifier_MCP9808_REG_AMBIENT_TEMP) identifier_MCP9808_REG_AMBIENT_TEMP
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Raw ambient temp register value: 0x{0:04X}') string_'Raw ambient temp register value: 0x{0:04X}'
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(identifier_t) identifier_t
(integer_0xFFFF) integer_0xFFFF
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_temp) identifier_temp
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_t) identifier_t
(integer_0x0FFF) integer_0x0FFF
)binary_operator
)parenthesized_expression
(float_16.0) float_16.0
)binary_operator
)assignment
)expression_statement
(if_statement
(binary_operator
(identifier_t) identifier_t
(integer_0x1000) integer_0x1000
)binary_operator
(block
(expression_statement
(augmented_assignment
(identifier_temp) identifier_temp
(float_256.0) float_256.0
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_temp) identifier_temp
)return_statement
)block
)function_definition
)module
|
Read sensor and return its value in degrees celsius.
|
(module
(function_definition
(function_name__RecurseKey) function_name__RecurseKey
(parameters
(identifier_self) identifier_self
(identifier_recur_item) identifier_recur_item
(default_parameter
(identifier_root) identifier_root
(string_'') string_''
)default_parameter
(default_parameter
(identifier_depth) identifier_depth
(integer_15) integer_15
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_depth) identifier_depth
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Recursion limit hit for key: {0:s}') string_'Recursion limit hit for key: {0:s}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_recur_item) identifier_recur_item
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
(block
(for_statement
(identifier_recur) identifier_recur
(identifier_recur_item) identifier_recur_item
(block
(for_statement
(identifier_key) identifier_key
(call
(attribute
(identifier_self) identifier_self
(identifier__RecurseKey) identifier__RecurseKey
)attribute
(argument_list
(identifier_recur) identifier_recur
(identifier_root) identifier_root
(identifier_depth) identifier_depth
)argument_list
)call
(block
(expression_statement
(yield
(identifier_key) identifier_key
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_recur_item) identifier_recur_item
(string_'iteritems') string_'iteritems'
)argument_list
)call
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_iter) identifier_iter
(argument_list
(call
(attribute
(identifier_recur_item) identifier_recur_item
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(yield
(expression_list
(identifier_root) identifier_root
(identifier_key) identifier_key
(identifier_value) identifier_value
)expression_list
)yield
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(list
(identifier_value) identifier_value
)list
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_item) identifier_item
(identifier_value) identifier_value
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_dict) identifier_dict
)argument_list
)call
(block
(for_statement
(identifier_keyval) identifier_keyval
(call
(attribute
(identifier_self) identifier_self
(identifier__RecurseKey) identifier__RecurseKey
)attribute
(argument_list
(identifier_item) identifier_item
(keyword_argument
(identifier_root) identifier_root
(binary_operator
(binary_operator
(identifier_root) identifier_root
(string_'/') string_'/'
)binary_operator
(identifier_key) identifier_key
)binary_operator
)keyword_argument
(keyword_argument
(identifier_depth) identifier_depth
(binary_operator
(identifier_depth) identifier_depth
(integer_1) integer_1
)binary_operator
)keyword_argument
)argument_list
)call
(block
(expression_statement
(yield
(identifier_keyval) identifier_keyval
)yield
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
Flattens nested dictionaries and lists by yielding their values.
The hierarchy of a bencode file is a series of nested dictionaries and
lists. This is a helper function helps plugins navigate the structure
without having to reimplement their own recursive methods.
This method implements an overridable depth limit to prevent processing
extremely deeply nested dictionaries. If the limit is reached a debug
message is logged indicating which key processing stopped on.
Args:
recur_item (object): object to be checked for additional nested items.
root (str): the pathname of the current working key.
depth (int): a counter to ensure we stop at the maximum recursion depth.
Yields:
tuple: containing:
str: root
str: key
str: value
|
(module
(function_definition
(function_name_ghissue_role) function_name_ghissue_role
(parameters
(identifier_name) identifier_name
(identifier_rawtext) identifier_rawtext
(identifier_text) identifier_text
(identifier_lineno) identifier_lineno
(identifier_inliner) identifier_inliner
(default_parameter
(identifier_options) identifier_options
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_content) identifier_content
(list
)list
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_issue_num) identifier_issue_num
(call
(identifier_int) identifier_int
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_issue_num) identifier_issue_num
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(identifier_ValueError) identifier_ValueError
)raise_statement
)block
)if_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(attribute
(identifier_inliner) identifier_inliner
(identifier_reporter) identifier_reporter
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_'GitHub issue number must be a number greater than or equal to 1; ') string_'GitHub issue number must be a number greater than or equal to 1; '
(string_'"%s" is invalid.') string_'"%s" is invalid.'
)concatenated_string
(identifier_text) identifier_text
)binary_operator
(keyword_argument
(identifier_line) identifier_line
(identifier_lineno) identifier_lineno
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prb) identifier_prb
(call
(attribute
(identifier_inliner) identifier_inliner
(identifier_problematic) identifier_problematic
)attribute
(argument_list
(identifier_rawtext) identifier_rawtext
(identifier_rawtext) identifier_rawtext
(identifier_msg) identifier_msg
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(list
(identifier_prb) identifier_prb
)list
(list
(identifier_msg) identifier_msg
)list
)expression_list
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_app) identifier_app
(attribute
(attribute
(attribute
(attribute
(identifier_inliner) identifier_inliner
(identifier_document) identifier_document
)attribute
(identifier_settings) identifier_settings
)attribute
(identifier_env) identifier_env
)attribute
(identifier_app) identifier_app
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'pull') string_'pull'
(call
(attribute
(identifier_name) identifier_name
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_category) identifier_category
(string_'pull') string_'pull'
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(string_'issue') string_'issue'
(call
(attribute
(identifier_name) identifier_name
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_category) identifier_category
(string_'issues') string_'issues'
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(attribute
(identifier_inliner) identifier_inliner
(identifier_reporter) identifier_reporter
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_'GitHub roles include "ghpull" and "ghissue", ') string_'GitHub roles include "ghpull" and "ghissue", '
(string_'"%s" is invalid.') string_'"%s" is invalid.'
)concatenated_string
(identifier_name) identifier_name
)binary_operator
(keyword_argument
(identifier_line) identifier_line
(identifier_lineno) identifier_lineno
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prb) identifier_prb
(call
(attribute
(identifier_inliner) identifier_inliner
(identifier_problematic) identifier_problematic
)attribute
(argument_list
(identifier_rawtext) identifier_rawtext
(identifier_rawtext) identifier_rawtext
(identifier_msg) identifier_msg
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(list
(identifier_prb) identifier_prb
)list
(list
(identifier_msg) identifier_msg
)list
)expression_list
)return_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(identifier_make_link_node) identifier_make_link_node
(argument_list
(identifier_rawtext) identifier_rawtext
(identifier_app) identifier_app
(identifier_category) identifier_category
(call
(identifier_str) identifier_str
(argument_list
(identifier_issue_num) identifier_issue_num
)argument_list
)call
(identifier_options) identifier_options
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(list
(identifier_node) identifier_node
)list
(list
)list
)expression_list
)return_statement
)block
)function_definition
)module
|
Link to a GitHub issue.
Returns 2 part tuple containing list of nodes to insert into the
document and a list of system messages. Both are allowed to be
empty.
:param name: The role name used in the document.
:param rawtext: The entire markup snippet, with role.
:param text: The text marked with the role.
:param lineno: The line number where rawtext appears in the input.
:param inliner: The inliner instance that called us.
:param options: Directive options for customization.
:param content: The directive content for customization.
|
(module
(function_definition
(function_name_reverse_tree) function_name_reverse_tree
(parameters
(identifier_tree) identifier_tree
)parameters
(block
(expression_statement
(assignment
(identifier_rtree) identifier_rtree
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_child_keys) identifier_child_keys
(call
(identifier_set) identifier_set
(generator_expression
(attribute
(identifier_c) identifier_c
(identifier_key) identifier_key
)attribute
(for_in_clause
(identifier_c) identifier_c
(call
(identifier_flatten) identifier_flatten
(argument_list
(call
(attribute
(identifier_tree) identifier_tree
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_vs) identifier_vs
)pattern_list
(call
(attribute
(identifier_tree) identifier_tree
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_v) identifier_v
(identifier_vs) identifier_vs
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(boolean_operator
(call
(identifier_find_tree_root) identifier_find_tree_root
(argument_list
(identifier_rtree) identifier_rtree
(attribute
(identifier_v) identifier_v
(identifier_key) identifier_key
)attribute
)argument_list
)call
(identifier_v) identifier_v
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_rtree) identifier_rtree
(identifier_node) identifier_node
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_k) identifier_k
(identifier_as_required_by) identifier_as_required_by
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(attribute
(identifier_k) identifier_k
(identifier_key) identifier_key
)attribute
(identifier_child_keys) identifier_child_keys
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_rtree) identifier_rtree
(call
(attribute
(identifier_k) identifier_k
(identifier_as_requirement) identifier_as_requirement
)attribute
(argument_list
)argument_list
)call
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_rtree) identifier_rtree
)return_statement
)block
)function_definition
)module
|
Reverse the dependency tree.
ie. the keys of the resulting dict are objects of type
ReqPackage and the values are lists of DistPackage objects.
:param dict tree: the pkg dependency tree obtained by calling
`construct_tree` function
:returns: reversed tree
:rtype: dict
|
(module
(function_definition
(function_name_remove_temp_copy) function_name_remove_temp_copy
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_temp) identifier_is_temp
)attribute
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_root_dir) identifier_root_dir
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_root_dir) identifier_root_dir
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_root_dir) identifier_root_dir
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Removes a temporary copy of the MAGICC version shipped with Pymagicc.
|
(module
(function_definition
(function_name_parse_cluster) function_name_parse_cluster
(parameters
(identifier_self) identifier_self
(identifier_global_params) identifier_global_params
(identifier_region) identifier_region
(identifier_cluster) identifier_cluster
)parameters
(block
(expression_statement
(assignment
(identifier_cluster_name) identifier_cluster_name
(call
(attribute
(identifier_cluster) identifier_cluster
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'CacheClusterId') string_'CacheClusterId'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_cluster) identifier_cluster
(string_'name') string_'name'
)subscript
(identifier_cluster_name) identifier_cluster_name
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'CacheSubnetGroupName') string_'CacheSubnetGroupName'
(identifier_cluster) identifier_cluster
)comparison_operator
(block
(expression_statement
(assignment
(identifier_subnet_group) identifier_subnet_group
(subscript
(subscript
(call
(attribute
(subscript
(identifier_api_clients) identifier_api_clients
(identifier_region) identifier_region
)subscript
(identifier_describe_cache_subnet_groups) identifier_describe_cache_subnet_groups
)attribute
(argument_list
(keyword_argument
(identifier_CacheSubnetGroupName) identifier_CacheSubnetGroupName
(subscript
(identifier_cluster) identifier_cluster
(string_'CacheSubnetGroupName') string_'CacheSubnetGroupName'
)subscript
)keyword_argument
)argument_list
)call
(string_'CacheSubnetGroups') string_'CacheSubnetGroups'
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vpc_id) identifier_vpc_id
(subscript
(identifier_subnet_group) identifier_subnet_group
(string_'VpcId') string_'VpcId'
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_vpc_id) identifier_vpc_id
(identifier_ec2_classic) identifier_ec2_classic
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subnet_group) identifier_subnet_group
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier_manage_dictionary) identifier_manage_dictionary
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_vpcs) identifier_vpcs
)attribute
(identifier_vpc_id) identifier_vpc_id
(call
(identifier_VPCConfig) identifier_VPCConfig
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_vpc_resource_types) identifier_vpc_resource_types
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_vpcs) identifier_vpcs
)attribute
(identifier_vpc_id) identifier_vpc_id
)subscript
(identifier_clusters) identifier_clusters
)attribute
(identifier_cluster_name) identifier_cluster_name
)subscript
(identifier_cluster) identifier_cluster
)assignment
)expression_statement
(if_statement
(identifier_subnet_group) identifier_subnet_group
(block
(expression_statement
(assignment
(subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_vpcs) identifier_vpcs
)attribute
(identifier_vpc_id) identifier_vpc_id
)subscript
(identifier_subnet_groups) identifier_subnet_groups
)attribute
(subscript
(identifier_subnet_group) identifier_subnet_group
(string_'CacheSubnetGroupName') string_'CacheSubnetGroupName'
)subscript
)subscript
(identifier_subnet_group) identifier_subnet_group
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Parse a single ElastiCache cluster
:param global_params: Parameters shared for all regions
:param region: Name of the AWS region
:param cluster: ElastiCache cluster
|
(module
(function_definition
(function_name_wrap) function_name_wrap
(parameters
(identifier_self) identifier_self
(identifier_width) identifier_width
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev_state) identifier_prev_state
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_part) identifier_part
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cwidth) identifier_cwidth
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_char) identifier_char
(identifier__width) identifier__width
(identifier_state) identifier_state
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__string) identifier__string
)attribute
(attribute
(identifier_self) identifier_self
(identifier__width) identifier__width
)attribute
(attribute
(identifier_self) identifier_self
(identifier__state) identifier__state
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(binary_operator
(identifier_cwidth) identifier_cwidth
(identifier__width) identifier__width
)binary_operator
(identifier_width) identifier_width
)comparison_operator
(block
(if_statement
(identifier_prev_state) identifier_prev_state
(block
(expression_statement
(call
(attribute
(identifier_part) identifier_part
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ANSI_RESET) identifier_ANSI_RESET
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_part) identifier_part
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_prev_state) identifier_prev_state
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_part) identifier_part
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cwidth) identifier_cwidth
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_cwidth) identifier_cwidth
(identifier__width) identifier__width
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_prev_state) identifier_prev_state
(identifier_state) identifier_state
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(identifier_prev_state) identifier_prev_state
(identifier_state) identifier_state
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_part) identifier_part
(identifier_extend) identifier_extend
)attribute
(argument_list
(binary_operator
(identifier_state) identifier_state
(identifier_prev_state) identifier_prev_state
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_part) identifier_part
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ANSI_RESET) identifier_ANSI_RESET
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_part) identifier_part
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_state) identifier_state
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_prev_state) identifier_prev_state
(identifier_state) identifier_state
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_part) identifier_part
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(identifier_prev_state) identifier_prev_state
(block
(expression_statement
(call
(attribute
(identifier_part) identifier_part
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ANSI_RESET) identifier_ANSI_RESET
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_part) identifier_part
(block
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_part) identifier_part
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module
|
Returns a partition of the string based on `width`
|
(module
(function_definition
(function_name_unkown_field) function_name_unkown_field
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'value {} need to be of type str ') string_'value {} need to be of type str '
(string_'for field `unkown_field`') string_'for field `unkown_field`'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(string_',') string_','
(identifier_value) identifier_value
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_'value should not contain a comma ') string_'value should not contain a comma '
(string_'for field `unkown_field`') string_'for field `unkown_field`'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__unkown_field) identifier__unkown_field
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module
|
Corresponds to IDD Field `unkown_field` Empty field in data.
Args:
value (str): value for IDD Field `unkown_field`
if `value` is None it will not be checked against the
specification and is assumed to be a missing value
Raises:
ValueError: if `value` is not a valid value
|
(module
(function_definition
(function_name_parse_request_body) function_name_parse_request_body
(parameters
(identifier_self) identifier_self
(identifier_body) identifier_body
)parameters
(block
(expression_statement
(assignment
(identifier_PARSING_FUNCTIONS) identifier_PARSING_FUNCTIONS
(dictionary
(pair
(string_'application/json') string_'application/json'
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
)pair
(pair
(string_'text/json') string_'text/json'
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
)pair
(pair
(string_'application/x-www-form-urlencoded') string_'application/x-www-form-urlencoded'
(attribute
(identifier_self) identifier_self
(identifier_parse_querystring) identifier_parse_querystring
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_type) identifier_content_type
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'content-type') string_'content-type'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_do_parse) identifier_do_parse
(call
(attribute
(identifier_PARSING_FUNCTIONS) identifier_PARSING_FUNCTIONS
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_content_type) identifier_content_type
(identifier_FALLBACK_FUNCTION) identifier_FALLBACK_FUNCTION
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(identifier_decode_utf8) identifier_decode_utf8
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_do_parse) identifier_do_parse
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)return_statement
)block
(except_clause
(tuple
(identifier_Exception) identifier_Exception
(identifier_BaseException) identifier_BaseException
)tuple
(block
(return_statement
(identifier_body) identifier_body
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Attempt to parse the post based on the content-type passed.
Return the regular body if not
:param body: string
:returns: a python object such as dict or list in case the deserialization suceeded. Else returns the given param ``body``
|
(module
(function_definition
(function_name_handle_current_state) function_name_handle_current_state
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(string_'_current_state_hydrated_changed') string_'_current_state_hydrated_changed'
(False) False
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_save_on_change) identifier_save_on_change
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_new_base_state) identifier_new_base_state
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(string_'_current_state_hydrated') string_'_current_state_hydrated'
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_new_base_state) identifier_new_base_state
(attribute
(identifier_self) identifier_self
(identifier_base_state) identifier_base_state
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_base_state) identifier_base_state
)attribute
(identifier_new_base_state) identifier_new_base_state
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module
|
Check to see if the current hydrated state and the saved state are different.
If they are, then persist the current state in the database by saving the model instance.
|
(module
(function_definition
(function_name_create_superuser) function_name_create_superuser
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_email) identifier_email
(identifier_short_name) identifier_short_name
(identifier_full_name) identifier_full_name
(identifier_institute) identifier_institute
(identifier_password) identifier_password
(dictionary_splat_pattern
(identifier_extra_fields) identifier_extra_fields
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__create_user) identifier__create_user
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(identifier_username) identifier_username
)keyword_argument
(keyword_argument
(identifier_email) identifier_email
(identifier_email) identifier_email
)keyword_argument
(keyword_argument
(identifier_institute) identifier_institute
(identifier_institute) identifier_institute
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
(keyword_argument
(identifier_short_name) identifier_short_name
(identifier_short_name) identifier_short_name
)keyword_argument
(keyword_argument
(identifier_full_name) identifier_full_name
(identifier_full_name) identifier_full_name
)keyword_argument
(keyword_argument
(identifier_is_admin) identifier_is_admin
(True) True
)keyword_argument
(dictionary_splat
(identifier_extra_fields) identifier_extra_fields
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Creates a new person with super powers.
|
(module
(function_definition
(function_name_python_value) function_name_python_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_JSONField) identifier_JSONField
(identifier_self) identifier_self
)argument_list
)call
(identifier_python_value) identifier_python_value
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_flask) identifier_flask
(identifier_json) identifier_json
)attribute
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_value) identifier_value
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__load_kwargs) identifier__load_kwargs
)attribute
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module
|
Return the JSON in the database as a ``dict``.
Returns:
dict: The field run through json.loads
|
(module
(function_definition
(function_name_on_replace_scene) function_name_on_replace_scene
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_event) identifier_event
(type
(attribute
(identifier_events) identifier_events
(identifier_ReplaceScene) identifier_ReplaceScene
)attribute
)type
)typed_parameter
(identifier_signal) identifier_signal
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stop_scene) identifier_stop_scene
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_start_scene) identifier_start_scene
)attribute
(argument_list
(attribute
(identifier_event) identifier_event
(identifier_new_scene) identifier_new_scene
)attribute
(attribute
(identifier_event) identifier_event
(identifier_kwargs) identifier_kwargs
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Replace the running scene with a new one.
|
(module
(function_definition
(function_name_set_experiment_winner) function_name_set_experiment_winner
(parameters
(identifier_experiment) identifier_experiment
)parameters
(block
(expression_statement
(assignment
(identifier_redis) identifier_redis
(call
(identifier__get_redis_connection) identifier__get_redis_connection
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_experiment) identifier_experiment
(call
(attribute
(identifier_Experiment) identifier_Experiment
(identifier_find) identifier_find
)attribute
(argument_list
(identifier_redis) identifier_redis
(identifier_experiment) identifier_experiment
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_experiment) identifier_experiment
(block
(expression_statement
(assignment
(identifier_alternative_name) identifier_alternative_name
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_form) identifier_form
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'alternative') string_'alternative'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_alternative) identifier_alternative
(call
(identifier_Alternative) identifier_Alternative
(argument_list
(identifier_redis) identifier_redis
(identifier_alternative_name) identifier_alternative_name
(attribute
(identifier_experiment) identifier_experiment
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_alternative) identifier_alternative
(identifier_name) identifier_name
)attribute
(attribute
(identifier_experiment) identifier_experiment
(identifier_alternative_names) identifier_alternative_names
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_experiment) identifier_experiment
(identifier_winner) identifier_winner
)attribute
(attribute
(identifier_alternative) identifier_alternative
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(call
(identifier_redirect) identifier_redirect
(argument_list
(call
(identifier_url_for) identifier_url_for
(argument_list
(string_'.index') string_'.index'
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Mark an alternative as the winner of the experiment.
|
(module
(function_definition
(function_name_append) function_name_append
(parameters
(identifier_self) identifier_self
(identifier_cls) identifier_cls
(typed_default_parameter
(identifier_infer_hidden) identifier_infer_hidden
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(type
(identifier_Encoder) identifier_Encoder
)type
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_infer_hidden) identifier_infer_hidden
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'num_hidden') string_'num_hidden'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_get_num_hidden) identifier_get_num_hidden
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sig_params) identifier_sig_params
(attribute
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_signature) identifier_signature
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier___init__) identifier___init__
)attribute
)argument_list
)call
(identifier_parameters) identifier_parameters
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'dtype') string_'dtype'
(identifier_sig_params) identifier_sig_params
)comparison_operator
(comparison_operator
(string_'dtype') string_'dtype'
(identifier_kwargs) identifier_kwargs
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'dtype') string_'dtype'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_dtype) identifier_dtype
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_encoder) identifier_encoder
(call
(identifier_cls) identifier_cls
(argument_list
(dictionary_splat
(identifier_params) identifier_params
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_encoders) identifier_encoders
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_encoder) identifier_encoder
)argument_list
)call
)expression_statement
(return_statement
(identifier_encoder) identifier_encoder
)return_statement
)block
)function_definition
)module
|
Extends sequence with new Encoder. 'dtype' gets passed into Encoder instance if not present in parameters
and supported by specific Encoder type.
:param cls: Encoder type.
:param infer_hidden: If number of hidden should be inferred from previous encoder.
:param kwargs: Named arbitrary parameters for Encoder.
:return: Instance of Encoder.
|
(module
(function_definition
(function_name__delete_network) function_name__delete_network
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_network) identifier_network
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_api) identifier_api
(identifier_neutron) identifier_neutron
)attribute
(identifier_network_delete) identifier_network_delete
)attribute
(argument_list
(identifier_request) identifier_request
(attribute
(identifier_network) identifier_network
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(concatenated_string
(string_'Delete the created network %s ') string_'Delete the created network %s '
(string_'due to subnet creation failure.') string_'due to subnet creation failure.'
)concatenated_string
(attribute
(identifier_network) identifier_network
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(call
(identifier__) identifier__
(argument_list
(concatenated_string
(string_'Delete the created network "%s" ') string_'Delete the created network "%s" '
(string_'due to subnet creation failure.') string_'due to subnet creation failure.'
)concatenated_string
)argument_list
)call
(attribute
(identifier_network) identifier_network
(identifier_name) identifier_name
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_redirect) identifier_redirect
(call
(attribute
(identifier_self) identifier_self
(identifier_get_failure_url) identifier_get_failure_url
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_Http302) identifier_Http302
)attribute
(argument_list
(identifier_redirect) identifier_redirect
)argument_list
)call
)raise_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Failed to delete network %(id)s: %(exc)s') string_'Failed to delete network %(id)s: %(exc)s'
(dictionary
(pair
(string_'id') string_'id'
(attribute
(identifier_network) identifier_network
(identifier_id) identifier_id
)attribute
)pair
(pair
(string_'exc') string_'exc'
(identifier_e) identifier_e
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(call
(identifier__) identifier__
(argument_list
(string_'Failed to delete network "%s"') string_'Failed to delete network "%s"'
)argument_list
)call
(attribute
(identifier_network) identifier_network
(identifier_name) identifier_name
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_redirect) identifier_redirect
(call
(attribute
(identifier_self) identifier_self
(identifier_get_failure_url) identifier_get_failure_url
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_handle) identifier_handle
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_msg) identifier_msg
(keyword_argument
(identifier_redirect) identifier_redirect
(identifier_redirect) identifier_redirect
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Delete the created network when subnet creation failed.
|
(module
(function_definition
(function_name_FromMilliseconds) function_name_FromMilliseconds
(parameters
(identifier_self) identifier_self
(identifier_millis) identifier_millis
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__NormalizeDuration) identifier__NormalizeDuration
)attribute
(argument_list
(binary_operator
(identifier_millis) identifier_millis
(identifier__MILLIS_PER_SECOND) identifier__MILLIS_PER_SECOND
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_millis) identifier_millis
(identifier__MILLIS_PER_SECOND) identifier__MILLIS_PER_SECOND
)binary_operator
)parenthesized_expression
(identifier__NANOS_PER_MILLISECOND) identifier__NANOS_PER_MILLISECOND
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Converts milliseconds to Duration.
|
(module
(function_definition
(function_name_ready) function_name_ready
(parameters
(identifier_zone) identifier_zone
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'status') string_'status'
(True) True
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(call
(attribute
(string_'zoneadm {zone} ready') string_'zoneadm {zone} ready'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_zone) identifier_zone
(conditional_expression
(call
(attribute
(string_'-u {0}') string_'-u {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_zone) identifier_zone
)argument_list
)call
(call
(identifier__is_uuid) identifier__is_uuid
(argument_list
(identifier_zone) identifier_zone
)argument_list
)call
(call
(attribute
(string_'-z {0}') string_'-z {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_zone) identifier_zone
)argument_list
)call
)conditional_expression
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'status') string_'status'
)subscript
(comparison_operator
(subscript
(identifier_res) identifier_res
(string_'retcode') string_'retcode'
)subscript
(integer_0) integer_0
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(conditional_expression
(subscript
(identifier_res) identifier_res
(string_'stdout') string_'stdout'
)subscript
(subscript
(identifier_ret) identifier_ret
(string_'status') string_'status'
)subscript
(subscript
(identifier_res) identifier_res
(string_'stderr') string_'stderr'
)subscript
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(call
(attribute
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'zoneadm: ') string_'zoneadm: '
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
(string_'') string_''
)comparison_operator
(block
(delete_statement
(subscript
(identifier_ret) identifier_ret
(string_'message') string_'message'
)subscript
)delete_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module
|
Prepares a zone for running applications.
zone : string
name or uuid of the zone
CLI Example:
.. code-block:: bash
salt '*' zoneadm.ready clementine
|
(module
(function_definition
(function_name_gauss_box_model) function_name_gauss_box_model
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_amplitude) identifier_amplitude
(float_1.0) float_1.0
)default_parameter
(default_parameter
(identifier_mean) identifier_mean
(float_0.0) float_0.0
)default_parameter
(default_parameter
(identifier_stddev) identifier_stddev
(float_1.0) float_1.0
)default_parameter
(default_parameter
(identifier_hpix) identifier_hpix
(float_0.5) float_0.5
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_z) identifier_z
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_x) identifier_x
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
(identifier_stddev) identifier_stddev
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_z2) identifier_z2
(binary_operator
(identifier_z) identifier_z
(binary_operator
(identifier_hpix) identifier_hpix
(identifier_stddev) identifier_stddev
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_z1) identifier_z1
(binary_operator
(identifier_z) identifier_z
(binary_operator
(identifier_hpix) identifier_hpix
(identifier_stddev) identifier_stddev
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_amplitude) identifier_amplitude
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_norm) identifier_norm
(identifier_cdf) identifier_cdf
)attribute
(argument_list
(identifier_z2) identifier_z2
)argument_list
)call
(call
(attribute
(identifier_norm) identifier_norm
(identifier_cdf) identifier_cdf
)attribute
(argument_list
(identifier_z1) identifier_z1
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module
|
Integrate a Gaussian profile.
|
(module
(function_definition
(function_name__get_rating) function_name__get_rating
(parameters
(identifier_self) identifier_self
(identifier_entry) identifier_entry
)parameters
(block
(expression_statement
(assignment
(identifier_r_info) identifier_r_info
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_string) identifier_string
(attribute
(subscript
(identifier_entry) identifier_entry
(integer_2) integer_2
)subscript
(identifier_strings) identifier_strings
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_r_info) identifier_r_info
(identifier_string) identifier_string
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(pattern_list
(identifier_rating) identifier_rating
(identifier_share) identifier_share
)pattern_list
(call
(attribute
(identifier_r_info) identifier_r_info
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(tuple
(identifier_rating) identifier_rating
(call
(attribute
(identifier_share) identifier_share
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'*') string_'*'
)argument_list
)call
)tuple
)return_statement
)block
)function_definition
)module
|
Get the rating and share for a specific row
|
(module
(function_definition
(function_name_groups) function_name_groups
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
(default_parameter
(identifier_include) identifier_include
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__query_zendesk) identifier__query_zendesk
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_endpoint) identifier_endpoint
)attribute
(identifier_groups) identifier_groups
)attribute
(string_'group') string_'group'
(keyword_argument
(identifier_id) identifier_id
(identifier_user) identifier_user
)keyword_argument
(keyword_argument
(identifier_include) identifier_include
(identifier_include) identifier_include
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Retrieve the groups for this user.
:param include: list of objects to sideload. `Side-loading API Docs
<https://developer.zendesk.com/rest_api/docs/core/side_loading>`__.
:param user: User object or id
|
(module
(function_definition
(function_name_replace_text_dir) function_name_replace_text_dir
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
(identifier_to_replace) identifier_to_replace
(identifier_replacement) identifier_replacement
(default_parameter
(identifier_file_type) identifier_file_type
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_file_type) identifier_file_type
)not_operator
(block
(expression_statement
(assignment
(identifier_file_type) identifier_file_type
(string_"*.tex") string_"*.tex"
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_file) identifier_file
(call
(attribute
(identifier_glob) identifier_glob
(identifier_iglob) identifier_iglob
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_file_type) identifier_file_type
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_replace_text) identifier_replace_text
)attribute
(argument_list
(identifier_file) identifier_file
(identifier_to_replace) identifier_to_replace
(identifier_replacement) identifier_replacement
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module
|
Replaces a string with its replacement in all the files in the directory
:param directory: the directory in which the files have to be modified
:param to_replace: the string to be replaced in the files
:param replacement: the string which replaces 'to_replace' in the files
:param file_type: file pattern to match the files in which the string has to be replaced
|
(module
(function_definition
(function_name_raise_error_if_unphysical) function_name_raise_error_if_unphysical
(parameters
(identifier_f) identifier_f
)parameters
(block
(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_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_k_vrh) identifier_k_vrh
)attribute
(integer_0) integer_0
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_g_vrh) identifier_g_vrh
)attribute
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"Bulk or shear modulus is negative, property ") string_"Bulk or shear modulus is negative, property "
(string_"cannot be determined") string_"cannot be determined"
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_f) identifier_f
(argument_list
(identifier_self) identifier_self
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module
|
Wrapper for functions or properties that should raise an error
if tensor is unphysical.
|
(module
(function_definition
(function_name_initialize_private_canvas) function_name_initialize_private_canvas
(parameters
(identifier_self) identifier_self
(identifier_private_canvas) identifier_private_canvas
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_t_) identifier_t_
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'show_pan_position') string_'show_pan_position'
(False) False
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_show_pan_mark) identifier_show_pan_mark
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_t_) identifier_t_
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'show_focus_indicator') string_'show_focus_indicator'
(False) False
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_show_focus_indicator) identifier_show_focus_indicator
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Initialize the private canvas used by this instance.
|
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_running) identifier_running
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"stopping main task of %r") string_"stopping main task of %r"
(identifier_self) identifier_self
(keyword_argument
(identifier_stack_info) identifier_stack_info
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__main_task) identifier__main_task
)attribute
(identifier_cancel) identifier_cancel
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Stop the client. This sends a signal to the clients main task which
makes it terminate.
It may take some cycles through the event loop to stop the client
task. To check whether the task has actually stopped, query
:attr:`running`.
|
(module
(function_definition
(function_name__adjust_nstep) function_name__adjust_nstep
(parameters
(identifier_n_step) identifier_n_step
(identifier_gamma) identifier_gamma
(identifier_obs) identifier_obs
(identifier_actions) identifier_actions
(identifier_rewards) identifier_rewards
(identifier_new_obs) identifier_new_obs
(identifier_dones) identifier_dones
)parameters
(block
(assert_statement
(not_operator
(call
(identifier_any) identifier_any
(argument_list
(subscript
(identifier_dones) identifier_dones
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)not_operator
(string_"Unexpected done in middle of trajectory") string_"Unexpected done in middle of trajectory"
)assert_statement
(expression_statement
(assignment
(identifier_traj_length) identifier_traj_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_rewards) identifier_rewards
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_traj_length) identifier_traj_length
)argument_list
)call
(block
(for_statement
(identifier_j) identifier_j
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(identifier_n_step) identifier_n_step
)argument_list
)call
(block
(if_statement
(comparison_operator
(binary_operator
(identifier_i) identifier_i
(identifier_j) identifier_j
)binary_operator
(identifier_traj_length) identifier_traj_length
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_new_obs) identifier_new_obs
(identifier_i) identifier_i
)subscript
(subscript
(identifier_new_obs) identifier_new_obs
(binary_operator
(identifier_i) identifier_i
(identifier_j) identifier_j
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_dones) identifier_dones
(identifier_i) identifier_i
)subscript
(subscript
(identifier_dones) identifier_dones
(binary_operator
(identifier_i) identifier_i
(identifier_j) identifier_j
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(subscript
(identifier_rewards) identifier_rewards
(identifier_i) identifier_i
)subscript
(binary_operator
(binary_operator
(identifier_gamma) identifier_gamma
(identifier_j) identifier_j
)binary_operator
(subscript
(identifier_rewards) identifier_rewards
(binary_operator
(identifier_i) identifier_i
(identifier_j) identifier_j
)binary_operator
)subscript
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module
|
Rewrites the given trajectory fragments to encode n-step rewards.
reward[i] = (
reward[i] * gamma**0 +
reward[i+1] * gamma**1 +
... +
reward[i+n_step-1] * gamma**(n_step-1))
The ith new_obs is also adjusted to point to the (i+n_step-1)'th new obs.
At the end of the trajectory, n is truncated to fit in the traj length.
|
(module
(function_definition
(function_name__cmp_bystrlen_reverse) function_name__cmp_bystrlen_reverse
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)comparison_operator
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
A private "cmp" function to be used by the "sort" function of a
list when ordering the titles found in a knowledge base by string-
length - LONGEST -> SHORTEST.
@param a: (string)
@param b: (string)
@return: (integer) - 0 if len(a) == len(b); 1 if len(a) < len(b);
-1 if len(a) > len(b);
|
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(return_statement
(call
(identifier_Zchunk) identifier_Zchunk
(argument_list
(call
(attribute
(identifier_lib) identifier_lib
(identifier_zarmour_decode) identifier_zarmour_decode
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__as_parameter_) identifier__as_parameter_
)attribute
(identifier_data) identifier_data
)argument_list
)call
(True) True
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Decode an armoured string into a chunk. The decoded output is
null-terminated, so it may be treated as a string, if that's what
it was prior to encoding.
|
(module
(function_definition
(function_name_duration) function_name_duration
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_started) identifier_started
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(attribute
(identifier_self) identifier_self
(identifier_started) identifier_started
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(attribute
(identifier_self) identifier_self
(identifier_completed) identifier_completed
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_end) identifier_end
)not_operator
(block
(expression_statement
(assignment
(identifier_end) identifier_end
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(binary_operator
(identifier_end) identifier_end
(identifier_start) identifier_start
)binary_operator
)return_statement
)block
)function_definition
)module
|
Return a timedelta for this task.
Measure the time between this task's start and end time, or "now"
if the task has not yet finished.
:returns: timedelta object, or None if the task has not even started.
|
(module
(function_definition
(function_name_check_dynamic_route_exists) function_name_check_dynamic_route_exists
(parameters
(identifier_pattern) identifier_pattern
(identifier_routes_to_check) identifier_routes_to_check
(identifier_parameters) identifier_parameters
)parameters
(block
(for_statement
(pattern_list
(identifier_ndx) identifier_ndx
(identifier_route) identifier_route
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_routes_to_check) identifier_routes_to_check
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_route) identifier_route
(identifier_pattern) identifier_pattern
)attribute
(identifier_pattern) identifier_pattern
)comparison_operator
(comparison_operator
(attribute
(identifier_route) identifier_route
(identifier_parameters) identifier_parameters
)attribute
(identifier_parameters) identifier_parameters
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(identifier_ndx) identifier_ndx
(identifier_route) identifier_route
)expression_list
)return_statement
)block
)if_statement
)block
(else_clause
(block
(return_statement
(expression_list
(unary_operator
(integer_1) integer_1
)unary_operator
(None) None
)expression_list
)return_statement
)block
)else_clause
)for_statement
)block
)function_definition
)module
|
Check if a URL pattern exists in a list of routes provided based on
the comparison of URL pattern and the parameters.
:param pattern: URL parameter pattern
:param routes_to_check: list of dynamic routes either hashable or
unhashable routes.
:param parameters: List of :class:`Parameter` items
:return: Tuple of index and route if matching route exists else
-1 for index and None for route
|
(module
(function_definition
(function_name_add_hostname_cn) function_name_add_hostname_cn
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ip) identifier_ip
(call
(identifier_unit_get) identifier_unit_get
(argument_list
(string_'private-address') string_'private-address'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_addresses) identifier_addresses
(list
(identifier_ip) identifier_ip
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vip) identifier_vip
(call
(identifier_get_vip_in_network) identifier_get_vip_in_network
(argument_list
(call
(identifier_resolve_network_cidr) identifier_resolve_network_cidr
(argument_list
(identifier_ip) identifier_ip
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_vip) identifier_vip
(block
(expression_statement
(call
(attribute
(identifier_addresses) identifier_addresses
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_vip) identifier_vip
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_hostname_entry) identifier_hostname_entry
)attribute
(dictionary
(pair
(string_'cn') string_'cn'
(call
(identifier_get_hostname) identifier_get_hostname
(argument_list
(identifier_ip) identifier_ip
)argument_list
)call
)pair
(pair
(string_'addresses') string_'addresses'
(identifier_addresses) identifier_addresses
)pair
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module
|
Add a request for the hostname of the machine
|
(module
(function_definition
(function_name_generator_to_list) function_name_generator_to_list
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_fn) identifier_fn
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module
|
This decorator is for flat_list function.
It converts returned generator to list.
|
(module
(function_definition
(function_name_update_voice_model) function_name_update_voice_model
(parameters
(identifier_self) identifier_self
(identifier_customization_id) identifier_customization_id
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_description) identifier_description
(None) None
)default_parameter
(default_parameter
(identifier_words) identifier_words
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_customization_id) identifier_customization_id
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'customization_id must be provided') string_'customization_id must be provided'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_words) identifier_words
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_words) identifier_words
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier__convert_model) identifier__convert_model
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_Word) identifier_Word
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_words) identifier_words
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'headers') string_'headers'
(identifier_kwargs) identifier_kwargs
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_headers) identifier_headers
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'headers') string_'headers'
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sdk_headers) identifier_sdk_headers
(call
(identifier_get_sdk_headers) identifier_get_sdk_headers
(argument_list
(string_'text_to_speech') string_'text_to_speech'
(string_'V1') string_'V1'
(string_'update_voice_model') string_'update_voice_model'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_headers) identifier_headers
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_sdk_headers) identifier_sdk_headers
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'description') string_'description'
(identifier_description) identifier_description
)pair
(pair
(string_'words') string_'words'
(identifier_words) identifier_words
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'/v1/customizations/{0}') string_'/v1/customizations/{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_self) identifier_self
(identifier__encode_path_vars) identifier__encode_path_vars
)attribute
(argument_list
(identifier_customization_id) identifier_customization_id
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(argument_list
(keyword_argument
(identifier_method) identifier_method
(string_'POST') string_'POST'
)keyword_argument
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_json) identifier_json
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_accept_json) identifier_accept_json
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module
|
Update a custom model.
Updates information for the specified custom voice model. You can update metadata
such as the name and description of the voice model. You can also update the words
in the model and their translations. Adding a new translation for a word that
already exists in a custom model overwrites the word's existing translation. A
custom model can contain no more than 20,000 entries. You must use credentials for
the instance of the service that owns a model to update it.
You can define sounds-like or phonetic translations for words. A sounds-like
translation consists of one or more words that, when combined, sound like the
word. Phonetic translations are based on the SSML phoneme format for representing
a word. You can specify them in standard International Phonetic Alphabet (IPA)
representation
<code><phoneme alphabet=\"ipa\"
ph=\"təmˈɑto\"></phoneme></code>
or in the proprietary IBM Symbolic Phonetic Representation (SPR)
<code><phoneme alphabet=\"ibm\"
ph=\"1gAstroEntxrYFXs\"></phoneme></code>
**Note:** This method is currently a beta release.
**See also:**
* [Updating a custom
model](https://cloud.ibm.com/docs/services/text-to-speech/custom-models.html#cuModelsUpdate)
* [Adding words to a Japanese custom
model](https://cloud.ibm.com/docs/services/text-to-speech/custom-entries.html#cuJapaneseAdd)
* [Understanding
customization](https://cloud.ibm.com/docs/services/text-to-speech/custom-intro.html).
:param str customization_id: The customization ID (GUID) of the custom voice
model. You must make the request with service credentials created for the instance
of the service that owns the custom model.
:param str name: A new name for the custom voice model.
:param str description: A new description for the custom voice model.
:param list[Word] words: An array of `Word` objects that provides the words and
their translations that are to be added or updated for the custom voice model.
Pass an empty array to make no additions or updates.
:param dict headers: A `dict` containing the request headers
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
:rtype: DetailedResponse
|
(module
(function_definition
(function_name__sideral) function_name__sideral
(parameters
(identifier_date) identifier_date
(default_parameter
(identifier_longitude) identifier_longitude
(float_0.) float_0.
)default_parameter
(default_parameter
(identifier_model) identifier_model
(string_'mean') string_'mean'
)default_parameter
(default_parameter
(identifier_eop_correction) identifier_eop_correction
(True) True
)default_parameter
(default_parameter
(identifier_terms) identifier_terms
(integer_106) integer_106
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(attribute
(call
(attribute
(identifier_date) identifier_date
(identifier_change_scale) identifier_change_scale
)attribute
(argument_list
(string_'UT1') string_'UT1'
)argument_list
)call
(identifier_julian_century) identifier_julian_century
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_theta) identifier_theta
(binary_operator
(binary_operator
(binary_operator
(float_67310.54841) float_67310.54841
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(integer_876600) integer_876600
(integer_3600) integer_3600
)binary_operator
(float_8640184.812866) float_8640184.812866
)binary_operator
)parenthesized_expression
(identifier_t) identifier_t
)binary_operator
)binary_operator
(binary_operator
(float_0.093104) float_0.093104
(binary_operator
(identifier_t) identifier_t
(integer_2) integer_2
)binary_operator
)binary_operator
)binary_operator
(line_continuation_\) line_continuation_\
(binary_operator
(float_6.2e-6) float_6.2e-6
(binary_operator
(identifier_t) identifier_t
(integer_3) integer_3
)binary_operator
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_theta) identifier_theta
(float_240.) float_240.
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_model) identifier_model
(string_'apparent') string_'apparent'
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_theta) identifier_theta
(call
(identifier_equinox) identifier_equinox
(argument_list
(identifier_date) identifier_date
(identifier_eop_correction) identifier_eop_correction
(identifier_terms) identifier_terms
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_theta) identifier_theta
(identifier_longitude) identifier_longitude
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_theta) identifier_theta
(float_360.) float_360.
)augmented_assignment
)expression_statement
(return_statement
(identifier_theta) identifier_theta
)return_statement
)block
)function_definition
)module
|
Get the sideral time at a defined date
Args:
date (Date):
longitude (float): Longitude of the observer (in degrees)
East positive/West negative.
model (str): 'mean' or 'apparent' for GMST and GAST respectively
Return:
float: Sideral time in degrees
GMST: Greenwich Mean Sideral Time
LST: Local Sideral Time (Mean)
GAST: Greenwich Apparent Sideral Time
|
(module
(function_definition
(function_name__parse_image_multilogs_string) function_name__parse_image_multilogs_string
(parameters
(identifier_config) identifier_config
(identifier_ret) identifier_ret
(identifier_repo) identifier_repo
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_image_logs) identifier_image_logs
(identifier_infos) identifier_infos
)pattern_list
(expression_list
(list
)list
(None) None
)expression_list
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_ret) identifier_ret
(call
(attribute
(call
(attribute
(identifier_ret) identifier_ret
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'{') string_'{'
)argument_list
)call
)boolean_operator
(call
(attribute
(call
(attribute
(identifier_ret) identifier_ret
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'}') string_'}'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_pushd) identifier_pushd
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_buf) identifier_buf
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_char) identifier_char
(identifier_ret) identifier_ret
(block
(expression_statement
(augmented_assignment
(identifier_buf) identifier_buf
(identifier_char) identifier_char
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_char) identifier_char
(string_'{') string_'{'
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_pushd) identifier_pushd
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_char) identifier_char
(string_'}') string_'}'
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_pushd) identifier_pushd
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_pushd) identifier_pushd
(integer_0) integer_0
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_buf) identifier_buf
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_buf) identifier_buf
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_image_logs) identifier_image_logs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_buf) identifier_buf
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_buf) identifier_buf
(string_'') string_''
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_image_logs) identifier_image_logs
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_l) identifier_l
(identifier_image_logs) identifier_image_logs
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_l) identifier_l
(identifier_dict) identifier_dict
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(attribute
(identifier_l) identifier_l
(identifier_get) identifier_get
)attribute
(argument_list
(string_'status') string_'status'
)argument_list
)call
(string_'Download complete') string_'Download complete'
)comparison_operator
(call
(attribute
(identifier_l) identifier_l
(identifier_get) identifier_get
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_infos) identifier_infos
(call
(identifier__get_image_infos) identifier__get_image_infos
(argument_list
(identifier_config) identifier_config
(identifier_repo) identifier_repo
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_image_logs) identifier_image_logs
(identifier_infos) identifier_infos
)expression_list
)return_statement
)block
)function_definition
)module
|
Parse image log strings into grokable data
|
(module
(function_definition
(function_name_shift_up) function_name_shift_up
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_times) identifier_times
(integer_1) integer_1
)default_parameter
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_Location) identifier_Location
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__rank) identifier__rank
)attribute
(identifier_times) identifier_times
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier__file) identifier__file
)attribute
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_IndexError) identifier_IndexError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_IndexError) identifier_IndexError
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Finds Location shifted up by 1
:rtype: Location
|
(module
(function_definition
(function_name_create_stemmer) function_name_create_stemmer
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_isDev) identifier_isDev
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_words) identifier_words
(call
(attribute
(identifier_self) identifier_self
(identifier_get_words) identifier_get_words
)attribute
(argument_list
(identifier_isDev) identifier_isDev
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dictionary) identifier_dictionary
(call
(identifier_ArrayDictionary) identifier_ArrayDictionary
(argument_list
(identifier_words) identifier_words
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stemmer) identifier_stemmer
(call
(identifier_Stemmer) identifier_Stemmer
(argument_list
(identifier_dictionary) identifier_dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resultCache) identifier_resultCache
(call
(identifier_ArrayCache) identifier_ArrayCache
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cachedStemmer) identifier_cachedStemmer
(call
(identifier_CachedStemmer) identifier_CachedStemmer
(argument_list
(identifier_resultCache) identifier_resultCache
(identifier_stemmer) identifier_stemmer
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_cachedStemmer) identifier_cachedStemmer
)return_statement
)block
)function_definition
)module
|
Returns Stemmer instance
|
(module
(function_definition
(function_name_setup_tree) function_name_setup_tree
(parameters
(identifier_ctx) identifier_ctx
(default_parameter
(identifier_verbose) identifier_verbose
(None) None
)default_parameter
(default_parameter
(identifier_root) identifier_root
(None) None
)default_parameter
(default_parameter
(identifier_tree_dir) identifier_tree_dir
(None) None
)default_parameter
(default_parameter
(identifier_modules_dir) identifier_modules_dir
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Setting up the tree') string_'Setting up the tree'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_run) identifier_run
)attribute
(argument_list
(call
(attribute
(string_'python bin/setup_tree.py -t {0} -r {1} -m {2}') string_'python bin/setup_tree.py -t {0} -r {1} -m {2}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_tree_dir) identifier_tree_dir
(identifier_root) identifier_root
(identifier_modules_dir) identifier_modules_dir
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Sets up the SDSS tree enviroment
|
(module
(function_definition
(function_name_pipeline_id_from_name) function_name_pipeline_id_from_name
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result_pipelines) identifier_result_pipelines
(call
(identifier_list_pipelines) identifier_list_pipelines
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'error') string_'error'
(identifier_result_pipelines) identifier_result_pipelines
)comparison_operator
(block
(return_statement
(identifier_result_pipelines) identifier_result_pipelines
)return_statement
)block
)if_statement
(for_statement
(identifier_pipeline) identifier_pipeline
(subscript
(identifier_result_pipelines) identifier_result_pipelines
(string_'result') string_'result'
)subscript
(block
(if_statement
(comparison_operator
(subscript
(identifier_pipeline) identifier_pipeline
(string_'name') string_'name'
)subscript
(identifier_name) identifier_name
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_r) identifier_r
(string_'result') string_'result'
)subscript
(subscript
(identifier_pipeline) identifier_pipeline
(string_'id') string_'id'
)subscript
)assignment
)expression_statement
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_r) identifier_r
(string_'error') string_'error'
)subscript
(call
(attribute
(string_'No pipeline found with name={0}') string_'No pipeline found with name={0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)function_definition
)module
|
Get the pipeline id, if it exists, for the given name.
CLI example:
.. code-block:: bash
salt myminion boto_datapipeline.pipeline_id_from_name my_pipeline_name
|
(module
(function_definition
(function_name_stitchModules) function_name_stitchModules
(parameters
(identifier_module) identifier_module
(identifier_fallbackModule) identifier_fallbackModule
)parameters
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_attr) identifier_attr
)pattern_list
(call
(attribute
(attribute
(identifier_fallbackModule) identifier_fallbackModule
(identifier___dict__) identifier___dict__
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_module) identifier_module
(identifier___dict__) identifier___dict__
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_module) identifier_module
(identifier___dict__) identifier___dict__
)attribute
(identifier_name) identifier_name
)subscript
(identifier_attr) identifier_attr
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
complete missing attributes with those in fallbackModule
imagine you have 2 modules: a and b
a is some kind of an individualised module of b - but will maybe
not contain all attributes of b.
in this case a should use the attributes from b
>>> a.var1 = 'individual 1'
# what we now want is to all all missing attributes from b to a:
>>> stitchModules(a,b)
>>> print a.var1
individual 1
>>> print a.var2
standard 2
|
(module
(function_definition
(function_name__print_download_progress_msg) function_name__print_download_progress_msg
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
(default_parameter
(identifier_flush) identifier_flush
(False) False
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__interactive_mode) identifier__interactive_mode
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__max_prog_str) identifier__max_prog_str
)attribute
(call
(identifier_max) identifier_max
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__max_prog_str) identifier__max_prog_str
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(call
(attribute
(string_"\r%-{}s") string_"\r%-{}s"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__max_prog_str) identifier__max_prog_str
)attribute
)argument_list
)call
(identifier_msg) identifier_msg
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(identifier_flush) identifier_flush
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"\n") string_"\n"
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Prints a message about download progress either to the console or TF log.
Args:
msg: Message to print.
flush: Indicates whether to flush the output (only used in interactive
mode).
|
(module
(function_definition
(function_name_template_filter) function_name_template_filter
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_param) identifier_param
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_deco) function_name_deco
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(boolean_operator
(identifier_param) identifier_param
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_filters) identifier_filters
)attribute
(identifier_name) identifier_name
)subscript
(identifier_func) identifier_func
)assignment
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(return_statement
(identifier_deco) identifier_deco
)return_statement
)block
)function_definition
)module
|
Returns a decorator that adds the wrapped function to dictionary of template filters.
The wrapped function is keyed by either the supplied param (if supplied)
or by the wrapped functions name.
:param param: Optional name to use instead of the name of the function to be wrapped
:return: A decorator to wrap a template filter function
:rtype: callable
|
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_calendar_id) identifier_calendar_id
)attribute
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier_build_url) identifier_build_url
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__endpoints) identifier__endpoints
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'calendar') string_'calendar'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(call
(attribute
(identifier_self) identifier_self
(identifier__cc) identifier__cc
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)pair
(pair
(call
(attribute
(identifier_self) identifier_self
(identifier__cc) identifier__cc
)attribute
(argument_list
(string_'color') string_'color'
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier__cc) identifier__cc
)attribute
(argument_list
(conditional_expression
(attribute
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(identifier_value) identifier_value
)attribute
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(identifier_CalendarColor) identifier_CalendarColor
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
)conditional_expression
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(identifier_patch) identifier_patch
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Updates this calendar. Only name and color can be changed.
:return: Success / Failure
:rtype: bool
|
(module
(function_definition
(function_name_as_child) function_name_as_child
(parameters
(identifier_cls) identifier_cls
(identifier_global_config) identifier_global_config
(default_parameter
(identifier_parent) identifier_parent
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(call
(identifier_setproctitle) identifier_setproctitle
(argument_list
(string_'rejester worker') string_'rejester worker'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_random) identifier_random
(identifier_seed) identifier_seed
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_yakonfig) identifier_yakonfig
(identifier_set_default_config) identifier_set_default_config
)attribute
(argument_list
(list
(identifier_yakonfig) identifier_yakonfig
(identifier_dblogger) identifier_dblogger
(identifier_rejester) identifier_rejester
)list
(keyword_argument
(identifier_config) identifier_config
(identifier_global_config) identifier_global_config
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_worker) identifier_worker
(call
(identifier_cls) identifier_cls
(argument_list
(call
(attribute
(identifier_yakonfig) identifier_yakonfig
(identifier_get_global_config) identifier_get_global_config
)attribute
(argument_list
(attribute
(identifier_rejester) identifier_rejester
(identifier_config_name) identifier_config_name
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_worker) identifier_worker
(identifier_register) identifier_register
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_parent) identifier_parent
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_did_work) identifier_did_work
(call
(attribute
(identifier_worker) identifier_worker
(identifier_run) identifier_run
)attribute
(argument_list
(keyword_argument
(identifier_set_title) identifier_set_title
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_worker) identifier_worker
(identifier_unregister) identifier_unregister
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(identifier_did_work) identifier_did_work
(block
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_EXIT_SUCCESS) identifier_EXIT_SUCCESS
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_EXIT_BORED) identifier_EXIT_BORED
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(identifier_e) identifier_e
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(attribute
(identifier_logging) identifier_logging
(identifier_root) identifier_root
)attribute
(identifier_handlers) identifier_handlers
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_critical) identifier_critical
)attribute
(argument_list
(string_'failed to do any work') string_'failed to do any work'
(keyword_argument
(identifier_exc_info) identifier_exc_info
(identifier_e) identifier_e
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_EXIT_EXCEPTION) identifier_EXIT_EXCEPTION
)attribute
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Run a single job in a child process.
This method never returns; it always calls :func:`sys.exit`
with an error code that says what it did.
|
(module
(function_definition
(function_name_getDisplayName) function_name_getDisplayName
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_alias) identifier_alias
)attribute
(string_"") string_""
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(string_" as ") string_" as "
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_alias) identifier_alias
)attribute
)binary_operator
)return_statement
)block
)function_definition
)module
|
Provides a name for display purpose respecting the alias
|
(module
(function_definition
(function_name_boost_error_level) function_name_boost_error_level
(parameters
(identifier_version) identifier_version
(identifier_error) identifier_error
(identifier_segments) identifier_segments
(identifier_eci) identifier_eci
(default_parameter
(identifier_is_sa) identifier_is_sa
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_error) identifier_error
(tuple
(attribute
(identifier_consts) identifier_consts
(identifier_ERROR_LEVEL_H) identifier_ERROR_LEVEL_H
)attribute
(None) None
)tuple
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_segments) identifier_segments
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_levels) identifier_levels
(list
(attribute
(identifier_consts) identifier_consts
(identifier_ERROR_LEVEL_L) identifier_ERROR_LEVEL_L
)attribute
(attribute
(identifier_consts) identifier_consts
(identifier_ERROR_LEVEL_M) identifier_ERROR_LEVEL_M
)attribute
(attribute
(identifier_consts) identifier_consts
(identifier_ERROR_LEVEL_Q) identifier_ERROR_LEVEL_Q
)attribute
(attribute
(identifier_consts) identifier_consts
(identifier_ERROR_LEVEL_H) identifier_ERROR_LEVEL_H
)attribute
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_version) identifier_version
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_levels) identifier_levels
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_version) identifier_version
(attribute
(identifier_consts) identifier_consts
(identifier_VERSION_M4) identifier_VERSION_M4
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_levels) identifier_levels
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data_length) identifier_data_length
(call
(attribute
(identifier_segments) identifier_segments
(identifier_bit_length_with_overhead) identifier_bit_length_with_overhead
)attribute
(argument_list
(identifier_version) identifier_version
(identifier_eci) identifier_eci
(keyword_argument
(identifier_is_sa) identifier_is_sa
(identifier_is_sa) identifier_is_sa
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_level) identifier_level
(subscript
(identifier_levels) identifier_levels
(slice
(binary_operator
(call
(attribute
(identifier_levels) identifier_levels
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_error) identifier_error
)argument_list
)call
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_found) identifier_found
(comparison_operator
(subscript
(subscript
(attribute
(identifier_consts) identifier_consts
(identifier_SYMBOL_CAPACITY) identifier_SYMBOL_CAPACITY
)attribute
(identifier_version) identifier_version
)subscript
(identifier_level) identifier_level
)subscript
(identifier_data_length) identifier_data_length
)comparison_operator
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(break_statement
)break_statement
)block
)except_clause
)try_statement
(if_statement
(identifier_found) identifier_found
(block
(expression_statement
(assignment
(identifier_error) identifier_error
(identifier_level) identifier_level
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_error) identifier_error
)return_statement
)block
)function_definition
)module
|
\
Increases the error level if possible.
:param int version: Version constant.
:param int|None error: Error level constant or ``None``
:param Segments segments: Instance of :py:class:`Segments`
:param bool eci: Indicates if ECI designator should be written.
:param bool is_sa: Indicates if Structured Append mode ist used.
|
(module
(function_definition
(function_name_get_url) function_name_get_url
(parameters
(identifier_self) identifier_self
(identifier_datatype) identifier_datatype
(identifier_verb) identifier_verb
(identifier_urltype) identifier_urltype
(default_parameter
(identifier_params) identifier_params
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_api_host) identifier_api_host
(None) None
)default_parameter
(default_parameter
(identifier_api_version) identifier_api_version
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_api_version) identifier_api_version
(boolean_operator
(identifier_api_version) identifier_api_version
(string_'v1') string_'v1'
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_api_host) identifier_api_host
(boolean_operator
(identifier_api_host) identifier_api_host
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subst) identifier_subst
(call
(attribute
(identifier_params) identifier_params
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_subst) identifier_subst
(string_'api_host') string_'api_host'
)subscript
(identifier_api_host) identifier_api_host
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_subst) identifier_subst
(string_'api_version') string_'api_version'
)subscript
(identifier_api_version) identifier_api_version
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(string_"https://{api_host}/services/api/{api_version}") string_"https://{api_host}/services/api/{api_version}"
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier_get_url_path) identifier_get_url_path
)attribute
(argument_list
(identifier_datatype) identifier_datatype
(identifier_verb) identifier_verb
(identifier_urltype) identifier_urltype
(identifier_params) identifier_params
(identifier_api_version) identifier_api_version
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_url) identifier_url
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_subst) identifier_subst
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns a fully formed url
:param datatype: a string identifying the data the url will access.
:param verb: the HTTP verb needed for use with the url.
:param urltype: an adjective used to the nature of the request.
:param \*\*params: substitution variables for the URL.
:return: string
:rtype: A fully formed url.
|
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_key) identifier_key
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
(typed_parameter
(identifier_value) identifier_value
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_Hash32) identifier_Hash32
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(call
(identifier_validate_is_bytes) identifier_validate_is_bytes
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_validate_length) identifier_validate_length
(argument_list
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier__key_size) identifier__key_size
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_validate_is_bytes) identifier_validate_is_bytes
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_to_int) identifier_to_int
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(identifier_value) identifier_value
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_branch) identifier_branch
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get) identifier__get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_proof_update) identifier_proof_update
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target_bit) identifier_target_bit
(integer_1) integer_1
)assignment
)expression_statement
(for_statement
(identifier_sibling_node) identifier_sibling_node
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_branch) identifier_branch
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_node_hash) identifier_node_hash
(call
(identifier_keccak) identifier_keccak
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_proof_update) identifier_proof_update
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_node_hash) identifier_node_hash
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_db) identifier_db
)attribute
(identifier_node_hash) identifier_node_hash
)subscript
(identifier_node) identifier_node
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(binary_operator
(identifier_path) identifier_path
(identifier_target_bit) identifier_target_bit
)binary_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(binary_operator
(identifier_sibling_node) identifier_sibling_node
(identifier_node_hash) identifier_node_hash
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(binary_operator
(identifier_node_hash) identifier_node_hash
(identifier_sibling_node) identifier_sibling_node
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(augmented_assignment
(identifier_target_bit) identifier_target_bit
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_root_hash) identifier_root_hash
)attribute
(call
(identifier_keccak) identifier_keccak
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_db) identifier_db
)attribute
(attribute
(identifier_self) identifier_self
(identifier_root_hash) identifier_root_hash
)attribute
)subscript
(identifier_node) identifier_node
)assignment
)expression_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_proof_update) identifier_proof_update
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns all updated hashes in root->leaf order
|
(module
(function_definition
(function_name_jira) function_name_jira
(parameters
(identifier_test_key) identifier_test_key
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_test_item) identifier_test_item
)parameters
(block
(function_definition
(function_name_modified_test) function_name_modified_test
(parameters
(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_save_jira_conf) identifier_save_jira_conf
(argument_list
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier_test_item) identifier_test_item
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_error_message) identifier_error_message
(call
(identifier_get_error_message_from_exception) identifier_get_error_message_from_exception
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_test_comment) identifier_test_comment
(call
(attribute
(string_"The test '{}' has failed: {}") string_"The test '{}' has failed: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
(identifier_get_method_name) identifier_get_method_name
)attribute
(argument_list
)argument_list
)call
(identifier_error_message) identifier_error_message
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_add_jira_status) identifier_add_jira_status
(argument_list
(identifier_test_key) identifier_test_key
(string_'Fail') string_'Fail'
(identifier_test_comment) identifier_test_comment
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_add_jira_status) identifier_add_jira_status
(argument_list
(identifier_test_key) identifier_test_key
(string_'Pass') string_'Pass'
(None) None
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(assignment
(attribute
(identifier_modified_test) identifier_modified_test
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_test_item) identifier_test_item
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(return_statement
(identifier_modified_test) identifier_modified_test
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module
|
Decorator to update test status in Jira
:param test_key: test case key in Jira
:returns: jira test
|
(module
(function_definition
(function_name_destroy) function_name_destroy
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'server') string_'server'
)argument_list
)call
)not_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_cloud_manager) identifier_cloud_manager
)attribute
(identifier_delete_firewall_rule) identifier_delete_firewall_rule
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_uuid) identifier_uuid
)attribute
(attribute
(identifier_self) identifier_self
(identifier_position) identifier_position
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Remove this FirewallRule from the API.
This instance must be associated with a server for this method to work,
which is done by instantiating via server.get_firewall_rules().
|
(module
(function_definition
(function_name__attempt_to_raise_license_error) function_name__attempt_to_raise_license_error
(parameters
(identifier_data_dir) identifier_data_dir
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data_dir) identifier_data_dir
(identifier_bytes) identifier_bytes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_data_dir) identifier_data_dir
(call
(identifier__decode) identifier__decode
(argument_list
(identifier_data_dir) identifier_data_dir
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data_dir) identifier_data_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_data_dir) identifier_data_dir
(string_'Data') string_'Data'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_date) identifier_current_date
(call
(attribute
(call
(attribute
(attribute
(identifier_dt) identifier_dt
(identifier_date) identifier_date
)attribute
(identifier_today) identifier_today
)attribute
(argument_list
)argument_list
)call
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%Y%m%d') string_'%Y%m%d'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(call
(attribute
(call
(attribute
(attribute
(identifier_dt) identifier_dt
(identifier_datetime) identifier_datetime
)attribute
(identifier_today) identifier_today
)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
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_files) identifier_data_files
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_data_dir) identifier_data_dir
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(identifier_data_files) identifier_data_files
(block
(if_statement
(comparison_operator
(identifier_f) identifier_f
(parenthesized_expression
(binary_operator
(identifier_current_date) identifier_current_date
(string_'.err') string_'.err'
)binary_operator
)parenthesized_expression
)comparison_operator
(block
(expression_statement
(assignment
(identifier_file_name) identifier_file_name
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_data_dir) identifier_data_dir
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_fopen) identifier_fopen
(argument_list
(identifier_file_name) identifier_file_name
)argument_list
)call
(as_pattern_target
(identifier_error_file) identifier_error_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(identifier_error_file) identifier_error_file
(block
(if_statement
(not_operator
(call
(attribute
(identifier_line) identifier_line
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_timestamp) identifier_timestamp
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'Not valid license') string_'Not valid license'
(identifier_line) identifier_line
)comparison_operator
(block
(raise_statement
(call
(identifier_LicenseError) identifier_LicenseError
(argument_list
(concatenated_string
(string_'Your license appears to have ') string_'Your license appears to have '
(string_'expired. Try running "pynlpir ') string_'expired. Try running "pynlpir '
(string_'update".') string_'update".'
)concatenated_string
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(string_'Can not open License file') string_'Can not open License file'
(identifier_line) identifier_line
)comparison_operator
(block
(raise_statement
(call
(identifier_LicenseError) identifier_LicenseError
(argument_list
(concatenated_string
(string_'Your license appears to be ') string_'Your license appears to be '
(string_'missing. Try running "pynlpir ') string_'missing. Try running "pynlpir '
(string_'update".') string_'update".'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)with_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
Raise an error if NLPIR has detected a missing or expired license.
:param str data_dir: The directory containing NLPIR's `Data` directory.
:raises LicenseError: The NLPIR license appears to be missing or expired.
|
(module
(function_definition
(function_name_get_smart_invite) function_name_get_smart_invite
(parameters
(identifier_self) identifier_self
(identifier_smart_invite_id) identifier_smart_invite_id
(identifier_recipient_email) identifier_recipient_email
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'smart_invite_id') string_'smart_invite_id'
(identifier_smart_invite_id) identifier_smart_invite_id
)pair
(pair
(string_'recipient_email') string_'recipient_email'
(identifier_recipient_email) identifier_recipient_email
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request_handler) identifier_request_handler
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'smart_invites') string_'smart_invites'
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_use_api_key) identifier_use_api_key
(True) True
)keyword_argument
)argument_list
)call
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Gets the details for a smart invite.
:param string smart_invite_id: - A String uniquely identifying the event for your
application (note: this is NOT an ID generated by Cronofy).
:param string recipient_email: - The email address for the recipient to get details for.
|
(module
(function_definition
(function_name_circles_pycairo) function_name_circles_pycairo
(parameters
(identifier_width) identifier_width
(identifier_height) identifier_height
(identifier_color) identifier_color
)parameters
(block
(expression_statement
(assignment
(identifier_cairo_color) identifier_cairo_color
(binary_operator
(identifier_color) identifier_color
(call
(identifier_rgb) identifier_rgb
(argument_list
(integer_255) integer_255
(integer_255) integer_255
(integer_255) integer_255
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_surface) identifier_surface
(call
(attribute
(identifier_cairo) identifier_cairo
(identifier_ImageSurface) identifier_ImageSurface
)attribute
(argument_list
(attribute
(identifier_cairo) identifier_cairo
(identifier_FORMAT_ARGB32) identifier_FORMAT_ARGB32
)attribute
(identifier_width) identifier_width
(identifier_height) identifier_height
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ctx) identifier_ctx
(call
(attribute
(identifier_cairo) identifier_cairo
(identifier_Context) identifier_Context
)attribute
(argument_list
(identifier_surface) identifier_surface
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_new_path) identifier_new_path
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_set_source_rgb) identifier_set_source_rgb
)attribute
(argument_list
(attribute
(identifier_cairo_color) identifier_cairo_color
(identifier_red) identifier_red
)attribute
(attribute
(identifier_cairo_color) identifier_cairo_color
(identifier_green) identifier_green
)attribute
(attribute
(identifier_cairo_color) identifier_cairo_color
(identifier_blue) identifier_blue
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_arc) identifier_arc
)attribute
(argument_list
(binary_operator
(identifier_width) identifier_width
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_height) identifier_height
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_width) identifier_width
(integer_2) integer_2
)binary_operator
(integer_0) integer_0
(binary_operator
(integer_2) integer_2
(identifier_pi) identifier_pi
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_fill) identifier_fill
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_surface) identifier_surface
(identifier_write_to_png) identifier_write_to_png
)attribute
(argument_list
(string_'circles.png') string_'circles.png'
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Implementation of circle border with PyCairo.
|
(module
(function_definition
(function_name__append_object_entry) function_name__append_object_entry
(parameters
(identifier_obj) identifier_obj
(identifier_list_name) identifier_list_name
(identifier_entry) identifier_entry
)parameters
(block
(expression_statement
(assignment
(identifier_obj_list) identifier_obj_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_obj) identifier_obj
(identifier_list_name) identifier_list_name
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_obj_list) identifier_obj_list
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_obj_list) identifier_obj_list
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_obj) identifier_obj
(identifier_list_name) identifier_list_name
(identifier_obj_list) identifier_obj_list
)argument_list
)call
)expression_statement
)block
)if_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj_list) identifier_obj_list
(identifier_list) identifier_list
)argument_list
)call
)assert_statement
(if_statement
(comparison_operator
(identifier_entry) identifier_entry
(identifier_obj_list) identifier_obj_list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_obj_list) identifier_obj_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Appends the given entry in the given object list.
Creates the list field if needed.
:param obj: The object that contains the list
:param list_name: The name of the list member in *obj*
:param entry: The entry to be added to the list
:raise ValueError: Invalid attribute content
|
(module
(function_definition
(function_name_search) function_name_search
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_q) identifier_q
(string_"yellow flower") string_"yellow flower"
)default_parameter
(default_parameter
(identifier_lang) identifier_lang
(string_"en") string_"en"
)default_parameter
(default_parameter
(identifier_video_type) identifier_video_type
(string_"all") string_"all"
)default_parameter
(default_parameter
(identifier_category) identifier_category
(string_"") string_""
)default_parameter
(default_parameter
(identifier_min_width) identifier_min_width
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_min_height) identifier_min_height
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_editors_choice) identifier_editors_choice
(string_"false") string_"false"
)default_parameter
(default_parameter
(identifier_safesearch) identifier_safesearch
(string_"false") string_"false"
)default_parameter
(default_parameter
(identifier_order) identifier_order
(string_"popular") string_"popular"
)default_parameter
(default_parameter
(identifier_page) identifier_page
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_per_page) identifier_per_page
(integer_20) integer_20
)default_parameter
(default_parameter
(identifier_callback) identifier_callback
(string_"") string_""
)default_parameter
(default_parameter
(identifier_pretty) identifier_pretty
(string_"false") string_"false"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_"key") string_"key"
(attribute
(identifier_self) identifier_self
(identifier_api_key) identifier_api_key
)attribute
)pair
(pair
(string_"q") string_"q"
(identifier_q) identifier_q
)pair
(pair
(string_"lang") string_"lang"
(identifier_lang) identifier_lang
)pair
(pair
(string_"video_type") string_"video_type"
(identifier_video_type) identifier_video_type
)pair
(pair
(string_"category") string_"category"
(identifier_category) identifier_category
)pair
(pair
(string_"min_width") string_"min_width"
(identifier_min_width) identifier_min_width
)pair
(pair
(string_"min_height") string_"min_height"
(identifier_min_height) identifier_min_height
)pair
(pair
(string_"editors_choice") string_"editors_choice"
(identifier_editors_choice) identifier_editors_choice
)pair
(pair
(string_"safesearch") string_"safesearch"
(identifier_safesearch) identifier_safesearch
)pair
(pair
(string_"order") string_"order"
(identifier_order) identifier_order
)pair
(pair
(string_"page") string_"page"
(identifier_page) identifier_page
)pair
(pair
(string_"per_page") string_"per_page"
(identifier_per_page) identifier_per_page
)pair
(pair
(string_"callback") string_"callback"
(identifier_callback) identifier_callback
)pair
(pair
(string_"pretty") string_"pretty"
(identifier_pretty) identifier_pretty
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(identifier_get) identifier_get
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_root_url) identifier_root_url
)attribute
(string_"videos/") string_"videos/"
)binary_operator
(keyword_argument
(identifier_params) identifier_params
(identifier_payload) identifier_payload
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_text) identifier_text
)attribute
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
returns videos API data in dict
Videos search
:param q :type str :desc A URL encoded search term. If omitted,
all images are returned. This value may not exceed 100 characters.
Example: "yellow+flower"
Default: "yellow+flower"
:param lang :type str :desc Language code of the language to be searched in.
Accepted values: cs, da, de, en, es, fr, id, it, hu, nl, no, pl, pt, ro, sk, fi,
sv, tr, vi, th, bg, ru, el, ja, ko, zh
Default: "en"
For more info, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
:param video_type :type str :desc Filter results by video type.
Accepted values: "all", "film", "animation"
Default: "all"
:param category :type str :desc Filter results by category.
Accepted values: fashion, nature, backgrounds, science, education, people,
feelings, religion, health, places, animals, industry, food, computer, sports,
transportation, travel, buildings, business, music
:param min_width :type int :desc Minimum image width
Default: 0
:param min_height :type int :desc Minimum image height
Default: 0
:param editors_choice :type bool (python-pixabay use "true" and "false" string instead)
:desc Select images that have received
an Editor's Choice award.
Accepted values: "true", "false"
Default: "false"
:param safesearch :type bool (python-pixabay use "true" and "false" string instead)
:desc A flag indicating that only images suitable
for all ages should be returned.
Accepted values: "true", "false"
Default: "false"
:param order :type str :desc How the results should be ordered.
Accepted values: "popular", "latest"
Default: "popular"
:param page :type int :desc Returned search results are paginated.
Use this parameter to select the page number.
Default: 1
:param per_page :type int :desc Determine the number of results per page.
Accepted values: 3 - 200
Default: 20
:param callback :type str :desc JSONP callback function name
:param pretty :type bool (python-pixabay use "true" and "false" string instead)
:desc Indent JSON output. This option should not
be used in production.
Accepted values: "true", "false"
Default: "false"
Code Example
>>> from pixabay import Video
>>>
>>> video = Video("api_key")
>>> video.search(q="apple", page=1)
|
(module
(function_definition
(function_name_download_spt_forecast) function_name_download_spt_forecast
(parameters
(identifier_self) identifier_self
(identifier_extract_directory) identifier_extract_directory
)parameters
(block
(expression_statement
(assignment
(identifier_needed_vars) identifier_needed_vars
(tuple
(attribute
(identifier_self) identifier_self
(identifier_spt_watershed_name) identifier_spt_watershed_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_spt_subbasin_name) identifier_spt_subbasin_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_spt_forecast_date_string) identifier_spt_forecast_date_string
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ckan_engine_url) identifier_ckan_engine_url
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ckan_api_key) identifier_ckan_api_key
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ckan_owner_organization) identifier_ckan_owner_organization
)attribute
)tuple
)assignment
)expression_statement
(if_statement
(comparison_operator
(None) None
(identifier_needed_vars) identifier_needed_vars
)comparison_operator
(block
(expression_statement
(assignment
(identifier_er_manager) identifier_er_manager
(call
(identifier_ECMWFRAPIDDatasetManager) identifier_ECMWFRAPIDDatasetManager
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ckan_engine_url) identifier_ckan_engine_url
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ckan_api_key) identifier_ckan_api_key
)attribute
(attribute
(identifier_self) identifier_self
(identifier_ckan_owner_organization) identifier_ckan_owner_organization
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_er_manager) identifier_er_manager
(identifier_download_prediction_dataset) identifier_download_prediction_dataset
)attribute
(argument_list
(keyword_argument
(identifier_watershed) identifier_watershed
(attribute
(identifier_self) identifier_self
(identifier_spt_watershed_name) identifier_spt_watershed_name
)attribute
)keyword_argument
(keyword_argument
(identifier_subbasin) identifier_subbasin
(attribute
(identifier_self) identifier_self
(identifier_spt_subbasin_name) identifier_spt_subbasin_name
)attribute
)keyword_argument
(keyword_argument
(identifier_date_string) identifier_date_string
(attribute
(identifier_self) identifier_self
(identifier_spt_forecast_date_string) identifier_spt_forecast_date_string
)attribute
)keyword_argument
(keyword_argument
(identifier_extract_directory) identifier_extract_directory
(identifier_extract_directory) identifier_extract_directory
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(subscript
(call
(identifier_glob) identifier_glob
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_extract_directory) identifier_extract_directory
(attribute
(identifier_self) identifier_self
(identifier_spt_forecast_date_string) identifier_spt_forecast_date_string
)attribute
(string_"Qout*52.nc") string_"Qout*52.nc"
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_needed_vars) identifier_needed_vars
(identifier_count) identifier_count
)attribute
(argument_list
(None) None
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_needed_vars) identifier_needed_vars
)argument_list
)call
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Skipping streamflow forecast download ...") string_"Skipping streamflow forecast download ..."
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"To download the forecasts, you need to set: \n") string_"To download the forecasts, you need to set: \n"
(string_"spt_watershed_name, spt_subbasin_name, spt_forecast_date_string \n") string_"spt_watershed_name, spt_subbasin_name, spt_forecast_date_string \n"
(string_"ckan_engine_url, ckan_api_key, and ckan_owner_organization.") string_"ckan_engine_url, ckan_api_key, and ckan_owner_organization."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Downloads Streamflow Prediction Tool forecast data
|
(module
(function_definition
(function_name_setCenter) function_name_setCenter
(parameters
(identifier_self) identifier_self
(identifier_loc) identifier_loc
)parameters
(block
(expression_statement
(assignment
(identifier_offset) identifier_offset
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_getCenter) identifier_getCenter
)attribute
(argument_list
)argument_list
)call
(identifier_getOffset) identifier_getOffset
)attribute
(argument_list
(identifier_loc) identifier_loc
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setLocation) identifier_setLocation
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_getTopLeft) identifier_getTopLeft
)attribute
(argument_list
)argument_list
)call
(identifier_offset) identifier_offset
)attribute
(argument_list
(identifier_offset) identifier_offset
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Move this region so it is centered on ``loc``
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.