sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_throw) function_name_throw
(parameters
(identifier_self) identifier_self
(identifier_type) identifier_type
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(default_parameter
(identifier_traceback) identifier_traceback
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___wrapped__) identifier___wrapped__
)attribute
(identifier_throw) identifier_throw
)attribute
(argument_list
(identifier_type) identifier_type
(identifier_value) identifier_value
(identifier_traceback) identifier_traceback
)argument_list
)call
)return_statement
)block
)function_definition
)module | Raise an exception in this element |
(module
(function_definition
(function_name__resolve_value) function_name__resolve_value
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(identifier_str) identifier_str
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__metadata) identifier__metadata
)attribute
(identifier__meta) identifier__meta
)attribute
(identifier_elements) identifier_elements
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_element) identifier_element
(subscript
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__metadata) identifier__metadata
)attribute
(identifier__meta) identifier__meta
)attribute
(identifier_elements) identifier_elements
)attribute
(identifier_name) identifier_name
)subscript
)assignment
)expression_statement
(if_statement
(attribute
(identifier_element) identifier_element
(identifier_editable) identifier_editable
)attribute
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_value) identifier_value
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_populate_from) identifier_populate_from
(attribute
(identifier_element) identifier_element
(identifier_populate_from) identifier_populate_from
)attribute
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_populate_from) identifier_populate_from
(attribute
(identifier_collections) identifier_collections
(identifier_Callable) identifier_Callable
)attribute
)argument_list
)call
(block
(return_statement
(call
(identifier_populate_from) identifier_populate_from
(argument_list
(identifier_self) identifier_self
(dictionary_splat
(call
(attribute
(identifier_self) identifier_self
(identifier__populate_from_kwargs) identifier__populate_from_kwargs
)attribute
(argument_list
)argument_list
)call
)dictionary_splat
)argument_list
)call
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_populate_from) identifier_populate_from
(identifier_Literal) identifier_Literal
)argument_list
)call
(block
(return_statement
(attribute
(identifier_populate_from) identifier_populate_from
(identifier_value) identifier_value
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_populate_from) identifier_populate_from
(identifier_NotSet) identifier_NotSet
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__resolve_value) identifier__resolve_value
)attribute
(argument_list
(identifier_populate_from) identifier_populate_from
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__metadata) identifier__metadata
)attribute
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(attribute
(identifier_collections) identifier_collections
(identifier_Callable) identifier_Callable
)attribute
)argument_list
)call
(block
(if_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_value) identifier_value
(string_'__self__') string_'__self__'
(None) None
)argument_list
)call
(block
(return_statement
(call
(identifier_value) identifier_value
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_value) identifier_value
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__metadata) identifier__metadata
)attribute
(keyword_argument
(identifier_obj) identifier_obj
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Returns an appropriate value for the given name. |
(module
(function_definition
(function_name_print) function_name_print
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_output_file) identifier_output_file
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)default_parameter
(default_parameter
(identifier_log) identifier_log
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_soln) identifier_soln
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_soln) identifier_soln
(keyword_argument
(identifier_file) identifier_file
(identifier_output_file) identifier_output_file
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_SOLN_SEP) identifier_SOLN_SEP
(keyword_argument
(identifier_file) identifier_file
(identifier_output_file) identifier_output_file
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_SEARCH_COMPLETE) identifier_SEARCH_COMPLETE
(keyword_argument
(identifier_file) identifier_file
(identifier_output_file) identifier_output_file
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(integer_1) integer_1
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__n_solns) identifier__n_solns
)attribute
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(integer_2) integer_2
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(subscript
(dictionary
(pair
(attribute
(identifier_Status) identifier_Status
(identifier_INCOMPLETE) identifier_INCOMPLETE
)attribute
(identifier_ERROR) identifier_ERROR
)pair
(pair
(attribute
(identifier_Status) identifier_Status
(identifier_UNKNOWN) identifier_UNKNOWN
)attribute
(identifier_UNKNOWN) identifier_UNKNOWN
)pair
(pair
(attribute
(identifier_Status) identifier_Status
(identifier_UNSATISFIABLE) identifier_UNSATISFIABLE
)attribute
(identifier_UNSATISFIABLE) identifier_UNSATISFIABLE
)pair
(pair
(attribute
(identifier_Status) identifier_Status
(identifier_UNBOUNDED) identifier_UNBOUNDED
)attribute
(identifier_UNBOUNDED) identifier_UNBOUNDED
)pair
(pair
(attribute
(identifier_Status) identifier_Status
(identifier_UNSATorUNBOUNDED) identifier_UNSATorUNBOUNDED
)attribute
(identifier_UNSATorUNBOUNDED) identifier_UNSATorUNBOUNDED
)pair
(pair
(attribute
(identifier_Status) identifier_Status
(identifier_ERROR) identifier_ERROR
)attribute
(identifier_ERROR) identifier_ERROR
)pair
)dictionary
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
)subscript
(keyword_argument
(identifier_file) identifier_file
(identifier_output_file) identifier_output_file
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_stderr) identifier_stderr
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stderr) identifier_stderr
)attribute
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(elif_clause
(identifier_log) identifier_log
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(identifier_output_file) identifier_output_file
)keyword_argument
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Print the solution stream |
(module
(function_definition
(function_name_print_error) function_name_print_error
(parameters
(identifier_msg) identifier_msg
(default_parameter
(identifier_color) identifier_color
(True) True
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_color) identifier_color
(call
(identifier_is_posix) identifier_is_posix
(argument_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(identifier_safe_print) identifier_safe_print
(argument_list
(binary_operator
(string_u"%s[ERRO] %s%s") string_u"%s[ERRO] %s%s"
(tuple
(identifier_ANSI_ERROR) identifier_ANSI_ERROR
(identifier_msg) identifier_msg
(identifier_ANSI_END) identifier_ANSI_END
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_safe_print) identifier_safe_print
(argument_list
(binary_operator
(string_u"[ERRO] %s") string_u"[ERRO] %s"
(parenthesized_expression
(identifier_msg) identifier_msg
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Print an error message.
:param string msg: the message
:param bool color: if ``True``, print with POSIX color |
(module
(function_definition
(function_name_Printer) function_name_Printer
(parameters
(default_parameter
(identifier_open_file) identifier_open_file
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)default_parameter
(default_parameter
(identifier_closing) identifier_closing
(False) False
)default_parameter
)parameters
(block
(try_statement
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_logstr) identifier_logstr
(parenthesized_expression
(yield
)yield
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_open_file) identifier_open_file
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_logstr) identifier_logstr
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_open_file) identifier_open_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
)block
)while_statement
)block
(except_clause
(identifier_GeneratorExit) identifier_GeneratorExit
(block
(if_statement
(identifier_closing) identifier_closing
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_open_file) identifier_open_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Prints items with a timestamp. |
(module
(function_definition
(function_name_encrypt) function_name_encrypt
(parameters
(identifier_self) identifier_self
(identifier_plaintext) identifier_plaintext
(default_parameter
(identifier_n) identifier_n
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ed) identifier_ed
)attribute
(string_'e') string_'e'
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_mode) identifier_mode
)attribute
(identifier_MODE_XTS) identifier_MODE_XTS
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_chain) identifier_chain
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_plaintext) identifier_plaintext
(string_'e') string_'e'
(identifier_n) identifier_n
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_chain) identifier_chain
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_plaintext) identifier_plaintext
(string_'e') string_'e'
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Encrypt some plaintext
plaintext = a string of binary data
n = the 'tweak' value when the chaining mode is XTS
The encrypt function will encrypt the supplied plaintext.
The behavior varies slightly depending on the chaining mode.
ECB, CBC:
---------
When the supplied plaintext is not a multiple of the blocksize
of the cipher, then the remaining plaintext will be cached.
The next time the encrypt function is called with some plaintext,
the new plaintext will be concatenated to the cache and then
cache+plaintext will be encrypted.
CFB, OFB, CTR:
--------------
When the chaining mode allows the cipher to act as a stream cipher,
the encrypt function will always encrypt all of the supplied
plaintext immediately. No cache will be kept.
XTS:
----
Because the handling of the last two blocks is linked,
it needs the whole block of plaintext to be supplied at once.
Every encrypt function called on a XTS cipher will output
an encrypted block based on the current supplied plaintext block.
CMAC:
-----
Everytime the function is called, the hash from the input data is calculated.
No finalizing needed.
The hashlength is equal to block size of the used block cipher. |
(module
(function_definition
(function_name_get_peers_public_keys) function_name_get_peers_public_keys
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__lock) identifier__lock
)attribute
)with_item
)with_clause
(block
(return_statement
(list_comprehension
(identifier_key) identifier_key
(for_in_clause
(identifier_key) identifier_key
(generator_expression
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__network) identifier__network
)attribute
(identifier_connection_id_to_public_key) identifier_connection_id_to_public_key
)attribute
(argument_list
(identifier_peer) identifier_peer
)argument_list
)call
(for_in_clause
(identifier_peer) identifier_peer
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__peers) identifier__peers
)attribute
)argument_list
)call
)for_in_clause
)generator_expression
)for_in_clause
(if_clause
(comparison_operator
(identifier_key) identifier_key
(None) None
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)with_statement
)block
)function_definition
)module | Returns the list of public keys for all peers. |
(module
(function_definition
(function_name_allow_inbound_connection) function_name_allow_inbound_connection
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(concatenated_string
(string_"Determining whether inbound connection should ") string_"Determining whether inbound connection should "
(string_"be allowed. num connections: %s max %s") string_"be allowed. num connections: %s max %s"
)concatenated_string
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__connections) identifier__connections
)attribute
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__max_incoming_connections) identifier__max_incoming_connections
)attribute
)argument_list
)call
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__max_incoming_connections) identifier__max_incoming_connections
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__connections) identifier__connections
)attribute
)argument_list
)call
)comparison_operator
)return_statement
)block
)function_definition
)module | Determines if an additional incoming network connection
should be permitted.
Returns:
bool |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_NGram) identifier_NGram
(identifier_self) identifier_self
)argument_list
)call
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__grams) identifier__grams
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_length) identifier_length
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module | Remove all elements from this set.
>>> from ngram import NGram
>>> n = NGram(['spam', 'eggs'])
>>> sorted(list(n))
['eggs', 'spam']
>>> n.clear()
>>> list(n)
[] |
(module
(function_definition
(function_name__get_msiexec) function_name__get_msiexec
(parameters
(identifier_use_msiexec) identifier_use_msiexec
)parameters
(block
(if_statement
(comparison_operator
(identifier_use_msiexec) identifier_use_msiexec
(False) False
)comparison_operator
(block
(return_statement
(expression_list
(False) False
(string_'') string_''
)expression_list
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_use_msiexec) identifier_use_msiexec
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_use_msiexec) identifier_use_msiexec
)argument_list
)call
(block
(return_statement
(expression_list
(True) True
(identifier_use_msiexec) identifier_use_msiexec
)expression_list
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(concatenated_string
(string_"msiexec path '%s' not found. Using system registered ") string_"msiexec path '%s' not found. Using system registered "
(string_"msiexec instead") string_"msiexec instead"
)concatenated_string
(identifier_use_msiexec) identifier_use_msiexec
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_use_msiexec) identifier_use_msiexec
(True) True
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_use_msiexec) identifier_use_msiexec
(True) True
)comparison_operator
(block
(return_statement
(expression_list
(True) True
(string_'msiexec') string_'msiexec'
)expression_list
)return_statement
)block
)if_statement
)block
)function_definition
)module | Return if msiexec.exe will be used and the command to invoke it. |
(module
(function_definition
(function_name__assert_category) function_name__assert_category
(parameters
(identifier_self) identifier_self
(identifier_category) identifier_category
)parameters
(block
(expression_statement
(assignment
(identifier_category) identifier_category
(call
(attribute
(identifier_category) identifier_category
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_valid_categories) identifier_valid_categories
(list
(string_'cable') string_'cable'
(string_'broadcast') string_'broadcast'
(string_'final') string_'final'
(string_'tv') string_'tv'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_assert_msg) identifier_assert_msg
(binary_operator
(string_"%s is not a valid category.") string_"%s is not a valid category."
(parenthesized_expression
(identifier_category) identifier_category
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(assert_statement
(parenthesized_expression
(comparison_operator
(identifier_category) identifier_category
(identifier_valid_categories) identifier_valid_categories
)comparison_operator
)parenthesized_expression
(identifier_assert_msg) identifier_assert_msg
)assert_statement
)block
)function_definition
)module | Validate category argument |
(module
(function_definition
(function_name_download_preview) function_name_download_preview
(parameters
(identifier_self) identifier_self
(identifier_image) identifier_image
(default_parameter
(identifier_url_field) identifier_url_field
(string_'url') string_'url'
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_download) identifier_download
)attribute
(argument_list
(identifier_image) identifier_image
(keyword_argument
(identifier_url_field) identifier_url_field
(identifier_url_field) identifier_url_field
)keyword_argument
(keyword_argument
(identifier_suffix) identifier_suffix
(string_'preview') string_'preview'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Downlaod the binary data of an image attachment at preview size.
:param str url_field: the field of the image with the right URL
:return: binary image data
:rtype: bytes |
(module
(function_definition
(function_name_measures) function_name_measures
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_ambry) identifier_ambry
(identifier_valuetype) identifier_valuetype
(identifier_core) identifier_core
)dotted_name
(dotted_name
(identifier_ROLE) identifier_ROLE
)dotted_name
)import_from_statement
(return_statement
(list_comprehension
(identifier_c) identifier_c
(for_in_clause
(identifier_c) identifier_c
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_c) identifier_c
(identifier_role) identifier_role
)attribute
(attribute
(identifier_ROLE) identifier_ROLE
(identifier_MEASURE) identifier_MEASURE
)attribute
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Iterate over all measures |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_provider_id) identifier_provider_id
)parameters
(block
(expression_statement
(assignment
(identifier_provider) identifier_provider
(call
(identifier_get_provider_or_404) identifier_get_provider_or_404
(argument_list
(identifier_provider_id) identifier_provider_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_callback_url) identifier_callback_url
(call
(identifier_get_authorize_callback) identifier_get_authorize_callback
(argument_list
(string_'connect') string_'connect'
(identifier_provider_id) identifier_provider_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_allow_view) identifier_allow_view
(call
(identifier_get_url) identifier_get_url
(argument_list
(call
(identifier_config_value) identifier_config_value
(argument_list
(string_'CONNECT_ALLOW_VIEW') string_'CONNECT_ALLOW_VIEW'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pc) identifier_pc
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_form) identifier_form
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'next') string_'next'
(identifier_allow_view) identifier_allow_view
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_session) identifier_session
(call
(identifier_config_value) identifier_config_value
(argument_list
(string_'POST_OAUTH_CONNECT_SESSION_KEY') string_'POST_OAUTH_CONNECT_SESSION_KEY'
)argument_list
)call
)subscript
(identifier_pc) identifier_pc
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_provider) identifier_provider
(identifier_authorize) identifier_authorize
)attribute
(argument_list
(identifier_callback_url) identifier_callback_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Starts the provider connection OAuth flow |
(module
(function_definition
(function_name_fit_to_structure) function_name_fit_to_structure
(parameters
(identifier_self) identifier_self
(identifier_structure) identifier_structure
(default_parameter
(identifier_symprec) identifier_symprec
(float_0.1) float_0.1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_sga) identifier_sga
(call
(identifier_SpacegroupAnalyzer) identifier_SpacegroupAnalyzer
(argument_list
(identifier_structure) identifier_structure
(identifier_symprec) identifier_symprec
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_symm_ops) identifier_symm_ops
(call
(attribute
(identifier_sga) identifier_sga
(identifier_get_symmetry_operations) identifier_get_symmetry_operations
)attribute
(argument_list
(keyword_argument
(identifier_cartesian) identifier_cartesian
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(identifier_sum) identifier_sum
(argument_list
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_symm_op) identifier_symm_op
)argument_list
)call
(for_in_clause
(identifier_symm_op) identifier_symm_op
(identifier_symm_ops) identifier_symm_ops
)for_in_clause
)list_comprehension
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_symm_ops) identifier_symm_ops
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Returns a tensor that is invariant with respect to symmetry
operations corresponding to a structure
Args:
structure (Structure): structure from which to generate
symmetry operations
symprec (float): symmetry tolerance for the Spacegroup Analyzer
used to generate the symmetry operations |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
(default_parameter
(identifier_index) identifier_index
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_type) identifier_type
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_dict) identifier_dict
)attribute
(identifier_key) identifier_key
)subscript
(identifier_index) identifier_index
)subscript
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(identifier_type) identifier_type
(argument_list
(identifier_val) identifier_val
)argument_list
)call
(identifier_type) identifier_type
(identifier_val) identifier_val
)conditional_expression
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(identifier_e) identifier_e
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)function_definition
)module | Return the most recent value for a key.
:param default: The default value to be returned if the key is not
present or the type conversion fails.
:param index: An index for the list of available values.
:param type: If defined, this callable is used to cast the value
into a specific type. Exception are suppressed and result in
the default value to be returned. |
(module
(function_definition
(function_name_populate_obj) function_name_populate_obj
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_obj) identifier_obj
(None) None
)default_parameter
(default_parameter
(identifier_form) identifier_form
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_form) identifier_form
)not_operator
(block
(expression_statement
(assignment
(identifier_form) identifier_form
(attribute
(attribute
(identifier_current_context) identifier_current_context
(identifier_data) identifier_data
)attribute
(identifier_form) identifier_form
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_obj) identifier_obj
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_AttrDict) identifier_AttrDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_form) identifier_form
(identifier_populate_obj) identifier_populate_obj
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)expression_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Populates an object with the form's data |
(module
(function_definition
(function_name_step_interpolation) function_name_step_interpolation
(parameters
(identifier_x) identifier_x
(identifier_xp) identifier_xp
(identifier_fp) identifier_fp
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(delete_statement
(identifier_kwargs) identifier_kwargs
)delete_statement
(expression_statement
(assignment
(identifier_xp) identifier_xp
(call
(attribute
(identifier_np) identifier_np
(identifier_expand_dims) identifier_expand_dims
)attribute
(argument_list
(identifier_xp) identifier_xp
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_lower) identifier_lower
(identifier_upper) identifier_upper
)pattern_list
(expression_list
(subscript
(identifier_xp) identifier_xp
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(subscript
(identifier_xp) identifier_xp
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conditions) identifier_conditions
(binary_operator
(parenthesized_expression
(comparison_operator
(identifier_x) identifier_x
(identifier_lower) identifier_lower
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_x) identifier_x
(identifier_upper) identifier_upper
)comparison_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conditions) identifier_conditions
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(list
(list
(comparison_operator
(identifier_x) identifier_x
(subscript
(identifier_xp) identifier_xp
(integer_0) integer_0
)subscript
)comparison_operator
)list
(identifier_conditions) identifier_conditions
(list
(comparison_operator
(identifier_x) identifier_x
(subscript
(identifier_xp) identifier_xp
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)comparison_operator
)list
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(list
(list
(subscript
(identifier_fp) identifier_fp
(integer_0) integer_0
)subscript
)list
(identifier_fp) identifier_fp
)list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_conditions) identifier_conditions
(integer_0) integer_0
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)argument_list
)call
(string_'xp must be increasing.') string_'xp must be increasing.'
)assert_statement
(expression_statement
(assignment
(identifier_indices) identifier_indices
(call
(attribute
(identifier_np) identifier_np
(identifier_argmax) identifier_argmax
)attribute
(argument_list
(identifier_conditions) identifier_conditions
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(subscript
(identifier_values) identifier_values
(identifier_indices) identifier_indices
)subscript
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_float32) identifier_float32
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Multi-dimensional step interpolation.
Returns the multi-dimensional step interpolant to a function with
given discrete data points (xp, fp), evaluated at x.
Note that *N and *M indicate zero or more dimensions.
Args:
x: An array of shape [*N], the x-coordinates of the interpolated values.
xp: An np.array of shape [D], the x-coordinates of the data points, must be
increasing.
fp: An np.array of shape [D, *M], the y-coordinates of the data points.
**kwargs: Unused.
Returns:
An array of shape [*N, *M], the interpolated values. |
(module
(function_definition
(function_name_create_thumbnail) function_name_create_thumbnail
(parameters
(identifier_self) identifier_self
(identifier_image) identifier_image
(identifier_geometry) identifier_geometry
(default_parameter
(identifier_upscale) identifier_upscale
(True) True
)default_parameter
(default_parameter
(identifier_crop) identifier_crop
(None) None
)default_parameter
(default_parameter
(identifier_colorspace) identifier_colorspace
(string_'RGB') string_'RGB'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_self) identifier_self
(identifier_colorspace) identifier_colorspace
)attribute
(argument_list
(identifier_image) identifier_image
(identifier_colorspace) identifier_colorspace
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_self) identifier_self
(identifier_scale) identifier_scale
)attribute
(argument_list
(identifier_image) identifier_image
(identifier_geometry) identifier_geometry
(identifier_upscale) identifier_upscale
(identifier_crop) identifier_crop
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_self) identifier_self
(identifier_crop) identifier_crop
)attribute
(argument_list
(identifier_image) identifier_image
(identifier_geometry) identifier_geometry
(identifier_crop) identifier_crop
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_image) identifier_image
)return_statement
)block
)function_definition
)module | This serves as a really basic example of a thumbnailing method. You
may want to implement your own logic, but this will work for
simple cases.
:param Image image: This is your engine's ``Image`` object. For
PIL it's PIL.Image.
:param tuple geometry: Geometry of the image in the format of (x,y).
:keyword str crop: A cropping offset string. This is either one or two
space-separated values. If only one value is specified, the cropping
amount (pixels or percentage) for both X and Y dimensions is the
amount given. If two values are specified, X and Y dimension cropping
may be set independently. Some examples: '50% 50%', '50px 20px',
'50%', '50px'.
:keyword str colorspace: The colorspace to set/convert the image to.
This is typically 'RGB' or 'GRAY'.
:returns: The thumbnailed image. The returned type depends on your
choice of Engine. |
(module
(function_definition
(function_name_selectAll) function_name_selectAll
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_currLayer) identifier_currLayer
(attribute
(identifier_self) identifier_self
(identifier__currentLayer) identifier__currentLayer
)attribute
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_layer) identifier_layer
(call
(attribute
(identifier_item) identifier_item
(identifier_layer) identifier_layer
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_layer) identifier_layer
(identifier_currLayer) identifier_currLayer
)comparison_operator
(not_operator
(identifier_layer) identifier_layer
)not_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_item) identifier_item
(identifier_setSelected) identifier_setSelected
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Selects all the items in the scene. |
(module
(function_definition
(function_name_FillDeviceCapabilities) function_name_FillDeviceCapabilities
(parameters
(identifier_device) identifier_device
(identifier_descriptor) identifier_descriptor
)parameters
(block
(expression_statement
(assignment
(identifier_preparsed_data) identifier_preparsed_data
(call
(identifier_PHIDP_PREPARSED_DATA) identifier_PHIDP_PREPARSED_DATA
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_hid) identifier_hid
(identifier_HidD_GetPreparsedData) identifier_HidD_GetPreparsedData
)attribute
(argument_list
(identifier_device) identifier_device
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_preparsed_data) identifier_preparsed_data
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ret) identifier_ret
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_WinError) identifier_WinError
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_caps) identifier_caps
(call
(identifier_HidCapabilities) identifier_HidCapabilities
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_hid) identifier_hid
(identifier_HidP_GetCaps) identifier_HidP_GetCaps
)attribute
(argument_list
(identifier_preparsed_data) identifier_preparsed_data
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_caps) identifier_caps
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ret) identifier_ret
(identifier_HIDP_STATUS_SUCCESS) identifier_HIDP_STATUS_SUCCESS
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_WinError) identifier_WinError
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_descriptor) identifier_descriptor
(identifier_usage) identifier_usage
)attribute
(attribute
(identifier_caps) identifier_caps
(identifier_Usage) identifier_Usage
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_descriptor) identifier_descriptor
(identifier_usage_page) identifier_usage_page
)attribute
(attribute
(identifier_caps) identifier_caps
(identifier_UsagePage) identifier_UsagePage
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_descriptor) identifier_descriptor
(identifier_internal_max_in_report_len) identifier_internal_max_in_report_len
)attribute
(attribute
(identifier_caps) identifier_caps
(identifier_InputReportByteLength) identifier_InputReportByteLength
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_descriptor) identifier_descriptor
(identifier_internal_max_out_report_len) identifier_internal_max_out_report_len
)attribute
(attribute
(identifier_caps) identifier_caps
(identifier_OutputReportByteLength) identifier_OutputReportByteLength
)attribute
)assignment
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_hid) identifier_hid
(identifier_HidD_FreePreparsedData) identifier_HidD_FreePreparsedData
)attribute
(argument_list
(identifier_preparsed_data) identifier_preparsed_data
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Fill out device capabilities.
Fills the HidCapabilitites of the device into descriptor.
Args:
device: A handle to the open device
descriptor: DeviceDescriptor to populate with the
capabilities
Returns:
none
Raises:
WindowsError when unable to obtain capabilitites. |
(module
(function_definition
(function_name_what) function_name_what
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_originalFromDt) identifier_originalFromDt
(call
(attribute
(attribute
(identifier_dt) identifier_dt
(identifier_datetime) identifier_datetime
)attribute
(identifier_combine) identifier_combine
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_except_date) identifier_except_date
)attribute
(call
(identifier_timeFrom) identifier_timeFrom
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_overrides) identifier_overrides
)attribute
(identifier_time_from) identifier_time_from
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changedFromDt) identifier_changedFromDt
(call
(attribute
(attribute
(identifier_dt) identifier_dt
(identifier_datetime) identifier_datetime
)attribute
(identifier_combine) identifier_combine
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_date) identifier_date
)attribute
(call
(identifier_timeFrom) identifier_timeFrom
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_time_from) identifier_time_from
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_originalDaysDelta) identifier_originalDaysDelta
(call
(attribute
(identifier_dt) identifier_dt
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_days) identifier_days
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_overrides) identifier_overrides
)attribute
(identifier_num_days) identifier_num_days
)attribute
(integer_1) integer_1
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_originalToDt) identifier_originalToDt
(call
(identifier_getAwareDatetime) identifier_getAwareDatetime
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_except_date) identifier_except_date
)attribute
(identifier_originalDaysDelta) identifier_originalDaysDelta
)binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_overrides) identifier_overrides
)attribute
(identifier_time_to) identifier_time_to
)attribute
(attribute
(identifier_self) identifier_self
(identifier_tz) identifier_tz
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changedDaysDelta) identifier_changedDaysDelta
(call
(attribute
(identifier_dt) identifier_dt
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_days) identifier_days
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_num_days) identifier_num_days
)attribute
(integer_1) integer_1
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changedToDt) identifier_changedToDt
(call
(identifier_getAwareDatetime) identifier_getAwareDatetime
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_except_date) identifier_except_date
)attribute
(identifier_changedDaysDelta) identifier_changedDaysDelta
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_time_to) identifier_time_to
)attribute
(attribute
(identifier_self) identifier_self
(identifier_tz) identifier_tz
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_originalFromDt) identifier_originalFromDt
(identifier_changedFromDt) identifier_changedFromDt
)comparison_operator
(block
(return_statement
(call
(identifier__) identifier__
(argument_list
(string_"Postponed") string_"Postponed"
)argument_list
)call
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(identifier_originalFromDt) identifier_originalFromDt
(identifier_changedFromDt) identifier_changedFromDt
)comparison_operator
(comparison_operator
(identifier_originalToDt) identifier_originalToDt
(identifier_changedToDt) identifier_changedToDt
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier__) identifier__
(argument_list
(string_"Rescheduled") string_"Rescheduled"
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | May return a 'postponed' or 'rescheduled' string depending what
the start and finish time of the event has been changed to. |
(module
(function_definition
(function_name__filter_child_model_fields) function_name__filter_child_model_fields
(parameters
(identifier_cls) identifier_cls
(identifier_fields) identifier_fields
)parameters
(block
(expression_statement
(assignment
(identifier_indexes_to_remove) identifier_indexes_to_remove
(call
(identifier_set) identifier_set
(argument_list
(list
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index1) identifier_index1
(identifier_field1) identifier_field1
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_fields) identifier_fields
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_index2) identifier_index2
(identifier_field2) identifier_field2
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_fields) identifier_fields
)argument_list
)call
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_index1) identifier_index1
(identifier_index2) identifier_index2
)comparison_operator
(comparison_operator
(identifier_index1) identifier_index1
(identifier_indexes_to_remove) identifier_indexes_to_remove
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_index2) identifier_index2
(identifier_indexes_to_remove) identifier_indexes_to_remove
)comparison_operator
)boolean_operator
(block
(if_statement
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(attribute
(identifier_field1) identifier_field1
(identifier_related_model) identifier_related_model
)attribute
(attribute
(identifier_field2) identifier_field2
(identifier_related_model) identifier_related_model
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_indexes_to_remove) identifier_indexes_to_remove
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_index1) identifier_index1
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(attribute
(identifier_field2) identifier_field2
(identifier_related_model) identifier_related_model
)attribute
(attribute
(identifier_field1) identifier_field1
(identifier_related_model) identifier_related_model
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_indexes_to_remove) identifier_indexes_to_remove
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_index2) identifier_index2
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_fields) identifier_fields
(list_comprehension
(identifier_field) identifier_field
(for_in_clause
(pattern_list
(identifier_index) identifier_index
(identifier_field) identifier_field
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_fields) identifier_fields
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_index) identifier_index
(identifier_indexes_to_remove) identifier_indexes_to_remove
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_fields) identifier_fields
)return_statement
)block
)function_definition
)module | Keep only related model fields.
Example: Inherited models: A -> B -> C
B has one-to-many relationship to BMany.
after inspection BMany would have links to B and C. Keep only B. Parent
model A could not be used (It would not be in fields)
:param list fields: model fields.
:return list fields: filtered fields. |
(module
(function_definition
(function_name_dbmin05years) function_name_dbmin05years
(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_float) identifier_float
(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 float ') string_'value {} need to be of type float '
(string_'for field `dbmin05years`') string_'for field `dbmin05years`'
)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
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__dbmin05years) identifier__dbmin05years
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Corresponds to IDD Field `dbmin05years`
5-year return period values for minimum extreme dry-bulb temperature
Args:
value (float): value for IDD Field `dbmin05years`
Unit: C
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_get_downstream_causal_subgraph) function_name_get_downstream_causal_subgraph
(parameters
(identifier_graph) identifier_graph
(typed_parameter
(identifier_nbunch) identifier_nbunch
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_BaseEntity) identifier_BaseEntity
)type
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(identifier_BaseEntity) identifier_BaseEntity
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(block
(return_statement
(call
(identifier_get_subgraph_by_edge_filter) identifier_get_subgraph_by_edge_filter
(argument_list
(identifier_graph) identifier_graph
(call
(identifier_build_downstream_edge_predicate) identifier_build_downstream_edge_predicate
(argument_list
(identifier_nbunch) identifier_nbunch
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Induce a sub-graph from all of the downstream causal entities of the nodes in the nbunch.
:type graph: pybel.BELGraph
:rtype: pybel.BELGraph |
(module
(function_definition
(function_name_show_help) function_name_show_help
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(call
(attribute
(identifier_discord) identifier_discord
(identifier_Embed) identifier_Embed
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_messages) identifier_messages
(list
(string_'Welcome to the interactive paginator!\n') string_'Welcome to the interactive paginator!\n'
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_append) identifier_append
)attribute
(argument_list
(concatenated_string
(string_'This interactively allows you to see pages of text by navigating with ') string_'This interactively allows you to see pages of text by navigating with '
(string_'reactions. They are as follows:\n') string_'reactions. They are as follows:\n'
)concatenated_string
)argument_list
)call
)expression_statement
(for_statement
(tuple_pattern
(identifier_emoji) identifier_emoji
(identifier_func) identifier_func
)tuple_pattern
(attribute
(identifier_self) identifier_self
(identifier_reaction_emojis) identifier_reaction_emojis
)attribute
(block
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'%s %s') string_'%s %s'
(tuple
(identifier_emoji) identifier_emoji
(attribute
(identifier_func) identifier_func
(identifier___doc__) identifier___doc__
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_e) identifier_e
(identifier_description) identifier_description
)attribute
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_messages) identifier_messages
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_e) identifier_e
(identifier_colour) identifier_colour
)attribute
(integer_0x738bd7) integer_0x738bd7
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_e) identifier_e
(identifier_set_footer) identifier_set_footer
)attribute
(argument_list
(keyword_argument
(identifier_text) identifier_text
(binary_operator
(string_'We were on page %s before this message.') string_'We were on page %s before this message.'
(attribute
(identifier_self) identifier_self
(identifier_current_page) identifier_current_page
)attribute
)binary_operator
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bot) identifier_bot
)attribute
(identifier_edit_message) identifier_edit_message
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_message) identifier_message
)attribute
(keyword_argument
(identifier_embed) identifier_embed
(identifier_e) identifier_e
)keyword_argument
)argument_list
)call
)await
)expression_statement
(function_definition
(function_name_go_back_to_current_page) function_name_go_back_to_current_page
(parameters
)parameters
(block
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_60.0) float_60.0
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_show_current_page) identifier_show_current_page
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
)function_definition
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bot) identifier_bot
)attribute
(identifier_loop) identifier_loop
)attribute
(identifier_create_task) identifier_create_task
)attribute
(argument_list
(call
(identifier_go_back_to_current_page) identifier_go_back_to_current_page
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | shows this message |
(module
(function_definition
(function_name_languages) function_name_languages
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_language) identifier_language
(subscript
(attribute
(identifier_PageView) identifier_PageView
(identifier_headers) identifier_headers
)attribute
(string_'Accept-Language') string_'Accept-Language'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_first_language) identifier_first_language
(call
(attribute
(identifier_fn) identifier_fn
(identifier_SubStr) identifier_SubStr
)attribute
(argument_list
(identifier_language) identifier_language
(integer_1) integer_1
(call
(attribute
(identifier_fn) identifier_fn
(identifier_StrPos) identifier_StrPos
)attribute
(argument_list
(identifier_language) identifier_language
(string_';') string_';'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_query) identifier_get_query
)attribute
(argument_list
)argument_list
)call
(identifier_select) identifier_select
)attribute
(argument_list
(identifier_first_language) identifier_first_language
(call
(attribute
(identifier_fn) identifier_fn
(identifier_Count) identifier_Count
)attribute
(argument_list
(attribute
(identifier_PageView) identifier_PageView
(identifier_id) identifier_id
)attribute
)argument_list
)call
)argument_list
)call
(identifier_group_by) identifier_group_by
)attribute
(argument_list
(identifier_first_language) identifier_first_language
)argument_list
)call
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_fn) identifier_fn
(identifier_Count) identifier_Count
)attribute
(argument_list
(attribute
(identifier_PageView) identifier_PageView
(identifier_id) identifier_id
)attribute
)argument_list
)call
(identifier_desc) identifier_desc
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_tuples) identifier_tuples
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Retrieve languages, sorted by most common to least common. The
Accept-Languages header sometimes looks weird, i.e.
"en-US,en;q=0.8,is;q=0.6,da;q=0.4" We will split on the first semi-
colon. |
(module
(function_definition
(function_name_graphql_impl) function_name_graphql_impl
(parameters
(identifier_schema) identifier_schema
(identifier_source) identifier_source
(identifier_root_value) identifier_root_value
(identifier_context_value) identifier_context_value
(identifier_variable_values) identifier_variable_values
(identifier_operation_name) identifier_operation_name
(identifier_field_resolver) identifier_field_resolver
(identifier_type_resolver) identifier_type_resolver
(identifier_middleware) identifier_middleware
(identifier_execution_context_class) identifier_execution_context_class
)parameters
(type
(generic_type
(identifier_AwaitableOrValue) identifier_AwaitableOrValue
(type_parameter
(type
(identifier_ExecutionResult) identifier_ExecutionResult
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_schema_validation_errors) identifier_schema_validation_errors
(call
(identifier_validate_schema) identifier_validate_schema
(argument_list
(identifier_schema) identifier_schema
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_schema_validation_errors) identifier_schema_validation_errors
(block
(return_statement
(call
(identifier_ExecutionResult) identifier_ExecutionResult
(argument_list
(keyword_argument
(identifier_data) identifier_data
(None) None
)keyword_argument
(keyword_argument
(identifier_errors) identifier_errors
(identifier_schema_validation_errors) identifier_schema_validation_errors
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_document) identifier_document
(call
(identifier_parse) identifier_parse
(argument_list
(identifier_source) identifier_source
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_GraphQLError) identifier_GraphQLError
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(return_statement
(call
(identifier_ExecutionResult) identifier_ExecutionResult
(argument_list
(keyword_argument
(identifier_data) identifier_data
(None) None
)keyword_argument
(keyword_argument
(identifier_errors) identifier_errors
(list
(identifier_error) identifier_error
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_error) identifier_error
(call
(identifier_GraphQLError) identifier_GraphQLError
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_error) identifier_error
)argument_list
)call
(keyword_argument
(identifier_original_error) identifier_original_error
(identifier_error) identifier_error
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_ExecutionResult) identifier_ExecutionResult
(argument_list
(keyword_argument
(identifier_data) identifier_data
(None) None
)keyword_argument
(keyword_argument
(identifier_errors) identifier_errors
(list
(identifier_error) identifier_error
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_validation) identifier_validation
)dotted_name
)relative_import
(dotted_name
(identifier_validate) identifier_validate
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_validation_errors) identifier_validation_errors
(call
(identifier_validate) identifier_validate
(argument_list
(identifier_schema) identifier_schema
(identifier_document) identifier_document
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_validation_errors) identifier_validation_errors
(block
(return_statement
(call
(identifier_ExecutionResult) identifier_ExecutionResult
(argument_list
(keyword_argument
(identifier_data) identifier_data
(None) None
)keyword_argument
(keyword_argument
(identifier_errors) identifier_errors
(identifier_validation_errors) identifier_validation_errors
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_execute) identifier_execute
(argument_list
(identifier_schema) identifier_schema
(identifier_document) identifier_document
(identifier_root_value) identifier_root_value
(identifier_context_value) identifier_context_value
(identifier_variable_values) identifier_variable_values
(identifier_operation_name) identifier_operation_name
(identifier_field_resolver) identifier_field_resolver
(identifier_type_resolver) identifier_type_resolver
(identifier_middleware) identifier_middleware
(identifier_execution_context_class) identifier_execution_context_class
)argument_list
)call
)return_statement
)block
)function_definition
)module | Execute a query, return asynchronously only if necessary. |
(module
(function_definition
(function_name_new) function_name_new
(parameters
(identifier_cls) identifier_cls
(identifier_mode) identifier_mode
(identifier_size) identifier_size
(default_parameter
(identifier_color) identifier_color
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_depth) identifier_depth
(integer_8) integer_8
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(identifier_cls) identifier_cls
(identifier__make_header) identifier__make_header
)attribute
(argument_list
(identifier_mode) identifier_mode
(identifier_size) identifier_size
(identifier_depth) identifier_depth
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image_data) identifier_image_data
(call
(attribute
(identifier_ImageData) identifier_ImageData
(identifier_new) identifier_new
)attribute
(argument_list
(identifier_header) identifier_header
(keyword_argument
(identifier_color) identifier_color
(identifier_color) identifier_color
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(call
(identifier_PSD) identifier_PSD
(argument_list
(keyword_argument
(identifier_header) identifier_header
(identifier_header) identifier_header
)keyword_argument
(keyword_argument
(identifier_image_data) identifier_image_data
(identifier_image_data) identifier_image_data
)keyword_argument
(keyword_argument
(identifier_image_resources) identifier_image_resources
(call
(attribute
(identifier_ImageResources) identifier_ImageResources
(identifier_new) identifier_new
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a new PSD document.
:param mode: The color mode to use for the new image.
:param size: A tuple containing (width, height) in pixels.
:param color: What color to use for the image. Default is black.
:return: A :py:class:`~psd_tools.api.psd_image.PSDImage` object. |
(module
(function_definition
(function_name_get_token) function_name_get_token
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_stripe) identifier_stripe
(identifier_Token) identifier_Token
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_card) identifier_card
(dictionary
(pair
(string_"number") string_"number"
(subscript
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
(string_"number") string_"number"
)subscript
)pair
(pair
(string_"exp_month") string_"exp_month"
(subscript
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
(string_"exp_month") string_"exp_month"
)subscript
)pair
(pair
(string_"exp_year") string_"exp_year"
(subscript
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
(string_"exp_year") string_"exp_year"
)subscript
)pair
(pair
(string_"cvc") string_"cvc"
(subscript
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
(string_"cvc") string_"cvc"
)subscript
)pair
)dictionary
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a stripe token for a card |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_is_valid) identifier_is_valid
)attribute
(block
(if_statement
(comparison_operator
(string_'_id') string_'_id'
(attribute
(identifier_self) identifier_self
(identifier__document) identifier__document
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_to_delete) identifier_to_delete
(call
(attribute
(identifier_self) identifier_self
(identifier_find_one) identifier_find_one
)attribute
(argument_list
(dictionary
(pair
(string_'_id') string_'_id'
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_to_delete) identifier_to_delete
(block
(expression_statement
(assignment
(identifier_before) identifier_before
(call
(attribute
(identifier_self) identifier_self
(identifier_before_delete) identifier_before_delete
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_before) identifier_before
(block
(return_statement
(identifier_before) identifier_before
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_delete_one) identifier_delete_one
)attribute
(argument_list
(dictionary
(pair
(string_'_id') string_'_id'
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_after_delete) identifier_after_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__document) identifier__document
)attribute
)return_statement
)block
(except_clause
(as_pattern
(identifier_PyMongoException) identifier_PyMongoException
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(return_statement
(call
(identifier_PyMongoError) identifier_PyMongoError
(argument_list
(keyword_argument
(identifier_error_message) identifier_error_message
(call
(attribute
(attribute
(identifier_exc) identifier_exc
(identifier_details) identifier_details
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'errmsg') string_'errmsg'
(call
(attribute
(attribute
(identifier_exc) identifier_exc
(identifier_details) identifier_details
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'err') string_'err'
(string_'PyMongoError.') string_'PyMongoError.'
)argument_list
)call
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_operation) identifier_operation
(string_'delete') string_'delete'
)keyword_argument
(keyword_argument
(identifier_collection) identifier_collection
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
)keyword_argument
(keyword_argument
(identifier_document) identifier_document
(attribute
(identifier_self) identifier_self
(identifier__document) identifier__document
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_DocumentNotFoundError) identifier_DocumentNotFoundError
(argument_list
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_UnidentifiedDocumentError) identifier_UnidentifiedDocumentError
(argument_list
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_self) identifier_self
(identifier__document) identifier__document
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Deletes the document if it is saved in the collection. |
(module
(function_definition
(function_name_extract_lrzip) function_name_extract_lrzip
(parameters
(identifier_archive) identifier_archive
(identifier_compression) identifier_compression
(identifier_cmd) identifier_cmd
(identifier_verbosity) identifier_verbosity
(identifier_interactive) identifier_interactive
(identifier_outdir) identifier_outdir
)parameters
(block
(expression_statement
(assignment
(identifier_cmdlist) identifier_cmdlist
(list
(identifier_cmd) identifier_cmd
(string_'-d') string_'-d'
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_verbosity) identifier_verbosity
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_cmdlist) identifier_cmdlist
(identifier_append) identifier_append
)attribute
(argument_list
(string_'-v') string_'-v'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_outfile) identifier_outfile
(call
(attribute
(identifier_util) identifier_util
(identifier_get_single_outfile) identifier_get_single_outfile
)attribute
(argument_list
(identifier_outdir) identifier_outdir
(identifier_archive) identifier_archive
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmdlist) identifier_cmdlist
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(string_"-o") string_"-o"
(identifier_outfile) identifier_outfile
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier_archive) identifier_archive
)argument_list
)call
)list
)argument_list
)call
)expression_statement
(return_statement
(identifier_cmdlist) identifier_cmdlist
)return_statement
)block
)function_definition
)module | Extract a LRZIP archive. |
(module
(function_definition
(function_name_cmd_logcat) function_name_cmd_logcat
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check_requirements) identifier_check_requirements
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_serial) identifier_serial
(subscript
(attribute
(identifier_self) identifier_self
(identifier_serials) identifier_serials
)attribute
(slice
(integer_0) integer_0
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_serial) identifier_serial
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_filters) identifier_filters
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buildozer) identifier_buildozer
)attribute
(identifier_config) identifier_config
)attribute
(identifier_getrawdefault) identifier_getrawdefault
)attribute
(argument_list
(string_"app") string_"app"
(string_"android.logcat_filters") string_"android.logcat_filters"
(string_"") string_""
(keyword_argument
(identifier_section_sep) identifier_section_sep
(string_":") string_":"
)keyword_argument
(keyword_argument
(identifier_split_char) identifier_split_char
(string_" ") string_" "
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filters) identifier_filters
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_filters) identifier_filters
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buildozer) identifier_buildozer
)attribute
(identifier_environ) identifier_environ
)attribute
(string_'ANDROID_SERIAL') string_'ANDROID_SERIAL'
)subscript
(subscript
(identifier_serial) identifier_serial
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buildozer) identifier_buildozer
)attribute
(identifier_cmd) identifier_cmd
)attribute
(argument_list
(call
(attribute
(string_'{adb} logcat {filters}') string_'{adb} logcat {filters}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_adb) identifier_adb
(attribute
(identifier_self) identifier_self
(identifier_adb_cmd) identifier_adb_cmd
)attribute
)keyword_argument
(keyword_argument
(identifier_filters) identifier_filters
(identifier_filters) identifier_filters
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buildozer) identifier_buildozer
)attribute
(identifier_global_platform_dir) identifier_global_platform_dir
)attribute
)keyword_argument
(keyword_argument
(identifier_show_output) identifier_show_output
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buildozer) identifier_buildozer
)attribute
(identifier_environ) identifier_environ
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'ANDROID_SERIAL') string_'ANDROID_SERIAL'
(None) None
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Show the log from the device |
(module
(function_definition
(function_name_do_load) function_name_do_load
(parameters
(identifier_self) identifier_self
(identifier_arg) identifier_arg
)parameters
(block
(import_from_statement
(dotted_name
(identifier_os) identifier_os
)dotted_name
(dotted_name
(identifier_path) identifier_path
)dotted_name
)import_from_statement
(import_statement
(dotted_name
(identifier_json) identifier_json
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_fullpath) identifier_fullpath
(call
(attribute
(identifier_path) identifier_path
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_path) identifier_path
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_fullpath) identifier_fullpath
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_fullpath) identifier_fullpath
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(for_statement
(identifier_stagepath) identifier_stagepath
(subscript
(identifier_data) identifier_data
(string_"tests") string_"tests"
)subscript
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_do_parse) identifier_do_parse
)attribute
(argument_list
(identifier_stagepath) identifier_stagepath
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
(subscript
(identifier_data) identifier_data
(string_"args") string_"args"
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Loads a saved session variables, settings and test results to the shell. |
(module
(function_definition
(function_name__to_pandas) function_name__to_pandas
(parameters
(identifier_ob) identifier_ob
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_ob) identifier_ob
(tuple
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
)tuple
)argument_list
)call
(block
(return_statement
(identifier_ob) identifier_ob
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_ob) identifier_ob
(identifier_ndim) identifier_ndim
)attribute
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
(argument_list
(identifier_ob) identifier_ob
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_ob) identifier_ob
(identifier_ndim) identifier_ndim
)attribute
(integer_2) integer_2
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(identifier_ob) identifier_ob
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'cannot convert array of dim > 2 to a pandas structure') string_'cannot convert array of dim > 2 to a pandas structure'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Convert an array-like to a pandas object.
Parameters
----------
ob : array-like
The object to convert.
Returns
-------
pandas_structure : pd.Series or pd.DataFrame
The correct structure based on the dimensionality of the data. |
(module
(function_definition
(function_name__url) function_name__url
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)parameters
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(call
(attribute
(string_"{}://{}{}") string_"{}://{}{}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__protocol) identifier__protocol
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_real_connection) identifier_real_connection
)attribute
(identifier_host) identifier_host
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__port_postfix) identifier__port_postfix
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_uri) identifier_uri
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_prefix) identifier_prefix
(string_'') string_''
(integer_1) integer_1
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns request selector url from absolute URI |
(module
(function_definition
(function_name_parse_xml) function_name_parse_xml
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set_properties) identifier__set_properties
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_extend) identifier_extend
)attribute
(generator_expression
(call
(identifier_TiledObject) identifier_TiledObject
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_child) identifier_child
)argument_list
)call
(for_in_clause
(identifier_child) identifier_child
(call
(attribute
(identifier_node) identifier_node
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_'object') string_'object'
)argument_list
)call
)for_in_clause
)generator_expression
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Parse an Object Group from ElementTree xml node
:param node: ElementTree xml node
:return: self |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(identifier_name_to_val) identifier_name_to_val
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_open) identifier__check_open
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(identifier_name_to_val) identifier_name_to_val
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_PutFullMatrix) identifier_PutFullMatrix
)attribute
(argument_list
(identifier_name) identifier_name
(string_'base') string_'base'
(identifier_val) identifier_val
(None) None
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_PutWorkspaceData) identifier_PutWorkspaceData
)attribute
(argument_list
(identifier_name) identifier_name
(string_'base') string_'base'
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Loads a dictionary of variable names into the matlab com client. |
(module
(function_definition
(function_name_require_condition) function_name_require_condition
(parameters
(identifier_cls) identifier_cls
(identifier_expr) identifier_expr
(identifier_message) identifier_message
(list_splat_pattern
(identifier_format_args) identifier_format_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_format_kwds) identifier_format_kwds
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(identifier_expr) identifier_expr
)not_operator
(block
(raise_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_message) identifier_message
(list_splat
(identifier_format_args) identifier_format_args
)list_splat
(dictionary_splat
(identifier_format_kwds) identifier_format_kwds
)dictionary_splat
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | used to assert a certain state. If the expression renders a false
value, an exception will be raised with the supplied message
:param: message: The failure message to attach to the raised Buzz
:param: expr: A boolean value indicating an evaluated expression
:param: format_args: Format arguments. Follows str.format convention
:param: format_kwds: Format keyword args. Follows str.format convetion |
(module
(function_definition
(function_name_append_note) function_name_append_note
(parameters
(identifier_self) identifier_self
(identifier_note) identifier_note
(identifier_root) identifier_root
(default_parameter
(identifier_scale) identifier_scale
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_root_val) identifier_root_val
(call
(identifier_note_to_val) identifier_note_to_val
(argument_list
(identifier_root) identifier_root
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_note_val) identifier_note_val
(binary_operator
(binary_operator
(call
(identifier_note_to_val) identifier_note_to_val
(argument_list
(identifier_note) identifier_note
)argument_list
)call
(identifier_root_val) identifier_root_val
)binary_operator
(binary_operator
(identifier_scale) identifier_scale
(integer_12) integer_12
)binary_operator
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_note_val) identifier_note_val
(attribute
(identifier_self) identifier_self
(identifier_components) identifier_components
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_components) identifier_components
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_note_val) identifier_note_val
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_components) identifier_components
)attribute
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Append a note to quality
:param str note: note to append on quality
:param str root: root note of chord
:param int scale: key scale |
(module
(function_definition
(function_name_delete_all_banks) function_name_delete_all_banks
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_file) identifier_file
(call
(identifier_glob) identifier_glob
(argument_list
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data_path) identifier_data_path
)attribute
)argument_list
)call
(string_"/*.json") string_"/*.json"
)binary_operator
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_Persistence) identifier_Persistence
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Delete all banks files.
Util for manual save, because isn't possible know which banks
were removed |
(module
(function_definition
(function_name_set_led) function_name_set_led
(parameters
(identifier_self) identifier_self
(identifier_led_id) identifier_led_id
(identifier_color) identifier_color
)parameters
(block
(if_statement
(not_operator
(call
(identifier_set_leds_color) identifier_set_leds_color
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_corsair_sdk) identifier_corsair_sdk
)attribute
(call
(identifier_LedColor) identifier_LedColor
(argument_list
(identifier_led_id) identifier_led_id
(list_splat
(identifier_color) identifier_color
)list_splat
)argument_list
)call
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__raise_corsair_error) identifier__raise_corsair_error
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Set color of an led
:param led_id: id of led to set color
:type led_id: int
:param color: list of rgb values of new colors. eg. [255, 255, 255]
:type color: list
:returns: true if successful
:rtype: bool |
(module
(function_definition
(function_name_create_307_response) function_name_create_307_response
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier_get_current_request) identifier_get_current_request
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg_mb) identifier_msg_mb
(call
(identifier_UserMessageMember) identifier_UserMessageMember
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_message) identifier_message
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_coll) identifier_coll
(subscript
(attribute
(identifier_request) identifier_request
(identifier_root) identifier_root
)attribute
(string_'_messages') string_'_messages'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_coll) identifier_coll
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_msg_mb) identifier_msg_mb
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_qs) identifier_qs
(call
(attribute
(identifier_self) identifier_self
(identifier___get_new_query_string) identifier___get_new_query_string
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_query_string) identifier_query_string
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_message) identifier_message
)attribute
(identifier_slug) identifier_slug
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resubmit_url) identifier_resubmit_url
(binary_operator
(string_"%s?%s") string_"%s?%s"
(tuple
(attribute
(identifier_request) identifier_request
(identifier_path_url) identifier_path_url
)attribute
(identifier_qs) identifier_qs
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(list
(tuple
(string_'Warning') string_'Warning'
(binary_operator
(string_'299 %s') string_'299 %s'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_message) identifier_message
)attribute
(identifier_text) identifier_text
)attribute
)binary_operator
)tuple
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_http_exc) identifier_http_exc
(call
(identifier_HttpWarningResubmit) identifier_HttpWarningResubmit
(argument_list
(keyword_argument
(identifier_location) identifier_location
(identifier_resubmit_url) identifier_resubmit_url
)keyword_argument
(keyword_argument
(identifier_detail) identifier_detail
(attribute
(attribute
(identifier_self) identifier_self
(identifier_message) identifier_message
)attribute
(identifier_text) identifier_text
)attribute
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_request) identifier_request
(identifier_get_response) identifier_get_response
)attribute
(argument_list
(identifier_http_exc) identifier_http_exc
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a 307 "Temporary Redirect" response including a HTTP Warning
header with code 299 that contains the user message received during
processing the request. |
(module
(function_definition
(function_name_get_sorted_pointlist) function_name_get_sorted_pointlist
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pointlist) identifier_pointlist
(call
(attribute
(identifier_self) identifier_self
(identifier_get_pointlist) identifier_get_pointlist
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_pointlist) identifier_pointlist
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_pointlist) identifier_pointlist
(identifier_i) identifier_i
)subscript
(call
(identifier_sorted) identifier_sorted
(argument_list
(subscript
(identifier_pointlist) identifier_pointlist
(identifier_i) identifier_i
)subscript
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_p) identifier_p
)lambda_parameters
(subscript
(identifier_p) identifier_p
(string_'time') string_'time'
)subscript
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_pointlist) identifier_pointlist
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_pointlist) identifier_pointlist
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_stroke) identifier_stroke
)lambda_parameters
(subscript
(subscript
(identifier_stroke) identifier_stroke
(integer_0) integer_0
)subscript
(string_'time') string_'time'
)subscript
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_pointlist) identifier_pointlist
)return_statement
)block
)function_definition
)module | Make sure that the points and strokes are in order.
Returns
-------
list
A list of all strokes in the recording. Each stroke is represented
as a list of dicts {'time': 123, 'x': 45, 'y': 67} |
(module
(function_definition
(function_name_get_meta_clusters) function_name_get_meta_clusters
(parameters
(identifier_self) identifier_self
(identifier_clusters) identifier_clusters
)parameters
(block
(expression_statement
(assignment
(identifier_meta_clusters) identifier_meta_clusters
(call
(attribute
(identifier_collections) identifier_collections
(identifier_defaultdict) identifier_defaultdict
)attribute
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_cluster) identifier_cluster
(identifier_clusters) identifier_clusters
(block
(if_statement
(not_operator
(attribute
(identifier_cluster) identifier_cluster
(identifier_meta_cluster) identifier_meta_cluster
)attribute
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(subscript
(identifier_meta_clusters) identifier_meta_clusters
(attribute
(identifier_cluster) identifier_cluster
(identifier_meta_cluster) identifier_meta_cluster
)attribute
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_cluster) identifier_cluster
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_unconfigured_meta_clusters) identifier_unconfigured_meta_clusters
(list_comprehension
(identifier_name) identifier_name
(for_in_clause
(identifier_name) identifier_name
(call
(attribute
(identifier_meta_clusters) identifier_meta_clusters
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_meta_clusters) identifier_meta_clusters
)attribute
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(identifier_unconfigured_meta_clusters) identifier_unconfigured_meta_clusters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Meta cluster %s not configured!") string_"Meta cluster %s not configured!"
)argument_list
)call
)expression_statement
(delete_statement
(subscript
(identifier_meta_clusters) identifier_meta_clusters
(identifier_name) identifier_name
)subscript
)delete_statement
)block
)for_statement
(return_statement
(identifier_meta_clusters) identifier_meta_clusters
)return_statement
)block
)function_definition
)module | Returns a dictionary keyed off of meta cluster names, where the values
are lists of clusters associated with the meta cluster name.
If a meta cluster name doesn't have a port defined in the
`meta_cluster_ports` attribute an error is given and the meta cluster
is removed from the mapping. |
(module
(function_definition
(function_name_listDatasetParents) function_name_listDatasetParents
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_dataset) identifier_dataset
(string_"") string_""
)default_parameter
)parameters
(block
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_dataset) identifier_dataset
(string_"") string_""
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(call
(identifier_dbsExceptionHandler) identifier_dbsExceptionHandler
(argument_list
(string_"dbsException-invalid-input") string_"dbsException-invalid-input"
(string_"DBSDataset/listDatasetParents. Child Dataset name is required.") string_"DBSDataset/listDatasetParents. Child Dataset name is required."
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dbi) identifier_dbi
)attribute
(identifier_connection) identifier_connection
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_datasetparentlist) identifier_datasetparentlist
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(identifier_conn) identifier_conn
(identifier_dataset) identifier_dataset
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
(finally_clause
(block
(if_statement
(identifier_conn) identifier_conn
(block
(expression_statement
(call
(attribute
(identifier_conn) identifier_conn
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | takes required dataset parameter
returns only parent dataset name |
(module
(function_definition
(function_name_get_group_headers) function_name_get_group_headers
(parameters
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
(identifier_group_name) identifier_group_name
)parameters
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(subscript
(attribute
(identifier_self) identifier_self
(identifier_dm) identifier_dm
)attribute
(identifier_table_name) identifier_table_name
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cond) identifier_cond
(comparison_operator
(subscript
(identifier_df) identifier_df
(string_'group') string_'group'
)subscript
(identifier_group_name) identifier_group_name
)comparison_operator
)assignment
)expression_statement
(return_statement
(attribute
(subscript
(identifier_df) identifier_df
(identifier_cond) identifier_cond
)subscript
(identifier_index) identifier_index
)attribute
)return_statement
)block
)function_definition
)module | Return a list of all headers for a given group |
(module
(function_definition
(function_name_deep_merge) function_name_deep_merge
(parameters
(list_splat_pattern
(identifier_dicts) identifier_dicts
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_d) identifier_d
(identifier_dicts) identifier_dicts
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_d) identifier_d
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_'Can only deep_merge dicts, got {}') string_'Can only deep_merge dicts, got {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_d) identifier_d
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(identifier_deep_merge) identifier_deep_merge
(argument_list
(call
(attribute
(identifier_result) identifier_result
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_k) identifier_k
(dictionary
)dictionary
)argument_list
)call
(identifier_v) identifier_v
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Recursively merge all input dicts into a single dict. |
(module
(function_definition
(function_name_normalize) function_name_normalize
(parameters
(typed_parameter
(identifier_x) identifier_x
(type
(identifier_TensorImage) identifier_TensorImage
)type
)typed_parameter
(typed_parameter
(identifier_mean) identifier_mean
(type
(identifier_FloatTensor) identifier_FloatTensor
)type
)typed_parameter
(typed_parameter
(identifier_std) identifier_std
(type
(identifier_FloatTensor) identifier_FloatTensor
)type
)typed_parameter
)parameters
(type
(identifier_TensorImage) identifier_TensorImage
)type
(block
(expression_statement
(string_"Normalize `x` with `mean` and `std`.") string_"Normalize `x` with `mean` and `std`."
)expression_statement
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_x) identifier_x
(subscript
(identifier_mean) identifier_mean
(ellipsis_...) ellipsis_...
(None) None
(None) None
)subscript
)binary_operator
)parenthesized_expression
(subscript
(identifier_std) identifier_std
(ellipsis_...) ellipsis_...
(None) None
(None) None
)subscript
)binary_operator
)return_statement
)block
)function_definition
)module | Normalize `x` with `mean` and `std`. |
(module
(function_definition
(function_name_dateint_to_weekday) function_name_dateint_to_weekday
(parameters
(identifier_dateint) identifier_dateint
(default_parameter
(identifier_first_day) identifier_first_day
(string_'Monday') string_'Monday'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_weekday_ix) identifier_weekday_ix
(call
(attribute
(call
(identifier_dateint_to_datetime) identifier_dateint_to_datetime
(argument_list
(identifier_dateint) identifier_dateint
)argument_list
)call
(identifier_weekday) identifier_weekday
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_weekday_ix) identifier_weekday_ix
(call
(attribute
(identifier_WEEKDAYS) identifier_WEEKDAYS
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_first_day) identifier_first_day
)argument_list
)call
)binary_operator
)parenthesized_expression
(integer_7) integer_7
)binary_operator
)return_statement
)block
)function_definition
)module | Returns the weekday of the given dateint.
Arguments
---------
dateint : int
An integer object decipting a specific calendaric day; e.g. 20161225.
first_day : str, default 'Monday'
The first day of the week.
Returns
-------
int
The weekday of the given dateint, when first day of the week = 0,
last day of the week = 6.
Example
-------
>>> dateint_to_weekday(20170213)
0
>>> dateint_to_weekday(20170212)
6
>>> dateint_to_weekday(20170214)
1
>>> dateint_to_weekday(20170212, 'Sunday)
0
>>> dateint_to_weekday(20170214, 'Sunday')
2 |
(module
(function_definition
(function_name_address_) function_name_address_
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(string_'hciconfig') string_'hciconfig'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run') string_'cmd.run'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dev) identifier_dev
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_out) identifier_out
(block
(if_statement
(call
(attribute
(identifier_line) identifier_line
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'hci') string_'hci'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_comps) identifier_comps
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dev) identifier_dev
(subscript
(identifier_comps) identifier_comps
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_dev) identifier_dev
)subscript
(dictionary
(pair
(string_'device') string_'device'
(identifier_dev) identifier_dev
)pair
(pair
(string_'path') string_'path'
(call
(attribute
(string_'/sys/class/bluetooth/{0}') string_'/sys/class/bluetooth/{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dev) identifier_dev
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'BD Address') string_'BD Address'
(identifier_line) identifier_line
)comparison_operator
(block
(expression_statement
(assignment
(identifier_comps) identifier_comps
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(identifier_dev) identifier_dev
)subscript
(string_'address') string_'address'
)subscript
(subscript
(identifier_comps) identifier_comps
(integer_2) integer_2
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'DOWN') string_'DOWN'
(identifier_line) identifier_line
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(identifier_dev) identifier_dev
)subscript
(string_'power') string_'power'
)subscript
(string_'off') string_'off'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'UP RUNNING') string_'UP RUNNING'
(identifier_line) identifier_line
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(identifier_dev) identifier_dev
)subscript
(string_'power') string_'power'
)subscript
(string_'on') string_'on'
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Get the many addresses of the Bluetooth adapter
CLI Example:
.. code-block:: bash
salt '*' bluetooth.address |
(module
(function_definition
(function_name_sha1sum) function_name_sha1sum
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_sha1) identifier_sha1
(call
(attribute
(identifier_hashlib) identifier_hashlib
(identifier_sha1) identifier_sha1
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_chunk) identifier_chunk
(call
(identifier_iter) identifier_iter
(argument_list
(lambda
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
(binary_operator
(integer_128) integer_128
(attribute
(identifier_sha1) identifier_sha1
(identifier_block_size) identifier_block_size
)attribute
)binary_operator
)argument_list
)call
)lambda
(string_b'') string_b''
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_sha1) identifier_sha1
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(return_statement
(call
(attribute
(identifier_sha1) identifier_sha1
(identifier_hexdigest) identifier_hexdigest
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculates sha1 hash of a file |
(module
(function_definition
(function_name__pack_output) function_name__pack_output
(parameters
(identifier_self) identifier_self
(identifier_init_parameter) identifier_init_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_param) identifier_param
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_init_parameter) identifier_init_parameter
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_output) identifier_output
(subscript
(attribute
(identifier_self) identifier_self
(identifier_key_order) identifier_key_order
)attribute
(identifier_i) identifier_i
)subscript
)subscript
(identifier_param) identifier_param
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Pack the output
Parameters
----------
init_parameter : dict
Returns
-------
output : dict |
(module
(function_definition
(function_name_buffer_to_audio) function_name_buffer_to_audio
(parameters
(typed_parameter
(identifier_buffer) identifier_buffer
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
)parameters
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
(block
(return_statement
(binary_operator
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(identifier_buffer) identifier_buffer
(keyword_argument
(identifier_dtype) identifier_dtype
(string_'<i2') string_'<i2'
)keyword_argument
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_float32) identifier_float32
)attribute
(keyword_argument
(identifier_order) identifier_order
(string_'C') string_'C'
)keyword_argument
)argument_list
)call
(float_32768.0) float_32768.0
)binary_operator
)return_statement
)block
)function_definition
)module | Convert a raw mono audio byte string to numpy array of floats |
(module
(function_definition
(function_name_optimize) function_name_optimize
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_LIBRARIES_FILE) identifier_LIBRARIES_FILE
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_libs_data) identifier_libs_data
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(for_statement
(pattern_list
(identifier_alg) identifier_alg
(identifier_libs_names) identifier_libs_names
)pattern_list
(call
(attribute
(identifier_libs_data) identifier_libs_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_libs) identifier_libs
(call
(attribute
(identifier_self) identifier_self
(identifier_get_libs) identifier_get_libs
)attribute
(argument_list
(identifier_alg) identifier_alg
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_libs) identifier_libs
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_libs) identifier_libs
)attribute
(identifier_alg) identifier_alg
)subscript
(list_comprehension
(identifier_lib) identifier_lib
(for_in_clause
(identifier_lib) identifier_lib
(identifier_libs) identifier_libs
)for_in_clause
(if_clause
(comparison_operator
(list
(attribute
(identifier_lib) identifier_lib
(identifier_module_name) identifier_module_name
)attribute
(attribute
(identifier_lib) identifier_lib
(identifier_func_name) identifier_func_name
)attribute
)list
(identifier_libs_names) identifier_libs_names
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_libs) identifier_libs
)attribute
(identifier_alg) identifier_alg
)subscript
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_lib) identifier_lib
)lambda_parameters
(call
(attribute
(identifier_libs_names) identifier_libs_names
(identifier_index) identifier_index
)attribute
(argument_list
(list
(attribute
(identifier_lib) identifier_lib
(identifier_module_name) identifier_module_name
)attribute
(attribute
(identifier_lib) identifier_lib
(identifier_func_name) identifier_func_name
)attribute
)list
)argument_list
)call
)lambda
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Sort algorithm implementations by speed. |
(module
(function_definition
(function_name__make_futures) function_name__make_futures
(parameters
(identifier_futmap_keys) identifier_futmap_keys
(identifier_class_check) identifier_class_check
(identifier_make_result_fn) identifier_make_result_fn
)parameters
(block
(expression_statement
(assignment
(identifier_futmap) identifier_futmap
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_futmap_keys) identifier_futmap_keys
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_class_check) identifier_class_check
(None) None
)comparison_operator
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_key) identifier_key
(identifier_class_check) identifier_class_check
)argument_list
)call
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Expected list of {}") string_"Expected list of {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_class_check) identifier_class_check
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_futmap) identifier_futmap
(identifier_key) identifier_key
)subscript
(call
(attribute
(attribute
(identifier_concurrent) identifier_concurrent
(identifier_futures) identifier_futures
)attribute
(identifier_Future) identifier_Future
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(subscript
(identifier_futmap) identifier_futmap
(identifier_key) identifier_key
)subscript
(identifier_set_running_or_notify_cancel) identifier_set_running_or_notify_cancel
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Future was cancelled prematurely") string_"Future was cancelled prematurely"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(attribute
(attribute
(identifier_concurrent) identifier_concurrent
(identifier_futures) identifier_futures
)attribute
(identifier_Future) identifier_Future
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_add_done_callback) identifier_add_done_callback
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(call
(identifier_make_result_fn) identifier_make_result_fn
(argument_list
(identifier_f) identifier_f
(identifier_futmap) identifier_futmap
)argument_list
)call
)lambda
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_f) identifier_f
(identifier_set_running_or_notify_cancel) identifier_set_running_or_notify_cancel
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Future was cancelled prematurely") string_"Future was cancelled prematurely"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_f) identifier_f
(identifier_futmap) identifier_futmap
)expression_list
)return_statement
)block
)function_definition
)module | Create futures and a futuremap for the keys in futmap_keys,
and create a request-level future to be bassed to the C API. |
(module
(function_definition
(function_name_codes_get_long_array) function_name_codes_get_long_array
(parameters
(identifier_handle) identifier_handle
(identifier_key) identifier_key
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_new) identifier_new
)attribute
(argument_list
(string_'long[]') string_'long[]'
(identifier_size) identifier_size
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_size_p) identifier_size_p
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_new) identifier_new
)attribute
(argument_list
(string_'size_t *') string_'size_t *'
(identifier_size) identifier_size
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__codes_get_long_array) identifier__codes_get_long_array
(argument_list
(identifier_handle) identifier_handle
(call
(attribute
(identifier_key) identifier_key
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_ENC) identifier_ENC
)argument_list
)call
(identifier_values) identifier_values
(identifier_size_p) identifier_size_p
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get long array values from a key.
:param bytes key: the keyword whose value(s) are to be extracted
:rtype: List(int) |
(module
(function_definition
(function_name_create_instructor_answer) function_name_create_instructor_answer
(parameters
(identifier_self) identifier_self
(identifier_post) identifier_post
(identifier_content) identifier_content
(identifier_revision) identifier_revision
(default_parameter
(identifier_anonymous) identifier_anonymous
(False) False
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cid) identifier_cid
(subscript
(identifier_post) identifier_post
(string_"id") string_"id"
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_cid) identifier_cid
(identifier_post) identifier_post
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"cid") string_"cid"
(identifier_cid) identifier_cid
)pair
(pair
(string_"type") string_"type"
(string_"i_answer") string_"i_answer"
)pair
(pair
(string_"content") string_"content"
(identifier_content) identifier_content
)pair
(pair
(string_"revision") string_"revision"
(identifier_revision) identifier_revision
)pair
(pair
(string_"anonymous") string_"anonymous"
(conditional_expression
(string_"yes") string_"yes"
(identifier_anonymous) identifier_anonymous
(string_"no") string_"no"
)conditional_expression
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__rpc) identifier__rpc
)attribute
(identifier_content_instructor_answer) identifier_content_instructor_answer
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create an instructor's answer to a post `post`.
It seems like if the post has `<p>` tags, then it's treated as HTML,
but is treated as text otherwise. You'll want to provide `content`
accordingly.
:type post: dict|str|int
:param post: Either the post dict returned by another API method, or
the `cid` field of that post.
:type content: str
:param content: The content of the answer.
:type revision: int
:param revision: The number of revisions the answer has gone through.
The first responder should out 0, the first editor 1, etc.
:type anonymous: bool
:param anonymous: Whether or not to post anonymously.
:rtype: dict
:returns: Dictionary with information about the created answer. |
(module
(function_definition
(function_name_start_tty) function_name_start_tty
(parameters
(identifier_self) identifier_self
(identifier_conf) identifier_conf
(identifier_interactive) identifier_interactive
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_api) identifier_api
(attribute
(call
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_harpoon) identifier_harpoon
)attribute
(identifier_docker_context_maker) identifier_docker_context_maker
)attribute
(argument_list
)argument_list
)call
(identifier_api) identifier_api
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_container_id) identifier_container_id
(attribute
(identifier_conf) identifier_conf
(identifier_container_id) identifier_container_id
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stdin) identifier_stdin
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_harpoon) identifier_harpoon
)attribute
(identifier_tty_stdin) identifier_tty_stdin
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stdout) identifier_stdout
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_harpoon) identifier_harpoon
)attribute
(identifier_tty_stdout) identifier_tty_stdout
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stderr) identifier_stderr
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_harpoon) identifier_harpoon
)attribute
(identifier_tty_stderr) identifier_tty_stderr
)attribute
)assignment
)expression_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_stdin) identifier_stdin
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_stdin) identifier_stdin
(call
(identifier_stdin) identifier_stdin
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_stdout) identifier_stdout
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_stdout) identifier_stdout
(call
(identifier_stdout) identifier_stdout
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_stderr) identifier_stderr
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_stderr) identifier_stderr
(call
(identifier_stderr) identifier_stderr
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_dockerpty) identifier_dockerpty
(identifier_start) identifier_start
)attribute
(argument_list
(identifier_api) identifier_api
(identifier_container_id) identifier_container_id
(keyword_argument
(identifier_interactive) identifier_interactive
(identifier_interactive) identifier_interactive
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(identifier_stdout) identifier_stdout
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(identifier_stderr) identifier_stderr
)keyword_argument
(keyword_argument
(identifier_stdin) identifier_stdin
(identifier_stdin) identifier_stdin
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_KeyboardInterrupt) identifier_KeyboardInterrupt
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Startup a tty |
(module
(function_definition
(function_name_get_sigmoid_parameters) function_name_get_sigmoid_parameters
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filename) identifier_filename
(string_'shlp_sigmoid_factors.csv') string_'shlp_sigmoid_factors.csv'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_file) identifier_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_datapath) identifier_datapath
)attribute
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sigmoid) identifier_sigmoid
(call
(attribute
(identifier_pd) identifier_pd
(identifier_read_csv) identifier_read_csv
)attribute
(argument_list
(identifier_file) identifier_file
(keyword_argument
(identifier_index_col) identifier_index_col
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sigmoid) identifier_sigmoid
(call
(attribute
(identifier_sigmoid) identifier_sigmoid
(identifier_query) identifier_query
)attribute
(argument_list
(binary_operator
(binary_operator
(call
(attribute
(string_'building_class=={0} and ') string_'building_class=={0} and '
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_building_class) identifier_building_class
)attribute
)argument_list
)call
(call
(attribute
(string_'shlp_type=="{0}" and ') string_'shlp_type=="{0}" and '
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_shlp_type) identifier_shlp_type
)attribute
)argument_list
)call
)binary_operator
(call
(attribute
(string_'wind_impact=={0}') string_'wind_impact=={0}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_wind_class) identifier_wind_class
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_sigmoid) identifier_sigmoid
(string_'parameter_a') string_'parameter_a'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_sigmoid) identifier_sigmoid
(string_'parameter_b') string_'parameter_b'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_sigmoid) identifier_sigmoid
(string_'parameter_c') string_'parameter_c'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_ww_incl) identifier_ww_incl
)attribute
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_sigmoid) identifier_sigmoid
(string_'parameter_d') string_'parameter_d'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_a) identifier_a
(identifier_b) identifier_b
(identifier_c) identifier_c
(identifier_d) identifier_d
)expression_list
)return_statement
)block
)function_definition
)module | Retrieve the sigmoid parameters from csv-files
Parameters
----------
filename : string
name of file where sigmoid factors are stored |
(module
(function_definition
(function_name_bam_conversion) function_name_bam_conversion
(parameters
(identifier_job) identifier_job
(identifier_samfile) identifier_samfile
(identifier_sample_type) identifier_sample_type
(identifier_univ_options) identifier_univ_options
(identifier_samtools_options) identifier_samtools_options
)parameters
(block
(expression_statement
(assignment
(identifier_work_dir) identifier_work_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_input_files) identifier_input_files
(dictionary
(pair
(binary_operator
(identifier_sample_type) identifier_sample_type
(string_'.sam') string_'.sam'
)binary_operator
(identifier_samfile) identifier_samfile
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_input_files) identifier_input_files
(call
(identifier_get_files_from_filestore) identifier_get_files_from_filestore
(argument_list
(identifier_job) identifier_job
(identifier_input_files) identifier_input_files
(identifier_work_dir) identifier_work_dir
(keyword_argument
(identifier_docker) identifier_docker
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bamfile) identifier_bamfile
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_work_dir) identifier_work_dir
(binary_operator
(identifier_sample_type) identifier_sample_type
(string_'.bam') string_'.bam'
)binary_operator
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(list
(string_'view') string_'view'
(string_'-bS') string_'-bS'
(string_'-o') string_'-o'
(call
(identifier_docker_path) identifier_docker_path
(argument_list
(identifier_bamfile) identifier_bamfile
)argument_list
)call
(subscript
(identifier_input_files) identifier_input_files
(binary_operator
(identifier_sample_type) identifier_sample_type
(string_'.sam') string_'.sam'
)binary_operator
)subscript
)list
)assignment
)expression_statement
(expression_statement
(call
(identifier_docker_call) identifier_docker_call
(argument_list
(keyword_argument
(identifier_tool) identifier_tool
(string_'samtools') string_'samtools'
)keyword_argument
(keyword_argument
(identifier_tool_parameters) identifier_tool_parameters
(identifier_parameters) identifier_parameters
)keyword_argument
(keyword_argument
(identifier_work_dir) identifier_work_dir
(identifier_work_dir) identifier_work_dir
)keyword_argument
(keyword_argument
(identifier_dockerhub) identifier_dockerhub
(subscript
(identifier_univ_options) identifier_univ_options
(string_'dockerhub') string_'dockerhub'
)subscript
)keyword_argument
(keyword_argument
(identifier_tool_version) identifier_tool_version
(subscript
(identifier_samtools_options) identifier_samtools_options
(string_'version') string_'version'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_output_file) identifier_output_file
(call
(attribute
(attribute
(identifier_job) identifier_job
(identifier_fileStore) identifier_fileStore
)attribute
(identifier_writeGlobalFile) identifier_writeGlobalFile
)attribute
(argument_list
(identifier_bamfile) identifier_bamfile
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_job) identifier_job
(identifier_fileStore) identifier_fileStore
)attribute
(identifier_deleteGlobalFile) identifier_deleteGlobalFile
)attribute
(argument_list
(identifier_samfile) identifier_samfile
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_job) identifier_job
(identifier_fileStore) identifier_fileStore
)attribute
(identifier_logToMaster) identifier_logToMaster
)attribute
(argument_list
(binary_operator
(string_'Ran sam2bam on %s:%s successfully') string_'Ran sam2bam on %s:%s successfully'
(tuple
(subscript
(identifier_univ_options) identifier_univ_options
(string_'patient') string_'patient'
)subscript
(identifier_sample_type) identifier_sample_type
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_output_file) identifier_output_file
)return_statement
)block
)function_definition
)module | Convert a sam to a bam.
:param dict samfile: The input sam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all tools
:param dict samtools_options: Options specific to samtools
:return: fsID for the generated bam
:rtype: toil.fileStore.FileID |
(module
(function_definition
(function_name__get_response) function_name__get_response
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_parse_result) identifier_parse_result
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_vw_process) identifier_vw_process
)attribute
(identifier_expect_exact) identifier_expect_exact
)attribute
(argument_list
(string_'\r\n') string_'\r\n'
(keyword_argument
(identifier_searchwindowsize) identifier_searchwindowsize
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(identifier_parse_result) identifier_parse_result
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(attribute
(attribute
(identifier_self) identifier_self
(identifier_vw_process) identifier_vw_process
)attribute
(identifier_before) identifier_before
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result_struct) identifier_result_struct
(call
(identifier_VWResult) identifier_VWResult
(argument_list
(identifier_output) identifier_output
(keyword_argument
(identifier_active_mode) identifier_active_mode
(attribute
(identifier_self) identifier_self
(identifier_active_mode) identifier_active_mode
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_result_struct) identifier_result_struct
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_result_struct) identifier_result_struct
)return_statement
)block
)function_definition
)module | If 'parse_result' is False, ignore the received output and return None. |
(module
(function_definition
(function_name_unique_string) function_name_unique_string
(parameters
(default_parameter
(identifier_length) identifier_length
(identifier_UUID_LENGTH) identifier_UUID_LENGTH
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_uuid4) identifier_uuid4
(argument_list
)argument_list
)call
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_ceil) identifier_ceil
)attribute
(argument_list
(binary_operator
(identifier_length) identifier_length
(call
(identifier_float) identifier_float
(argument_list
(identifier_UUID_LENGTH) identifier_UUID_LENGTH
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(conditional_expression
(subscript
(identifier_string) identifier_string
(slice
(colon) colon
(identifier_length) identifier_length
)slice
)subscript
(identifier_length) identifier_length
(identifier_string) identifier_string
)conditional_expression
)return_statement
)block
)function_definition
)module | Generate a unique string |
(module
(function_definition
(function_name_format_datetime) function_name_format_datetime
(parameters
(identifier_date) identifier_date
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_date) identifier_date
(identifier_utcoffset) identifier_utcoffset
)attribute
(argument_list
)argument_list
)call
(None) None
)comparison_operator
(block
(return_statement
(binary_operator
(call
(attribute
(identifier_date) identifier_date
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
(string_'Z') string_'Z'
)binary_operator
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_utc_offset_sec) identifier_utc_offset_sec
(call
(attribute
(identifier_date) identifier_date
(identifier_utcoffset) identifier_utcoffset
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utc_date) identifier_utc_date
(binary_operator
(identifier_date) identifier_date
(identifier_utc_offset_sec) identifier_utc_offset_sec
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utc_date_without_offset) identifier_utc_date_without_offset
(call
(attribute
(identifier_utc_date) identifier_utc_date
(identifier_replace) identifier_replace
)attribute
(argument_list
(keyword_argument
(identifier_tzinfo) identifier_tzinfo
(None) None
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(attribute
(identifier_utc_date_without_offset) identifier_utc_date_without_offset
(identifier_isoformat) identifier_isoformat
)attribute
(argument_list
)argument_list
)call
(string_'Z') string_'Z'
)binary_operator
)return_statement
)block
)function_definition
)module | Convert datetime to UTC ISO 8601 |
(module
(function_definition
(function_name__split_after_delimiter) function_name__split_after_delimiter
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
(identifier_indent_amt) identifier_indent_amt
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__delete_whitespace) identifier__delete_whitespace
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fits_on_current_line) identifier_fits_on_current_line
)attribute
(argument_list
(attribute
(identifier_item) identifier_item
(identifier_size) identifier_size
)attribute
)argument_list
)call
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_last_space) identifier_last_space
(None) None
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(identifier_reversed) identifier_reversed
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__lines) identifier__lines
)attribute
)argument_list
)call
(block
(if_statement
(parenthesized_expression
(boolean_operator
(identifier_last_space) identifier_last_space
(parenthesized_expression
(boolean_operator
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_Atom) identifier_Atom
)argument_list
)call
)not_operator
(not_operator
(attribute
(identifier_item) identifier_item
(identifier_is_colon) identifier_is_colon
)attribute
)not_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
(block
(break_statement
)break_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_last_space) identifier_last_space
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(attribute
(identifier_self) identifier_self
(identifier__Space) identifier__Space
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_last_space) identifier_last_space
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(tuple
(attribute
(identifier_self) identifier_self
(identifier__LineBreak) identifier__LineBreak
)attribute
(attribute
(identifier_self) identifier_self
(identifier__Indent) identifier__Indent
)attribute
)tuple
)argument_list
)call
(block
(return_statement
)return_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_last_space) identifier_last_space
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_line_break_at) identifier_add_line_break_at
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__lines) identifier__lines
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_last_space) identifier_last_space
)argument_list
)call
(identifier_indent_amt) identifier_indent_amt
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Split the line only after a delimiter. |
(module
(function_definition
(function_name_authenticate) function_name_authenticate
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_jwt_value) identifier_jwt_value
(call
(attribute
(identifier_self) identifier_self
(identifier_get_jwt_value) identifier_get_jwt_value
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_jwt_value) identifier_jwt_value
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(identifier_jwt_decode_handler) identifier_jwt_decode_handler
(argument_list
(identifier_jwt_value) identifier_jwt_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_jwt) identifier_jwt
(identifier_ExpiredSignature) identifier_ExpiredSignature
)attribute
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(identifier__) identifier__
(argument_list
(string_'Signature has expired.') string_'Signature has expired.'
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_AuthenticationFailed) identifier_AuthenticationFailed
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(attribute
(identifier_jwt) identifier_jwt
(identifier_DecodeError) identifier_DecodeError
)attribute
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(identifier__) identifier__
(argument_list
(string_'Error decoding signature.') string_'Error decoding signature.'
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_AuthenticationFailed) identifier_AuthenticationFailed
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(attribute
(identifier_jwt) identifier_jwt
(identifier_InvalidTokenError) identifier_InvalidTokenError
)attribute
(block
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_AuthenticationFailed) identifier_AuthenticationFailed
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(identifier_self) identifier_self
(identifier_authenticate_credentials) identifier_authenticate_credentials
)attribute
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)assignment
)expression_statement
(return_statement
(tuple
(identifier_user) identifier_user
(identifier_jwt_value) identifier_jwt_value
)tuple
)return_statement
)block
)function_definition
)module | Returns a two-tuple of `User` and token if a valid signature has been
supplied using JWT-based authentication. Otherwise returns `None`. |
(module
(function_definition
(function_name_serve_forever) function_name_serve_forever
(parameters
(default_parameter
(identifier_args) identifier_args
(None) None
)default_parameter
)parameters
(block
(class_definition
(identifier_Unbuffered) identifier_Unbuffered
(argument_list
(identifier_object) identifier_object
)argument_list
(block
(function_definition
(function_name___init__) function_name___init__
(parameters
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_stream) identifier_stream
)assignment
)expression_statement
)block
)function_definition
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
(function_definition
(function_name___getattr__) function_name___getattr__
(parameters
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)parameters
(block
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_attr) identifier_attr
)argument_list
)call
)return_statement
)block
)function_definition
)block
)class_definition
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(call
(identifier_Unbuffered) identifier_Unbuffered
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
(call
(identifier_Unbuffered) identifier_Unbuffered
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_server) identifier_server
(call
(identifier_JsonServer) identifier_JsonServer
(argument_list
(keyword_argument
(identifier_args) identifier_args
(identifier_args) identifier_args
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_server) identifier_server
(identifier_serve_forever) identifier_serve_forever
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Creates the server and serves forever
:param args: Optional args if you decided to use your own
argument parser. Default is None to let the JsonServer setup its own
parser and parse command line arguments. |
(module
(function_definition
(function_name_prepare_dispatches) function_name_prepare_dispatches
(parameters
(identifier_cls) identifier_cls
(identifier_message) identifier_message
(default_parameter
(identifier_recipients) identifier_recipients
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_Dispatch) identifier_Dispatch
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_message) identifier_message
(boolean_operator
(identifier_recipients) identifier_recipients
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_subscribers) identifier_get_subscribers
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates Dispatch models for a given message and return them.
:param Message message: Message model instance
:param list|None recipients: A list or Recipient objects
:return: list of created Dispatch models
:rtype: list |
(module
(function_definition
(function_name_search) function_name_search
(parameters
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
(default_parameter
(identifier_count) identifier_count
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__scan) identifier__scan
)attribute
(argument_list
(keyword_argument
(identifier_match) identifier_match
(identifier_pattern) identifier_pattern
)keyword_argument
(keyword_argument
(identifier_count) identifier_count
(identifier_count) identifier_count
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Search the keys of the given hash using the specified pattern.
:param str pattern: Pattern used to match keys.
:param int count: Limit number of results returned.
:returns: An iterator yielding matching key/value pairs. |
(module
(function_definition
(function_name_get_requires) function_name_get_requires
(parameters
(identifier_self) identifier_self
(identifier_requires_types) identifier_requires_types
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_requires_types) identifier_requires_types
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_requires_types) identifier_requires_types
(call
(identifier_list) identifier_list
(argument_list
(identifier_requires_types) identifier_requires_types
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_extracted_requires) identifier_extracted_requires
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_requires_name) identifier_requires_name
(identifier_requires_types) identifier_requires_types
(block
(for_statement
(identifier_requires) identifier_requires
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_json_metadata) identifier_json_metadata
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_requires_name) identifier_requires_name
(list
)list
)argument_list
)call
(block
(if_statement
(comparison_operator
(string_'win') string_'win'
(call
(attribute
(identifier_requires) identifier_requires
(identifier_get) identifier_get
)attribute
(argument_list
(string_'environment') string_'environment'
(dictionary
)dictionary
)argument_list
)call
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_extracted_requires) identifier_extracted_requires
(identifier_extend) identifier_extend
)attribute
(argument_list
(subscript
(identifier_requires) identifier_requires
(string_'requires') string_'requires'
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_extracted_requires) identifier_extracted_requires
)return_statement
)block
)function_definition
)module | Extracts requires of given types from metadata file, filter windows
specific requires. |
(module
(function_definition
(function_name_backup_restore) function_name_backup_restore
(parameters
(identifier_cls) identifier_cls
(identifier_block_id) identifier_block_id
(identifier_impl) identifier_impl
(identifier_working_dir) identifier_working_dir
)parameters
(block
(expression_statement
(assignment
(identifier_backup_dir) identifier_backup_dir
(call
(attribute
(identifier_config) identifier_config
(identifier_get_backups_directory) identifier_get_backups_directory
)attribute
(argument_list
(identifier_impl) identifier_impl
(identifier_working_dir) identifier_working_dir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_backup_paths) identifier_backup_paths
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_backup_paths) identifier_get_backup_paths
)attribute
(argument_list
(identifier_block_id) identifier_block_id
(identifier_impl) identifier_impl
(identifier_working_dir) identifier_working_dir
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_p) identifier_p
(identifier_backup_paths) identifier_backup_paths
(block
(assert_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(call
(attribute
(string_"No such backup file: {}") string_"No such backup file: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)assert_statement
)block
)for_statement
(for_statement
(identifier_p) identifier_p
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_state_paths) identifier_get_state_paths
)attribute
(argument_list
(identifier_impl) identifier_impl
(identifier_working_dir) identifier_working_dir
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_pbase) identifier_pbase
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_backup_path) identifier_backup_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_backup_dir) identifier_backup_dir
(binary_operator
(identifier_pbase) identifier_pbase
(parenthesized_expression
(call
(attribute
(string_".bak.{}") string_".bak.{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_block_id) identifier_block_id
)argument_list
)call
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Restoring '{}' to '{}'") string_"Restoring '{}' to '{}'"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_backup_path) identifier_backup_path
(identifier_p) identifier_p
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_backup_path) identifier_backup_path
(identifier_p) identifier_p
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Restore from a backup, given the virutalchain implementation module and block number.
NOT THREAD SAFE. DO NOT CALL WHILE INDEXING.
Return True on success
Raise exception on error, i.e. if a backup file is missing |
(module
(function_definition
(function_name_read_stack_qwords) function_name_read_stack_qwords
(parameters
(identifier_self) identifier_self
(identifier_count) identifier_count
(default_parameter
(identifier_offset) identifier_offset
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_stackData) identifier_stackData
(call
(attribute
(identifier_self) identifier_self
(identifier_read_stack_data) identifier_read_stack_data
)attribute
(argument_list
(binary_operator
(identifier_count) identifier_count
(integer_8) integer_8
)binary_operator
(identifier_offset) identifier_offset
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(binary_operator
(string_'<') string_'<'
(parenthesized_expression
(binary_operator
(string_'Q') string_'Q'
(identifier_count) identifier_count
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_stackData) identifier_stackData
)argument_list
)call
)return_statement
)block
)function_definition
)module | Reads QWORDs from the top of the stack.
@type count: int
@param count: Number of QWORDs to read.
@type offset: int
@param offset: Offset from the stack pointer to begin reading.
@rtype: tuple( int... )
@return: Tuple of integers read from the stack.
@raise WindowsError: Could not read the requested data. |
(module
(function_definition
(function_name_merge_odd_even_csu_configurations) function_name_merge_odd_even_csu_configurations
(parameters
(identifier_conf_odd) identifier_conf_odd
(identifier_conf_even) identifier_conf_even
)parameters
(block
(expression_statement
(assignment
(identifier_merged_conf) identifier_merged_conf
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(identifier_conf_odd) identifier_conf_odd
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_EMIR_NBARS) identifier_EMIR_NBARS
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ibar) identifier_ibar
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_ibar) identifier_ibar
(integer_2) integer_2
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_merged_conf) identifier_merged_conf
(identifier__csu_bar_left) identifier__csu_bar_left
)attribute
(identifier_i) identifier_i
)subscript
(subscript
(attribute
(identifier_conf_even) identifier_conf_even
(identifier__csu_bar_left) identifier__csu_bar_left
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_merged_conf) identifier_merged_conf
(identifier__csu_bar_right) identifier__csu_bar_right
)attribute
(identifier_i) identifier_i
)subscript
(subscript
(attribute
(identifier_conf_even) identifier_conf_even
(identifier__csu_bar_right) identifier__csu_bar_right
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_merged_conf) identifier_merged_conf
(identifier__csu_bar_slit_center) identifier__csu_bar_slit_center
)attribute
(identifier_i) identifier_i
)subscript
(line_continuation_\) line_continuation_\
(subscript
(attribute
(identifier_conf_even) identifier_conf_even
(identifier__csu_bar_slit_center) identifier__csu_bar_slit_center
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_merged_conf) identifier_merged_conf
(identifier__csu_bar_slit_width) identifier__csu_bar_slit_width
)attribute
(identifier_i) identifier_i
)subscript
(line_continuation_\) line_continuation_\
(subscript
(attribute
(identifier_conf_even) identifier_conf_even
(identifier__csu_bar_slit_width) identifier__csu_bar_slit_width
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_merged_conf) identifier_merged_conf
)return_statement
)block
)function_definition
)module | Merge CSU configuration using odd- and even-numbered values.
The CSU returned CSU configuration include the odd-numbered values
from 'conf_odd' and the even-numbered values from 'conf_even'.
Parameters
----------
conf_odd : CsuConfiguration instance
CSU configuration corresponding to odd-numbered slitlets.
conf_even : CsuConfiguration instance
CSU configuration corresponding to even-numbered slitlets.
Returns
-------
merged_conf : CsuConfiguration instance
CSU configuration resulting from the merging process. |
(module
(function_definition
(function_name_handle_context_missing) function_name_handle_context_missing
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_context_missing) identifier_context_missing
)attribute
(string_'RUNTIME_ERROR') string_'RUNTIME_ERROR'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_MISSING_SEGMENT_MSG) identifier_MISSING_SEGMENT_MSG
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_SegmentNotFoundException) identifier_SegmentNotFoundException
(argument_list
(identifier_MISSING_SEGMENT_MSG) identifier_MISSING_SEGMENT_MSG
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_MISSING_SEGMENT_MSG) identifier_MISSING_SEGMENT_MSG
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Called whenever there is no trace entity to access or mutate. |
(module
(function_definition
(function_name_session_ended) function_name_session_ended
(parameters
(identifier_self) identifier_self
(identifier_f) identifier_f
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__session_ended_view_func) identifier__session_ended_view_func
)attribute
(identifier_f) identifier_f
)assignment
)expression_statement
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)decorator
(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
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__flask_view_func) identifier__flask_view_func
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
)module | Decorator routes Alexa SessionEndedRequest to the wrapped view function to end the skill.
@ask.session_ended
def session_ended():
return "{}", 200
The wrapped function is registered as the session_ended view function
and renders the response for requests to the end of the session.
Arguments:
f {function} -- session_ended view function |
(module
(function_definition
(function_name_delete_user) function_name_delete_user
(parameters
(identifier_self) identifier_self
(identifier_user_id) identifier_user_id
)parameters
(block
(expression_statement
(assignment
(identifier_api) identifier_api
(call
(attribute
(identifier_self) identifier_self
(identifier__get_api) identifier__get_api
)attribute
(argument_list
(attribute
(identifier_iam) identifier_iam
(identifier_AccountAdminApi) identifier_AccountAdminApi
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_api) identifier_api
(identifier_delete_user) identifier_delete_user
)attribute
(argument_list
(identifier_user_id) identifier_user_id
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Delete user specified user.
:param str user_id: the ID of the user to delete (Required)
:returns: void |
(module
(function_definition
(function_name_camel_to_snake) function_name_camel_to_snake
(parameters
(typed_parameter
(identifier_s) identifier_s
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_CAMEL_CASE_RE) identifier_CAMEL_CASE_RE
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'_\1') string_r'_\1'
(identifier_s) identifier_s
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert string from camel case to snake case. |
(module
(function_definition
(function_name_skip_if_empty) function_name_skip_if_empty
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_partial_safe_wraps) identifier_partial_safe_wraps
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_inner) function_name_inner
(parameters
(identifier_value) identifier_value
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_EMPTY) identifier_EMPTY
)comparison_operator
(block
(return_statement
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_value) identifier_value
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_inner) identifier_inner
)return_statement
)block
)function_definition
)module | Decorator for validation functions which makes them pass if the value
passed in is the EMPTY sentinal value. |
(module
(function_definition
(function_name_miniaturize) function_name_miniaturize
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_element) identifier_element
(call
(attribute
(identifier_self) identifier_self
(identifier__first) identifier__first
)attribute
(argument_list
(string_'NN') string_'NN'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_element) identifier_element
(block
(if_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_'verkleinwoord: (\w+)') string_'verkleinwoord: (\w+)'
(identifier_element) identifier_element
(attribute
(identifier_re) identifier_re
(identifier_U) identifier_U
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_'verkleinwoord: (\w+)') string_'verkleinwoord: (\w+)'
(identifier_element) identifier_element
(attribute
(identifier_re) identifier_re
(identifier_U) identifier_U
)attribute
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(list
(string_'') string_''
)list
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(list
(None) None
)list
)return_statement
)block
)function_definition
)module | Tries to scrape the miniaturized version from vandale.nl. |
(module
(function_definition
(function_name_suspend_processes) function_name_suspend_processes
(parameters
(identifier_self) identifier_self
(identifier_as_group) identifier_as_group
(default_parameter
(identifier_scaling_processes) identifier_scaling_processes
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'AutoScalingGroupName') string_'AutoScalingGroupName'
(identifier_as_group) identifier_as_group
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_scaling_processes) identifier_scaling_processes
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_build_list_params) identifier_build_list_params
)attribute
(argument_list
(identifier_params) identifier_params
(identifier_scaling_processes) identifier_scaling_processes
(string_'ScalingProcesses') string_'ScalingProcesses'
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_status) identifier_get_status
)attribute
(argument_list
(string_'SuspendProcesses') string_'SuspendProcesses'
(identifier_params) identifier_params
)argument_list
)call
)return_statement
)block
)function_definition
)module | Suspends Auto Scaling processes for an Auto Scaling group.
:type as_group: string
:param as_group: The auto scaling group to suspend processes on.
:type scaling_processes: list
:param scaling_processes: Processes you want to suspend. If omitted, all
processes will be suspended. |
(module
(function_definition
(function_name_iter_factories) function_name_iter_factories
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_factories) identifier_factories
(generator_expression
(call
(attribute
(identifier_entry) identifier_entry
(identifier_load) identifier_load
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_entry) identifier_entry
(call
(identifier_iter_entry_points) identifier_iter_entry_points
(argument_list
(identifier_FACTORY_ENTRYPOINT) identifier_FACTORY_ENTRYPOINT
)argument_list
)call
)for_in_clause
)generator_expression
)assignment
)expression_statement
(for_statement
(identifier_factory) identifier_factory
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_factories) identifier_factories
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_f) identifier_f
(string_'priority') string_'priority'
(unary_operator
(integer_1000) integer_1000
)unary_operator
)argument_list
)call
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
(block
(expression_statement
(yield
(identifier_factory) identifier_factory
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Iterate through all factories identified by the factory entrypoint.
Yields:
function: A function that accepts a :class:`.Specification` and
returns a :class:`.PenaltyModel`. |
(module
(function_definition
(function_name_get_info) function_name_get_info
(parameters
(identifier_domain_name) identifier_domain_name
)parameters
(block
(expression_statement
(assignment
(identifier_opts) identifier_opts
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_namecheap) identifier_namecheap
)attribute
(identifier_get_opts) identifier_get_opts
)attribute
(argument_list
(string_'namecheap.domains.getinfo') string_'namecheap.domains.getinfo'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_opts) identifier_opts
(string_'DomainName') string_'DomainName'
)subscript
(identifier_domain_name) identifier_domain_name
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response_xml) identifier_response_xml
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_namecheap) identifier_namecheap
)attribute
(identifier_get_request) identifier_get_request
)attribute
(argument_list
(identifier_opts) identifier_opts
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_response_xml) identifier_response_xml
(None) None
)comparison_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_domaingetinforesult) identifier_domaingetinforesult
(subscript
(call
(attribute
(identifier_response_xml) identifier_response_xml
(identifier_getElementsByTagName) identifier_getElementsByTagName
)attribute
(argument_list
(string_"DomainGetInfoResult") string_"DomainGetInfoResult"
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_namecheap) identifier_namecheap
)attribute
(identifier_xml_to_dict) identifier_xml_to_dict
)attribute
(argument_list
(identifier_domaingetinforesult) identifier_domaingetinforesult
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns information about the requested domain
returns a dictionary of information about the domain_name
domain_name
string Domain name to get information about
CLI Example:
.. code-block:: bash
salt 'my-minion' namecheap_domains.get_info my-domain-name |
(module
(function_definition
(function_name_SPI_write) function_name_SPI_write
(parameters
(identifier_self) identifier_self
(identifier_chip_select) identifier_chip_select
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(string_'Writes data to SPI device selected by chipselect bit. ') string_'Writes data to SPI device selected by chipselect bit. '
)expression_statement
(expression_statement
(assignment
(identifier_dat) identifier_dat
(call
(identifier_list) identifier_list
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dat) identifier_dat
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(identifier_chip_select) identifier_chip_select
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bus) identifier_bus
)attribute
(identifier_write_i2c_block) identifier_write_i2c_block
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_address) identifier_address
)attribute
(identifier_dat) identifier_dat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Writes data to SPI device selected by chipselect bit. |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_cards) identifier_cards
(default_parameter
(identifier_end) identifier_end
(identifier_TOP) identifier_TOP
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_end) identifier_end
(identifier_TOP) identifier_TOP
)comparison_operator
(block
(try_statement
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_cards) identifier_cards
)attribute
(identifier_cards) identifier_cards
)augmented_assignment
)expression_statement
)block
(except_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_cards) identifier_cards
)attribute
(list
(identifier_cards) identifier_cards
)list
)augmented_assignment
)expression_statement
)block
)except_clause
)try_statement
)block
(elif_clause
(comparison_operator
(identifier_end) identifier_end
(identifier_BOTTOM) identifier_BOTTOM
)comparison_operator
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cards) identifier_cards
)attribute
(identifier_extendleft) identifier_extendleft
)attribute
(argument_list
(identifier_cards) identifier_cards
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cards) identifier_cards
)attribute
(identifier_extendleft) identifier_extendleft
)attribute
(argument_list
(list
(identifier_cards) identifier_cards
)list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Adds the given list of ``Card`` instances to the top of the stack.
:arg cards:
The cards to add to the ``Stack``. Can be a single ``Card``
instance, or a ``list`` of cards.
:arg str end:
The end of the ``Stack`` to add the cards to. Can be ``TOP`` ("top")
or ``BOTTOM`` ("bottom"). |
(module
(function_definition
(function_name__split_date) function_name__split_date
(parameters
(identifier_self) identifier_self
(identifier_time) identifier_time
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_time) identifier_time
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_month) identifier_month
(identifier_day) identifier_day
(identifier_year) identifier_year
)pattern_list
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(identifier_t) identifier_t
)argument_list
)call
(for_in_clause
(identifier_t) identifier_t
(call
(attribute
(identifier_re) identifier_re
(identifier_split) identifier_split
)attribute
(argument_list
(string_r'-|/') string_r'-|/'
(identifier_time) identifier_time
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_year) identifier_year
(integer_100) integer_100
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_year) identifier_year
(integer_2000) integer_2000
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_time) identifier_time
(call
(identifier_date) identifier_date
(argument_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_'%Y-%m-%dT%H:%M:%SZ') string_'%Y-%m-%dT%H:%M:%SZ'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Split apart a date string. |
(module
(function_definition
(function_name_nanrankdata) function_name_nanrankdata
(parameters
(identifier_a) identifier_a
(default_parameter
(identifier_axis) identifier_axis
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_inplace) identifier_inplace
(False) False
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_stats) identifier_stats
)dotted_name
(dotted_name
(identifier_rankdata) identifier_rankdata
)dotted_name
)import_from_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_a) identifier_a
(string_"dtype") string_"dtype"
)argument_list
)call
(call
(identifier_issubdtype) identifier_issubdtype
(argument_list
(attribute
(identifier_a) identifier_a
(identifier_dtype) identifier_dtype
)attribute
(identifier_integer) identifier_integer
)argument_list
)call
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Integer type is not supported.") string_"Integer type is not supported."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_a) identifier_a
(tuple
(identifier_tuple) identifier_tuple
(identifier_list) identifier_list
)tuple
)argument_list
)call
(block
(if_statement
(identifier_inplace) identifier_inplace
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Can't use `inplace=True` for {}.") string_"Can't use `inplace=True` for {}."
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(identifier_asarray) identifier_asarray
(argument_list
(identifier_a) identifier_a
(identifier_float) identifier_float
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_orig_shape) identifier_orig_shape
(attribute
(identifier_a) identifier_a
(identifier_shape) identifier_shape
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_a) identifier_a
(identifier_ndim) identifier_ndim
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(attribute
(identifier_a) identifier_a
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(binary_operator
(identifier_orig_shape) identifier_orig_shape
(tuple
(integer_1) integer_1
)tuple
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_inplace) identifier_inplace
)not_operator
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(attribute
(identifier_a) identifier_a
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(function_definition
(function_name_rank1d) function_name_rank1d
(parameters
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(unary_operator
(call
(identifier_isnan) identifier_isnan
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_x) identifier_x
(identifier_idx) identifier_idx
)subscript
(call
(identifier_rankdata) identifier_rankdata
(argument_list
(subscript
(identifier_x) identifier_x
(identifier_idx) identifier_idx
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_x) identifier_x
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(attribute
(identifier_a) identifier_a
(identifier_swapaxes) identifier_swapaxes
)attribute
(argument_list
(integer_1) integer_1
(identifier_axis) identifier_axis
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(identifier_apply_along_axis) identifier_apply_along_axis
(argument_list
(identifier_rank1d) identifier_rank1d
(integer_0) integer_0
(identifier_a) identifier_a
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(attribute
(identifier_a) identifier_a
(identifier_swapaxes) identifier_swapaxes
)attribute
(argument_list
(integer_1) integer_1
(identifier_axis) identifier_axis
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_a) identifier_a
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(identifier_orig_shape) identifier_orig_shape
)argument_list
)call
)return_statement
)block
)function_definition
)module | Rank data for arrays contaning NaN values.
Parameters
----------
X : array_like
Array of values.
axis : int, optional
Axis value. Defaults to `1`.
inplace : bool, optional
Defaults to `False`.
Returns
-------
array_like
Ranked array.
Examples
--------
.. doctest::
>>> from numpy_sugar import nanrankdata
>>> from numpy import arange
>>>
>>> X = arange(15).reshape((5, 3)).astype(float)
>>> print(nanrankdata(X))
[[1. 1. 1.]
[2. 2. 2.]
[3. 3. 3.]
[4. 4. 4.]
[5. 5. 5.]] |
(module
(function_definition
(function_name_move_parent_up) function_name_move_parent_up
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nav) identifier_nav
)attribute
(identifier_absolute_index) identifier_absolute_index
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cursor) identifier_cursor
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_level) identifier_level
(call
(identifier_max) identifier_max
(argument_list
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_content) identifier_content
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_cursor) identifier_cursor
)argument_list
)call
(string_'level') string_'level'
)subscript
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_content) identifier_content
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(identifier_cursor) identifier_cursor
(integer_1) integer_1
)binary_operator
)argument_list
)call
(string_'level') string_'level'
)subscript
(identifier_level) identifier_level
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__move_cursor) identifier__move_cursor
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_cursor) identifier_cursor
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__move_cursor) identifier__move_cursor
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_term) identifier_term
)attribute
(identifier_flash) identifier_flash
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_clear_input_queue) identifier_clear_input_queue
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Move the cursor up to the comment's parent. If the comment is
top-level, jump to the previous top-level comment. |
(module
(function_definition
(function_name__FetchServerCertificate) function_name__FetchServerCertificate
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_server_certificate) identifier_server_certificate
)attribute
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_http_manager) identifier_http_manager
)attribute
(identifier_OpenServerEndpoint) identifier_OpenServerEndpoint
)attribute
(argument_list
(string_"server.pem") string_"server.pem"
(keyword_argument
(identifier_verify_cb) identifier_verify_cb
(attribute
(identifier_self) identifier_self
(identifier_VerifyServerPEM) identifier_VerifyServerPEM
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_Success) identifier_Success
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_server_certificate) identifier_server_certificate
)attribute
(attribute
(identifier_response) identifier_response
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_timer) identifier_timer
)attribute
(identifier_SlowPoll) identifier_SlowPoll
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Attempts to fetch the server cert.
Returns:
True if we succeed. |
(module
(function_definition
(function_name__get_sorted_inputs) function_name__get_sorted_inputs
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_gfile) identifier_gfile
)attribute
(identifier_Open) identifier_Open
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_records) identifier_records
(call
(attribute
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\n") string_"\n"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_inputs) identifier_inputs
(list_comprehension
(call
(attribute
(identifier_record) identifier_record
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_record) identifier_record
(identifier_records) identifier_records
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(subscript
(identifier_inputs) identifier_inputs
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_inputs) identifier_inputs
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_input_lens) identifier_input_lens
(list_comprehension
(tuple
(identifier_i) identifier_i
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)tuple
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_line) identifier_line
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_inputs) identifier_inputs
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sorted_input_lens) identifier_sorted_input_lens
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_input_lens) identifier_input_lens
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_x) identifier_x
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sorted_inputs) identifier_sorted_inputs
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sorted_keys) identifier_sorted_keys
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(tuple_pattern
(identifier_index) identifier_index
(identifier__) identifier__
)tuple_pattern
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_sorted_input_lens) identifier_sorted_input_lens
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_sorted_inputs) identifier_sorted_inputs
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_inputs) identifier_inputs
(identifier_index) identifier_index
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_sorted_keys) identifier_sorted_keys
(identifier_index) identifier_index
)subscript
(identifier_i) identifier_i
)assignment
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_sorted_inputs) identifier_sorted_inputs
(identifier_sorted_keys) identifier_sorted_keys
)expression_list
)return_statement
)block
)function_definition
)module | Read and sort lines from the file sorted by decreasing length.
Args:
filename: String name of file to read inputs from.
Returns:
Sorted list of inputs, and dictionary mapping original index->sorted index
of each element. |
(module
(function_definition
(function_name_callback) function_name_callback
(parameters
(identifier_func) identifier_func
)parameters
(block
(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_wrapped) function_name_wrapped
(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_result) identifier_result
(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
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_iscoroutine) identifier_iscoroutine
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_aio_loop) identifier_aio_loop
(identifier_create_task) identifier_create_task
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapped) identifier_wrapped
)return_statement
)block
)function_definition
)module | This decorator turns `func` into a callback for Tkinter
to be able to use, even if `func` is an awaitable coroutine. |
(module
(function_definition
(function_name_vrelg) function_name_vrelg
(parameters
(identifier_v1) identifier_v1
(identifier_v2) identifier_v2
(identifier_ndim) identifier_ndim
)parameters
(block
(expression_statement
(assignment
(identifier_v1) identifier_v1
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toDoubleVector) identifier_toDoubleVector
)attribute
(argument_list
(identifier_v1) identifier_v1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_v2) identifier_v2
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toDoubleVector) identifier_toDoubleVector
)attribute
(argument_list
(identifier_v2) identifier_v2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ndim) identifier_ndim
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_ndim) identifier_ndim
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_vrelg_c) identifier_vrelg_c
)attribute
(argument_list
(identifier_v1) identifier_v1
(identifier_v2) identifier_v2
(identifier_ndim) identifier_ndim
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the relative difference between two vectors of general dimension.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vrelg_c.html
:param v1: First vector
:type v1: Array of floats
:param v2: Second vector
:type v2: Array of floats
:param ndim: Dimension of v1 and v2.
:type ndim: int
:return: the relative difference between v1 and v2.
:rtype: float |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check_crossrefs) identifier_check_crossrefs
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_validate) identifier_validate
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Validates each entry (passing the provided arguments down to them and
also tries to resolve all cross-references between the entries. |
(module
(function_definition
(function_name_set_weights) function_name_set_weights
(parameters
(identifier_self) identifier_self
(identifier_new_weights) identifier_new_weights
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_sess) identifier__check_sess
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_assign_list) identifier_assign_list
(list_comprehension
(subscript
(attribute
(identifier_self) identifier_self
(identifier_assignment_nodes) identifier_assignment_nodes
)attribute
(identifier_name) identifier_name
)subscript
(for_in_clause
(identifier_name) identifier_name
(call
(attribute
(identifier_new_weights) identifier_new_weights
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_assignment_nodes) identifier_assignment_nodes
)attribute
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(assert_statement
(identifier_assign_list) identifier_assign_list
(parenthesized_expression
(concatenated_string
(string_"No variables in the input matched those in the ") string_"No variables in the input matched those in the "
(string_"network. Possible cause: Two networks were ") string_"network. Possible cause: Two networks were "
(string_"defined in the same TensorFlow graph. To fix ") string_"defined in the same TensorFlow graph. To fix "
(string_"this, place each network definition in its own ") string_"this, place each network definition in its own "
(string_"tf.Graph.") string_"tf.Graph."
)concatenated_string
)parenthesized_expression
)assert_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sess) identifier_sess
)attribute
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_assign_list) identifier_assign_list
(keyword_argument
(identifier_feed_dict) identifier_feed_dict
(dictionary_comprehension
(pair
(subscript
(attribute
(identifier_self) identifier_self
(identifier_placeholders) identifier_placeholders
)attribute
(identifier_name) identifier_name
)subscript
(identifier_value) identifier_value
)pair
(for_in_clause
(tuple_pattern
(identifier_name) identifier_name
(identifier_value) identifier_value
)tuple_pattern
(call
(attribute
(identifier_new_weights) identifier_new_weights
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_placeholders) identifier_placeholders
)attribute
)comparison_operator
)if_clause
)dictionary_comprehension
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets the weights to new_weights.
Note:
Can set subsets of variables as well, by only passing in the
variables you want to be set.
Args:
new_weights (Dict): Dictionary mapping variable names to their
weights. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"sets up the desired services and runs the requested action") string_"sets up the desired services and runs the requested action"
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_addServices) identifier_addServices
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_catalogServers) identifier_catalogServers
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_hendrix) identifier_hendrix
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_action) identifier_action
(attribute
(identifier_self) identifier_self
(identifier_action) identifier_action
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fd) identifier_fd
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'fd') string_'fd'
)subscript
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_action) identifier_action
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'start') string_'start'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_chalk) identifier_chalk
(identifier_blue) identifier_blue
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__listening_message) identifier__listening_message
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_action) identifier_action
)argument_list
)call
(argument_list
(identifier_fd) identifier_fd
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reactor) identifier_reactor
)attribute
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(identifier_PID_DIR) identifier_PID_DIR
(keyword_argument
(identifier_ignore_errors) identifier_ignore_errors
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
(elif_clause
(comparison_operator
(identifier_action) identifier_action
(string_'restart') string_'restart'
)comparison_operator
(block
(expression_statement
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_action) identifier_action
)argument_list
)call
(argument_list
(keyword_argument
(identifier_fd) identifier_fd
(identifier_fd) identifier_fd
)keyword_argument
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_action) identifier_action
)argument_list
)call
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | sets up the desired services and runs the requested action |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(list
(string_'name') string_'name'
(string_'cmd') string_'cmd'
(string_'id') string_'id'
(string_'start_time') string_'start_time'
(string_'end_time') string_'end_time'
(string_'outcome') string_'outcome'
(string_'start_time_string') string_'start_time_string'
(string_'start_delta_string') string_'start_delta_string'
)list
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_key) identifier_key
)subscript
(conditional_expression
(call
(identifier_val) identifier_val
(argument_list
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_val) identifier_val
(string_'__call__') string_'__call__'
)argument_list
)call
(identifier_val) identifier_val
)conditional_expression
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'parent') string_'parent'
)subscript
(conditional_expression
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_to_dict) identifier_to_dict
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(None) None
)conditional_expression
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Useful for providing arguments to templates.
:API: public |
(module
(function_definition
(function_name_clean_caches) function_name_clean_caches
(parameters
(identifier_path) identifier_path
)parameters
(block
(for_statement
(pattern_list
(identifier_dirname) identifier_dirname
(identifier_subdirlist) identifier_subdirlist
(identifier_filelist) identifier_filelist
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(for_statement
(identifier_f) identifier_f
(identifier_filelist) identifier_filelist
(block
(if_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'pyc') string_'pyc'
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dirname) identifier_dirname
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_FileNotFoundError) identifier_FileNotFoundError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)for_statement
(if_statement
(call
(attribute
(identifier_dirname) identifier_dirname
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'__pycache__') string_'__pycache__'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(identifier_dirname) identifier_dirname
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Removes all python cache files recursively on a path.
:param path: the path
:return: None |
(module
(function_definition
(function_name_getAngle) function_name_getAngle
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_mode) identifier_mode
(string_'deg') string_'deg'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_refresh) identifier_refresh
)attribute
(True) True
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_getMatrix) identifier_getMatrix
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_mflag) identifier_mflag
)attribute
(block
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(string_'deg') string_'deg'
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_bangle) identifier_bangle
)attribute
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
(integer_180) integer_180
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_bangle) identifier_bangle
)attribute
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Please execute getMatrix() first.") string_"Please execute getMatrix() first."
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | return bend angle
:param mode: 'deg' or 'rad'
:return: deflecting angle in RAD |
(module
(function_definition
(function_name_log_normalize) function_name_log_normalize
(parameters
(identifier_a) identifier_a
(default_parameter
(identifier_axis) identifier_axis
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_np) identifier_np
(identifier_errstate) identifier_errstate
)attribute
(argument_list
(keyword_argument
(identifier_under) identifier_under
(string_"ignore") string_"ignore"
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_a_lse) identifier_a_lse
(call
(identifier_logsumexp) identifier_logsumexp
(argument_list
(identifier_a) identifier_a
(identifier_axis) identifier_axis
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(augmented_assignment
(identifier_a) identifier_a
(subscript
(identifier_a_lse) identifier_a_lse
(slice
(colon) colon
)slice
(attribute
(identifier_np) identifier_np
(identifier_newaxis) identifier_newaxis
)attribute
)subscript
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Normalizes the input array so that the exponent of the sum is 1.
Parameters
----------
a : array
Non-normalized input data.
axis : int
Dimension along which normalization is performed.
Notes
-----
Modifies the input **inplace**. |
(module
(function_definition
(function_name__verify_run) function_name__verify_run
(parameters
(identifier_out) identifier_out
(default_parameter
(identifier_cmd) identifier_cmd
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(identifier_out) identifier_out
(identifier_get) identifier_get
)attribute
(argument_list
(string_'retcode') string_'retcode'
(integer_0) integer_0
)argument_list
)call
(subscript
(identifier_out) identifier_out
(string_'stderr') string_'stderr'
)subscript
)boolean_operator
(block
(if_statement
(identifier_cmd) identifier_cmd
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Command: \'%s\'') string_'Command: \'%s\''
(identifier_cmd) identifier_cmd
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Return code: %s') string_'Return code: %s'
(call
(attribute
(identifier_out) identifier_out
(identifier_get) identifier_get
)attribute
(argument_list
(string_'retcode') string_'retcode'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Error output:\n%s') string_'Error output:\n%s'
(call
(attribute
(identifier_out) identifier_out
(identifier_get) identifier_get
)attribute
(argument_list
(string_'stderr') string_'stderr'
(string_'N/A') string_'N/A'
)argument_list
)call
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(subscript
(identifier_out) identifier_out
(string_'stderr') string_'stderr'
)subscript
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Crash to the log if command execution was not successful. |
(module
(function_definition
(function_name_send_facebook) function_name_send_facebook
(parameters
(identifier_self) identifier_self
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_struct) identifier_send_struct
)attribute
(argument_list
(binary_operator
(string_'<B%iB') string_'<B%iB'
(call
(identifier_len) identifier_len
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)binary_operator
(integer_81) integer_81
(list_splat
(call
(identifier_map) identifier_map
(argument_list
(identifier_ord) identifier_ord
(identifier_token) identifier_token
)argument_list
)call
)list_splat
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_facebook_token) identifier_facebook_token
)attribute
(identifier_token) identifier_token
)assignment
)expression_statement
)block
)function_definition
)module | Tells the server which Facebook account this client uses.
After sending, the server takes some time to
get the data from Facebook.
Seems to be broken in recent versions of the game. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.