sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_to_string) function_name_to_string
(parameters
(identifier_type) identifier_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_type) identifier_type
(None) None
)comparison_operator
(block
(return_statement
(string_"unknown") string_"unknown"
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Unknown) identifier_Unknown
)attribute
)comparison_operator
(block
(return_statement
(string_"unknown") string_"unknown"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_String) identifier_String
)attribute
)comparison_operator
(block
(return_statement
(string_"string") string_"string"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Integer) identifier_Integer
)attribute
)comparison_operator
(block
(return_statement
(string_"integer") string_"integer"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Long) identifier_Long
)attribute
)comparison_operator
(block
(return_statement
(string_"long") string_"long"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Float) identifier_Float
)attribute
)comparison_operator
(block
(return_statement
(string_"float") string_"float"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Double) identifier_Double
)attribute
)comparison_operator
(block
(return_statement
(string_"double") string_"double"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Duration) identifier_Duration
)attribute
)comparison_operator
(block
(return_statement
(string_"duration") string_"duration"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_DateTime) identifier_DateTime
)attribute
)comparison_operator
(block
(return_statement
(string_"datetime") string_"datetime"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Object) identifier_Object
)attribute
)comparison_operator
(block
(return_statement
(string_"object") string_"object"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Enum) identifier_Enum
)attribute
)comparison_operator
(block
(return_statement
(string_"enum") string_"enum"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Array) identifier_Array
)attribute
)comparison_operator
(block
(return_statement
(string_"array") string_"array"
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type) identifier_type
(attribute
(identifier_TypeCode) identifier_TypeCode
(identifier_Map) identifier_Map
)attribute
)comparison_operator
(block
(return_statement
(string_"map") string_"map"
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(string_"unknown") string_"unknown"
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Converts a TypeCode into its string name.
:param type: the TypeCode to convert into a string.
:return: the name of the TypeCode passed as a string value. |
(module
(function_definition
(function_name_manage_submissions) function_name_manage_submissions
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'submissions') string_'submissions'
)argument_list
)call
)not_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_submissions) identifier_submissions
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_submissions) identifier_submissions
)attribute
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'mode') string_'mode'
)subscript
(string_'front') string_'front'
)comparison_operator
(block
(if_statement
(boolean_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'password') string_'password'
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'username') string_'username'
)subscript
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_login) identifier_login
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'http://reddit.com/.json?sort={0}') string_'http://reddit.com/.json?sort={0}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'sort') string_'sort'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_submissions) identifier_submissions
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_submissions) identifier_get_submissions
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'mode') string_'mode'
)subscript
(string_'subreddit') string_'subreddit'
)comparison_operator
(block
(for_statement
(identifier_subreddit) identifier_subreddit
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'subreddits') string_'subreddits'
)subscript
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'http://reddit.com/r/{0}/.json?sort={1}') string_'http://reddit.com/r/{0}/.json?sort={1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_subreddit) identifier_subreddit
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'limit') string_'limit'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_submissions) identifier_submissions
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_submissions) identifier_get_submissions
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(return_statement
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | If there are no or only one submissions left, get new submissions.
This function manages URL creation and the specifics for front page
or subreddit mode. |
(module
(function_definition
(function_name_sle) function_name_sle
(parameters
(identifier_actual) identifier_actual
(identifier_predicted) identifier_predicted
)parameters
(block
(return_statement
(parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_actual) identifier_actual
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_predicted) identifier_predicted
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
)binary_operator
(integer_2) integer_2
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Computes the squared log error.
This function computes the squared log error between two numbers,
or for element between a pair of lists or numpy arrays.
Parameters
----------
actual : int, float, list of numbers, numpy array
The ground truth value
predicted : same type as actual
The predicted value
Returns
-------
score : double or list of doubles
The squared log error between actual and predicted |
(module
(function_definition
(function_name__local_install) function_name__local_install
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
(default_parameter
(identifier_pkg_name) identifier_pkg_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(raise_statement
(call
(identifier_SPMInvocationError) identifier_SPMInvocationError
(argument_list
(string_'A package file must be specified') string_'A package file must be specified'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__install) identifier__install
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Install a package from a file |
(module
(function_definition
(function_name_teardown_websocket) function_name_teardown_websocket
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_func) identifier_func
(type
(identifier_Callable) identifier_Callable
)type
)typed_parameter
(typed_default_parameter
(identifier_name) identifier_name
(type
(identifier_AppOrBlueprintKey) identifier_AppOrBlueprintKey
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_Callable) identifier_Callable
)type
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(call
(identifier_ensure_coroutine) identifier_ensure_coroutine
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_teardown_websocket_funcs) identifier_teardown_websocket_funcs
)attribute
(identifier_name) identifier_name
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
)module | Add a teardown websocket function.
This is designed to be used as a decorator. An example usage,
.. code-block:: python
@app.teardown_websocket
def func():
...
Arguments:
func: The teardown websocket function itself.
name: Optional blueprint key name. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_von_wallet) identifier_von_wallet
(type
(identifier_Wallet) identifier_Wallet
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'WalletManager.remove >>> wallet %s') string_'WalletManager.remove >>> wallet %s'
(identifier_von_wallet) identifier_von_wallet
)argument_list
)call
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_von_wallet) identifier_von_wallet
(identifier_remove) identifier_remove
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'WalletManager.remove <<<') string_'WalletManager.remove <<<'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove serialized wallet if it exists. Raise WalletState if wallet is open.
:param von_wallet: (closed) wallet to remove |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_sample_rate) identifier_sample_rate
(None) None
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__disabled) identifier__disabled
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Connection disabled, not sending data') string_'Connection disabled, not sending data'
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_sample_rate) identifier_sample_rate
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_sample_rate) identifier_sample_rate
(attribute
(identifier_self) identifier_self
(identifier__sample_rate) identifier__sample_rate
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sampled_data) identifier_sampled_data
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_sample_rate) identifier_sample_rate
(integer_1) integer_1
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_random) identifier_random
(identifier_random) identifier_random
)attribute
(argument_list
)argument_list
)call
(identifier_sample_rate) identifier_sample_rate
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_stat) identifier_stat
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_compat) identifier_compat
(identifier_iter_dict) identifier_iter_dict
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_sampled_data) identifier_sampled_data
(identifier_stat) identifier_stat
)subscript
(binary_operator
(string_'%s|@%s') string_'%s|@%s'
(tuple
(subscript
(identifier_data) identifier_data
(identifier_stat) identifier_stat
)subscript
(identifier_sample_rate) identifier_sample_rate
)tuple
)binary_operator
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_sampled_data) identifier_sampled_data
(identifier_data) identifier_data
)assignment
)expression_statement
)block
)else_clause
)if_statement
(try_statement
(block
(for_statement
(pattern_list
(identifier_stat) identifier_stat
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_compat) identifier_compat
(identifier_iter_dict) identifier_iter_dict
)attribute
(argument_list
(identifier_sampled_data) identifier_sampled_data
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_send_data) identifier_send_data
(call
(attribute
(parenthesized_expression
(binary_operator
(string_'%s:%s') string_'%s:%s'
(tuple
(identifier_stat) identifier_stat
(identifier_value) identifier_value
)tuple
)binary_operator
)parenthesized_expression
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_udp_sock) identifier_udp_sock
)attribute
(identifier_send) identifier_send
)attribute
(argument_list
(identifier_send_data) identifier_send_data
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_'unexpected error %r while sending data') string_'unexpected error %r while sending data'
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Send the data over UDP while taking the sample_rate in account
The sample rate should be a number between `0` and `1` which indicates
the probability that a message will be sent. The sample_rate is also
communicated to `statsd` so it knows what multiplier to use.
:keyword data: The data to send
:type data: dict
:keyword sample_rate: The sample rate, defaults to `1` (meaning always)
:type sample_rate: int |
(module
(function_definition
(function_name_getHTML) function_name_getHTML
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(identifier_self) identifier_self
(identifier_getRoot) identifier_getRoot
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_root) identifier_root
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Did not parse anything. Use parseFile or parseStr') string_'Did not parse anything. Use parseFile or parseStr'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_doctype) identifier_doctype
)attribute
(block
(expression_statement
(assignment
(identifier_doctypeStr) identifier_doctypeStr
(binary_operator
(string_'<!%s>\n') string_'<!%s>\n'
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_doctype) identifier_doctype
)attribute
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_doctypeStr) identifier_doctypeStr
(string_'') string_''
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_rootNode) identifier_rootNode
(call
(attribute
(identifier_self) identifier_self
(identifier_getRoot) identifier_getRoot
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_rootNode) identifier_rootNode
(identifier_tagName) identifier_tagName
)attribute
(identifier_INVISIBLE_ROOT_TAG) identifier_INVISIBLE_ROOT_TAG
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_doctypeStr) identifier_doctypeStr
(attribute
(identifier_rootNode) identifier_rootNode
(identifier_innerHTML) identifier_innerHTML
)attribute
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(identifier_doctypeStr) identifier_doctypeStr
(attribute
(identifier_rootNode) identifier_rootNode
(identifier_outerHTML) identifier_outerHTML
)attribute
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | getHTML - Get the full HTML as contained within this tree.
If parsed from a document, this will contain the original whitespacing.
@returns - <str> of html
@see getFormattedHTML
@see getMiniHTML |
(module
(function_definition
(function_name_to_decimal) function_name_to_decimal
(parameters
(identifier_number) identifier_number
(default_parameter
(identifier_strip) identifier_strip
(string_'- ') string_'- '
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_number) identifier_number
(attribute
(identifier_six) identifier_six
(identifier_integer_types) identifier_integer_types
)attribute
)argument_list
)call
(block
(return_statement
(call
(identifier_str) identifier_str
(argument_list
(identifier_number) identifier_number
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_number) identifier_number
(call
(identifier_str) identifier_str
(argument_list
(identifier_number) identifier_number
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_number) identifier_number
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(binary_operator
(string_r'[%s]') string_r'[%s]'
(call
(attribute
(identifier_re) identifier_re
(identifier_escape) identifier_escape
)attribute
(argument_list
(identifier_strip) identifier_strip
)argument_list
)call
)binary_operator
(string_'') string_''
(identifier_number) identifier_number
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_number) identifier_number
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'0x') string_'0x'
)argument_list
)call
(block
(return_statement
(call
(identifier_to_decimal) identifier_to_decimal
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_number) identifier_number
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
(integer_16) integer_16
)argument_list
)call
)argument_list
)call
)return_statement
)block
(elif_clause
(call
(attribute
(identifier_number) identifier_number
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'o') string_'o'
)argument_list
)call
(block
(return_statement
(call
(identifier_to_decimal) identifier_to_decimal
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_number) identifier_number
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(integer_8) integer_8
)argument_list
)call
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(call
(attribute
(identifier_number) identifier_number
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'b') string_'b'
)argument_list
)call
(block
(return_statement
(call
(identifier_to_decimal) identifier_to_decimal
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_number) identifier_number
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(integer_2) integer_2
)argument_list
)call
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_number) identifier_number
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Converts a number to a string of decimals in base 10.
>>> to_decimal(123)
'123'
>>> to_decimal('o123')
'83'
>>> to_decimal('b101010')
'42'
>>> to_decimal('0x2a')
'42' |
(module
(function_definition
(function_name_compile_jobgroups_from_joblist) function_name_compile_jobgroups_from_joblist
(parameters
(identifier_joblist) identifier_joblist
(identifier_jgprefix) identifier_jgprefix
(identifier_sgegroupsize) identifier_sgegroupsize
)parameters
(block
(expression_statement
(assignment
(identifier_jobcmds) identifier_jobcmds
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_job) identifier_job
(identifier_joblist) identifier_joblist
(block
(expression_statement
(call
(attribute
(subscript
(identifier_jobcmds) identifier_jobcmds
(subscript
(call
(attribute
(attribute
(identifier_job) identifier_job
(identifier_command) identifier_command
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
(integer_1) integer_1
)argument_list
)call
(integer_0) integer_0
)subscript
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_job) identifier_job
(identifier_command) identifier_command
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_jobgroups) identifier_jobgroups
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_cmds) identifier_cmds
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_jobcmds) identifier_jobcmds
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_sublists) identifier_sublists
(call
(identifier_split_seq) identifier_split_seq
(argument_list
(subscript
(identifier_cmds) identifier_cmds
(integer_1) integer_1
)subscript
(identifier_sgegroupsize) identifier_sgegroupsize
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_sublist) identifier_sublist
(identifier_sublists) identifier_sublists
(block
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_sge_jobcmdlist) identifier_sge_jobcmdlist
(list_comprehension
(binary_operator
(string_'\"%s\"') string_'\"%s\"'
(identifier_jc) identifier_jc
)binary_operator
(for_in_clause
(identifier_jc) identifier_jc
(identifier_sublist) identifier_sublist
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_jobgroups) identifier_jobgroups
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_JobGroup) identifier_JobGroup
(argument_list
(binary_operator
(string_"%s_%d") string_"%s_%d"
(tuple
(identifier_jgprefix) identifier_jgprefix
(identifier_count) identifier_count
)tuple
)binary_operator
(string_"$cmds") string_"$cmds"
(keyword_argument
(identifier_arguments) identifier_arguments
(dictionary
(pair
(string_'cmds') string_'cmds'
(identifier_sge_jobcmdlist) identifier_sge_jobcmdlist
)pair
)dictionary
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_jobgroups) identifier_jobgroups
)return_statement
)block
)function_definition
)module | Return list of jobgroups, rather than list of jobs. |
(module
(function_definition
(function_name_fetch) function_name_fetch
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_remote) identifier_remote
(None) None
)default_parameter
(default_parameter
(identifier_refspec) identifier_refspec
(None) None
)default_parameter
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
(default_parameter
(identifier_tags) identifier_tags
(True) True
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_git_fetch) identifier_git_fetch
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_repo_dir) identifier_repo_dir
)attribute
(keyword_argument
(identifier_remote) identifier_remote
(identifier_remote) identifier_remote
)keyword_argument
(keyword_argument
(identifier_refspec) identifier_refspec
(identifier_refspec) identifier_refspec
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(identifier_verbose) identifier_verbose
)keyword_argument
(keyword_argument
(identifier_tags) identifier_tags
(identifier_tags) identifier_tags
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Do a git fetch of `refspec`. |
(module
(function_definition
(function_name__MergeEntities) function_name__MergeEntities
(parameters
(identifier_self) identifier_self
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(expression_statement
(assignment
(identifier_scheme) identifier_scheme
(dictionary
(pair
(string_'price') string_'price'
(attribute
(identifier_self) identifier_self
(identifier__MergeIdentical) identifier__MergeIdentical
)attribute
)pair
(pair
(string_'currency_type') string_'currency_type'
(attribute
(identifier_self) identifier_self
(identifier__MergeIdentical) identifier__MergeIdentical
)attribute
)pair
(pair
(string_'payment_method') string_'payment_method'
(attribute
(identifier_self) identifier_self
(identifier__MergeIdentical) identifier__MergeIdentical
)attribute
)pair
(pair
(string_'transfers') string_'transfers'
(attribute
(identifier_self) identifier_self
(identifier__MergeIdentical) identifier__MergeIdentical
)attribute
)pair
(pair
(string_'transfer_duration') string_'transfer_duration'
(attribute
(identifier_self) identifier_self
(identifier__MergeIdentical) identifier__MergeIdentical
)attribute
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__SchemedMerge) identifier__SchemedMerge
)attribute
(argument_list
(identifier_scheme) identifier_scheme
(identifier_a) identifier_a
(identifier_b) identifier_b
)argument_list
)call
)return_statement
)block
)function_definition
)module | Merges the fares if all the attributes are the same. |
(module
(function_definition
(function_name__compute_delta_beta) function_name__compute_delta_beta
(parameters
(identifier_self) identifier_self
(identifier_df) identifier_df
(identifier_events) identifier_events
(identifier_start) identifier_start
(identifier_stop) identifier_stop
(identifier_weights) identifier_weights
)parameters
(block
(expression_statement
(assignment
(identifier_score_residuals) identifier_score_residuals
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__compute_residuals) identifier__compute_residuals
)attribute
(argument_list
(identifier_df) identifier_df
(identifier_events) identifier_events
(identifier_start) identifier_start
(identifier_stop) identifier_stop
(identifier_weights) identifier_weights
)argument_list
)call
(subscript
(identifier_weights) identifier_weights
(slice
(colon) colon
)slice
(None) None
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_naive_var) identifier_naive_var
(call
(identifier_inv) identifier_inv
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__hessian_) identifier__hessian_
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta_betas) identifier_delta_betas
(binary_operator
(unary_operator
(call
(attribute
(identifier_score_residuals) identifier_score_residuals
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_naive_var) identifier_naive_var
)argument_list
)call
)unary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__norm_std) identifier__norm_std
)attribute
(identifier_values) identifier_values
)attribute
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_delta_betas) identifier_delta_betas
)return_statement
)block
)function_definition
)module | approximate change in betas as a result of excluding ith row |
(module
(function_definition
(function_name_get_loglevel) function_name_get_loglevel
(parameters
(identifier_level) identifier_level
)parameters
(block
(if_statement
(comparison_operator
(identifier_level) identifier_level
(string_'debug') string_'debug'
)comparison_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_DEBUG) identifier_DEBUG
)attribute
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_level) identifier_level
(string_'notice') string_'notice'
)comparison_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_INFO) identifier_INFO
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_level) identifier_level
(string_'info') string_'info'
)comparison_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_INFO) identifier_INFO
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(identifier_level) identifier_level
(string_'warning') string_'warning'
)comparison_operator
(comparison_operator
(identifier_level) identifier_level
(string_'warn') string_'warn'
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_WARNING) identifier_WARNING
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(identifier_level) identifier_level
(string_'error') string_'error'
)comparison_operator
(comparison_operator
(identifier_level) identifier_level
(string_'err') string_'err'
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_ERROR) identifier_ERROR
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(identifier_level) identifier_level
(string_'critical') string_'critical'
)comparison_operator
(comparison_operator
(identifier_level) identifier_level
(string_'crit') string_'crit'
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_CRITICAL) identifier_CRITICAL
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_level) identifier_level
(string_'alert') string_'alert'
)comparison_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_CRITICAL) identifier_CRITICAL
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(identifier_level) identifier_level
(string_'emergency') string_'emergency'
)comparison_operator
(comparison_operator
(identifier_level) identifier_level
(string_'emerg') string_'emerg'
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_CRITICAL) identifier_CRITICAL
)attribute
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(attribute
(identifier_logging) identifier_logging
(identifier_INFO) identifier_INFO
)attribute
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | return logging level object
corresponding to a given level passed as
a string
@str level: name of a syslog log level
@rtype: logging, logging level from logging module |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
(identifier_dsn) identifier_dsn
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(call
(attribute
(identifier_psycopg2) identifier_psycopg2
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_dsn) identifier_dsn
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_cur) identifier_cur
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(identifier_cursor) identifier_cursor
)attribute
(argument_list
(keyword_argument
(identifier_cursor_factory) identifier_cursor_factory
(attribute
(attribute
(identifier_psycopg2) identifier_psycopg2
(identifier_extras) identifier_extras
)attribute
(identifier_DictCursor) identifier_DictCursor
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(identifier_set_isolation_level) identifier_set_isolation_level
)attribute
(argument_list
(attribute
(attribute
(identifier_psycopg2) identifier_psycopg2
(identifier_extensions) identifier_extensions
)attribute
(identifier_ISOLATION_LEVEL_AUTOCOMMIT) identifier_ISOLATION_LEVEL_AUTOCOMMIT
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Connect to DB.
dbname: the database name user: user name used to authenticate password:
password used to authenticate host: database host address (defaults to UNIX
socket if not provided) port: connection port number (defaults to 5432 if not
provided) |
(module
(function_definition
(function_name_summary) function_name_summary
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_translations) identifier_translations
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update) identifier_update
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(list_comprehension
(call
(attribute
(identifier_summary) identifier_summary
(identifier_taf) identifier_taf
)attribute
(argument_list
(identifier_trans) identifier_trans
)argument_list
)call
(for_in_clause
(identifier_trans) identifier_trans
(attribute
(attribute
(identifier_self) identifier_self
(identifier_translations) identifier_translations
)attribute
(identifier_forecast) identifier_forecast
)attribute
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Condensed summary for each forecast created from translations |
(module
(function_definition
(function_name_visit_create_library_command) function_name_visit_create_library_command
(parameters
(identifier_element) identifier_element
(identifier_compiler) identifier_compiler
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(assignment
(identifier_bindparams) identifier_bindparams
(list
(call
(attribute
(identifier_sa) identifier_sa
(identifier_bindparam) identifier_bindparam
)attribute
(argument_list
(string_'location') string_'location'
(keyword_argument
(identifier_value) identifier_value
(attribute
(identifier_element) identifier_element
(identifier_location) identifier_location
)attribute
)keyword_argument
(keyword_argument
(identifier_type_) identifier_type_
(attribute
(identifier_sa) identifier_sa
(identifier_String) identifier_String
)attribute
)keyword_argument
)argument_list
)call
(call
(attribute
(identifier_sa) identifier_sa
(identifier_bindparam) identifier_bindparam
)attribute
(argument_list
(string_'credentials') string_'credentials'
(keyword_argument
(identifier_value) identifier_value
(attribute
(identifier_element) identifier_element
(identifier_credentials) identifier_credentials
)attribute
)keyword_argument
(keyword_argument
(identifier_type_) identifier_type_
(attribute
(identifier_sa) identifier_sa
(identifier_String) identifier_String
)attribute
)keyword_argument
)argument_list
)call
)list
)assignment
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_element) identifier_element
(identifier_region) identifier_region
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_bindparams) identifier_bindparams
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_sa) identifier_sa
(identifier_bindparam) identifier_bindparam
)attribute
(argument_list
(string_'region') string_'region'
(keyword_argument
(identifier_value) identifier_value
(attribute
(identifier_element) identifier_element
(identifier_region) identifier_region
)attribute
)keyword_argument
(keyword_argument
(identifier_type_) identifier_type_
(attribute
(identifier_sa) identifier_sa
(identifier_String) identifier_String
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_quoted_lib_name) identifier_quoted_lib_name
(call
(attribute
(attribute
(identifier_compiler) identifier_compiler
(identifier_preparer) identifier_preparer
)attribute
(identifier_quote_identifier) identifier_quote_identifier
)attribute
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_library_name) identifier_library_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_query) identifier_query
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_quoted_lib_name) identifier_quoted_lib_name
)keyword_argument
(keyword_argument
(identifier_or_replace) identifier_or_replace
(conditional_expression
(string_'OR REPLACE') string_'OR REPLACE'
(attribute
(identifier_element) identifier_element
(identifier_replace) identifier_replace
)attribute
(string_'') string_''
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_region) identifier_region
(conditional_expression
(string_'REGION :region') string_'REGION :region'
(attribute
(identifier_element) identifier_element
(identifier_region) identifier_region
)attribute
(string_'') string_''
)conditional_expression
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_compiler) identifier_compiler
(identifier_process) identifier_process
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_sa) identifier_sa
(identifier_text) identifier_text
)attribute
(argument_list
(identifier_query) identifier_query
)argument_list
)call
(identifier_bindparams) identifier_bindparams
)attribute
(argument_list
(list_splat
(identifier_bindparams) identifier_bindparams
)list_splat
)argument_list
)call
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the actual sql query for the CreateLibraryCommand class. |
(module
(function_definition
(function_name_reload) function_name_reload
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_utt_ids) identifier_utt_ids
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_utt_ids) identifier_utt_ids
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_shuffle) identifier_shuffle
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rand) identifier_rand
)attribute
(identifier_shuffle) identifier_shuffle
)attribute
(argument_list
(identifier_utt_ids) identifier_utt_ids
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_partitions) identifier_partitions
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_partition) identifier_current_partition
(call
(identifier_PartitionInfo) identifier_PartitionInfo
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_utt_id) identifier_utt_id
(identifier_utt_ids) identifier_utt_ids
(block
(expression_statement
(assignment
(identifier_utt_size) identifier_utt_size
(subscript
(attribute
(identifier_self) identifier_self
(identifier_utt_sizes) identifier_utt_sizes
)attribute
(identifier_utt_id) identifier_utt_id
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utt_lengths) identifier_utt_lengths
(subscript
(attribute
(identifier_self) identifier_self
(identifier_utt_lengths) identifier_utt_lengths
)attribute
(identifier_utt_id) identifier_utt_id
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_current_partition) identifier_current_partition
(identifier_size) identifier_size
)attribute
(identifier_utt_size) identifier_utt_size
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_partition_size) identifier_partition_size
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_partitions) identifier_partitions
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_current_partition) identifier_current_partition
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_current_partition) identifier_current_partition
(call
(identifier_PartitionInfo) identifier_PartitionInfo
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_current_partition) identifier_current_partition
(identifier_utt_ids) identifier_utt_ids
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_utt_id) identifier_utt_id
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_current_partition) identifier_current_partition
(identifier_utt_lengths) identifier_utt_lengths
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_utt_lengths) identifier_utt_lengths
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_current_partition) identifier_current_partition
(identifier_size) identifier_size
)attribute
(identifier_utt_size) identifier_utt_size
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(attribute
(identifier_current_partition) identifier_current_partition
(identifier_size) identifier_size
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_partitions) identifier_partitions
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_current_partition) identifier_current_partition
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_partitions) identifier_partitions
)attribute
(identifier_partitions) identifier_partitions
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_partitions) identifier_partitions
)attribute
)return_statement
)block
)function_definition
)module | Create a new partition scheme. A scheme defines which utterances are in which partition.
The scheme only changes after every call if ``self.shuffle == True``.
Returns:
list: List of PartitionInfo objects, defining the new partitions (same as ``self.partitions``) |
(module
(function_definition
(function_name_compile_resource) function_name_compile_resource
(parameters
(identifier_resource) identifier_resource
)parameters
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(binary_operator
(binary_operator
(string_"^") string_"^"
(call
(identifier_trim_resource) identifier_trim_resource
(argument_list
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r":(\w+)") string_r":(\w+)"
(string_r"(?P<\1>[\w-]+?)") string_r"(?P<\1>[\w-]+?)"
(identifier_resource) identifier_resource
)argument_list
)call
)argument_list
)call
)binary_operator
(string_r"(\?(?P<querystring>.*))?$") string_r"(\?(?P<querystring>.*))?$"
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return compiled regex for resource matching |
(module
(function_definition
(function_name_serialize_yaml_tofile) function_name_serialize_yaml_tofile
(parameters
(identifier_filename) identifier_filename
(identifier_resource) identifier_resource
)parameters
(block
(expression_statement
(assignment
(identifier_stream) identifier_stream
(call
(identifier_file) identifier_file
(argument_list
(identifier_filename) identifier_filename
(string_"w") string_"w"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_resource) identifier_resource
(identifier_stream) identifier_stream
(keyword_argument
(identifier_default_flow_style) identifier_default_flow_style
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Serializes a K8S resource to YAML-formatted file. |
(module
(function_definition
(function_name_mequg) function_name_mequg
(parameters
(identifier_m1) identifier_m1
(identifier_nr) identifier_nr
(identifier_nc) identifier_nc
)parameters
(block
(expression_statement
(assignment
(identifier_m1) identifier_m1
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toDoubleMatrix) identifier_toDoubleMatrix
)attribute
(argument_list
(identifier_m1) identifier_m1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mout) identifier_mout
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_emptyDoubleMatrix) identifier_emptyDoubleMatrix
)attribute
(argument_list
(keyword_argument
(identifier_x) identifier_x
(identifier_nc) identifier_nc
)keyword_argument
(keyword_argument
(identifier_y) identifier_y
(identifier_nr) identifier_nr
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nc) identifier_nc
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_nc) identifier_nc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nr) identifier_nr
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_nr) identifier_nr
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_mequg_c) identifier_mequg_c
)attribute
(argument_list
(identifier_m1) identifier_m1
(identifier_nc) identifier_nc
(identifier_nr) identifier_nr
(identifier_mout) identifier_mout
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_cMatrixToNumpy) identifier_cMatrixToNumpy
)attribute
(argument_list
(identifier_mout) identifier_mout
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set one double precision matrix of arbitrary size equal to another.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mequg_c.html
:param m1: Input matrix.
:type m1: NxM-Element Array of floats
:param nr: Row dimension of m1.
:type nr: int
:param nc: Column dimension of m1.
:type nc: int
:return: Output matrix equal to m1
:rtype: NxM-Element Array of floats |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parser) identifier_parser
)attribute
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(identifier_self) identifier_self
(identifier_affiliate) identifier_affiliate
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_code) identifier_code
)return_statement
)block
)function_definition
)module | Affiliate unique identities to organizations. |
(module
(function_definition
(function_name_print_config) function_name_print_config
(parameters
(identifier__run) identifier__run
)parameters
(block
(expression_statement
(assignment
(identifier_final_config) identifier_final_config
(attribute
(identifier__run) identifier__run
(identifier_config) identifier_config
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_config_mods) identifier_config_mods
(attribute
(identifier__run) identifier__run
(identifier_config_modifications) identifier_config_modifications
)attribute
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(identifier__format_config) identifier__format_config
(argument_list
(identifier_final_config) identifier_final_config
(identifier_config_mods) identifier_config_mods
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Print the updated configuration and exit.
Text is highlighted:
green: value modified
blue: value added
red: value modified but type changed |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dataSet) identifier_dataSet
(call
(attribute
(identifier_self) identifier_self
(identifier_dataSet) identifier_dataSet
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(not_operator
(identifier_dataSet) identifier_dataSet
)not_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_dataSet) identifier_dataSet
(call
(identifier_XScheme) identifier_XScheme
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_dataSet) identifier_dataSet
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Resets the colors to the default settings. |
(module
(function_definition
(function_name_string_for_count) function_name_string_for_count
(parameters
(identifier_dictionary) identifier_dictionary
(identifier_count) identifier_count
)parameters
(block
(expression_statement
(assignment
(identifier_string_to_print) identifier_string_to_print
(string_"") string_""
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_count) identifier_count
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_count) identifier_count
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(string_"") string_""
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ranger) identifier_ranger
(identifier_count) identifier_count
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ranger) identifier_ranger
(integer_2) integer_2
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_index) identifier_index
(call
(identifier_range) identifier_range
(argument_list
(identifier_ranger) identifier_ranger
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_string_to_print) identifier_string_to_print
(call
(attribute
(string_"{} ") string_"{} "
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_get_random_word) identifier_get_random_word
(argument_list
(identifier_dictionary) identifier_dictionary
)argument_list
)call
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_string_to_print) identifier_string_to_print
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a random string of N=`count` words |
(module
(function_definition
(function_name__set_program_defaults) function_name__set_program_defaults
(parameters
(identifier_cls) identifier_cls
(identifier_programs) identifier_programs
)parameters
(block
(for_statement
(identifier_program) identifier_program
(identifier_programs) identifier_programs
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(boolean_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_cls) identifier_cls
(attribute
(identifier_program) identifier_program
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_extern) identifier_extern
(identifier_does_external_program_run) identifier_does_external_program_run
)attribute
(argument_list
(attribute
(identifier_program) identifier_program
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_Settings) identifier_Settings
(identifier_verbose) identifier_verbose
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_cls) identifier_cls
(attribute
(identifier_program) identifier_program
(identifier___name__) identifier___name__
)attribute
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Run the external program tester on the required binaries. |
(module
(function_definition
(function_name_avhrr) function_name_avhrr
(parameters
(identifier_scans_nb) identifier_scans_nb
(identifier_scan_points) identifier_scan_points
(default_parameter
(identifier_scan_angle) identifier_scan_angle
(float_55.37) float_55.37
)default_parameter
(default_parameter
(identifier_frequency) identifier_frequency
(binary_operator
(integer_1) integer_1
(float_6.0) float_6.0
)binary_operator
)default_parameter
(default_parameter
(identifier_apply_offset) identifier_apply_offset
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_avhrr_inst) identifier_avhrr_inst
(call
(attribute
(identifier_np) identifier_np
(identifier_vstack) identifier_vstack
)attribute
(argument_list
(tuple
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_scan_points) identifier_scan_points
(float_1023.5) float_1023.5
)binary_operator
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_deg2rad) identifier_deg2rad
)attribute
(argument_list
(unary_operator
(identifier_scan_angle) identifier_scan_angle
)unary_operator
)argument_list
)call
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(tuple
(call
(identifier_len) identifier_len
(argument_list
(identifier_scan_points) identifier_scan_points
)argument_list
)call
)tuple
)argument_list
)call
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_avhrr_inst) identifier_avhrr_inst
(call
(attribute
(identifier_np) identifier_np
(identifier_tile) identifier_tile
)attribute
(argument_list
(subscript
(identifier_avhrr_inst) identifier_avhrr_inst
(slice
(colon) colon
)slice
(attribute
(identifier_np) identifier_np
(identifier_newaxis) identifier_newaxis
)attribute
(slice
(colon) colon
)slice
)subscript
(list
(integer_1) integer_1
(call
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
(argument_list
(identifier_scans_nb) identifier_scans_nb
)argument_list
)call
(integer_1) integer_1
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_times) identifier_times
(call
(attribute
(identifier_np) identifier_np
(identifier_tile) identifier_tile
)attribute
(argument_list
(binary_operator
(identifier_scan_points) identifier_scan_points
(float_0.000025) float_0.000025
)binary_operator
(list
(call
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
(argument_list
(identifier_scans_nb) identifier_scans_nb
)argument_list
)call
(integer_1) integer_1
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_apply_offset) identifier_apply_offset
(block
(expression_statement
(assignment
(identifier_offset) identifier_offset
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
(argument_list
(identifier_scans_nb) identifier_scans_nb
)argument_list
)call
)argument_list
)call
(identifier_frequency) identifier_frequency
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_times) identifier_times
(call
(attribute
(identifier_np) identifier_np
(identifier_expand_dims) identifier_expand_dims
)attribute
(argument_list
(identifier_offset) identifier_offset
(integer_1) integer_1
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_ScanGeometry) identifier_ScanGeometry
(argument_list
(identifier_avhrr_inst) identifier_avhrr_inst
(identifier_times) identifier_times
)argument_list
)call
)return_statement
)block
)function_definition
)module | Definition of the avhrr instrument.
Source: NOAA KLM User's Guide, Appendix J
http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/j/app-j.htm |
(module
(function_definition
(function_name_build_parameter) function_name_build_parameter
(parameters
(identifier_name) identifier_name
(identifier_properties) identifier_properties
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_Parameter) identifier_Parameter
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_Type) identifier_Type
(call
(attribute
(identifier_properties) identifier_properties
(identifier_get) identifier_get
)attribute
(argument_list
(string_"type") string_"type"
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_attr) identifier_attr
)pattern_list
(call
(attribute
(identifier_PARAMETER_PROPERTIES) identifier_PARAMETER_PROPERTIES
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_properties) identifier_properties
)comparison_operator
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_p) identifier_p
(identifier_attr) identifier_attr
(subscript
(identifier_properties) identifier_properties
(identifier_name) identifier_name
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_p) identifier_p
)return_statement
)block
)function_definition
)module | Builds a troposphere Parameter with the given properties.
Args:
name (string): The name of the parameter.
properties (dict): Contains the properties that will be applied to the
parameter. See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html
Returns:
:class:`troposphere.Parameter`: The created parameter object. |
(module
(function_definition
(function_name_PushEventSource) function_name_PushEventSource
(parameters
(identifier_self) identifier_self
(identifier_event_source) identifier_event_source
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_event_source) identifier_event_source
(identifier_file_entry_type) identifier_file_entry_type
)attribute
(parenthesized_expression
(attribute
(identifier_dfvfs_definitions) identifier_dfvfs_definitions
(identifier_FILE_ENTRY_TYPE_DIRECTORY) identifier_FILE_ENTRY_TYPE_DIRECTORY
)attribute
)parenthesized_expression
)comparison_operator
(block
(expression_statement
(assignment
(identifier_weight) identifier_weight
(integer_1) integer_1
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_weight) identifier_weight
(integer_100) integer_100
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_heap_values) identifier_heap_values
(tuple
(identifier_weight) identifier_weight
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(identifier_event_source) identifier_event_source
)tuple
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_heapq) identifier_heapq
(identifier_heappush) identifier_heappush
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__heap) identifier__heap
)attribute
(identifier_heap_values) identifier_heap_values
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Pushes an event source onto the heap.
Args:
event_source (EventSource): event source. |
(module
(function_definition
(function_name_export_elements) function_name_export_elements
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filename) identifier_filename
(string_'export_elements.zip') string_'export_elements.zip'
)default_parameter
(default_parameter
(identifier_typeof) identifier_typeof
(string_'all') string_'all'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_valid_types) identifier_valid_types
(list
(string_'all') string_'all'
(string_'nw') string_'nw'
(string_'ips') string_'ips'
(string_'sv') string_'sv'
(string_'rb') string_'rb'
(string_'al') string_'al'
(string_'vpn') string_'vpn'
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_typeof) identifier_typeof
(identifier_valid_types) identifier_valid_types
)comparison_operator
(block
(expression_statement
(assignment
(identifier_typeof) identifier_typeof
(string_'all') string_'all'
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_Task) identifier_Task
(identifier_download) identifier_download
)attribute
(argument_list
(identifier_self) identifier_self
(string_'export_elements') string_'export_elements'
(identifier_filename) identifier_filename
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_'recursive') string_'recursive'
(True) True
)pair
(pair
(string_'type') string_'type'
(identifier_typeof) identifier_typeof
)pair
)dictionary
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Export elements from SMC.
Valid types are:
all (All Elements)|nw (Network Elements)|ips (IPS Elements)|
sv (Services)|rb (Security Policies)|al (Alerts)|
vpn (VPN Elements)
:param type: type of element
:param filename: Name of file for export
:raises TaskRunFailed: failure during export with reason
:rtype: DownloadTask |
(module
(function_definition
(function_name_read_until_regex) function_name_read_until_regex
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_regex) identifier_regex
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
(typed_default_parameter
(identifier_max_bytes) identifier_max_bytes
(type
(identifier_int) identifier_int
)type
(None) None
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_Awaitable) identifier_Awaitable
(type_parameter
(type
(identifier_bytes) identifier_bytes
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_future) identifier_future
(call
(attribute
(identifier_self) identifier_self
(identifier__start_read) identifier__start_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__read_regex) identifier__read_regex
)attribute
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_regex) identifier_regex
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__read_max_bytes) identifier__read_max_bytes
)attribute
(identifier_max_bytes) identifier_max_bytes
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__try_inline_read) identifier__try_inline_read
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_UnsatisfiableReadError) identifier_UnsatisfiableReadError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_gen_log) identifier_gen_log
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"Unsatisfiable read, closing connection: %s") string_"Unsatisfiable read, closing connection: %s"
(identifier_e) identifier_e
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_close) identifier_close
)attribute
(argument_list
(keyword_argument
(identifier_exc_info) identifier_exc_info
(identifier_e) identifier_e
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_future) identifier_future
)return_statement
)block
)except_clause
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_add_done_callback) identifier_add_done_callback
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(call
(attribute
(identifier_f) identifier_f
(identifier_exception) identifier_exception
)attribute
(argument_list
)argument_list
)call
)lambda
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_future) identifier_future
)return_statement
)block
)function_definition
)module | Asynchronously read until we have matched the given regex.
The result includes the data that matches the regex and anything
that came before it.
If ``max_bytes`` is not None, the connection will be closed
if more than ``max_bytes`` bytes have been read and the regex is
not satisfied.
.. versionchanged:: 4.0
Added the ``max_bytes`` argument. The ``callback`` argument is
now optional and a `.Future` will be returned if it is omitted.
.. versionchanged:: 6.0
The ``callback`` argument was removed. Use the returned
`.Future` instead. |
(module
(function_definition
(function_name_pickle_compress) function_name_pickle_compress
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_print_compression_info) identifier_print_compression_info
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_zlib) identifier_zlib
(identifier_compress) identifier_compress
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_print_compression_info) identifier_print_compression_info
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"len = {:,d} compr={:,d} ratio:{:.6f}") string_"len = {:,d} compr={:,d} ratio:{:.6f}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_c) identifier_c
)return_statement
)block
)function_definition
)module | pickle and compress an object |
(module
(function_definition
(function_name_from_string) function_name_from_string
(parameters
(identifier_cls) identifier_cls
(identifier_dataset_id) identifier_dataset_id
(default_parameter
(identifier_default_project) identifier_default_project
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_output_dataset_id) identifier_output_dataset_id
(identifier_dataset_id) identifier_dataset_id
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output_project_id) identifier_output_project_id
(identifier_default_project) identifier_default_project
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(identifier_dataset_id) identifier_dataset_id
(identifier_split) identifier_split
)attribute
(argument_list
(string_".") string_"."
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(not_operator
(identifier_default_project) identifier_default_project
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"When default_project is not set, dataset_id must be a ") string_"When default_project is not set, dataset_id must be a "
(string_"fully-qualified dataset ID in standard SQL format. ") string_"fully-qualified dataset ID in standard SQL format. "
(string_'e.g. "project.dataset_id", got {}') string_'e.g. "project.dataset_id", got {}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dataset_id) identifier_dataset_id
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_output_project_id) identifier_output_project_id
(identifier_output_dataset_id) identifier_output_dataset_id
)pattern_list
(identifier_parts) identifier_parts
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"Too many parts in dataset_id. Expected a fully-qualified ") string_"Too many parts in dataset_id. Expected a fully-qualified "
(string_"dataset ID in standard SQL format. e.g. ") string_"dataset ID in standard SQL format. e.g. "
(string_'"project.dataset_id", got {}') string_'"project.dataset_id", got {}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dataset_id) identifier_dataset_id
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_output_project_id) identifier_output_project_id
(identifier_output_dataset_id) identifier_output_dataset_id
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a dataset reference from dataset ID string.
Args:
dataset_id (str):
A dataset ID in standard SQL format. If ``default_project``
is not specified, this must included both the project ID and
the dataset ID, separated by ``.``.
default_project (str):
Optional. The project ID to use when ``dataset_id`` does not
include a project ID.
Returns:
DatasetReference:
Dataset reference parsed from ``dataset_id``.
Examples:
>>> DatasetReference.from_string('my-project-id.some_dataset')
DatasetReference('my-project-id', 'some_dataset')
Raises:
ValueError:
If ``dataset_id`` is not a fully-qualified dataset ID in
standard SQL format. |
(module
(function_definition
(function_name__range_check) function_name__range_check
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier_min_value) identifier_min_value
(identifier_max_value) identifier_max_value
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(identifier_min_value) identifier_min_value
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(identifier_max_value) identifier_max_value
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'%s out of range - %s is not between %s and %s') string_'%s out of range - %s is not between %s and %s'
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(identifier_value) identifier_value
(identifier_min_value) identifier_min_value
(identifier_max_value) identifier_max_value
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Utility method to check that the given value is between min_value and max_value. |
(module
(function_definition
(function_name_createDocument) function_name_createDocument
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_initDict) identifier_initDict
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_initDict) identifier_initDict
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_createDocument_) identifier_createDocument_
)attribute
(argument_list
(identifier_initDict) identifier_initDict
)argument_list
)call
)return_statement
)block
(else_clause
(block
(if_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__validation) identifier__validation
)attribute
(string_"on_load") string_"on_load"
)subscript
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__validation) identifier__validation
)attribute
(string_"on_load") string_"on_load"
)subscript
(False) False
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_createDocument_) identifier_createDocument_
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_defaultDocument) identifier_defaultDocument
)attribute
)argument_list
)call
)return_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__validation) identifier__validation
)attribute
(string_"on_load") string_"on_load"
)subscript
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_createDocument_) identifier_createDocument_
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_defaultDocument) identifier_defaultDocument
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | create and returns a document populated with the defaults or with the values in initDict |
(module
(function_definition
(function_name_categories_percent) function_name_categories_percent
(parameters
(identifier_s) identifier_s
(identifier_categories) identifier_categories
)parameters
(block
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(identifier_to_unicode) identifier_to_unicode
(argument_list
(identifier_s) identifier_s
(keyword_argument
(identifier_precise) identifier_precise
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_c) identifier_c
(identifier_s) identifier_s
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_unicodedata) identifier_unicodedata
(identifier_category) identifier_category
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(identifier_categories) identifier_categories
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(conditional_expression
(binary_operator
(binary_operator
(integer_100) integer_100
(call
(identifier_float) identifier_float
(argument_list
(identifier_count) identifier_count
)argument_list
)call
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(integer_0) integer_0
)conditional_expression
)return_statement
)block
)function_definition
)module | Returns category characters percent.
>>> categories_percent("qqq ggg hhh", ["Po"])
0.0
>>> categories_percent("q,w.", ["Po"])
50.0
>>> categories_percent("qqq ggg hhh", ["Nd"])
0.0
>>> categories_percent("q5", ["Nd"])
50.0
>>> categories_percent("s.s,5s", ["Po", "Nd"])
50.0 |
(module
(function_definition
(function_name_send_vdp_vnic_down) function_name_send_vdp_vnic_down
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_port_uuid) identifier_port_uuid
(None) None
)default_parameter
(default_parameter
(identifier_vsiid) identifier_vsiid
(None) None
)default_parameter
(default_parameter
(identifier_mgrid) identifier_mgrid
(None) None
)default_parameter
(default_parameter
(identifier_typeid) identifier_typeid
(None) None
)default_parameter
(default_parameter
(identifier_typeid_ver) identifier_typeid_ver
(None) None
)default_parameter
(default_parameter
(identifier_vsiid_frmt) identifier_vsiid_frmt
(attribute
(identifier_vdp_const) identifier_vdp_const
(identifier_VDP_VSIFRMT_UUID) identifier_VDP_VSIFRMT_UUID
)attribute
)default_parameter
(default_parameter
(identifier_filter_frmt) identifier_filter_frmt
(attribute
(identifier_vdp_const) identifier_vdp_const
(identifier_VDP_FILTER_GIDMACVID) identifier_VDP_FILTER_GIDMACVID
)attribute
)default_parameter
(default_parameter
(identifier_gid) identifier_gid
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_mac) identifier_mac
(string_"") string_""
)default_parameter
(default_parameter
(identifier_vlan) identifier_vlan
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_oui) identifier_oui
(string_"") string_""
)default_parameter
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier_mutex_lock) identifier_mutex_lock
)attribute
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_vdp_deassoc) identifier_send_vdp_deassoc
)attribute
(argument_list
(keyword_argument
(identifier_vsiid) identifier_vsiid
(identifier_vsiid) identifier_vsiid
)keyword_argument
(keyword_argument
(identifier_mgrid) identifier_mgrid
(identifier_mgrid) identifier_mgrid
)keyword_argument
(keyword_argument
(identifier_typeid) identifier_typeid
(identifier_typeid) identifier_typeid
)keyword_argument
(keyword_argument
(identifier_typeid_ver) identifier_typeid_ver
(identifier_typeid_ver) identifier_typeid_ver
)keyword_argument
(keyword_argument
(identifier_vsiid_frmt) identifier_vsiid_frmt
(identifier_vsiid_frmt) identifier_vsiid_frmt
)keyword_argument
(keyword_argument
(identifier_filter_frmt) identifier_filter_frmt
(identifier_filter_frmt) identifier_filter_frmt
)keyword_argument
(keyword_argument
(identifier_gid) identifier_gid
(identifier_gid) identifier_gid
)keyword_argument
(keyword_argument
(identifier_mac) identifier_mac
(identifier_mac) identifier_mac
)keyword_argument
(keyword_argument
(identifier_vlan) identifier_vlan
(identifier_vlan) identifier_vlan
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_clear_vdp_vsi) identifier_clear_vdp_vsi
)attribute
(argument_list
(identifier_port_uuid) identifier_port_uuid
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(string_"VNIC Down exception %s") string_"VNIC Down exception %s"
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Interface function to apps, called for a vNIC DOWN.
This currently sends an VDP dis-associate message.
Please refer http://www.ieee802.org/1/pages/802.1bg.html VDP
Section for more detailed information
:param uuid: uuid of the vNIC
:param vsiid: VSI value, Only UUID supported for now
:param mgrid: MGR ID
:param typeid: Type ID
:param typeid_ver: Version of the Type ID
:param vsiid_frmt: Format of the following VSI argument
:param filter_frmt: Filter Format. Only <GID,MAC,VID> supported for now
:param gid: Group ID the vNIC belongs to
:param mac: MAC Address of the vNIC
:param vlan: VLAN of the vNIC
:param oui_id: OUI Type
:param oui_data: OUI Data
:param sw_resp: Flag indicating if response is required from the daemon |
(module
(function_definition
(function_name_UpsertUserDefinedFunction) function_name_UpsertUserDefinedFunction
(parameters
(identifier_self) identifier_self
(identifier_collection_link) identifier_collection_link
(identifier_udf) identifier_udf
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_options) identifier_options
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_collection_id) identifier_collection_id
(identifier_path) identifier_path
(identifier_udf) identifier_udf
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__GetContainerIdWithPathForUDF) identifier__GetContainerIdWithPathForUDF
)attribute
(argument_list
(identifier_collection_link) identifier_collection_link
(identifier_udf) identifier_udf
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_Upsert) identifier_Upsert
)attribute
(argument_list
(identifier_udf) identifier_udf
(identifier_path) identifier_path
(string_'udfs') string_'udfs'
(identifier_collection_id) identifier_collection_id
(None) None
(identifier_options) identifier_options
)argument_list
)call
)return_statement
)block
)function_definition
)module | Upserts a user defined function in a collection.
:param str collection_link:
The link to the collection.
:param str udf:
:param dict options:
The request options for the request.
:return:
The upserted UDF.
:rtype:
dict |
(module
(function_definition
(function_name_json) function_name_json
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
)return_statement
)block
(except_clause
(block
(raise_statement
(call
(identifier_RequestInvalidJSON) identifier_RequestInvalidJSON
(argument_list
(string_"Invalid JSON received") string_"Invalid JSON received"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return an object representing the return json for the request |
(module
(function_definition
(function_name_parse_sql) function_name_parse_sql
(parameters
(identifier_self) identifier_self
(identifier_asql) identifier_asql
)parameters
(block
(import_statement
(dotted_name
(identifier_sqlparse) identifier_sqlparse
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_statements) identifier_statements
(call
(attribute
(identifier_sqlparse) identifier_sqlparse
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(attribute
(identifier_sqlparse) identifier_sqlparse
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_asql) identifier_asql
(keyword_argument
(identifier_strip_comments) identifier_strip_comments
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parsed_statements) identifier_parsed_statements
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_statement) identifier_statement
(identifier_statements) identifier_statements
(block
(expression_statement
(assignment
(identifier_statement_str) identifier_statement_str
(call
(attribute
(call
(attribute
(identifier_statement) identifier_statement
(identifier_to_unicode) identifier_to_unicode
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_preprocessor) identifier_preprocessor
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__backend) identifier__backend
)attribute
(identifier_sql_processors) identifier_sql_processors
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_statement_str) identifier_statement_str
(call
(identifier_preprocessor) identifier_preprocessor
(argument_list
(identifier_statement_str) identifier_statement_str
(attribute
(identifier_self) identifier_self
(identifier__library) identifier__library
)attribute
(attribute
(identifier_self) identifier_self
(identifier__backend) identifier__backend
)attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_parsed_statements) identifier_parsed_statements
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_statement_str) identifier_statement_str
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_parsed_statements) identifier_parsed_statements
)return_statement
)block
)function_definition
)module | Executes all sql statements from asql.
Args:
library (library.Library):
asql (str): ambry sql query - see https://github.com/CivicKnowledge/ambry/issues/140 for details. |
(module
(function_definition
(function_name_snow_depth) function_name_snow_depth
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_value) identifier_value
(float_999.0) float_999.0
)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 `snow_depth`') string_'for field `snow_depth`'
)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__snow_depth) identifier__snow_depth
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Corresponds to IDD Field `snow_depth`
Args:
value (float): value for IDD Field `snow_depth`
Unit: cm
Missing value: 999.0
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_shuffle_columns) function_name_shuffle_columns
(parameters
(identifier_a) identifier_a
)parameters
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(identifier_range) identifier_range
(argument_list
(attribute
(identifier_a) identifier_a
(identifier_text_size) identifier_text_size
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_random) identifier_random
(identifier_shuffle) identifier_shuffle
)attribute
(argument_list
(identifier_mask) identifier_mask
)argument_list
)call
)expression_statement
(for_statement
(identifier_c) identifier_c
(attribute
(identifier_a) identifier_a
(identifier_components) identifier_components
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_c) identifier_c
(identifier_text) identifier_text
)attribute
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(subscript
(attribute
(identifier_c) identifier_c
(identifier_text) identifier_text
)attribute
(identifier_i) identifier_i
)subscript
(for_in_clause
(identifier_i) identifier_i
(identifier_mask) identifier_mask
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Randomize the columns of an alignment |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_group_id) identifier_group_id
(identifier_handle) identifier_handle
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'bb') string_'bb'
(call
(identifier_len) identifier_len
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(identifier_group_id) identifier_group_id
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'<h') string_'<h'
(binary_operator
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_binary_size) identifier_binary_size
)attribute
(argument_list
)argument_list
)call
(integer_2) integer_2
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'b') string_'b'
(attribute
(identifier_self) identifier_self
(identifier_bytes_per_element) identifier_bytes_per_element
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'B') string_'B'
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dimensions) identifier_dimensions
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(binary_operator
(string_'B') string_'B'
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dimensions) identifier_dimensions
)attribute
)argument_list
)call
)binary_operator
(list_splat
(attribute
(identifier_self) identifier_self
(identifier_dimensions) identifier_dimensions
)attribute
)list_splat
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_bytes) identifier_bytes
)attribute
(block
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_bytes) identifier_bytes
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_desc) identifier_desc
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_desc) identifier_desc
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'B') string_'B'
(call
(identifier_len) identifier_len
(argument_list
(identifier_desc) identifier_desc
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_desc) identifier_desc
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write binary data for this parameter to a file handle.
Parameters
----------
group_id : int
The numerical ID of the group that holds this parameter.
handle : file handle
An open, writable, binary file handle. |
(module
(function_definition
(function_name__waitForIP) function_name__waitForIP
(parameters
(identifier_cls) identifier_cls
(identifier_instance) identifier_instance
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Waiting for ip...') string_'Waiting for ip...'
)argument_list
)call
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(identifier_a_short_time) identifier_a_short_time
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_instance) identifier_instance
(identifier_update) identifier_update
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(attribute
(identifier_instance) identifier_instance
(identifier_ip_address) identifier_ip_address
)attribute
(attribute
(identifier_instance) identifier_instance
(identifier_public_dns_name) identifier_public_dns_name
)attribute
)boolean_operator
(attribute
(identifier_instance) identifier_instance
(identifier_private_ip_address) identifier_private_ip_address
)attribute
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'...got ip') string_'...got ip'
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module | Wait until the instances has a public IP address assigned to it.
:type instance: boto.ec2.instance.Instance |
(module
(function_definition
(function_name_single) function_name_single
(parameters
(identifier_C) identifier_C
(default_parameter
(identifier_namespace) identifier_namespace
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_namespace) identifier_namespace
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_B) identifier_B
(attribute
(call
(identifier_C) identifier_C
(argument_list
)argument_list
)call
(identifier__) identifier__
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_B) identifier_B
(attribute
(call
(identifier_C) identifier_C
(argument_list
(keyword_argument
(identifier_default) identifier_default
(identifier_namespace) identifier_namespace
)keyword_argument
(keyword_argument
(identifier__) identifier__
(identifier_namespace) identifier_namespace
)keyword_argument
)argument_list
)call
(identifier__) identifier__
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_B) identifier_B
)return_statement
)block
)function_definition
)module | An element maker with a single namespace that uses that namespace as the default |
(module
(function_definition
(function_name_get_all_users) function_name_get_all_users
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path_prefix) identifier_path_prefix
(string_'/') string_'/'
)default_parameter
(default_parameter
(identifier_marker) identifier_marker
(None) None
)default_parameter
(default_parameter
(identifier_max_items) identifier_max_items
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'PathPrefix') string_'PathPrefix'
(identifier_path_prefix) identifier_path_prefix
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_marker) identifier_marker
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'Marker') string_'Marker'
)subscript
(identifier_marker) identifier_marker
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_max_items) identifier_max_items
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'MaxItems') string_'MaxItems'
)subscript
(identifier_max_items) identifier_max_items
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_response) identifier_get_response
)attribute
(argument_list
(string_'ListUsers') string_'ListUsers'
(identifier_params) identifier_params
(keyword_argument
(identifier_list_marker) identifier_list_marker
(string_'Users') string_'Users'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | List the users that have the specified path prefix.
:type path_prefix: string
:param path_prefix: If provided, only users whose paths match
the provided prefix will be returned.
:type marker: string
:param marker: Use this only when paginating results and only in
follow-up request after you've received a response
where the results are truncated. Set this to the
value of the Marker element in the response you
just received.
:type max_items: int
:param max_items: Use this only when paginating results to indicate
the maximum number of groups you want in the
response. |
(module
(function_definition
(function_name_explain_weights_lightning) function_name_explain_weights_lightning
(parameters
(identifier_estimator) identifier_estimator
(default_parameter
(identifier_vec) identifier_vec
(None) None
)default_parameter
(default_parameter
(identifier_top) identifier_top
(integer_20) integer_20
)default_parameter
(default_parameter
(identifier_target_names) identifier_target_names
(None) None
)default_parameter
(default_parameter
(identifier_targets) identifier_targets
(None) None
)default_parameter
(default_parameter
(identifier_feature_names) identifier_feature_names
(None) None
)default_parameter
(default_parameter
(identifier_coef_scale) identifier_coef_scale
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_explain_weights_lightning_not_supported) identifier_explain_weights_lightning_not_supported
(argument_list
(identifier_estimator) identifier_estimator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an explanation of a lightning estimator weights |
(module
(function_definition
(function_name_wait_for_thrift_interface) function_name_wait_for_thrift_interface
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cluster) identifier_cluster
)attribute
(identifier_version) identifier_version
)attribute
(argument_list
)argument_list
)call
(string_'4') string_'4'
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_watch_log_for) identifier_watch_log_for
)attribute
(argument_list
(string_"Listening for thrift clients...") string_"Listening for thrift clients..."
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_thrift_itf) identifier_thrift_itf
(subscript
(attribute
(identifier_self) identifier_self
(identifier_network_interfaces) identifier_network_interfaces
)attribute
(string_'thrift') string_'thrift'
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_common) identifier_common
(identifier_check_socket_listening) identifier_check_socket_listening
)attribute
(argument_list
(identifier_thrift_itf) identifier_thrift_itf
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_30) integer_30
)keyword_argument
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(string_"Thrift interface {}:{} is not listening after 30 seconds, node may have failed to start.") string_"Thrift interface {}:{} is not listening after 30 seconds, node may have failed to start."
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_thrift_itf) identifier_thrift_itf
(integer_0) integer_0
)subscript
(subscript
(identifier_thrift_itf) identifier_thrift_itf
(integer_1) integer_1
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Waits for the Thrift interface to be listening.
Emits a warning if not listening after 30 seconds. |
(module
(function_definition
(function_name_get_encoding) function_name_get_encoding
(parameters
(identifier_headers) identifier_headers
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_type) identifier_content_type
(call
(attribute
(identifier_headers) identifier_headers
(identifier_get) identifier_get
)attribute
(argument_list
(string_'content-type') string_'content-type'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_content_type) identifier_content_type
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_params) identifier_params
)pattern_list
(call
(attribute
(identifier_cgi) identifier_cgi
(identifier_parse_header) identifier_parse_header
)attribute
(argument_list
(identifier_content_type) identifier_content_type
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'charset') string_'charset'
(identifier_params) identifier_params
)comparison_operator
(block
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(call
(attribute
(subscript
(identifier_params) identifier_params
(string_'charset') string_'charset'
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_"'\"") string_"'\""
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_encoding) identifier_encoding
)not_operator
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(conditional_expression
(call
(attribute
(identifier_utils) identifier_utils
(identifier_pretty_unicode) identifier_pretty_unicode
)attribute
(argument_list
(subscript
(identifier_content) identifier_content
(slice
(colon) colon
(integer_1000) integer_1000
)slice
)subscript
)argument_list
)call
(attribute
(identifier_six) identifier_six
(identifier_PY3) identifier_PY3
)attribute
(identifier_content) identifier_content
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_charset_re) identifier_charset_re
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'<meta.*?charset=["\']*(.+?)["\'>]') string_r'<meta.*?charset=["\']*(.+?)["\'>]'
(keyword_argument
(identifier_flags) identifier_flags
(attribute
(identifier_re) identifier_re
(identifier_I) identifier_I
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pragma_re) identifier_pragma_re
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'<meta.*?content=["\']*;?charset=(.+?)["\'>]') string_r'<meta.*?content=["\']*;?charset=(.+?)["\'>]'
(keyword_argument
(identifier_flags) identifier_flags
(attribute
(identifier_re) identifier_re
(identifier_I) identifier_I
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_xml_re) identifier_xml_re
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'^<\?xml.*?encoding=["\']*(.+?)["\'>]') string_r'^<\?xml.*?encoding=["\']*(.+?)["\'>]'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(parenthesized_expression
(binary_operator
(binary_operator
(call
(attribute
(identifier_charset_re) identifier_charset_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
(call
(attribute
(identifier_pragma_re) identifier_pragma_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)binary_operator
(call
(attribute
(identifier_xml_re) identifier_xml_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(boolean_operator
(boolean_operator
(identifier_encoding) identifier_encoding
(subscript
(identifier_encoding) identifier_encoding
(integer_0) integer_0
)subscript
)boolean_operator
(None) None
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_encoding) identifier_encoding
)return_statement
)block
)function_definition
)module | Get encoding from request headers or page head. |
(module
(function_definition
(function_name_conv_stride2_multistep) function_name_conv_stride2_multistep
(parameters
(identifier_x) identifier_x
(identifier_nbr_steps) identifier_nbr_steps
(identifier_output_filters) identifier_output_filters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_reuse) identifier_reuse
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_variable_scope) identifier_variable_scope
)attribute
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_default_name) identifier_default_name
(string_"conv_stride2_multistep") string_"conv_stride2_multistep"
)keyword_argument
(keyword_argument
(identifier_values) identifier_values
(list
(identifier_x) identifier_x
)list
)keyword_argument
(keyword_argument
(identifier_reuse) identifier_reuse
(identifier_reuse) identifier_reuse
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(identifier_nbr_steps) identifier_nbr_steps
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(identifier_conv) identifier_conv
(argument_list
(identifier_x) identifier_x
(identifier_output_filters) identifier_output_filters
(tuple
(integer_1) integer_1
(integer_1) integer_1
)tuple
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_out) identifier_out
(list
(identifier_out) identifier_out
)list
)expression_list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_hidden_layers) identifier_hidden_layers
(list
(identifier_x) identifier_x
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_nbr_steps) identifier_nbr_steps
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_hidden_layers) identifier_hidden_layers
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_conv) identifier_conv
(argument_list
(subscript
(identifier_hidden_layers) identifier_hidden_layers
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_output_filters) identifier_output_filters
(tuple
(integer_2) integer_2
(integer_2) integer_2
)tuple
(keyword_argument
(identifier_strides) identifier_strides
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_activation) identifier_activation
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_nn) identifier_nn
)attribute
(identifier_relu) identifier_relu
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(binary_operator
(string_"conv") string_"conv"
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(subscript
(identifier_hidden_layers) identifier_hidden_layers
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_hidden_layers) identifier_hidden_layers
)expression_list
)return_statement
)block
)with_statement
)block
)function_definition
)module | Use a strided convolution to downsample x by 2, `nbr_steps` times.
We use stride and filter size 2 to avoid the checkerboard problem of deconvs.
As detailed in http://distill.pub/2016/deconv-checkerboard/.
Args:
x: a `Tensor` with shape `[batch, spatial, depth]` or
`[batch, spatial_1, spatial_2, depth]`
nbr_steps: number of halving downsample rounds to apply
output_filters: an int specifying the filter count for the convolutions
name: a string
reuse: a boolean
Returns:
a `Tensor` with shape `[batch, spatial / (2**nbr_steps), output_filters]` or
`[batch, spatial_1 / (2**nbr_steps), spatial_2 / (2**nbr_steps),
output_filters]` |
(module
(function_definition
(function_name_draw_dot) function_name_draw_dot
(parameters
(identifier_self) identifier_self
(identifier_pos) identifier_pos
(identifier_color) identifier_color
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(integer_0) integer_0
(subscript
(identifier_pos) identifier_pos
(integer_0) integer_0
)subscript
(attribute
(identifier_self) identifier_self
(identifier_width) identifier_width
)attribute
)comparison_operator
(comparison_operator
(integer_0) integer_0
(subscript
(identifier_pos) identifier_pos
(integer_1) integer_1
)subscript
(attribute
(identifier_self) identifier_self
(identifier_height) identifier_height
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_matrix) identifier_matrix
)attribute
(subscript
(identifier_pos) identifier_pos
(integer_0) integer_0
)subscript
)subscript
(subscript
(identifier_pos) identifier_pos
(integer_1) integer_1
)subscript
)subscript
(identifier_color) identifier_color
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Draw one single dot with the given color on the screen.
:param pos: Position of the dot
:param color: COlor for the dot
:type pos: tuple
:type color: tuple |
(module
(function_definition
(function_name_garbage_graph) function_name_garbage_graph
(parameters
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_graph) identifier_graph
(subscript
(call
(identifier__compute_garbage_graphs) identifier__compute_garbage_graphs
(argument_list
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reduce_graph) identifier_reduce_graph
(call
(attribute
(attribute
(attribute
(identifier_bottle) identifier_bottle
(identifier_request) identifier_request
)attribute
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'reduce') string_'reduce'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_reduce_graph) identifier_reduce_graph
(block
(expression_statement
(assignment
(identifier_graph) identifier_graph
(call
(attribute
(identifier_graph) identifier_graph
(identifier_reduce_to_cycles) identifier_reduce_to_cycles
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_graph) identifier_graph
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_filename) identifier_filename
(binary_operator
(string_'garbage%so%s.png') string_'garbage%so%s.png'
(tuple
(identifier_index) identifier_index
(identifier_reduce_graph) identifier_reduce_graph
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rendered_file) identifier_rendered_file
(call
(identifier__get_graph) identifier__get_graph
(argument_list
(identifier_graph) identifier_graph
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_rendered_file) identifier_rendered_file
(block
(expression_statement
(call
(attribute
(identifier_bottle) identifier_bottle
(identifier_send_file) identifier_send_file
)attribute
(argument_list
(identifier_rendered_file) identifier_rendered_file
(keyword_argument
(identifier_root) identifier_root
(attribute
(identifier_server) identifier_server
(identifier_tmpdir) identifier_tmpdir
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get graph representation of reference cycle. |
(module
(function_definition
(function_name__get_parsed_url) function_name__get_parsed_url
(parameters
(identifier_url) identifier_url
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(call
(identifier_urllib3_parse) identifier_urllib3_parse
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(pattern_list
(identifier_scheme) identifier_scheme
(identifier__) identifier__
(identifier_url) identifier_url
)pattern_list
(call
(attribute
(identifier_url) identifier_url
(identifier_partition) identifier_partition
)attribute
(argument_list
(string_"://") string_"://"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_auth) identifier_auth
(identifier__) identifier__
(identifier_url) identifier_url
)pattern_list
(call
(attribute
(identifier_url) identifier_url
(identifier_rpartition) identifier_rpartition
)attribute
(argument_list
(string_"@") string_"@"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"{scheme}://{url}") string_"{scheme}://{url}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_scheme) identifier_scheme
(identifier_scheme) identifier_scheme
)keyword_argument
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(call
(attribute
(call
(identifier_urllib3_parse) identifier_urllib3_parse
(argument_list
(identifier_url) identifier_url
)argument_list
)call
(identifier__replace) identifier__replace
)attribute
(argument_list
(keyword_argument
(identifier_auth) identifier_auth
(identifier_auth) identifier_auth
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_parsed) identifier_parsed
)return_statement
)block
)function_definition
)module | This is a stand-in function for `urllib3.util.parse_url`
The orignal function doesn't handle special characters very well, this simply splits
out the authentication section, creates the parsed url, then puts the authentication
section back in, bypassing validation.
:return: The new, parsed URL object
:rtype: :class:`~urllib3.util.url.Url` |
(module
(function_definition
(function_name__reversePoints) function_name__reversePoints
(parameters
(identifier_points) identifier_points
)parameters
(block
(expression_statement
(assignment
(identifier_points) identifier_points
(call
(identifier__copyPoints) identifier__copyPoints
(argument_list
(identifier_points) identifier_points
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_firstOnCurve) identifier_firstOnCurve
(None) None
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_point) identifier_point
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_points) identifier_points
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_point) identifier_point
(identifier_segmentType) identifier_segmentType
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_firstOnCurve) identifier_firstOnCurve
(identifier_index) identifier_index
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_lastSegmentType) identifier_lastSegmentType
(attribute
(subscript
(identifier_points) identifier_points
(identifier_firstOnCurve) identifier_firstOnCurve
)subscript
(identifier_segmentType) identifier_segmentType
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_points) identifier_points
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_points) identifier_points
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_final) identifier_final
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_point) identifier_point
(identifier_points) identifier_points
(block
(expression_statement
(assignment
(identifier_segmentType) identifier_segmentType
(attribute
(identifier_point) identifier_point
(identifier_segmentType) identifier_segmentType
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_segmentType) identifier_segmentType
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_point) identifier_point
(identifier_segmentType) identifier_segmentType
)attribute
(identifier_lastSegmentType) identifier_lastSegmentType
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lastSegmentType) identifier_lastSegmentType
(identifier_segmentType) identifier_segmentType
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_final) identifier_final
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_point) identifier_point
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier__prepPointsForSegments) identifier__prepPointsForSegments
(argument_list
(identifier_final) identifier_final
)argument_list
)call
)expression_statement
(return_statement
(identifier_final) identifier_final
)return_statement
)block
)function_definition
)module | Reverse the points. This differs from the
reversal point pen in RoboFab in that it doesn't
worry about maintaing the start point position.
That has no benefit within the context of this module. |
(module
(function_definition
(function_name_login) function_name_login
(parameters
(identifier_config) identifier_config
(default_parameter
(identifier_username) identifier_username
(None) None
)default_parameter
(default_parameter
(identifier_password) identifier_password
(None) None
)default_parameter
(default_parameter
(identifier_email) identifier_email
(None) None
)default_parameter
(default_parameter
(identifier_url) identifier_url
(None) None
)default_parameter
(default_parameter
(identifier_client) identifier_client
(None) None
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(parenthesized_expression
(conditional_expression
(call
(identifier__get_client) identifier__get_client
(argument_list
(identifier_config) identifier_config
)argument_list
)call
(not_operator
(identifier_client) identifier_client
)not_operator
(identifier_client) identifier_client
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lg) identifier_lg
(call
(attribute
(identifier_c) identifier_c
(identifier_login) identifier_login
)attribute
(argument_list
(identifier_username) identifier_username
(identifier_password) identifier_password
(identifier_email) identifier_email
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(print_statement
(binary_operator
(string_"%s logged to %s") string_"%s logged to %s"
(tuple
(identifier_username) identifier_username
(parenthesized_expression
(conditional_expression
(identifier_url) identifier_url
(identifier_url) identifier_url
(string_"default hub") string_"default hub"
)conditional_expression
)parenthesized_expression
)tuple
)binary_operator
)print_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"%s can't login to repo %s: %s") string_"%s can't login to repo %s: %s"
(tuple
(identifier_username) identifier_username
(parenthesized_expression
(conditional_expression
(identifier_url) identifier_url
(identifier_url) identifier_url
(string_"default repo") string_"default repo"
)conditional_expression
)parenthesized_expression
(identifier_e) identifier_e
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Wrapper to the docker.py login method |
(module
(function_definition
(function_name_profile_form_factory) function_name_profile_form_factory
(parameters
)parameters
(block
(if_statement
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'USERPROFILES_EMAIL_ENABLED') string_'USERPROFILES_EMAIL_ENABLED'
)subscript
(block
(return_statement
(call
(identifier_EmailProfileForm) identifier_EmailProfileForm
(argument_list
(keyword_argument
(identifier_formdata) identifier_formdata
(None) None
)keyword_argument
(keyword_argument
(identifier_username) identifier_username
(attribute
(identifier_current_userprofile) identifier_current_userprofile
(identifier_username) identifier_username
)attribute
)keyword_argument
(keyword_argument
(identifier_full_name) identifier_full_name
(attribute
(identifier_current_userprofile) identifier_current_userprofile
(identifier_full_name) identifier_full_name
)attribute
)keyword_argument
(keyword_argument
(identifier_email) identifier_email
(attribute
(identifier_current_user) identifier_current_user
(identifier_email) identifier_email
)attribute
)keyword_argument
(keyword_argument
(identifier_email_repeat) identifier_email_repeat
(attribute
(identifier_current_user) identifier_current_user
(identifier_email) identifier_email
)attribute
)keyword_argument
(keyword_argument
(identifier_prefix) identifier_prefix
(string_'profile') string_'profile'
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_ProfileForm) identifier_ProfileForm
(argument_list
(keyword_argument
(identifier_formdata) identifier_formdata
(None) None
)keyword_argument
(keyword_argument
(identifier_obj) identifier_obj
(identifier_current_userprofile) identifier_current_userprofile
)keyword_argument
(keyword_argument
(identifier_prefix) identifier_prefix
(string_'profile') string_'profile'
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Create a profile form. |
(module
(function_definition
(function_name_fwriter) function_name_fwriter
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_gz) identifier_gz
(False) False
)default_parameter
(default_parameter
(identifier_bz) identifier_bz
(False) False
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.gz') string_'.gz'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_gz) identifier_gz
(True) True
)assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.bz2') string_'.bz2'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bz) identifier_bz
(True) True
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(identifier_gz) identifier_gz
(block
(if_statement
(not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.gz') string_'.gz'
)argument_list
)call
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_filename) identifier_filename
(string_'.gz') string_'.gz'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_gzip) identifier_gzip
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filename) identifier_filename
(string_'wb') string_'wb'
)argument_list
)call
)return_statement
)block
(elif_clause
(identifier_bz) identifier_bz
(block
(if_statement
(not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.bz2') string_'.bz2'
)argument_list
)call
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_filename) identifier_filename
(string_'.bz2') string_'.bz2'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_bz2) identifier_bz2
(identifier_BZ2File) identifier_BZ2File
)attribute
(argument_list
(identifier_filename) identifier_filename
(string_'w') string_'w'
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_'w') string_'w'
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns a filewriter object that can write plain or gzipped output.
If gzip or bzip2 compression is asked for then the usual filename extension will be added. |
(module
(function_definition
(function_name__pop_digits) function_name__pop_digits
(parameters
(identifier_char_list) identifier_char_list
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'_pop_digits(%s)') string_'_pop_digits(%s)'
(identifier_char_list) identifier_char_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_digits) identifier_digits
(list
)list
)assignment
)expression_statement
(while_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_char_list) identifier_char_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(call
(attribute
(subscript
(identifier_char_list) identifier_char_list
(integer_0) integer_0
)subscript
(identifier_isdigit) identifier_isdigit
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_digits) identifier_digits
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_char_list) identifier_char_list
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'got digits: %s') string_'got digits: %s'
(identifier_digits) identifier_digits
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'updated char list: %s') string_'updated char list: %s'
(identifier_char_list) identifier_char_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_digits) identifier_digits
)return_statement
)block
)function_definition
)module | Pop consecutive digits from the front of list and return them
Pops any and all consecutive digits from the start of the provided
character list and returns them as a list of string digits.
Operates on (and possibly alters) the passed list.
:param list char_list: a list of characters
:return: a list of string digits
:rtype: list |
(module
(function_definition
(function_name_update_edge_todo) function_name_update_edge_todo
(parameters
(identifier_self) identifier_self
(identifier_elev_fn) identifier_elev_fn
(identifier_dem_proc) identifier_dem_proc
)parameters
(block
(for_statement
(identifier_key) identifier_key
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_edges) identifier_edges
)attribute
(identifier_elev_fn) identifier_elev_fn
)subscript
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_edges) identifier_edges
)attribute
(identifier_elev_fn) identifier_elev_fn
)subscript
(identifier_key) identifier_key
)subscript
(identifier_set_data) identifier_set_data
)attribute
(argument_list
(string_'todo') string_'todo'
(keyword_argument
(identifier_data) identifier_data
(attribute
(identifier_dem_proc) identifier_dem_proc
(identifier_edge_todo) identifier_edge_todo
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Can figure out how to update the todo based on the elev filename |
(module
(function_definition
(function_name_dump) function_name_dump
(parameters
(identifier_data) identifier_data
(identifier_out) identifier_out
(default_parameter
(identifier_ac_parser) identifier_ac_parser
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ioi) identifier_ioi
(call
(attribute
(attribute
(identifier_anyconfig) identifier_anyconfig
(identifier_ioinfo) identifier_ioinfo
)attribute
(identifier_make) identifier_make
)attribute
(argument_list
(identifier_out) identifier_out
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_psr) identifier_psr
(call
(identifier_find) identifier_find
(argument_list
(identifier_ioi) identifier_ioi
(keyword_argument
(identifier_forced_type) identifier_forced_type
(identifier_ac_parser) identifier_ac_parser
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Dumping: %s") string_"Dumping: %s"
(attribute
(identifier_ioi) identifier_ioi
(identifier_path) identifier_path
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_psr) identifier_psr
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_ioi) identifier_ioi
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Save 'data' to 'out'.
:param data: A mapping object may have configurations data to dump
:param out:
An output file path, a file, a file-like object, :class:`pathlib.Path`
object represents the file or a namedtuple 'anyconfig.globals.IOInfo'
object represents output to dump some data to.
:param ac_parser: Forced parser type or parser object
:param options:
Backend specific optional arguments, e.g. {"indent": 2} for JSON
loader/dumper backend
:raises: ValueError, UnknownProcessorTypeError, UnknownFileTypeError |
(module
(function_definition
(function_name_initialize_dbs) function_name_initialize_dbs
(parameters
(identifier_settings) identifier_settings
)parameters
(block
(global_statement
(identifier__MAIN_SETTINGS) identifier__MAIN_SETTINGS
(identifier__MAIN_SITEURL) identifier__MAIN_SITEURL
(identifier__MAIN_LANG) identifier__MAIN_LANG
(identifier__SUBSITE_QUEUE) identifier__SUBSITE_QUEUE
)global_statement
(expression_statement
(assignment
(identifier__MAIN_SETTINGS) identifier__MAIN_SETTINGS
(identifier_settings) identifier_settings
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__MAIN_LANG) identifier__MAIN_LANG
(subscript
(identifier_settings) identifier_settings
(string_'DEFAULT_LANG') string_'DEFAULT_LANG'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__MAIN_SITEURL) identifier__MAIN_SITEURL
(subscript
(identifier_settings) identifier_settings
(string_'SITEURL') string_'SITEURL'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__SUBSITE_QUEUE) identifier__SUBSITE_QUEUE
(call
(attribute
(call
(attribute
(identifier_settings) identifier_settings
(identifier_get) identifier_get
)attribute
(argument_list
(string_'I18N_SUBSITES') string_'I18N_SUBSITES'
(dictionary
)dictionary
)argument_list
)call
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_prepare_site_db_and_overrides) identifier_prepare_site_db_and_overrides
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__SITES_RELPATH_DB) identifier__SITES_RELPATH_DB
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__NATIVE_CONTENT_URL_DB) identifier__NATIVE_CONTENT_URL_DB
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__GENERATOR_DB) identifier__GENERATOR_DB
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initialize internal DBs using the Pelican settings dict
This clears the DBs for e.g. autoreload mode to work |
(module
(function_definition
(function_name_watched) function_name_watched
(parameters
(identifier_self) identifier_self
(identifier_option) identifier_option
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(identifier_join_params) identifier_join_params
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(dictionary
(pair
(string_"watched") string_"watched"
(identifier_option) identifier_option
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
(dictionary_splat
(identifier_params) identifier_params
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set whether to filter by a user's watchlist. Options available are
user.ONLY, user.NOT, and None; default is None. |
(module
(function_definition
(function_name__check_r) function_name__check_r
(parameters
(identifier_self) identifier_self
(identifier_r) identifier_r
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(identifier_eps) identifier_eps
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(identifier_eps) identifier_eps
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(identifier_eps) identifier_eps
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
)argument_list
)call
(identifier_eps) identifier_eps
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
)argument_list
)call
(identifier_eps) identifier_eps
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
(subscript
(identifier_r) identifier_r
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)argument_list
)call
(identifier_eps) identifier_eps
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"The rotation matrix is significantly non-orthonormal.") string_"The rotation matrix is significantly non-orthonormal."
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | the columns must orthogonal |
(module
(function_definition
(function_name_ads_use_dev_spaces) function_name_ads_use_dev_spaces
(parameters
(identifier_cluster_name) identifier_cluster_name
(identifier_resource_group_name) identifier_resource_group_name
(default_parameter
(identifier_update) identifier_update
(False) False
)default_parameter
(default_parameter
(identifier_space_name) identifier_space_name
(None) None
)default_parameter
(default_parameter
(identifier_do_not_prompt) identifier_do_not_prompt
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_azds_cli) identifier_azds_cli
(call
(identifier__install_dev_spaces_cli) identifier__install_dev_spaces_cli
(argument_list
(identifier_update) identifier_update
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_use_command_arguments) identifier_use_command_arguments
(list
(identifier_azds_cli) identifier_azds_cli
(string_'use') string_'use'
(string_'--name') string_'--name'
(identifier_cluster_name) identifier_cluster_name
(string_'--resource-group') string_'--resource-group'
(identifier_resource_group_name) identifier_resource_group_name
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_space_name) identifier_space_name
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_use_command_arguments) identifier_use_command_arguments
(identifier_append) identifier_append
)attribute
(argument_list
(string_'--space') string_'--space'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_use_command_arguments) identifier_use_command_arguments
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_space_name) identifier_space_name
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_do_not_prompt) identifier_do_not_prompt
(block
(expression_statement
(call
(attribute
(identifier_use_command_arguments) identifier_use_command_arguments
(identifier_append) identifier_append
)attribute
(argument_list
(string_'-y') string_'-y'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_call) identifier_call
)attribute
(argument_list
(identifier_use_command_arguments) identifier_use_command_arguments
(keyword_argument
(identifier_universal_newlines) identifier_universal_newlines
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Use Azure Dev Spaces with a managed Kubernetes cluster.
:param cluster_name: Name of the managed cluster.
:type cluster_name: String
:param resource_group_name: Name of resource group. You can configure the default group. \
Using 'az configure --defaults group=<name>'.
:type resource_group_name: String
:param update: Update to the latest Azure Dev Spaces client components.
:type update: bool
:param space_name: Name of the new or existing dev space to select. Defaults to an interactive selection experience.
:type space_name: String
:param do_not_prompt: Do not prompt for confirmation. Requires --space.
:type do_not_prompt: bool |
(module
(function_definition
(function_name__populate_audio_file) function_name__populate_audio_file
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(string_u"Populate audio file...") string_u"Populate audio file..."
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_audio_file_path_absolute) identifier_audio_file_path_absolute
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(list
(string_u"audio_file_path_absolute is '%s'") string_u"audio_file_path_absolute is '%s'"
(attribute
(identifier_self) identifier_self
(identifier_audio_file_path_absolute) identifier_audio_file_path_absolute
)attribute
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_audio_file) identifier_audio_file
)attribute
(call
(identifier_AudioFile) identifier_AudioFile
(argument_list
(keyword_argument
(identifier_file_path) identifier_file_path
(attribute
(identifier_self) identifier_self
(identifier_audio_file_path_absolute) identifier_audio_file_path_absolute
)attribute
)keyword_argument
(keyword_argument
(identifier_logger) identifier_logger
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_audio_file) identifier_audio_file
)attribute
(identifier_read_properties) identifier_read_properties
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(string_u"audio_file_path_absolute is None") string_u"audio_file_path_absolute is None"
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(string_u"Populate audio file... done") string_u"Populate audio file... done"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create the ``self.audio_file`` object by reading
the audio file at ``self.audio_file_path_absolute``. |
(module
(function_definition
(function_name_skip) function_name_skip
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_buflen) identifier_buflen
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
)argument_list
)call
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(string_'') string_''
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_buflen) identifier_buflen
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(parenthesized_expression
(binary_operator
(identifier_buflen) identifier_buflen
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
)argument_list
)call
)binary_operator
)parenthesized_expression
)augmented_assignment
)expression_statement
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)while_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_keep_comments) identifier_keep_comments
)attribute
)not_operator
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(integer_0) integer_0
)subscript
(string_'/') string_'/'
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(integer_1) integer_1
)subscript
(string_'/') string_'/'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_skip) identifier_skip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(integer_1) integer_1
)subscript
(string_'*') string_'*'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_i) identifier_i
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(string_'*/') string_'*/'
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_i) identifier_i
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(string_'*/') string_'*/'
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_buf) identifier_set_buf
)attribute
(argument_list
(binary_operator
(identifier_i) identifier_i
(integer_2) integer_2
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_skip) identifier_skip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Skip whitespace and count position |
(module
(function_definition
(function_name_mean_squared_error) function_name_mean_squared_error
(parameters
(identifier_data) identifier_data
(identifier_ground_truth) identifier_ground_truth
(default_parameter
(identifier_mask) identifier_mask
(None) None
)default_parameter
(default_parameter
(identifier_normalized) identifier_normalized
(False) False
)default_parameter
(default_parameter
(identifier_force_lower_is_better) identifier_force_lower_is_better
(True) True
)default_parameter
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_data) identifier_data
(string_'space') string_'space'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_odl) identifier_odl
(identifier_vector) identifier_vector
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_space) identifier_space
(attribute
(identifier_data) identifier_data
(identifier_space) identifier_space
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ground_truth) identifier_ground_truth
(call
(attribute
(identifier_space) identifier_space
(identifier_element) identifier_element
)attribute
(argument_list
(identifier_ground_truth) identifier_ground_truth
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_l2norm) identifier_l2norm
(call
(attribute
(attribute
(identifier_odl) identifier_odl
(identifier_solvers) identifier_solvers
)attribute
(identifier_L2Norm) identifier_L2Norm
)attribute
(argument_list
(identifier_space) identifier_space
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mask) identifier_mask
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(binary_operator
(identifier_data) identifier_data
(identifier_mask) identifier_mask
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ground_truth) identifier_ground_truth
(binary_operator
(identifier_ground_truth) identifier_ground_truth
(identifier_mask) identifier_mask
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_diff) identifier_diff
(binary_operator
(identifier_data) identifier_data
(identifier_ground_truth) identifier_ground_truth
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fom) identifier_fom
(binary_operator
(call
(identifier_l2norm) identifier_l2norm
(argument_list
(identifier_diff) identifier_diff
)argument_list
)call
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_normalized) identifier_normalized
(block
(expression_statement
(augmented_assignment
(identifier_fom) identifier_fom
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_l2norm) identifier_l2norm
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(call
(identifier_l2norm) identifier_l2norm
(argument_list
(identifier_ground_truth) identifier_ground_truth
)argument_list
)call
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_fom) identifier_fom
(binary_operator
(call
(identifier_l2norm) identifier_l2norm
(argument_list
(call
(attribute
(identifier_space) identifier_space
(identifier_one) identifier_one
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_fom) identifier_fom
)return_statement
)block
)function_definition
)module | r"""Return mean squared L2 distance between ``data`` and ``ground_truth``.
See also `this Wikipedia article
<https://en.wikipedia.org/wiki/Mean_squared_error>`_.
Parameters
----------
data : `Tensor` or `array-like`
Input data to compare to the ground truth. If not a `Tensor`, an
unweighted tensor space will be assumed.
ground_truth : `array-like`
Reference to which ``data`` should be compared.
mask : `array-like`, optional
If given, ``data * mask`` is compared to ``ground_truth * mask``.
normalized : bool, optional
If ``True``, the output values are mapped to the interval
:math:`[0, 1]` (see `Notes` for details).
force_lower_is_better : bool, optional
If ``True``, it is ensured that lower values correspond to better
matches. For the mean squared error, this is already the case, and
the flag is only present for compatibility to other figures of merit.
Returns
-------
mse : float
FOM value, where a lower value means a better match.
Notes
-----
The FOM evaluates
.. math::
\mathrm{MSE}(f, g) = \frac{\| f - g \|_2^2}{\| 1 \|_2^2},
where :math:`\| 1 \|^2_2` is the volume of the domain of definition
of the functions. For :math:`\mathbb{R}^n` type spaces, this is equal
to the number of elements :math:`n`.
The normalized form is
.. math::
\mathrm{MSE_N} = \frac{\| f - g \|_2^2}{(\| f \|_2 + \| g \|_2)^2}.
The normalized variant takes values in :math:`[0, 1]`. |
(module
(function_definition
(function_name_summary) function_name_summary
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_title) identifier_title
(None) None
)default_parameter
(default_parameter
(identifier_complexity) identifier_complexity
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_title) identifier_title
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_javabridge) identifier_javabridge
(identifier_call) identifier_call
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_jobject) identifier_jobject
)attribute
(string_"toSummaryString") string_"toSummaryString"
(string_"()Ljava/lang/String;") string_"()Ljava/lang/String;"
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_javabridge) identifier_javabridge
(identifier_call) identifier_call
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_jobject) identifier_jobject
)attribute
(string_"toSummaryString") string_"toSummaryString"
(string_"(Ljava/lang/String;Z)Ljava/lang/String;") string_"(Ljava/lang/String;Z)Ljava/lang/String;"
(identifier_title) identifier_title
(identifier_complexity) identifier_complexity
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Generates a summary.
:param title: optional title
:type title: str
:param complexity: whether to print the complexity information as well
:type complexity: bool
:return: the summary
:rtype: str |
(module
(function_definition
(function_name_find_course_by_crn) function_name_find_course_by_crn
(parameters
(identifier_self) identifier_self
(identifier_crn) identifier_crn
)parameters
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_course) identifier_course
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_courses) identifier_courses
)attribute
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_crn) identifier_crn
(identifier_course) identifier_course
)comparison_operator
(block
(return_statement
(identifier_course) identifier_course
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Searches all courses by CRNs. Not particularly efficient.
Returns None if not found. |
(module
(function_definition
(function_name_normalizer) function_name_normalizer
(parameters
(identifier_text) identifier_text
(default_parameter
(identifier_exclusion) identifier_exclusion
(identifier_OPERATIONS_EXCLUSION) identifier_OPERATIONS_EXCLUSION
)default_parameter
(default_parameter
(identifier_lower) identifier_lower
(True) True
)default_parameter
(default_parameter
(identifier_separate_char) identifier_separate_char
(string_'-') string_'-'
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_clean_str) identifier_clean_str
(boolean_operator
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(call
(attribute
(string_r'[^\w{}]') string_r'[^\w{}]'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_exclusion) identifier_exclusion
)argument_list
)call
)argument_list
)call
(identifier_separate_char) identifier_separate_char
(call
(attribute
(identifier_text) identifier_text
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(string_'') string_''
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_clean_lowerbar) identifier_clean_lowerbar
(assignment
(identifier_clean_str_without_accents) identifier_clean_str_without_accents
(call
(identifier_strip_accents) identifier_strip_accents
(argument_list
(identifier_clean_str) identifier_clean_str
)argument_list
)call
)assignment
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'_') string_'_'
(identifier_exclusion) identifier_exclusion
)comparison_operator
(block
(expression_statement
(assignment
(identifier_clean_lowerbar) identifier_clean_lowerbar
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'\_') string_r'\_'
(identifier_separate_char) identifier_separate_char
(call
(attribute
(identifier_clean_str_without_accents) identifier_clean_str_without_accents
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_limit_guion) identifier_limit_guion
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'\-+') string_r'\-+'
(identifier_separate_char) identifier_separate_char
(call
(attribute
(identifier_clean_lowerbar) identifier_clean_lowerbar
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_limit_guion) identifier_limit_guion
(identifier_separate_char) identifier_separate_char
)boolean_operator
(comparison_operator
(identifier_separate_char) identifier_separate_char
(subscript
(identifier_limit_guion) identifier_limit_guion
(integer_0) integer_0
)subscript
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_limit_guion) identifier_limit_guion
(subscript
(identifier_limit_guion) identifier_limit_guion
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_limit_guion) identifier_limit_guion
(identifier_separate_char) identifier_separate_char
)boolean_operator
(comparison_operator
(identifier_separate_char) identifier_separate_char
(subscript
(identifier_limit_guion) identifier_limit_guion
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_limit_guion) identifier_limit_guion
(subscript
(identifier_limit_guion) identifier_limit_guion
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_lower) identifier_lower
(block
(expression_statement
(assignment
(identifier_limit_guion) identifier_limit_guion
(call
(attribute
(identifier_limit_guion) identifier_limit_guion
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_limit_guion) identifier_limit_guion
)return_statement
)block
)function_definition
)module | Clean text string of simbols only alphanumeric chars. |
(module
(function_definition
(function_name_reroot) function_name_reroot
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_o_s1) identifier_o_s1
(subscript
(attribute
(identifier_self) identifier_self
(identifier_first_lookup) identifier_first_lookup
)attribute
(identifier_s) identifier_s
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_splice1) identifier_splice1
(subscript
(attribute
(identifier_self) identifier_self
(identifier_tour) identifier_tour
)attribute
(slice
(integer_1) integer_1
(colon) colon
(identifier_o_s1) identifier_o_s1
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rest) identifier_rest
(subscript
(attribute
(identifier_self) identifier_self
(identifier_tour) identifier_tour
)attribute
(slice
(binary_operator
(identifier_o_s1) identifier_o_s1
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_tour) identifier_new_tour
(binary_operator
(binary_operator
(binary_operator
(list
(identifier_s) identifier_s
)list
(identifier_rest) identifier_rest
)binary_operator
(identifier_splice1) identifier_splice1
)binary_operator
(list
(identifier_s) identifier_s
)list
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_tree) identifier_new_tree
(call
(attribute
(identifier_TestETT) identifier_TestETT
(identifier_from_tour) identifier_from_tour
)attribute
(argument_list
(identifier_new_tour) identifier_new_tour
(keyword_argument
(identifier_fast) identifier_fast
(attribute
(identifier_self) identifier_self
(identifier_fast) identifier_fast
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_new_tree) identifier_new_tree
)return_statement
)block
)function_definition
)module | s = 3
s = 'B'
Let os denote any occurrence of s.
Splice out the first part of the sequence ending with the occurrence before os,
remove its first occurrence (or),
and tack this on to the end of the sequence which now begins with os.
Add a new occurrence os to the end. |
(module
(function_definition
(function_name__query) function_name__query
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_criterion) identifier_criterion
)list_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_query) identifier_query
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model_class) identifier_model_class
)attribute
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(list_splat
(identifier_criterion) identifier_criterion
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a query for the model. |
(module
(function_definition
(function_name_mount_rate_limit_adapters) function_name_mount_rate_limit_adapters
(parameters
(identifier_cls) identifier_cls
(default_parameter
(identifier_session) identifier_session
(None) None
)default_parameter
(default_parameter
(identifier_rls_config) identifier_rls_config
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_session) identifier_session
(boolean_operator
(identifier_session) identifier_session
(identifier_HTTP_SESSION) identifier_HTTP_SESSION
)boolean_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_rls_config) identifier_rls_config
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_rls_config) identifier_rls_config
(call
(attribute
(identifier_RateLimiter) identifier_RateLimiter
(identifier_get_configs) identifier_get_configs
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_rl_conf) identifier_rl_conf
)pattern_list
(call
(attribute
(identifier_rls_config) identifier_rls_config
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_urls) identifier_urls
(call
(attribute
(identifier_rl_conf) identifier_rl_conf
(identifier_get) identifier_get
)attribute
(argument_list
(string_'urls') string_'urls'
(list
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_urls) identifier_urls
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rl_adapter) identifier_rl_adapter
(call
(identifier_RLRequestAdapter) identifier_RLRequestAdapter
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_config) identifier_config
(identifier_rls_config) identifier_rls_config
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_url) identifier_url
(identifier_urls) identifier_urls
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_mount) identifier_mount
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_rl_adapter) identifier_rl_adapter
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Mount rate-limits adapters on the specified `requests.Session`
object.
:param py:class:`requests.Session` session:
Session to mount. If not specified, then use the global
`HTTP_SESSION`.
:param dict rls_config:
Rate-limits configuration. If not specified, then
use the one defined at application level.
:param kwargs:
Additional keywords argument given to
py:class:`docido_sdk.toolbox.rate_limits.RLRequestAdapter`
constructor. |
(module
(function_definition
(function_name_C_array2dict) function_name_C_array2dict
(parameters
(identifier_C) identifier_C
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(identifier_C_keys) identifier_C_keys
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(subscript
(identifier_C_keys_shape) identifier_C_keys_shape
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_s) identifier_s
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_j) identifier_j
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(identifier_k) identifier_k
)subscript
(subscript
(identifier_C) identifier_C
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_j) identifier_j
(binary_operator
(identifier_i) identifier_i
(line_continuation_\) line_continuation_\
(call
(identifier_reduce) identifier_reduce
(argument_list
(attribute
(identifier_operator) identifier_operator
(identifier_mul) identifier_mul
)attribute
(identifier_s) identifier_s
(integer_1) integer_1
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(identifier_k) identifier_k
)subscript
(call
(attribute
(subscript
(identifier_C) identifier_C
(slice
(identifier_i) identifier_i
(colon) colon
(identifier_j) identifier_j
)slice
)subscript
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(identifier_j) identifier_j
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | Convert a 1D array containing C values to a dictionary. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_ds) function_name_ds
(parameters
(identifier_data_element) identifier_data_element
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__str_filter) identifier__str_filter
)attribute
(identifier_ToStringPair) identifier_ToStringPair
)attribute
(argument_list
(call
(attribute
(identifier_data_element) identifier_data_element
(identifier_GetTag) identifier_GetTag
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(subscript
(identifier_value) identifier_value
(integer_1) integer_1
)subscript
(block
(return_statement
(call
(identifier_DataElement) identifier_DataElement
(argument_list
(identifier_data_element) identifier_data_element
(call
(attribute
(subscript
(identifier_value) identifier_value
(integer_0) integer_0
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(subscript
(identifier_value) identifier_value
(integer_1) integer_1
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_results) identifier_results
(list_comprehension
(identifier_data) identifier_data
(for_in_clause
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_ds) identifier_ds
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_data) identifier_data
(None) None
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Returns array of dictionaries containing all the data elements in
the DICOM file. |
(module
(function_definition
(function_name__recursive_gh_get) function_name__recursive_gh_get
(parameters
(identifier_href) identifier_href
(identifier_items) identifier_items
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier__request) identifier__request
(argument_list
(string_'GET') string_'GET'
(identifier_href) identifier_href
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_items) identifier_items
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_"link") string_"link"
(attribute
(identifier_response) identifier_response
(identifier_headers) identifier_headers
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_links) identifier_links
(call
(attribute
(identifier_link_header) identifier_link_header
(identifier_parse) identifier_parse
)attribute
(argument_list
(subscript
(attribute
(identifier_response) identifier_response
(identifier_headers) identifier_headers
)attribute
(string_"link") string_"link"
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rels) identifier_rels
(dictionary_comprehension
(pair
(attribute
(identifier_link) identifier_link
(identifier_rel) identifier_rel
)attribute
(attribute
(identifier_link) identifier_link
(identifier_href) identifier_href
)attribute
)pair
(for_in_clause
(identifier_link) identifier_link
(attribute
(identifier_links) identifier_links
(identifier_links) identifier_links
)attribute
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_"next") string_"next"
(identifier_rels) identifier_rels
)comparison_operator
(block
(expression_statement
(call
(identifier__recursive_gh_get) identifier__recursive_gh_get
(argument_list
(subscript
(identifier_rels) identifier_rels
(string_"next") string_"next"
)subscript
(identifier_items) identifier_items
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Recursively get list of GitHub objects.
See https://developer.github.com/v3/guides/traversing-with-pagination/ |
(module
(function_definition
(function_name_generateSensorimotorSequence) function_name_generateSensorimotorSequence
(parameters
(identifier_self) identifier_self
(identifier_sequenceLength) identifier_sequenceLength
)parameters
(block
(expression_statement
(assignment
(identifier_motorSequence) identifier_motorSequence
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sensorySequence) identifier_sensorySequence
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sensorimotorSequence) identifier_sensorimotorSequence
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_currentEyeLoc) identifier_currentEyeLoc
(call
(attribute
(identifier_self) identifier_self
(identifier_nupicRandomChoice) identifier_nupicRandomChoice
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_spatialConfig) identifier_spatialConfig
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_xrange) identifier_xrange
(argument_list
(identifier_sequenceLength) identifier_sequenceLength
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_currentSensoryInput) identifier_currentSensoryInput
(subscript
(attribute
(identifier_self) identifier_self
(identifier_spatialMap) identifier_spatialMap
)attribute
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_currentEyeLoc) identifier_currentEyeLoc
)argument_list
)call
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_nextEyeLoc) identifier_nextEyeLoc
(identifier_currentEyeV) identifier_currentEyeV
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_getNextEyeLocation) identifier_getNextEyeLocation
)attribute
(argument_list
(identifier_currentEyeLoc) identifier_currentEyeLoc
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_verbosity) identifier_verbosity
)attribute
(block
(print_statement
(string_"sensory input = ") string_"sensory input = "
(identifier_currentSensoryInput) identifier_currentSensoryInput
(string_"eye location = ") string_"eye location = "
(identifier_currentEyeLoc) identifier_currentEyeLoc
(string_" motor command = ") string_" motor command = "
(identifier_currentEyeV) identifier_currentEyeV
)print_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sensoryInput) identifier_sensoryInput
(call
(attribute
(identifier_self) identifier_self
(identifier_encodeSensoryInput) identifier_encodeSensoryInput
)attribute
(argument_list
(identifier_currentSensoryInput) identifier_currentSensoryInput
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_motorInput) identifier_motorInput
(call
(attribute
(identifier_self) identifier_self
(identifier_encodeMotorInput) identifier_encodeMotorInput
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_currentEyeV) identifier_currentEyeV
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sensorimotorInput) identifier_sensorimotorInput
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(tuple
(identifier_sensoryInput) identifier_sensoryInput
(identifier_motorInput) identifier_motorInput
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sensorySequence) identifier_sensorySequence
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_sensoryInput) identifier_sensoryInput
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_motorSequence) identifier_motorSequence
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_motorInput) identifier_motorInput
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sensorimotorSequence) identifier_sensorimotorSequence
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_sensorimotorInput) identifier_sensorimotorInput
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_currentEyeLoc) identifier_currentEyeLoc
(identifier_nextEyeLoc) identifier_nextEyeLoc
)assignment
)expression_statement
)block
)for_statement
(return_statement
(tuple
(identifier_sensorySequence) identifier_sensorySequence
(identifier_motorSequence) identifier_motorSequence
(identifier_sensorimotorSequence) identifier_sensorimotorSequence
)tuple
)return_statement
)block
)function_definition
)module | Generate sensorimotor sequences of length sequenceLength.
@param sequenceLength (int)
Length of the sensorimotor sequence.
@return (tuple) Contains:
sensorySequence (list)
Encoded sensory input for whole sequence.
motorSequence (list)
Encoded motor input for whole sequence.
sensorimotorSequence (list)
Encoder sensorimotor input for whole sequence. This is useful
when you want to give external input to temporal memory. |
(module
(function_definition
(function_name_to_pandas) function_name_to_pandas
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_agedepthdf) identifier_agedepthdf
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_age) identifier_age
)attribute
(keyword_argument
(identifier_index) identifier_index
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_depth) identifier_depth
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_agedepthdf) identifier_agedepthdf
(identifier_columns) identifier_columns
)attribute
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_range) identifier_range
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_n_members) identifier_n_members
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_agedepthdf) identifier_agedepthdf
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_set_index) identifier_set_index
)attribute
(argument_list
(string_'depth') string_'depth'
)argument_list
)call
)argument_list
)call
(identifier_reset_index) identifier_reset_index
)attribute
(argument_list
)argument_list
)call
(identifier_melt) identifier_melt
)attribute
(argument_list
(keyword_argument
(identifier_id_vars) identifier_id_vars
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_columns) identifier_columns
)attribute
(identifier_values) identifier_values
)attribute
)keyword_argument
(keyword_argument
(identifier_var_name) identifier_var_name
(string_'mciter') string_'mciter'
)keyword_argument
(keyword_argument
(identifier_value_name) identifier_value_name
(string_'age') string_'age'
)keyword_argument
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_'mciter') string_'mciter'
)subscript
(call
(attribute
(identifier_pd) identifier_pd
(identifier_to_numeric) identifier_to_numeric
)attribute
(argument_list
(subscript
(attribute
(identifier_out) identifier_out
(identifier_loc) identifier_loc
)attribute
(slice
(colon) colon
)slice
(string_'mciter') string_'mciter'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_n_members) identifier_n_members
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_out) identifier_out
(identifier_drop) identifier_drop
)attribute
(argument_list
(string_'mciter') string_'mciter'
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Convert record to pandas.DataFrame |
(module
(function_definition
(function_name__get_entity) function_name__get_entity
(parameters
(identifier_service_instance) identifier_service_instance
(identifier_entity) identifier_entity
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_trace) identifier_trace
)attribute
(argument_list
(string_'Retrieving entity: %s') string_'Retrieving entity: %s'
(identifier_entity) identifier_entity
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_entity) identifier_entity
(string_'type') string_'type'
)subscript
(string_'cluster') string_'cluster'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dc_ref) identifier_dc_ref
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_vmware) identifier_vmware
)attribute
(identifier_get_datacenter) identifier_get_datacenter
)attribute
(argument_list
(identifier_service_instance) identifier_service_instance
(subscript
(identifier_entity) identifier_entity
(string_'datacenter') string_'datacenter'
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_vmware) identifier_vmware
)attribute
(identifier_get_cluster) identifier_get_cluster
)attribute
(argument_list
(identifier_dc_ref) identifier_dc_ref
(subscript
(identifier_entity) identifier_entity
(string_'cluster') string_'cluster'
)subscript
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_entity) identifier_entity
(string_'type') string_'type'
)subscript
(string_'vcenter') string_'vcenter'
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)elif_clause
)if_statement
(raise_statement
(call
(identifier_ArgumentValueError) identifier_ArgumentValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'Unsupported entity type \'{0}\'') string_'Unsupported entity type \'{0}\''
(string_'') string_''
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_entity) identifier_entity
(string_'type') string_'type'
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Returns the entity associated with the entity dict representation
Supported entities: cluster, vcenter
Expected entity format:
.. code-block:: python
cluster:
{'type': 'cluster',
'datacenter': <datacenter_name>,
'cluster': <cluster_name>}
vcenter:
{'type': 'vcenter'}
service_instance
Service instance (vim.ServiceInstance) of the vCenter.
entity
Entity dict in the format above |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(identifier_channel) identifier_channel
(identifier_payload) identifier_payload
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(identifier_track) identifier_track
(argument_list
(binary_operator
(string_'send_channel=') string_'send_channel='
(identifier_channel) identifier_channel
)binary_operator
)argument_list
)call
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(call
(identifier_track) identifier_track
(argument_list
(string_'create event') string_'create event'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_Event) identifier_Event
(identifier_objects) identifier_objects
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_group) identifier_group
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_channel) identifier_channel
(identifier_channel) identifier_channel
)keyword_argument
(keyword_argument
(identifier_value) identifier_value
(identifier_payload) identifier_payload
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(call
(identifier_ChannelGroup) identifier_ChannelGroup
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pk) identifier_pk
)attribute
)argument_list
)call
)argument_list
)call
(identifier_send) identifier_send
)attribute
(argument_list
(dictionary
(pair
(string_'text') string_'text'
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(dictionary
(pair
(string_'channel') string_'channel'
(identifier_channel) identifier_channel
)pair
(pair
(string_'payload') string_'payload'
(identifier_payload) identifier_payload
)pair
)dictionary
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Send a message with the given payload on the given channel.
Messages are broadcast to all players in the group. |
(module
(function_definition
(function_name_check) function_name_check
(parameters
)parameters
(type
(identifier_Result) identifier_Result
)type
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_Connection) identifier_Connection
(argument_list
(call
(attribute
(identifier_conf) identifier_conf
(identifier_get) identifier_get
)attribute
(argument_list
(string_'CELERY_BROKER_URL') string_'CELERY_BROKER_URL'
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_conn) identifier_conn
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_conn) identifier_conn
(identifier_connect) identifier_connect
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(except_clause
(identifier_ConnectionRefusedError) identifier_ConnectionRefusedError
(block
(return_statement
(call
(identifier_Result) identifier_Result
(argument_list
(keyword_argument
(identifier_message) identifier_message
(string_'Service unable to connect, "Connection was refused".') string_'Service unable to connect, "Connection was refused".'
)keyword_argument
(keyword_argument
(identifier_severity) identifier_severity
(attribute
(identifier_Result) identifier_Result
(identifier_ERROR) identifier_ERROR
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
(except_clause
(identifier_AccessRefused) identifier_AccessRefused
(block
(return_statement
(call
(identifier_Result) identifier_Result
(argument_list
(keyword_argument
(identifier_message) identifier_message
(string_'Service unable to connect, "Authentication error".') string_'Service unable to connect, "Authentication error".'
)keyword_argument
(keyword_argument
(identifier_severity) identifier_severity
(attribute
(identifier_Result) identifier_Result
(identifier_ERROR) identifier_ERROR
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
(except_clause
(identifier_IOError) identifier_IOError
(block
(return_statement
(call
(identifier_Result) identifier_Result
(argument_list
(keyword_argument
(identifier_message) identifier_message
(string_'Service has an "IOError".') string_'Service has an "IOError".'
)keyword_argument
(keyword_argument
(identifier_severity) identifier_severity
(attribute
(identifier_Result) identifier_Result
(identifier_ERROR) identifier_ERROR
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(return_statement
(call
(identifier_Result) identifier_Result
(argument_list
(keyword_argument
(identifier_message) identifier_message
(call
(attribute
(string_'Service has an "{}" error.') string_'Service has an "{}" error.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_severity) identifier_severity
(attribute
(identifier_Result) identifier_Result
(identifier_ERROR) identifier_ERROR
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
(else_clause
(block
(return_statement
(call
(identifier_Result) identifier_Result
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Open and close the broker channel. |
(module
(function_definition
(function_name_collapse_nested) function_name_collapse_nested
(parameters
(identifier_self) identifier_self
(identifier_cats) identifier_cats
(default_parameter
(identifier_max_nestedness) identifier_max_nestedness
(integer_10) integer_10
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_children) identifier_children
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_removed) identifier_removed
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nestedness) identifier_nestedness
(identifier_max_nestedness) identifier_max_nestedness
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_old) identifier_old
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_widget) identifier_widget
)attribute
(identifier_options) identifier_options
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nested) identifier_nested
(list_comprehension
(identifier_cat) identifier_cat
(for_in_clause
(identifier_cat) identifier_cat
(identifier_old) identifier_old
)for_in_clause
(if_clause
(comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_cat) identifier_cat
(string_'cat') string_'cat'
)argument_list
)call
(None) None
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parents) identifier_parents
(set_comprehension
(attribute
(identifier_cat) identifier_cat
(identifier_cat) identifier_cat
)attribute
(for_in_clause
(identifier_cat) identifier_cat
(identifier_nested) identifier_nested
)for_in_clause
)set_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parents_to_remove) identifier_parents_to_remove
(identifier_cats) identifier_cats
)assignment
)expression_statement
(while_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parents_to_remove) identifier_parents_to_remove
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_nestedness) identifier_nestedness
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(for_statement
(identifier_cat) identifier_cat
(identifier_nested) identifier_nested
(block
(if_statement
(comparison_operator
(attribute
(identifier_cat) identifier_cat
(identifier_cat) identifier_cat
)attribute
(identifier_parents_to_remove) identifier_parents_to_remove
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_cat) identifier_cat
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_removed) identifier_removed
(call
(attribute
(identifier_removed) identifier_removed
(identifier_union) identifier_union
)attribute
(argument_list
(identifier_parents_to_remove) identifier_parents_to_remove
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nested) identifier_nested
(list_comprehension
(identifier_cat) identifier_cat
(for_in_clause
(identifier_cat) identifier_cat
(identifier_nested) identifier_nested
)for_in_clause
(if_clause
(comparison_operator
(identifier_cat) identifier_cat
(identifier_children) identifier_children
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parents_to_remove) identifier_parents_to_remove
(set_comprehension
(identifier_c) identifier_c
(for_in_clause
(identifier_c) identifier_c
(identifier_children) identifier_children
)for_in_clause
(if_clause
(comparison_operator
(identifier_c) identifier_c
(binary_operator
(identifier_parents) identifier_parents
(identifier_removed) identifier_removed
)binary_operator
)comparison_operator
)if_clause
)set_comprehension
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_nestedness) identifier_nestedness
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_children) identifier_children
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Collapse any items that are nested under cats.
`max_nestedness` acts as a fail-safe to prevent infinite looping. |
(module
(function_definition
(function_name_accept_freeware_license) function_name_accept_freeware_license
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ntab) identifier_ntab
(conditional_expression
(integer_3) integer_3
(call
(attribute
(call
(identifier_version) identifier_version
(argument_list
)argument_list
)call
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'6.6.') string_'6.6.'
)argument_list
)call
(integer_2) integer_2
)conditional_expression
)assignment
)expression_statement
(for_statement
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(identifier_ntab) identifier_ntab
)argument_list
)call
(block
(expression_statement
(call
(attribute
(call
(identifier_EasyProcess) identifier_EasyProcess
(argument_list
(string_'xdotool key KP_Tab') string_'xdotool key KP_Tab'
)argument_list
)call
(identifier_call) identifier_call
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.5) float_0.5
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(call
(identifier_EasyProcess) identifier_EasyProcess
(argument_list
(string_'xdotool key KP_Space') string_'xdotool key KP_Space'
)argument_list
)call
(identifier_call) identifier_call
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.5) float_0.5
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_EasyProcess) identifier_EasyProcess
(argument_list
(string_'xdotool key KP_Space') string_'xdotool key KP_Space'
)argument_list
)call
(identifier_call) identifier_call
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | different Eagle versions need differnt TAB count.
6.5 -> 2
6.6 -> 3
7.4 -> 2 |
(module
(function_definition
(function_name_is_ready) function_name_is_ready
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_slave_task) function_name_slave_task
(parameters
(identifier_addr) identifier_addr
(identifier_timeout) identifier_timeout
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_r_manager) identifier_r_manager
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_addr) identifier_addr
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ready) identifier_ready
(await
(call
(attribute
(identifier_r_manager) identifier_r_manager
(identifier_is_ready) identifier_is_ready
)attribute
(argument_list
)argument_list
)call
)await
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ready) identifier_ready
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
(except_clause
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(identifier_is_ready) identifier_is_ready
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_check_ready) identifier_check_ready
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rets) identifier_rets
(await
(call
(identifier_create_tasks) identifier_create_tasks
(argument_list
(identifier_slave_task) identifier_slave_task
(attribute
(identifier_self) identifier_self
(identifier_addrs) identifier_addrs
)attribute
(float_0.5) float_0.5
)argument_list
)call
)await
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_all) identifier_all
(argument_list
(identifier_rets) identifier_rets
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check if the multi-environment has been fully initialized.
This calls each slave environment managers' :py:meth:`is_ready` and
checks if the multi-environment itself is ready by calling
:py:meth:`~creamas.mp.MultiEnvironment.check_ready`.
.. seealso::
:py:meth:`creamas.core.environment.Environment.is_ready` |
(module
(function_definition
(function_name_live_dirs) function_name_live_dirs
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_has_results_dir) identifier_has_results_dir
)attribute
(block
(expression_statement
(yield
(attribute
(identifier_self) identifier_self
(identifier_results_dir) identifier_results_dir
)attribute
)yield
)expression_statement
(expression_statement
(yield
(attribute
(identifier_self) identifier_self
(identifier_current_results_dir) identifier_current_results_dir
)attribute
)yield
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_has_previous_results_dir) identifier_has_previous_results_dir
)attribute
(block
(expression_statement
(yield
(attribute
(identifier_self) identifier_self
(identifier_previous_results_dir) identifier_previous_results_dir
)attribute
)yield
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Yields directories that must exist for this VersionedTarget to function. |
(module
(function_definition
(function_name_query_foursquare) function_name_query_foursquare
(parameters
(identifier_point) identifier_point
(identifier_max_distance) identifier_max_distance
(identifier_client_id) identifier_client_id
(identifier_client_secret) identifier_client_secret
)parameters
(block
(if_statement
(not_operator
(identifier_client_id) identifier_client_id
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_client_secret) identifier_client_secret
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_from_cache) identifier_from_cache
(argument_list
(identifier_FS_CACHE) identifier_FS_CACHE
(identifier_point) identifier_point
(identifier_max_distance) identifier_max_distance
)argument_list
)call
(block
(return_statement
(call
(identifier_from_cache) identifier_from_cache
(argument_list
(identifier_FS_CACHE) identifier_FS_CACHE
(identifier_point) identifier_point
(identifier_max_distance) identifier_max_distance
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(identifier_FOURSQUARE_URL) identifier_FOURSQUARE_URL
(tuple
(identifier_client_id) identifier_client_id
(identifier_client_secret) identifier_client_secret
(attribute
(identifier_point) identifier_point
(identifier_lat) identifier_lat
)attribute
(attribute
(identifier_point) identifier_point
(identifier_lon) identifier_lon
)attribute
(identifier_max_distance) identifier_max_distance
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_req) identifier_req
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_req) identifier_req
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_venues) identifier_venues
(subscript
(subscript
(identifier_response) identifier_response
(string_'response') string_'response'
)subscript
(string_'venues') string_'venues'
)subscript
)assignment
)expression_statement
(for_statement
(identifier_venue) identifier_venue
(identifier_venues) identifier_venues
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(identifier_venue) identifier_venue
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_distance) identifier_distance
(subscript
(subscript
(identifier_venue) identifier_venue
(string_'location') string_'location'
)subscript
(string_'distance') string_'distance'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_categories) identifier_categories
(list_comprehension
(subscript
(identifier_c) identifier_c
(string_'shortName') string_'shortName'
)subscript
(for_in_clause
(identifier_c) identifier_c
(subscript
(identifier_venue) identifier_venue
(string_'categories') string_'categories'
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'label') string_'label'
(identifier_name) identifier_name
)pair
(pair
(string_'distance') string_'distance'
(identifier_distance) identifier_distance
)pair
(pair
(string_'types') string_'types'
(identifier_categories) identifier_categories
)pair
(pair
(string_'suggestion_type') string_'suggestion_type'
(string_'FOURSQUARE') string_'FOURSQUARE'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier_foursquare_insert_cache) identifier_foursquare_insert_cache
(argument_list
(identifier_point) identifier_point
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Queries Squarespace API for a location
Args:
point (:obj:`Point`): Point location to query
max_distance (float): Search radius, in meters
client_id (str): Valid Foursquare client id
client_secret (str): Valid Foursquare client secret
Returns:
:obj:`list` of :obj:`dict`: List of locations with the following format:
{
'label': 'Coffee house',
'distance': 19,
'types': 'Commerce',
'suggestion_type': 'FOURSQUARE'
} |
(module
(function_definition
(function_name_wcwidth) function_name_wcwidth
(parameters
(identifier_wc) identifier_wc
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_ucs) identifier_ucs
(call
(identifier_ord) identifier_ord
(argument_list
(identifier_wc) identifier_wc
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_ucs) identifier_ucs
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_ucs) identifier_ucs
(integer_0x034F) integer_0x034F
)comparison_operator
)boolean_operator
(comparison_operator
(integer_0x200B) integer_0x200B
(identifier_ucs) identifier_ucs
(integer_0x200F) integer_0x200F
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_ucs) identifier_ucs
(integer_0x2028) integer_0x2028
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_ucs) identifier_ucs
(integer_0x2029) integer_0x2029
)comparison_operator
)boolean_operator
(comparison_operator
(integer_0x202A) integer_0x202A
(identifier_ucs) identifier_ucs
(integer_0x202E) integer_0x202E
)comparison_operator
)boolean_operator
(comparison_operator
(integer_0x2060) integer_0x2060
(identifier_ucs) identifier_ucs
(integer_0x2063) integer_0x2063
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_ucs) identifier_ucs
(integer_32) integer_32
)comparison_operator
(comparison_operator
(integer_0x07F) integer_0x07F
(identifier_ucs) identifier_ucs
(integer_0x0A0) integer_0x0A0
)comparison_operator
)boolean_operator
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
)if_statement
(if_statement
(call
(identifier__bisearch) identifier__bisearch
(argument_list
(identifier_ucs) identifier_ucs
(identifier_ZERO_WIDTH) identifier_ZERO_WIDTH
)argument_list
)call
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(integer_1) integer_1
(call
(identifier__bisearch) identifier__bisearch
(argument_list
(identifier_ucs) identifier_ucs
(identifier_WIDE_EASTASIAN) identifier_WIDE_EASTASIAN
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | r"""
Given one unicode character, return its printable length on a terminal.
The wcwidth() function returns 0 if the wc argument has no printable effect
on a terminal (such as NUL '\0'), -1 if wc is not printable, or has an
indeterminate effect on the terminal, such as a control character.
Otherwise, the number of column positions the character occupies on a
graphic terminal (1 or 2) is returned.
The following have a column width of -1:
- C0 control characters (U+001 through U+01F).
- C1 control characters and DEL (U+07F through U+0A0).
The following have a column width of 0:
- Non-spacing and enclosing combining characters (general
category code Mn or Me in the Unicode database).
- NULL (U+0000, 0).
- COMBINING GRAPHEME JOINER (U+034F).
- ZERO WIDTH SPACE (U+200B) through
RIGHT-TO-LEFT MARK (U+200F).
- LINE SEPERATOR (U+2028) and
PARAGRAPH SEPERATOR (U+2029).
- LEFT-TO-RIGHT EMBEDDING (U+202A) through
RIGHT-TO-LEFT OVERRIDE (U+202E).
- WORD JOINER (U+2060) through
INVISIBLE SEPARATOR (U+2063).
The following have a column width of 1:
- SOFT HYPHEN (U+00AD) has a column width of 1.
- All remaining characters (including all printable
ISO 8859-1 and WGL4 characters, Unicode control characters,
etc.) have a column width of 1.
The following have a column width of 2:
- Spacing characters in the East Asian Wide (W) or East Asian
Full-width (F) category as defined in Unicode Technical
Report #11 have a column width of 2. |
(module
(function_definition
(function_name__get_repo_info) function_name__get_repo_info
(parameters
(identifier_alias) identifier_alias
(default_parameter
(identifier_repos_cfg) identifier_repos_cfg
(None) None
)default_parameter
(default_parameter
(identifier_root) identifier_root
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_meta) identifier_meta
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(parenthesized_expression
(boolean_operator
(identifier_repos_cfg) identifier_repos_cfg
(call
(identifier__get_configured_repos) identifier__get_configured_repos
(argument_list
(keyword_argument
(identifier_root) identifier_root
(identifier_root) identifier_root
)keyword_argument
)argument_list
)call
)boolean_operator
)parenthesized_expression
(identifier_items) identifier_items
)attribute
(argument_list
(identifier_alias) identifier_alias
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(string_'alias') string_'alias'
)subscript
(identifier_alias) identifier_alias
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_meta) identifier_meta
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_val) identifier_val
(list
(string_'0') string_'0'
(string_'1') string_'1'
)list
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(identifier_key) identifier_key
)subscript
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_meta) identifier_meta
(identifier_key) identifier_key
)subscript
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_val) identifier_val
(string_'NONE') string_'NONE'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_meta) identifier_meta
(identifier_key) identifier_key
)subscript
(None) None
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_meta) identifier_meta
)return_statement
)block
(except_clause
(tuple
(identifier_ValueError) identifier_ValueError
(attribute
(identifier_configparser) identifier_configparser
(identifier_NoSectionError) identifier_NoSectionError
)attribute
)tuple
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Get one repo meta-data. |
(module
(function_definition
(function_name_multitaper_cross_spectrum) function_name_multitaper_cross_spectrum
(parameters
(identifier_self) identifier_self
(identifier_clm) identifier_clm
(identifier_slm) identifier_slm
(identifier_k) identifier_k
(default_parameter
(identifier_convention) identifier_convention
(string_'power') string_'power'
)default_parameter
(default_parameter
(identifier_unit) identifier_unit
(string_'per_l') string_'per_l'
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__multitaper_cross_spectrum) identifier__multitaper_cross_spectrum
)attribute
(argument_list
(identifier_clm) identifier_clm
(identifier_slm) identifier_slm
(identifier_k) identifier_k
(keyword_argument
(identifier_convention) identifier_convention
(identifier_convention) identifier_convention
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(identifier_unit) identifier_unit
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the multitaper cross-spectrum estimate and standard error.
Usage
-----
mtse, sd = x.multitaper_cross_spectrum(clm, slm, k, [convention, unit,
lmax, taper_wt,
clat, clon,
coord_degrees])
Returns
-------
mtse : ndarray, shape (lmax-lwin+1)
The localized multitaper cross-spectrum estimate, where lmax is the
smaller of the two spherical-harmonic bandwidths of clm and slm,
and lwin is the spherical-harmonic bandwidth of the localization
windows.
sd : ndarray, shape (lmax-lwin+1)
The standard error of the localized multitaper cross-spectrum
estimate.
Parameters
----------
clm : SHCoeffs class instance
SHCoeffs class instance containing the spherical harmonic
coefficients of the first global field to analyze.
slm : SHCoeffs class instance
SHCoeffs class instance containing the spherical harmonic
coefficients of the second global field to analyze.
k : int
The number of tapers to be utilized in performing the multitaper
spectral analysis.
convention : str, optional, default = 'power'
The type of output spectra: 'power' for power spectra, and
'energy' for energy spectra.
unit : str, optional, default = 'per_l'
The units of the output spectra. If 'per_l', the spectra contain
the total contribution for each spherical harmonic degree l. If
'per_lm', the spectra contain the average contribution for each
coefficient at spherical harmonic degree l.
lmax : int, optional, default = min(clm.lmax, slm.lmax)
The maximum spherical-harmonic degree of the input coefficients
to use.
taper_wt : ndarray, optional, default = None
The weights used in calculating the multitaper cross-spectral
estimates and standard error.
clat, clon : float, optional, default = 90., 0.
Latitude and longitude of the center of the spherical-cap
localization windows.
coord_degrees : bool, optional, default = True
True if clat and clon are in degrees. |
(module
(function_definition
(function_name_exp_backoff) function_name_exp_backoff
(parameters
(identifier_attempt) identifier_attempt
(default_parameter
(identifier_cap) identifier_cap
(integer_3600) integer_3600
)default_parameter
(default_parameter
(identifier_base) identifier_base
(integer_300) integer_300
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_max_attempts) identifier_max_attempts
(call
(attribute
(identifier_math) identifier_math
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(identifier_cap) identifier_cap
(identifier_base) identifier_base
)binary_operator
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_attempt) identifier_attempt
(identifier_max_attempts) identifier_max_attempts
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_base) identifier_base
(binary_operator
(integer_2) integer_2
(identifier_attempt) identifier_attempt
)binary_operator
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(identifier_cap) identifier_cap
)return_statement
)block
)function_definition
)module | Exponential backoff time |
(module
(function_definition
(function_name_create_boots_layer) function_name_create_boots_layer
(parameters
(identifier_aspect) identifier_aspect
(identifier_ip) identifier_ip
)parameters
(block
(expression_statement
(assignment
(identifier_layer) identifier_layer
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'BOOTS') string_'BOOTS'
(identifier_aspect) identifier_aspect
)comparison_operator
(block
(expression_statement
(assignment
(identifier_layer) identifier_layer
(call
(attribute
(identifier_pgnreader) identifier_pgnreader
(identifier_parse_pagan_file) identifier_parse_pagan_file
)attribute
(argument_list
(identifier_FILE_BOOTS) identifier_FILE_BOOTS
(identifier_ip) identifier_ip
(keyword_argument
(identifier_invert) identifier_invert
(False) False
)keyword_argument
(keyword_argument
(identifier_sym) identifier_sym
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_layer) identifier_layer
)return_statement
)block
)function_definition
)module | Reads the BOOTS.pgn file and creates
the boots layer. |
(module
(function_definition
(function_name_make_instance) function_name_make_instance
(parameters
(identifier_cls) identifier_cls
(identifier_id) identifier_id
(identifier_client) identifier_client
(default_parameter
(identifier_parent_id) identifier_parent_id
(None) None
)default_parameter
(default_parameter
(identifier_json) identifier_json
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_make_cls) identifier_make_cls
(call
(attribute
(identifier_CLASS_MAP) identifier_CLASS_MAP
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_make_cls) identifier_make_cls
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_real_json) identifier_real_json
(subscript
(identifier_json) identifier_json
(string_'data') string_'data'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_real_id) identifier_real_id
(subscript
(identifier_real_json) identifier_real_json
(string_'id') string_'id'
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_Base) identifier_Base
(identifier_make) identifier_make
)attribute
(argument_list
(identifier_real_id) identifier_real_id
(identifier_client) identifier_client
(identifier_make_cls) identifier_make_cls
(keyword_argument
(identifier_parent_id) identifier_parent_id
(None) None
)keyword_argument
(keyword_argument
(identifier_json) identifier_json
(identifier_real_json) identifier_real_json
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Overrides Base's ``make_instance`` to allow dynamic creation of objects
based on the defined type in the response json.
:param cls: The class this was called on
:param id: The id of the instance to create
:param client: The client to use for this instance
:param parent_id: The parent id for derived classes
:param json: The JSON to populate the instance with
:returns: A new instance of this type, populated with json |
(module
(function_definition
(function_name__parse_cod_segment) function_name__parse_cod_segment
(parameters
(identifier_cls) identifier_cls
(identifier_fptr) identifier_fptr
)parameters
(block
(expression_statement
(assignment
(identifier_offset) identifier_offset
(binary_operator
(call
(attribute
(identifier_fptr) identifier_fptr
(identifier_tell) identifier_tell
)attribute
(argument_list
)argument_list
)call
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_read_buffer) identifier_read_buffer
(call
(attribute
(identifier_fptr) identifier_fptr
(identifier_read) identifier_read
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_length) identifier_length
)pattern_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_'>H') string_'>H'
(identifier_read_buffer) identifier_read_buffer
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_read_buffer) identifier_read_buffer
(call
(attribute
(identifier_fptr) identifier_fptr
(identifier_read) identifier_read
)attribute
(argument_list
(binary_operator
(identifier_length) identifier_length
(integer_2) integer_2
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lst) identifier_lst
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack_from) identifier_unpack_from
)attribute
(argument_list
(string_'>BBHBBBBBB') string_'>BBHBBBBBB'
(identifier_read_buffer) identifier_read_buffer
(keyword_argument
(identifier_offset) identifier_offset
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_scod) identifier_scod
(identifier_prog) identifier_prog
(identifier_nlayers) identifier_nlayers
(identifier_mct) identifier_mct
(identifier_nr) identifier_nr
(identifier_xcb) identifier_xcb
(identifier_ycb) identifier_ycb
(identifier_cstyle) identifier_cstyle
(identifier_xform) identifier_xform
)pattern_list
(identifier_lst) identifier_lst
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_read_buffer) identifier_read_buffer
)argument_list
)call
(integer_10) integer_10
)comparison_operator
(block
(expression_statement
(assignment
(identifier_precinct_size) identifier_precinct_size
(call
(identifier__parse_precinct_size) identifier__parse_precinct_size
(argument_list
(subscript
(identifier_read_buffer) identifier_read_buffer
(slice
(integer_10) integer_10
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_precinct_size) identifier_precinct_size
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_sop) identifier_sop
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_scod) identifier_scod
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_eph) identifier_eph
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_scod) identifier_scod
(integer_4) integer_4
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_sop) identifier_sop
(identifier_eph) identifier_eph
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier__parse_tpart_flag) identifier__parse_tpart_flag
)attribute
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier__parse_tpart_flag) identifier__parse_tpart_flag
)attribute
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_pargs) identifier_pargs
(tuple
(identifier_scod) identifier_scod
(identifier_prog) identifier_prog
(identifier_nlayers) identifier_nlayers
(identifier_mct) identifier_mct
(identifier_nr) identifier_nr
(identifier_xcb) identifier_xcb
(identifier_ycb) identifier_ycb
(identifier_cstyle) identifier_cstyle
(identifier_xform) identifier_xform
(identifier_precinct_size) identifier_precinct_size
)tuple
)assignment
)expression_statement
(return_statement
(call
(identifier_CODsegment) identifier_CODsegment
(argument_list
(list_splat
(identifier_pargs) identifier_pargs
)list_splat
(keyword_argument
(identifier_length) identifier_length
(identifier_length) identifier_length
)keyword_argument
(keyword_argument
(identifier_offset) identifier_offset
(identifier_offset) identifier_offset
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parse the COD segment.
Parameters
----------
fptr : file
Open file object.
Returns
-------
CODSegment
The current COD segment. |
(module
(function_definition
(function_name__get_auth) function_name__get_auth
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_console) identifier_force_console
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Unspecified target ({!r})") string_"Unspecified target ({!r})"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(elif_clause
(boolean_operator
(not_operator
(identifier_force_console) identifier_force_console
)not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_URL_RE) identifier_URL_RE
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_auth_url) identifier_auth_url
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_source) identifier_source
(string_'url') string_'url'
)assignment
)expression_statement
(if_statement
(attribute
(identifier_auth_url) identifier_auth_url
(identifier_username) identifier_username
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
(attribute
(identifier_auth_url) identifier_auth_url
(identifier_username) identifier_username
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_auth_url) identifier_auth_url
(identifier_password) identifier_password
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
(attribute
(identifier_auth_url) identifier_auth_url
(identifier_password) identifier_password
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_auth_valid) identifier_auth_valid
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(attribute
(identifier_self) identifier_self
(identifier__get_auth_from_keyring) identifier__get_auth_from_keyring
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_auth_valid) identifier_auth_valid
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(attribute
(identifier_self) identifier_self
(identifier__get_auth_from_netrc) identifier__get_auth_from_netrc
)attribute
(argument_list
(attribute
(identifier_auth_url) identifier_auth_url
(identifier_hostname) identifier_hostname
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_auth_valid) identifier_auth_valid
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(attribute
(identifier_self) identifier_self
(identifier__get_auth_from_console) identifier__get_auth_from_console
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(attribute
(identifier_self) identifier_self
(identifier__get_auth_from_console) identifier__get_auth_from_console
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_auth_valid) identifier_auth_valid
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_source) identifier_source
)attribute
(identifier_source) identifier_source
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Try to get login auth from known sources. |
(module
(function_definition
(function_name_add_chunk) function_name_add_chunk
(parameters
(identifier_self) identifier_self
(identifier_chunk_obj) identifier_chunk_obj
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_chunk_obj) identifier_chunk_obj
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Chunk with id {} already exists!") string_"Chunk with id {} already exists!"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_chunk_obj) identifier_chunk_obj
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_node) identifier_node
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_chunk_obj) identifier_chunk_obj
(identifier_get_node) identifier_get_node
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)attribute
(call
(attribute
(identifier_chunk_obj) identifier_chunk_obj
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
)subscript
(identifier_chunk_obj) identifier_chunk_obj
)assignment
)expression_statement
)block
)function_definition
)module | Adds a chunk object to the layer
@type chunk_obj: L{Cchunk}
@param chunk_obj: the chunk object |
(module
(function_definition
(function_name_get_model_choices) function_name_get_model_choices
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_ct) identifier_ct
(call
(attribute
(attribute
(identifier_ContentType) identifier_ContentType
(identifier_objects) identifier_objects
)attribute
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_'app_label') string_'app_label'
(string_'model') string_'model'
)argument_list
)call
(block
(try_statement
(block
(if_statement
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(call
(attribute
(identifier_ct) identifier_ct
(identifier_model_class) identifier_model_class
)attribute
(argument_list
)argument_list
)call
(identifier_TranslatableModel) identifier_TranslatableModel
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(call
(attribute
(string_'{} - {}') string_'{} - {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_ct) identifier_ct
(identifier_app_label) identifier_app_label
)attribute
(call
(attribute
(attribute
(identifier_ct) identifier_ct
(identifier_model) identifier_model
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(call
(attribute
(string_'{} - {}') string_'{} - {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_ct) identifier_ct
(identifier_app_label) identifier_app_label
)attribute
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
(attribute
(attribute
(call
(attribute
(identifier_ct) identifier_ct
(identifier_model_class) identifier_model_class
)attribute
(argument_list
)argument_list
)call
(identifier__meta) identifier__meta
)attribute
(identifier_verbose_name_plural) identifier_verbose_name_plural
)attribute
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Get the select options for the model selector
:return: |
(module
(function_definition
(function_name_remove_datastore) function_name_remove_datastore
(parameters
(identifier_datastore) identifier_datastore
(default_parameter
(identifier_service_instance) identifier_service_instance
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_trace) identifier_trace
)attribute
(argument_list
(string_'Removing datastore \'%s\'') string_'Removing datastore \'%s\''
(identifier_datastore) identifier_datastore
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_target) identifier_target
(call
(identifier__get_proxy_target) identifier__get_proxy_target
(argument_list
(identifier_service_instance) identifier_service_instance
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_datastores) identifier_datastores
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_vmware) identifier_vmware
)attribute
(identifier_get_datastores) identifier_get_datastores
)attribute
(argument_list
(identifier_service_instance) identifier_service_instance
(keyword_argument
(identifier_reference) identifier_reference
(identifier_target) identifier_target
)keyword_argument
(keyword_argument
(identifier_datastore_names) identifier_datastore_names
(list
(identifier_datastore) identifier_datastore
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_datastores) identifier_datastores
)not_operator
(block
(raise_statement
(call
(identifier_VMwareObjectRetrievalError) identifier_VMwareObjectRetrievalError
(argument_list
(call
(attribute
(string_'Datastore \'{0}\' was not found') string_'Datastore \'{0}\' was not found'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_datastore) identifier_datastore
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_datastores) identifier_datastores
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_VMwareObjectRetrievalError) identifier_VMwareObjectRetrievalError
(argument_list
(call
(attribute
(string_'Multiple datastores \'{0}\' were found') string_'Multiple datastores \'{0}\' were found'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_datastore) identifier_datastore
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_vmware) identifier_vmware
)attribute
(identifier_remove_datastore) identifier_remove_datastore
)attribute
(argument_list
(identifier_service_instance) identifier_service_instance
(subscript
(identifier_datastores) identifier_datastores
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Removes a datastore. If multiple datastores an error is raised.
datastore
Datastore name
service_instance
Service instance (vim.ServiceInstance) of the vCenter/ESXi host.
Default is None.
.. code-block:: bash
salt '*' vsphere.remove_datastore ds_name |
(module
(function_definition
(function_name_get_stoplist) function_name_get_stoplist
(parameters
(identifier_language) identifier_language
)parameters
(block
(expression_statement
(assignment
(identifier_file_path) identifier_file_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(string_"stoplists") string_"stoplists"
(binary_operator
(string_"%s.txt") string_"%s.txt"
(identifier_language) identifier_language
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_stopwords) identifier_stopwords
(call
(attribute
(identifier_pkgutil) identifier_pkgutil
(identifier_get_data) identifier_get_data
)attribute
(argument_list
(string_"justext") string_"justext"
(identifier_file_path) identifier_file_path
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(concatenated_string
(string_"Stoplist for language '%s' is missing. ") string_"Stoplist for language '%s' is missing. "
(string_"Please use function 'get_stoplists' for complete list of stoplists ") string_"Please use function 'get_stoplists' for complete list of stoplists "
(string_"and feel free to contribute by your own stoplist.") string_"and feel free to contribute by your own stoplist."
)concatenated_string
(identifier_language) identifier_language
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_frozenset) identifier_frozenset
(generator_expression
(call
(attribute
(call
(attribute
(identifier_w) identifier_w
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_"utf8") string_"utf8"
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_w) identifier_w
(call
(attribute
(identifier_stopwords) identifier_stopwords
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Returns an built-in stop-list for the language as a set of words. |
(module
(function_definition
(function_name__create_stdout_logger) function_name__create_stdout_logger
(parameters
(identifier_logging_level) identifier_logging_level
)parameters
(block
(expression_statement
(assignment
(identifier_out_hdlr) identifier_out_hdlr
(call
(attribute
(identifier_logging) identifier_logging
(identifier_StreamHandler) identifier_StreamHandler
)attribute
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_hdlr) identifier_out_hdlr
(identifier_setFormatter) identifier_setFormatter
)attribute
(argument_list
(call
(attribute
(identifier_logging) identifier_logging
(identifier_Formatter) identifier_Formatter
)attribute
(argument_list
(string_'[%(asctime)s] %(message)s') string_'[%(asctime)s] %(message)s'
(string_"%H:%M:%S") string_"%H:%M:%S"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_hdlr) identifier_out_hdlr
(identifier_setLevel) identifier_setLevel
)attribute
(argument_list
(identifier_logging_level) identifier_logging_level
)argument_list
)call
)expression_statement
(for_statement
(identifier_name) identifier_name
(identifier_LOGGING_NAMES) identifier_LOGGING_NAMES
(block
(expression_statement
(assignment
(identifier_log) identifier_log
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_addHandler) identifier_addHandler
)attribute
(argument_list
(identifier_out_hdlr) identifier_out_hdlr
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_setLevel) identifier_setLevel
)attribute
(argument_list
(identifier_logging_level) identifier_logging_level
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | create a logger to stdout. This creates logger for a series
of module we would like to log information on. |
(module
(function_definition
(function_name_get_last_doc) function_name_get_last_doc
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_docs_by_ts) function_name_docs_by_ts
(parameters
)parameters
(block
(for_statement
(identifier_meta_collection_name) identifier_meta_collection_name
(call
(attribute
(identifier_self) identifier_self
(identifier__meta_collections) identifier__meta_collections
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_meta_coll) identifier_meta_coll
(subscript
(attribute
(identifier_self) identifier_self
(identifier_meta_database) identifier_meta_database
)attribute
(identifier_meta_collection_name) identifier_meta_collection_name
)subscript
)assignment
)expression_statement
(for_statement
(identifier_ts_ns_doc) identifier_ts_ns_doc
(call
(attribute
(call
(attribute
(identifier_meta_coll) identifier_meta_coll
(identifier_find) identifier_find
)attribute
(argument_list
(keyword_argument
(identifier_limit) identifier_limit
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
)argument_list
)call
(identifier_sort) identifier_sort
)attribute
(argument_list
(string_"_ts") string_"_ts"
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
(block
(expression_statement
(yield
(identifier_ts_ns_doc) identifier_ts_ns_doc
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(call
(identifier_docs_by_ts) identifier_docs_by_ts
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_x) identifier_x
(string_"_ts") string_"_ts"
)subscript
)lambda
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the last document stored in Mongo. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.