sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__get_pid_file_variable) function_name__get_pid_file_variable
(parameters
(identifier_self) identifier_self
(identifier_db) identifier_db
)parameters
(block
(expression_statement
(assignment
(identifier_pid_file) identifier_pid_file
(None) None
)assignment
)expression_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_closing) identifier_closing
(argument_list
(call
(attribute
(identifier_db) identifier_db
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_cursor) identifier_cursor
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"SHOW VARIABLES LIKE 'pid_file'") string_"SHOW VARIABLES LIKE 'pid_file'"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pid_file) identifier_pid_file
(subscript
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
)block
)with_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Error while fetching pid_file variable of MySQL.") string_"Error while fetching pid_file variable of MySQL."
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_pid_file) identifier_pid_file
)return_statement
)block
)function_definition
)module | Get the `pid_file` variable |
(module
(function_definition
(function_name_mirror) function_name_mirror
(parameters
(typed_parameter
(identifier_self) identifier_self
(type
(identifier_BaseBoardT) identifier_BaseBoardT
)type
)typed_parameter
)parameters
(type
(identifier_BaseBoardT) identifier_BaseBoardT
)type
(block
(expression_statement
(assignment
(identifier_board) identifier_board
(call
(attribute
(identifier_self) identifier_self
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_flip_vertical) identifier_flip_vertical
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(subscript
(attribute
(identifier_board) identifier_board
(identifier_occupied_co) identifier_occupied_co
)attribute
(identifier_WHITE) identifier_WHITE
)subscript
(subscript
(attribute
(identifier_board) identifier_board
(identifier_occupied_co) identifier_occupied_co
)attribute
(identifier_BLACK) identifier_BLACK
)subscript
)pattern_list
(expression_list
(subscript
(attribute
(identifier_board) identifier_board
(identifier_occupied_co) identifier_occupied_co
)attribute
(identifier_BLACK) identifier_BLACK
)subscript
(subscript
(attribute
(identifier_board) identifier_board
(identifier_occupied_co) identifier_occupied_co
)attribute
(identifier_WHITE) identifier_WHITE
)subscript
)expression_list
)assignment
)expression_statement
(return_statement
(identifier_board) identifier_board
)return_statement
)block
)function_definition
)module | Returns a mirrored copy of the board.
The board is mirrored vertically and piece colors are swapped, so that
the position is equivalent modulo color. |
(module
(function_definition
(function_name_count_characters) function_name_count_characters
(parameters
(identifier_root) identifier_root
(identifier_out) identifier_out
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_root) identifier_root
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_in_f) identifier_in_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(identifier_in_f) identifier_in_f
(block
(for_statement
(identifier_char) identifier_char
(identifier_line) identifier_line
(block
(if_statement
(comparison_operator
(identifier_char) identifier_char
(identifier_out) identifier_out
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(identifier_char) identifier_char
)subscript
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(identifier_char) identifier_char
)subscript
(binary_operator
(subscript
(identifier_out) identifier_out
(identifier_char) identifier_char
)subscript
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)with_statement
)block
(elif_clause
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
(block
(for_statement
(identifier_filename) identifier_filename
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
(block
(expression_statement
(call
(identifier_count_characters) identifier_count_characters
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root) identifier_root
(identifier_filename) identifier_filename
)argument_list
)call
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Count the occurrances of the different characters in the files |
(module
(function_definition
(function_name_reload) function_name_reload
(parameters
(identifier_self) identifier_self
(identifier_encoding) identifier_encoding
)parameters
(block
(assert_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)assert_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_open
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
(keyword_argument
(identifier_use_cached_encoding) identifier_use_cached_encoding
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reload the file with another encoding.
:param encoding: the new encoding to use to reload the file. |
(module
(function_definition
(function_name_wgan) function_name_wgan
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_data) identifier_data
(type
(identifier_DataBunch) identifier_DataBunch
)type
)typed_parameter
(typed_parameter
(identifier_generator) identifier_generator
(type
(attribute
(identifier_nn) identifier_nn
(identifier_Module) identifier_Module
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_critic) identifier_critic
(type
(attribute
(identifier_nn) identifier_nn
(identifier_Module) identifier_Module
)attribute
)type
)typed_parameter
(typed_default_parameter
(identifier_switcher) identifier_switcher
(type
(identifier_Callback) identifier_Callback
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_clip) identifier_clip
(type
(identifier_float) identifier_float
)type
(float_0.01) float_0.01
)typed_default_parameter
(dictionary_splat_pattern
(identifier_learn_kwargs) identifier_learn_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(string_"Create a WGAN from `data`, `generator` and `critic`.") string_"Create a WGAN from `data`, `generator` and `critic`."
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_data) identifier_data
(identifier_generator) identifier_generator
(identifier_critic) identifier_critic
(call
(identifier_NoopLoss) identifier_NoopLoss
(argument_list
)argument_list
)call
(call
(identifier_WassersteinLoss) identifier_WassersteinLoss
(argument_list
)argument_list
)call
(keyword_argument
(identifier_switcher) identifier_switcher
(identifier_switcher) identifier_switcher
)keyword_argument
(keyword_argument
(identifier_clip) identifier_clip
(identifier_clip) identifier_clip
)keyword_argument
(dictionary_splat
(identifier_learn_kwargs) identifier_learn_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a WGAN from `data`, `generator` and `critic`. |
(module
(function_definition
(function_name_currency_format) function_name_currency_format
(parameters
(identifier_cents) identifier_cents
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cents) identifier_cents
(call
(identifier_int) identifier_int
(argument_list
(identifier_cents) identifier_cents
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(identifier_cents) identifier_cents
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_negative) identifier_negative
(parenthesized_expression
(comparison_operator
(identifier_cents) identifier_cents
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_negative) identifier_negative
(block
(expression_statement
(assignment
(identifier_cents) identifier_cents
(binary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(identifier_cents) identifier_cents
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_cents) identifier_cents
(integer_100) integer_100
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dollars) identifier_dollars
(integer_0) integer_0
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_dollars) identifier_dollars
(binary_operator
(identifier_cents) identifier_cents
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cents) identifier_cents
(binary_operator
(identifier_cents) identifier_cents
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_centstr) identifier_centstr
(call
(identifier_str) identifier_str
(argument_list
(identifier_cents) identifier_cents
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_centstr) identifier_centstr
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_centstr) identifier_centstr
(binary_operator
(string_'0') string_'0'
(identifier_centstr) identifier_centstr
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_negative) identifier_negative
(block
(return_statement
(binary_operator
(string_"- $%s.%s") string_"- $%s.%s"
(tuple
(call
(identifier_intcomma) identifier_intcomma
(argument_list
(identifier_dollars) identifier_dollars
)argument_list
)call
(identifier_centstr) identifier_centstr
)tuple
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(string_"$%s.%s") string_"$%s.%s"
(tuple
(call
(identifier_intcomma) identifier_intcomma
(argument_list
(identifier_dollars) identifier_dollars
)argument_list
)call
(identifier_centstr) identifier_centstr
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Format currency with symbol and decimal points.
>> currency_format(-600)
- $6.00
TODO: Add localization support. |
(module
(function_definition
(function_name_shell) function_name_shell
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(string_" A helper command to be used for shell integration ") string_" A helper command to be used for shell integration "
)expression_statement
(expression_statement
(identifier_print) identifier_print
)expression_statement
(print_statement
(string_"
print ") string_"
print "
)print_statement
(print_statement
(binary_operator
(string_"export MAKESITE_HOME=%s") string_"export MAKESITE_HOME=%s"
(attribute
(identifier_args) identifier_args
(identifier_path) identifier_path
)attribute
)binary_operator
)print_statement
(print_statement
(binary_operator
(string_"source %s") string_"source %s"
(call
(attribute
(identifier_op) identifier_op
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_BASEDIR) identifier_BASEDIR
)attribute
(string_'shell.sh') string_'shell.sh'
)argument_list
)call
)binary_operator
)print_statement
(expression_statement
(identifier_print) identifier_print
)expression_statement
)block
)function_definition
)module | A helper command to be used for shell integration |
(module
(function_definition
(function_name_add_tags) function_name_add_tags
(parameters
(identifier_self) identifier_self
(identifier_tags) identifier_tags
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_tags) identifier_tags
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(list
(identifier_tags) identifier_tags
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__bugsy) identifier__bugsy
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(binary_operator
(string_'bug/comment/%s/tags') string_'bug/comment/%s/tags'
(subscript
(attribute
(identifier_self) identifier_self
(identifier__comment) identifier__comment
)attribute
(string_'id') string_'id'
)subscript
)binary_operator
(keyword_argument
(identifier_method) identifier_method
(string_'PUT') string_'PUT'
)keyword_argument
(keyword_argument
(identifier_json) identifier_json
(dictionary
(pair
(string_"add") string_"add"
(identifier_tags) identifier_tags
)pair
)dictionary
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add tags to the comments |
(module
(function_definition
(function_name__twoByteStringToNum) function_name__twoByteStringToNum
(parameters
(identifier_bytestring) identifier_bytestring
(default_parameter
(identifier_numberOfDecimals) identifier_numberOfDecimals
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_signed) identifier_signed
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier__checkString) identifier__checkString
(argument_list
(identifier_bytestring) identifier_bytestring
(keyword_argument
(identifier_minlength) identifier_minlength
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_maxlength) identifier_maxlength
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(string_'bytestring') string_'bytestring'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__checkInt) identifier__checkInt
(argument_list
(identifier_numberOfDecimals) identifier_numberOfDecimals
(keyword_argument
(identifier_minvalue) identifier_minvalue
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(string_'number of decimals') string_'number of decimals'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__checkBool) identifier__checkBool
(argument_list
(identifier_signed) identifier_signed
(keyword_argument
(identifier_description) identifier_description
(string_'signed parameter') string_'signed parameter'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_formatcode) identifier_formatcode
(string_'>') string_'>'
)assignment
)expression_statement
(if_statement
(identifier_signed) identifier_signed
(block
(expression_statement
(augmented_assignment
(identifier_formatcode) identifier_formatcode
(string_'h') string_'h'
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_formatcode) identifier_formatcode
(string_'H') string_'H'
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_fullregister) identifier_fullregister
(call
(identifier__unpack) identifier__unpack
(argument_list
(identifier_formatcode) identifier_formatcode
(identifier_bytestring) identifier_bytestring
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_numberOfDecimals) identifier_numberOfDecimals
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_fullregister) identifier_fullregister
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_divisor) identifier_divisor
(binary_operator
(integer_10) integer_10
(identifier_numberOfDecimals) identifier_numberOfDecimals
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_fullregister) identifier_fullregister
(call
(identifier_float) identifier_float
(argument_list
(identifier_divisor) identifier_divisor
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Convert a two-byte string to a numerical value, possibly scaling it.
Args:
* bytestring (str): A string of length 2.
* numberOfDecimals (int): The number of decimals. Defaults to 0.
* signed (bol): Whether large positive values should be interpreted as negative values.
Returns:
The numerical value (int or float) calculated from the ``bytestring``.
Raises:
TypeError, ValueError
Use the parameter ``signed=True`` if converting a bytestring that can hold
negative values. Then upper range data will be automatically converted into
negative return values (two's complement).
Use ``numberOfDecimals=1`` to divide the received data by 10 before returning the value.
Similarly ``numberOfDecimals=2`` will divide the received data by 100 before returning the value.
The byte order is big-endian, meaning that the most significant byte is sent first.
For example:
A string ``\\x03\\x02`` (which has the length 2) corresponds to 0302 (hex) = 770 (dec). If
``numberOfDecimals = 1``, then this is converted to 77.0 (float). |
(module
(function_definition
(function_name_get_privileges) function_name_get_privileges
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier_url) identifier_url
)attribute
(argument_list
(string_'GET_USER_PRIVILEGES') string_'GET_USER_PRIVILEGES'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_dispatch) identifier_dispatch
)attribute
(argument_list
(string_'GET') string_'GET'
(identifier_url) identifier_url
(keyword_argument
(identifier_auth) identifier_auth
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get privledges for this user. |
(module
(function_definition
(function_name_get_header) function_name_get_header
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__handler) identifier__handler
)attribute
(identifier_headers) identifier_headers
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_default) identifier_default
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves the value of a header |
(module
(function_definition
(function_name_random_choice) function_name_random_choice
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_actions) identifier_actions
(None) None
)default_parameter
(default_parameter
(identifier_random_state) identifier_random_state
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_random_state) identifier_random_state
(call
(identifier_check_random_state) identifier_check_random_state
(argument_list
(identifier_random_state) identifier_random_state
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_actions) identifier_actions
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_len) identifier_len
(argument_list
(identifier_actions) identifier_actions
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(attribute
(identifier_self) identifier_self
(identifier_num_actions) identifier_num_actions
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_n) identifier_n
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(integer_0) integer_0
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(call
(attribute
(identifier_random_state) identifier_random_state
(identifier_randint) identifier_randint
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_actions) identifier_actions
(None) None
)comparison_operator
(block
(return_statement
(subscript
(identifier_actions) identifier_actions
(identifier_idx) identifier_idx
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_idx) identifier_idx
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a pure action chosen randomly from `actions`.
Parameters
----------
actions : array_like(int), optional(default=None)
An array of integers representing pure actions.
random_state : int or np.random.RandomState, optional
Random seed (integer) or np.random.RandomState instance to
set the initial state of the random number generator for
reproducibility. If None, a randomly initialized RandomState
is used.
Returns
-------
scalar(int)
If `actions` is given, returns an integer representing a
pure action chosen randomly from `actions`; if not, an
action is chosen randomly from the player's all actions. |
(module
(function_definition
(function_name__subprocess_method) function_name__subprocess_method
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(binary_operator
(binary_operator
(list
(attribute
(identifier_self) identifier_self
(identifier__ipmitool_path) identifier__ipmitool_path
)attribute
)list
(attribute
(identifier_self) identifier_self
(identifier_args) identifier_args
)attribute
)binary_operator
(identifier_command) identifier_command
)binary_operator
(keyword_argument
(identifier_stdout) identifier_stdout
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
(attribute
(identifier_self) identifier_self
(identifier_error) identifier_error
)attribute
)pattern_list
(call
(attribute
(identifier_p) identifier_p
(identifier_communicate) identifier_communicate
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(attribute
(identifier_p) identifier_p
(identifier_returncode) identifier_returncode
)attribute
)assignment
)expression_statement
)block
)function_definition
)module | Use the subprocess module to execute ipmitool commands
and and set status |
(module
(function_definition
(function_name__call) function_name__call
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(default_parameter
(identifier_out) identifier_out
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_out) identifier_out
(None) None
)comparison_operator
(block
(return_statement
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_prod_op) identifier_prod_op
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(integer_0) integer_0
)subscript
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_wrapped_out) identifier_wrapped_out
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_prod_op) identifier_prod_op
)attribute
(identifier_range) identifier_range
)attribute
(identifier_element) identifier_element
)attribute
(argument_list
(list
(identifier_out) identifier_out
)list
(keyword_argument
(identifier_cast) identifier_cast
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pspace_result) identifier_pspace_result
(call
(attribute
(identifier_self) identifier_self
(identifier_prod_op) identifier_prod_op
)attribute
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_out) identifier_out
(identifier_wrapped_out) identifier_wrapped_out
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_pspace_result) identifier_pspace_result
(integer_0) integer_0
)subscript
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Apply operators to ``x`` and sum. |
(module
(function_definition
(function_name_ValidateStopTimesForTrip) function_name_ValidateStopTimesForTrip
(parameters
(identifier_self) identifier_self
(identifier_problems) identifier_problems
(identifier_trip) identifier_trip
(identifier_stop_times) identifier_stop_times
)parameters
(block
(expression_statement
(assignment
(identifier_prev_departure_secs) identifier_prev_departure_secs
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_consecutive_stop_times_with_potentially_same_time) identifier_consecutive_stop_times_with_potentially_same_time
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_consecutive_stop_times_with_fully_specified_same_time) identifier_consecutive_stop_times_with_fully_specified_same_time
(integer_0) integer_0
)assignment
)expression_statement
(function_definition
(function_name_CheckSameTimeCount) function_name_CheckSameTimeCount
(parameters
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_prev_departure_secs) identifier_prev_departure_secs
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(comparison_operator
(identifier_consecutive_stop_times_with_fully_specified_same_time) identifier_consecutive_stop_times_with_fully_specified_same_time
(integer_5) integer_5
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_problems) identifier_problems
(identifier_TooManyConsecutiveStopTimesWithSameTime) identifier_TooManyConsecutiveStopTimesWithSameTime
)attribute
(argument_list
(attribute
(identifier_trip) identifier_trip
(identifier_trip_id) identifier_trip_id
)attribute
(identifier_consecutive_stop_times_with_fully_specified_same_time) identifier_consecutive_stop_times_with_fully_specified_same_time
(identifier_prev_departure_secs) identifier_prev_departure_secs
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_st) identifier_st
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_stop_times) identifier_stop_times
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_st) identifier_st
(identifier_arrival_secs) identifier_arrival_secs
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_st) identifier_st
(identifier_departure_secs) identifier_departure_secs
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_consecutive_stop_times_with_potentially_same_time) identifier_consecutive_stop_times_with_potentially_same_time
(integer_1) integer_1
)augmented_assignment
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_prev_departure_secs) identifier_prev_departure_secs
(attribute
(identifier_st) identifier_st
(identifier_arrival_secs) identifier_arrival_secs
)attribute
)comparison_operator
(comparison_operator
(attribute
(identifier_st) identifier_st
(identifier_arrival_secs) identifier_arrival_secs
)attribute
(attribute
(identifier_st) identifier_st
(identifier_departure_secs) identifier_departure_secs
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(augmented_assignment
(identifier_consecutive_stop_times_with_potentially_same_time) identifier_consecutive_stop_times_with_potentially_same_time
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_consecutive_stop_times_with_fully_specified_same_time) identifier_consecutive_stop_times_with_fully_specified_same_time
(parenthesized_expression
(identifier_consecutive_stop_times_with_potentially_same_time) identifier_consecutive_stop_times_with_potentially_same_time
)parenthesized_expression
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_CheckSameTimeCount) identifier_CheckSameTimeCount
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_consecutive_stop_times_with_potentially_same_time) identifier_consecutive_stop_times_with_potentially_same_time
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_consecutive_stop_times_with_fully_specified_same_time) identifier_consecutive_stop_times_with_fully_specified_same_time
(integer_1) integer_1
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_prev_departure_secs) identifier_prev_departure_secs
(attribute
(identifier_st) identifier_st
(identifier_departure_secs) identifier_departure_secs
)attribute
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier_CheckSameTimeCount) identifier_CheckSameTimeCount
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Checks for the stop times of a trip.
Ensure that a trip does not have too many consecutive stop times with the
same departure/arrival time. |
(module
(function_definition
(function_name_get_raw_data) function_name_get_raw_data
(parameters
(identifier_self) identifier_self
(identifier_mac) identifier_mac
(default_parameter
(identifier_response_format) identifier_response_format
(string_'json') string_'json'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(attribute
(identifier_self) identifier_self
(identifier__FORMAT_F) identifier__FORMAT_F
)attribute
(identifier_response_format) identifier_response_format
)pair
(pair
(attribute
(identifier_self) identifier_self
(identifier__SEARCH_F) identifier__SEARCH_F
)attribute
(identifier_mac) identifier_mac
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier___decode_str) identifier___decode_str
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier___call_api) identifier___call_api
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___url) identifier___url
)attribute
(identifier_data) identifier_data
)argument_list
)call
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_response) identifier_response
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_EmptyResponseException) identifier_EmptyResponseException
(argument_list
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Get data from API as string.
Keyword arguments:
mac -- MAC address or OUI for searching
response_format -- supported types you can see on the https://macaddress.io |
(module
(function_definition
(function_name__load_file) function_name__load_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'File %s does not exist') string_'File %s does not exist'
(identifier_filename) identifier_filename
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ext) identifier_ext
(call
(attribute
(identifier_vtki) identifier_vtki
(identifier_get_ext) identifier_get_ext
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ext) identifier_ext
(string_'.ply') string_'.ply'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkPLYReader) identifier_vtkPLYReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_ext) identifier_ext
(string_'.stl') string_'.stl'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkSTLReader) identifier_vtkSTLReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_ext) identifier_ext
(string_'.vtk') string_'.vtk'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkPolyDataReader) identifier_vtkPolyDataReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_ext) identifier_ext
(string_'.vtp') string_'.vtp'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkXMLPolyDataReader) identifier_vtkXMLPolyDataReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_ext) identifier_ext
(string_'.obj') string_'.obj'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkOBJReader) identifier_vtkOBJReader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Filetype must be either "ply", "stl", "vtk", "vtp", or "obj".') string_'Filetype must be either "ply", "stl", "vtk", "vtp", or "obj".'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_reader) identifier_reader
(identifier_SetFileName) identifier_SetFileName
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_reader) identifier_reader
(identifier_Update) identifier_Update
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ShallowCopy) identifier_ShallowCopy
)attribute
(argument_list
(call
(attribute
(identifier_reader) identifier_reader
(identifier_GetOutput) identifier_GetOutput
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_any) identifier_any
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_points) identifier_points
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(string_'Empty or invalid file') string_'Empty or invalid file'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Load a surface mesh from a mesh file.
Mesh file may be an ASCII or binary ply, stl, or vtk mesh file.
Parameters
----------
filename : str
Filename of mesh to be loaded. File type is inferred from the
extension of the filename
Notes
-----
Binary files load much faster than ASCII. |
(module
(function_definition
(function_name_get_display_panel_by_id) function_name_get_display_panel_by_id
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_identifier) identifier_identifier
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_DisplayPanel) identifier_DisplayPanel
)type
(block
(expression_statement
(assignment
(identifier_display_panel) identifier_display_panel
(call
(identifier_next) identifier_next
(argument_list
(generator_expression
(identifier_display_panel) identifier_display_panel
(for_in_clause
(identifier_display_panel) identifier_display_panel
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___document_controller) identifier___document_controller
)attribute
(identifier_workspace_controller) identifier_workspace_controller
)attribute
(identifier_display_panels) identifier_display_panels
)attribute
)for_in_clause
(if_clause
(comparison_operator
(call
(attribute
(attribute
(identifier_display_panel) identifier_display_panel
(identifier_identifier) identifier_identifier
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_identifier) identifier_identifier
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)if_clause
)generator_expression
(None) None
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(identifier_DisplayPanel) identifier_DisplayPanel
(argument_list
(identifier_display_panel) identifier_display_panel
)argument_list
)call
(identifier_display_panel) identifier_display_panel
(None) None
)conditional_expression
)return_statement
)block
)function_definition
)module | Return display panel with the identifier.
.. versionadded:: 1.0
Status: Provisional
Scriptable: Yes |
(module
(function_definition
(function_name__initialize_client_from_environment) function_name__initialize_client_from_environment
(parameters
)parameters
(block
(global_statement
(identifier__client) identifier__client
(identifier_project_id) identifier_project_id
(identifier_write_key) identifier_write_key
(identifier_read_key) identifier_read_key
(identifier_master_key) identifier_master_key
(identifier_base_url) identifier_base_url
)global_statement
(if_statement
(comparison_operator
(identifier__client) identifier__client
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_project_id) identifier_project_id
(boolean_operator
(identifier_project_id) identifier_project_id
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"KEEN_PROJECT_ID") string_"KEEN_PROJECT_ID"
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_write_key) identifier_write_key
(boolean_operator
(identifier_write_key) identifier_write_key
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"KEEN_WRITE_KEY") string_"KEEN_WRITE_KEY"
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_read_key) identifier_read_key
(boolean_operator
(identifier_read_key) identifier_read_key
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"KEEN_READ_KEY") string_"KEEN_READ_KEY"
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_master_key) identifier_master_key
(boolean_operator
(identifier_master_key) identifier_master_key
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"KEEN_MASTER_KEY") string_"KEEN_MASTER_KEY"
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_base_url) identifier_base_url
(boolean_operator
(identifier_base_url) identifier_base_url
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"KEEN_BASE_URL") string_"KEEN_BASE_URL"
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_project_id) identifier_project_id
)not_operator
(block
(raise_statement
(call
(identifier_InvalidEnvironmentError) identifier_InvalidEnvironmentError
(argument_list
(string_"Please set the KEEN_PROJECT_ID environment variable or set keen.project_id!") string_"Please set the KEEN_PROJECT_ID environment variable or set keen.project_id!"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier__client) identifier__client
(call
(identifier_KeenClient) identifier_KeenClient
(argument_list
(identifier_project_id) identifier_project_id
(keyword_argument
(identifier_write_key) identifier_write_key
(identifier_write_key) identifier_write_key
)keyword_argument
(keyword_argument
(identifier_read_key) identifier_read_key
(identifier_read_key) identifier_read_key
)keyword_argument
(keyword_argument
(identifier_master_key) identifier_master_key
(identifier_master_key) identifier_master_key
)keyword_argument
(keyword_argument
(identifier_base_url) identifier_base_url
(identifier_base_url) identifier_base_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Initialize a KeenClient instance using environment variables. |
(module
(function_definition
(function_name_string_to_enum) function_name_string_to_enum
(parameters
(identifier_value) identifier_value
(identifier_enumeration) identifier_enumeration
(default_parameter
(identifier_strict) identifier_strict
(True) True
)default_parameter
(default_parameter
(identifier_default_value) identifier_default_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_enumeration) identifier_enumeration
(identifier_Enum) identifier_Enum
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'The specified enumeration is not an instance of Enum') string_'The specified enumeration is not an instance of Enum'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(identifier_is_undefined) identifier_is_undefined
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(if_statement
(identifier_strict) identifier_strict
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'The value cannot be null') string_'The value cannot be null'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_default_value) identifier_default_value
(None) None
)comparison_operator
(not_operator
(comparison_operator
(identifier_default_value) identifier_default_value
(identifier_enumeration) identifier_enumeration
)comparison_operator
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'The default value must be an item of the specified enumeration') string_'The default value must be an item of the specified enumeration'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_default_value) identifier_default_value
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_item) identifier_item
(list_comprehension
(identifier_item) identifier_item
(for_in_clause
(identifier_item) identifier_item
(identifier_enumeration) identifier_enumeration
)for_in_clause
(if_clause
(comparison_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_item) identifier_item
)argument_list
)call
(identifier_value) identifier_value
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_item) identifier_item
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'The specified string "%s" does not represent any item of the enumeration') string_'The specified string "%s" does not represent any item of the enumeration'
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(identifier_item) identifier_item
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module | Return the item of an enumeration that corresponds to the specified
string representation.
@param value: string representation of an item of a Python
enumeration.
@param enumeration: a Python enumeration.
@param strict: indicate whether the value must correspond to an
item of the specified Python enumeration or if ``None`` value is
accepted.
@return: the item of the Python enumeration the specified string
representation corresponds to.
@raise ValueError: if the enumeration is not an instance of
``Enum``, or if the string representation doesn't correspond
to any item of the given Python enumeration, or if the default
value is not an item of the given Python enumeration. |
(module
(function_definition
(function_name___call) function_name___call
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_method) identifier_method
(string_"get") string_"get"
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_self) identifier_self
(identifier___get_response) identifier___get_response
)attribute
(argument_list
(identifier_uri) identifier_uri
(identifier_params) identifier_params
(identifier_method) identifier_method
(False) False
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rjson) identifier_rjson
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier_json_options) identifier_json_options
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(attribute
(identifier_resp) identifier_resp
(identifier_ok) identifier_ok
)attribute
)assert_statement
)block
(except_clause
(identifier_AssertionError) identifier_AssertionError
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"OCode-{}: {}") string_"OCode-{}: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(subscript
(identifier_rjson) identifier_rjson
(string_"message") string_"message"
)subscript
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_BadRequest) identifier_BadRequest
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_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
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"Bad response: {}") string_"Bad response: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_msg) identifier_msg
(keyword_argument
(identifier_exc_info) identifier_exc_info
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_BadRequest) identifier_BadRequest
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)except_clause
(else_clause
(block
(return_statement
(identifier_rjson) identifier_rjson
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Only returns the response, nor the status_code |
(module
(function_definition
(function_name__getTrafficClassAndFlowLabel) function_name__getTrafficClassAndFlowLabel
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_tf) identifier_tf
)attribute
(integer_0x0) integer_0x0
)comparison_operator
(block
(return_statement
(expression_list
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_tc_ecn) identifier_tc_ecn
)attribute
(integer_6) integer_6
)binary_operator
)parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_tc_dscp) identifier_tc_dscp
)attribute
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_flowlabel) identifier_flowlabel
)attribute
)expression_list
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_tf) identifier_tf
)attribute
(integer_0x1) integer_0x1
)comparison_operator
(block
(return_statement
(expression_list
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_tc_ecn) identifier_tc_ecn
)attribute
(integer_6) integer_6
)binary_operator
)parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_flowlabel) identifier_flowlabel
)attribute
)expression_list
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_tf) identifier_tf
)attribute
(integer_0x2) integer_0x2
)comparison_operator
(block
(return_statement
(expression_list
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_tc_ecn) identifier_tc_ecn
)attribute
(integer_6) integer_6
)binary_operator
)parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_tc_dscp) identifier_tc_dscp
)attribute
)binary_operator
(integer_0) integer_0
)expression_list
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(expression_list
(integer_0) integer_0
(integer_0) integer_0
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Page 6, draft feb 2011 |
(module
(function_definition
(function_name_parse_qs) function_name_parse_qs
(parameters
(identifier_qs) identifier_qs
(default_parameter
(identifier_keep_blank_values) identifier_keep_blank_values
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_strict_parsing) identifier_strict_parsing
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_keep_attr_order) identifier_keep_attr_order
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_od) identifier_od
(conditional_expression
(call
(identifier_DefaultOrderedDict) identifier_DefaultOrderedDict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
(identifier_keep_attr_order) identifier_keep_attr_order
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(call
(identifier_parse_qsl) identifier_parse_qsl
(argument_list
(identifier_qs) identifier_qs
(identifier_keep_blank_values) identifier_keep_blank_values
(identifier_strict_parsing) identifier_strict_parsing
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(identifier_od) identifier_od
(identifier_name) identifier_name
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_od) identifier_od
)return_statement
)block
)function_definition
)module | Kind of like urlparse.parse_qs, except returns an ordered dict.
Also avoids replicating that function's bad habit of overriding the
built-in 'dict' type.
Taken from below with modification:
<https://bitbucket.org/btubbs/thumpy/raw/8cdece404f15/thumpy.py> |
(module
(function_definition
(function_name_call_or_cast) function_name_call_or_cast
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(default_parameter
(identifier_args) identifier_args
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_nowait) identifier_nowait
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(parenthesized_expression
(boolean_operator
(boolean_operator
(identifier_nowait) identifier_nowait
(attribute
(identifier_self) identifier_self
(identifier_cast) identifier_cast
)attribute
)boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_call) identifier_call
)attribute
)boolean_operator
)parenthesized_expression
(argument_list
(identifier_method) identifier_method
(identifier_args) identifier_args
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Apply remote `method` asynchronously or synchronously depending
on the value of `nowait`.
:param method: The name of the remote method to perform.
:param args: Dictionary of arguments for the method.
:keyword nowait: If false the call will block until the result
is available and return it (default), if true the call will be
non-blocking and no result will be returned.
:keyword retry: If set to true then message sending will be retried
in the event of connection failures. Default is decided by the
:attr:`retry` attributed.
:keyword retry_policy: Override retry policies.
See :attr:`retry_policy`. This must be a dictionary, and keys will
be merged with the default retry policy.
:keyword timeout: Timeout to wait for replies in seconds as a float
(**only relevant in blocking mode**).
:keyword limit: Limit number of replies to wait for
(**only relevant in blocking mode**).
:keyword callback: If provided, this callback will be called for every
reply received (**only relevant in blocking mode**).
:keyword \*\*props: Additional message properties.
See :meth:`kombu.Producer.publish`. |
(module
(function_definition
(function_name_send_cons3rt_agent_logs) function_name_send_cons3rt_agent_logs
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_log) identifier_log
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_cls_logger) identifier_cls_logger
)attribute
(string_'.send_cons3rt_agent_logs') string_'.send_cons3rt_agent_logs'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_cons3rt_agent_log_dir) identifier_cons3rt_agent_log_dir
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_'There is not CONS3RT agent log directory on this system') string_'There is not CONS3RT agent log directory on this system'
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Searching for log files in directory: {d}') string_'Searching for log files in directory: {d}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier_cons3rt_agent_log_dir) identifier_cons3rt_agent_log_dir
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cons3rt_agent_log_dir) identifier_cons3rt_agent_log_dir
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_item_path) identifier_item_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cons3rt_agent_log_dir) identifier_cons3rt_agent_log_dir
)attribute
(identifier_item) identifier_item
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_item_path) identifier_item_path
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Sending email with cons3rt agent log file: {f}') string_'Sending email with cons3rt agent log file: {f}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_f) identifier_f
(identifier_item_path) identifier_item_path
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_text_file) identifier_send_text_file
)attribute
(argument_list
(keyword_argument
(identifier_text_file) identifier_text_file
(identifier_item_path) identifier_item_path
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_OSError) identifier_OSError
(identifier_AssetMailerError) identifier_AssetMailerError
)tuple
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_ex) identifier_ex
(identifier_trace) identifier_trace
)pattern_list
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_'{n}: There was a problem sending CONS3RT agent log file: {f}\n{e}') string_'{n}: There was a problem sending CONS3RT agent log file: {f}\n{e}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_n) identifier_n
(attribute
(attribute
(identifier_ex) identifier_ex
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)keyword_argument
(keyword_argument
(identifier_f) identifier_f
(identifier_item_path) identifier_item_path
)keyword_argument
(keyword_argument
(identifier_e) identifier_e
(call
(identifier_str) identifier_str
(argument_list
(identifier_ex) identifier_ex
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(expression_list
(identifier_AssetMailerError) identifier_AssetMailerError
(identifier_msg) identifier_msg
(identifier_trace) identifier_trace
)expression_list
)raise_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Successfully sent email with file: {f}') string_'Successfully sent email with file: {f}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_f) identifier_f
(identifier_item_path) identifier_item_path
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)try_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Send the cons3rt agent log file
:return: |
(module
(function_definition
(function_name_get_field_mro) function_name_get_field_mro
(parameters
(identifier_cls) identifier_cls
(identifier_field_name) identifier_field_name
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_cls) identifier_cls
(string_'__mro__') string_'__mro__'
)argument_list
)call
(block
(for_statement
(identifier__class) identifier__class
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getmro) identifier_getmro
)attribute
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_values_) identifier_values_
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier__class) identifier__class
(identifier_field_name) identifier_field_name
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_values_) identifier_values_
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_res) identifier_res
(identifier_union) identifier_union
)attribute
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(call
(identifier_make_list) identifier_make_list
(argument_list
(identifier_values_) identifier_values_
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Goes up the mro and looks for the specified field. |
(module
(function_definition
(function_name_get_market_history) function_name_get_market_history
(parameters
(identifier_self) identifier_self
(identifier_market) identifier_market
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__api_query) identifier__api_query
)attribute
(argument_list
(keyword_argument
(identifier_path_dict) identifier_path_dict
(dictionary
(pair
(identifier_API_V1_1) identifier_API_V1_1
(string_'/public/getmarkethistory') string_'/public/getmarkethistory'
)pair
)dictionary
)keyword_argument
(keyword_argument
(identifier_options) identifier_options
(dictionary
(pair
(string_'market') string_'market'
(identifier_market) identifier_market
)pair
(pair
(string_'marketname') string_'marketname'
(identifier_market) identifier_market
)pair
)dictionary
)keyword_argument
(keyword_argument
(identifier_protection) identifier_protection
(identifier_PROTECTION_PUB) identifier_PROTECTION_PUB
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Used to retrieve the latest trades that have occurred for a
specific market.
Endpoint:
1.1 /market/getmarkethistory
2.0 NO Equivalent
Example ::
{'success': True,
'message': '',
'result': [ {'Id': 5625015,
'TimeStamp': '2017-08-31T01:29:50.427',
'Quantity': 7.31008193,
'Price': 0.00177639,
'Total': 0.01298555,
'FillType': 'FILL',
'OrderType': 'BUY'},
...
]
}
:param market: String literal for the market (ex: BTC-LTC)
:type market: str
:return: Market history in JSON
:rtype : dict |
(module
(function_definition
(function_name__get_current_names) function_name__get_current_names
(parameters
(identifier_current) identifier_current
(identifier_dsn) identifier_dsn
(identifier_pc) identifier_pc
)parameters
(block
(expression_statement
(assignment
(identifier__table_name) identifier__table_name
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__variable_name) identifier__variable_name
(string_"") string_""
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier__table_name) identifier__table_name
(subscript
(identifier_current) identifier_current
(call
(attribute
(string_'{}_tableName') string_'{}_tableName'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_pc) identifier_pc
)argument_list
)call
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__variable_name) identifier__variable_name
(subscript
(identifier_current) identifier_current
(call
(attribute
(string_'{}_variableName') string_'{}_variableName'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_pc) identifier_pc
)argument_list
)call
)subscript
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"Error: Unable to collapse time series: {}, {}") string_"Error: Unable to collapse time series: {}, {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dsn) identifier_dsn
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger_ts) identifier_logger_ts
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"get_current: {}, {}") string_"get_current: {}, {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dsn) identifier_dsn
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(identifier__table_name) identifier__table_name
(identifier__variable_name) identifier__variable_name
)expression_list
)return_statement
)block
)function_definition
)module | Get the table name and variable name from the given time series entry
:param dict current: Time series entry
:param str pc: paleoData or chronData
:return str _table_name:
:return str _variable_name: |
(module
(function_definition
(function_name_rpc_call) function_name_rpc_call
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(default_parameter
(identifier_method) identifier_method
(None) None
)default_parameter
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_params) identifier_params
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_as_tuple) identifier_as_tuple
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_method_key) identifier_method_key
(call
(attribute
(string_"{0}.{1}") string_"{0}.{1}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scheme_name) identifier_scheme_name
)attribute
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_method_key) identifier_method_key
(attribute
(identifier_self) identifier_self
(identifier_methods) identifier_methods
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(call
(attribute
(string_"Unknown method: {0}") string_"Unknown method: {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(subscript
(attribute
(identifier_self) identifier_self
(identifier_methods) identifier_methods
)attribute
(identifier_method_key) identifier_method_key
)subscript
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_method) identifier_method
(string_'request') string_'request'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(identifier_request) identifier_request
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_method) identifier_method
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Call a RPC method.
return object: a result |
(module
(function_definition
(function_name_sphlat) function_name_sphlat
(parameters
(identifier_r) identifier_r
(identifier_colat) identifier_colat
(identifier_lons) identifier_lons
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
(identifier_r) identifier_r
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_colat) identifier_colat
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
(identifier_colat) identifier_colat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lons) identifier_lons
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
(identifier_lons) identifier_lons
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_radius) identifier_radius
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lon) identifier_lon
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lat) identifier_lat
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_double) identifier_c_double
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_sphcyl_c) identifier_sphcyl_c
)attribute
(argument_list
(identifier_r) identifier_r
(identifier_colat) identifier_colat
(identifier_lons) identifier_lons
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_radius) identifier_radius
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_lon) identifier_lon
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(attribute
(identifier_radius) identifier_radius
(identifier_value) identifier_value
)attribute
(attribute
(identifier_lon) identifier_lon
(identifier_value) identifier_value
)attribute
(attribute
(identifier_lat) identifier_lat
(identifier_value) identifier_value
)attribute
)expression_list
)return_statement
)block
)function_definition
)module | Convert from spherical coordinates to latitudinal coordinates.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphlat_c.html
:param r: Distance of the point from the origin.
:type r: float
:param colat: Angle of the point from positive z axis (radians).
:type colat: float
:param lons: Angle of the point from the XZ plane (radians).
:type lons: float
:return:
Distance of a point from the origin,
Angle of the point from the XZ plane in radians,
Angle of the point from the XY plane in radians.
:rtype: tuple |
(module
(function_definition
(function_name__set_load_action) function_name__set_load_action
(parameters
(identifier_self) identifier_self
(identifier_mem_addr) identifier_mem_addr
(identifier_rec_count) identifier_rec_count
(identifier_retries) identifier_retries
(default_parameter
(identifier_read_complete) identifier_read_complete
(False) False
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__have_all_records) identifier__have_all_records
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mem_addr) identifier_mem_addr
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rec_count) identifier_rec_count
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_retries) identifier_retries
(integer_0) integer_0
)assignment
)expression_statement
)block
(elif_clause
(identifier_read_complete) identifier_read_complete
(block
(expression_statement
(assignment
(identifier_retries) identifier_retries
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(identifier_rec_count) identifier_rec_count
(block
(expression_statement
(assignment
(identifier_mem_addr) identifier_mem_addr
(call
(attribute
(identifier_self) identifier_self
(identifier__next_address) identifier__next_address
)attribute
(argument_list
(identifier_mem_addr) identifier_mem_addr
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_mem_addr) identifier_mem_addr
(call
(attribute
(identifier_self) identifier_self
(identifier__next_address) identifier__next_address
)attribute
(argument_list
(identifier_mem_addr) identifier_mem_addr
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rec_count) identifier_rec_count
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_retries) identifier_retries
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(identifier_rec_count) identifier_rec_count
(comparison_operator
(identifier_retries) identifier_retries
(identifier_ALDB_RECORD_RETRIES) identifier_ALDB_RECORD_RETRIES
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_retries) identifier_retries
(binary_operator
(identifier_retries) identifier_retries
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(not_operator
(identifier_rec_count) identifier_rec_count
)not_operator
(comparison_operator
(identifier_retries) identifier_retries
(identifier_ALDB_ALL_RECORD_RETRIES) identifier_ALDB_ALL_RECORD_RETRIES
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_retries) identifier_retries
(binary_operator
(identifier_retries) identifier_retries
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(not_operator
(identifier_rec_count) identifier_rec_count
)not_operator
(comparison_operator
(identifier_retries) identifier_retries
(identifier_ALDB_ALL_RECORD_RETRIES) identifier_ALDB_ALL_RECORD_RETRIES
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_mem_addr) identifier_mem_addr
(call
(attribute
(identifier_self) identifier_self
(identifier__next_address) identifier__next_address
)attribute
(argument_list
(identifier_mem_addr) identifier_mem_addr
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rec_count) identifier_rec_count
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_retries) identifier_retries
(integer_0) integer_0
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_mem_addr) identifier_mem_addr
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rec_count) identifier_rec_count
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_retries) identifier_retries
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__load_action) identifier__load_action
)attribute
(call
(identifier_LoadAction) identifier_LoadAction
(argument_list
(identifier_mem_addr) identifier_mem_addr
(identifier_rec_count) identifier_rec_count
(identifier_retries) identifier_retries
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mem_addr) identifier_mem_addr
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Load action: addr: %04x rec_count: %d retries: %d') string_'Load action: addr: %04x rec_count: %d retries: %d'
(attribute
(attribute
(identifier_self) identifier_self
(identifier__load_action) identifier__load_action
)attribute
(identifier_mem_addr) identifier_mem_addr
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__load_action) identifier__load_action
)attribute
(identifier_rec_count) identifier_rec_count
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__load_action) identifier__load_action
)attribute
(identifier_retries) identifier_retries
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Calculate the next record to read.
If the last record was successful and one record was being read then
look for the next record until we get to the high water mark.
If the last read was successful and all records were being read then
look for the first record.
if the last read was unsuccessful and one record was being read then
repeat the last read until max retries
If the last read was unsuccessful and all records were being read then
repeat the last read until max retries or look for the first record. |
(module
(function_definition
(function_name_get_ctype) function_name_get_ctype
(parameters
(identifier_rtype) identifier_rtype
(identifier_cfunc) identifier_cfunc
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_val_p) identifier_val_p
(call
(attribute
(attribute
(identifier_backend) identifier_backend
(identifier_ffi) identifier_ffi
)attribute
(identifier_new) identifier_new
)attribute
(argument_list
(identifier_rtype) identifier_rtype
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(binary_operator
(identifier_args) identifier_args
(tuple
(identifier_val_p) identifier_val_p
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_cfunc) identifier_cfunc
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)expression_statement
(return_statement
(subscript
(identifier_val_p) identifier_val_p
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module | Call a C function that takes a pointer as its last argument and
return the C object that it contains after the function has finished.
:param rtype: C data type is filled by the function
:param cfunc: C function to call
:param args: Arguments to call function with
:return: A pointer to the specified data type |
(module
(function_definition
(function_name_set_config) function_name_set_config
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_app_facade) identifier_app_facade
(call
(attribute
(attribute
(identifier_client) identifier_client
(identifier_ApplicationFacade) identifier_ApplicationFacade
)attribute
(identifier_from_connection) identifier_from_connection
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Setting config for %s: %s') string_'Setting config for %s: %s'
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_config) identifier_config
)argument_list
)call
)expression_statement
(return_statement
(await
(call
(attribute
(identifier_app_facade) identifier_app_facade
(identifier_Set) identifier_Set
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_config) identifier_config
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Set configuration options for this application.
:param config: Dict of configuration to set |
(module
(function_definition
(function_name__fit_and_score_ensemble) function_name__fit_and_score_ensemble
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
(identifier_y) identifier_y
(identifier_cv) identifier_cv
(dictionary_splat_pattern
(identifier_fit_params) identifier_fit_params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_fit_params_steps) identifier_fit_params_steps
(call
(attribute
(identifier_self) identifier_self
(identifier__split_fit_params) identifier__split_fit_params
)attribute
(argument_list
(identifier_fit_params) identifier_fit_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_folds) identifier_folds
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_cv) identifier_cv
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_X) identifier_X
(identifier_y) identifier_y
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_base_estimators) identifier_base_estimators
(identifier_kernel_cache) identifier_kernel_cache
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_base_estimators) identifier__get_base_estimators
)attribute
(argument_list
(identifier_X) identifier_X
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(call
(identifier_Parallel) identifier_Parallel
(argument_list
(keyword_argument
(identifier_n_jobs) identifier_n_jobs
(attribute
(identifier_self) identifier_self
(identifier_n_jobs) identifier_n_jobs
)attribute
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
)keyword_argument
)argument_list
)call
(generator_expression
(call
(call
(identifier_delayed) identifier_delayed
(argument_list
(identifier__fit_and_score_fold) identifier__fit_and_score_fold
)argument_list
)call
(argument_list
(call
(identifier_clone) identifier_clone
(argument_list
(identifier_estimator) identifier_estimator
)argument_list
)call
(conditional_expression
(identifier_X) identifier_X
(comparison_operator
(identifier_i) identifier_i
(identifier_kernel_cache) identifier_kernel_cache
)comparison_operator
(subscript
(identifier_kernel_cache) identifier_kernel_cache
(identifier_i) identifier_i
)subscript
)conditional_expression
(identifier_y) identifier_y
(attribute
(identifier_self) identifier_self
(identifier_scorer) identifier_scorer
)attribute
(identifier_train_index) identifier_train_index
(identifier_test_index) identifier_test_index
(subscript
(identifier_fit_params_steps) identifier_fit_params_steps
(identifier_name) identifier_name
)subscript
(identifier_i) identifier_i
(identifier_fold) identifier_fold
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(tuple_pattern
(identifier_name) identifier_name
(identifier_estimator) identifier_estimator
)tuple_pattern
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_base_estimators) identifier_base_estimators
)argument_list
)call
)for_in_clause
(for_in_clause
(pattern_list
(identifier_fold) identifier_fold
(tuple_pattern
(identifier_train_index) identifier_train_index
(identifier_test_index) identifier_test_index
)tuple_pattern
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_folds) identifier_folds
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_kernel_cache) identifier_kernel_cache
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_self) identifier_self
(identifier__restore_base_estimators) identifier__restore_base_estimators
)attribute
(argument_list
(identifier_kernel_cache) identifier_kernel_cache
(identifier_out) identifier_out
(identifier_X) identifier_X
(identifier_folds) identifier_folds
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__create_base_ensemble) identifier__create_base_ensemble
)attribute
(argument_list
(identifier_out) identifier_out
(call
(identifier_len) identifier_len
(argument_list
(identifier_base_estimators) identifier_base_estimators
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_folds) identifier_folds
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a cross-validated model by training a model for each fold with the same model parameters |
(module
(function_definition
(function_name_content) function_name_content
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(default_parameter
(identifier_overwrite) identifier_overwrite
(True) True
)default_parameter
(default_parameter
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)default_parameter
)parameters
(block
(if_statement
(identifier_path) identifier_path
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_download) identifier_download
)attribute
(argument_list
(keyword_argument
(identifier_wait) identifier_wait
(True) True
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
(keyword_argument
(identifier_overwrite) identifier_overwrite
(identifier_overwrite) identifier_overwrite
)keyword_argument
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_path) identifier_path
(string_'r') string_'r'
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_fp) identifier_fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(identifier_fp) identifier_fp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)with_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_NamedTemporaryFile) identifier_NamedTemporaryFile
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_tmpfile) identifier_tmpfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_download) identifier_download
)attribute
(argument_list
(keyword_argument
(identifier_wait) identifier_wait
(True) True
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_tmpfile) identifier_tmpfile
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_overwrite) identifier_overwrite
(identifier_overwrite) identifier_overwrite
)keyword_argument
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(attribute
(identifier_tmpfile) identifier_tmpfile
(identifier_name) identifier_name
)attribute
(string_'r') string_'r'
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_fp) identifier_fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(identifier_fp) identifier_fp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)with_statement
)block
)with_statement
)block
)function_definition
)module | Downloads file to the specified path or as temporary file
and reads the file content in memory.
Should not be used on very large files.
:param path: Path for file download If omitted tmp file will be used.
:param overwrite: Overwrite file if exists locally
:param encoding: File encoding, by default it is UTF-8
:return: File content. |
(module
(function_definition
(function_name__get_shade_hdrgos) function_name__get_shade_hdrgos
(parameters
(dictionary_splat_pattern
(identifier_kws) identifier_kws
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(string_'shade_hdrgos') string_'shade_hdrgos'
(identifier_kws) identifier_kws
)comparison_operator
(block
(return_statement
(subscript
(identifier_kws) identifier_kws
(string_'shade_hdrgos') string_'shade_hdrgos'
)subscript
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'hdrgo_prt') string_'hdrgo_prt'
(identifier_kws) identifier_kws
)comparison_operator
(block
(return_statement
(subscript
(identifier_kws) identifier_kws
(string_'hdrgo_prt') string_'hdrgo_prt'
)subscript
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'section_sortby') string_'section_sortby'
(identifier_kws) identifier_kws
)comparison_operator
(subscript
(identifier_kws) identifier_kws
(string_'section_sortby') string_'section_sortby'
)subscript
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'top_n') string_'top_n'
(identifier_kws) identifier_kws
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_kws) identifier_kws
(string_'top_n') string_'top_n'
)subscript
(identifier_int) identifier_int
)argument_list
)call
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | If no hdrgo_prt specified, and these conditions are present -> hdrgo_prt=F. |
(module
(function_definition
(function_name_top_sections) function_name_top_sections
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_top_line) identifier_top_line
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_text) identifier_text
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sections) identifier_sections
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_top_line) identifier_top_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_'+') string_'+'
)argument_list
)call
)argument_list
)call
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_sections) identifier_sections
)return_statement
)block
)function_definition
)module | The number of sections that touch the top side.
Returns
-------
sections : int
The number of sections on the top |
(module
(function_definition
(function_name_countok) function_name_countok
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ok) identifier_ok
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_ones) identifier_ones
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_stars) identifier_stars
)attribute
)argument_list
)call
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_bool) identifier_bool
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_constraints) identifier_constraints
)attribute
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(subscript
(attribute
(identifier_self) identifier_self
(identifier_constraints) identifier_constraints
)attribute
(identifier_name) identifier_name
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_c) identifier_c
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_selectfrac_skip) identifier_selectfrac_skip
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_ok) identifier_ok
(attribute
(identifier_c) identifier_c
(identifier_ok) identifier_ok
)attribute
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_ok) identifier_ok
)return_statement
)block
)function_definition
)module | Boolean array showing which stars pass all count constraints.
A "count constraint" is a constraint that affects the number of stars. |
(module
(function_definition
(function_name_do_commit_amends) function_name_do_commit_amends
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_commit_cumalative_count) identifier_commit_cumalative_count
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_days) identifier_days
(identifier_MARKED_DAYS) identifier_MARKED_DAYS
(block
(expression_statement
(assignment
(identifier_amend_date) identifier_amend_date
(call
(attribute
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_end_date) identifier_end_date
)attribute
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(identifier_days) identifier_days
)argument_list
)call
)binary_operator
)parenthesized_expression
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_"%Y-%m-%d %H:%M:%S") string_"%Y-%m-%d %H:%M:%S"
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_commit_number_in_a_day) identifier_commit_number_in_a_day
(call
(identifier_xrange) identifier_xrange
(argument_list
(integer_0) integer_0
(attribute
(identifier_self) identifier_self
(identifier_max_commits) identifier_max_commits
)attribute
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_commit_cumalative_count) identifier_commit_cumalative_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(list
(string_'git') string_'git'
(string_'commit') string_'commit'
(string_'--amend') string_'--amend'
(binary_operator
(binary_operator
(string_"--date='<") string_"--date='<"
(identifier_amend_date) identifier_amend_date
)binary_operator
(string_" + 0530 >' ") string_" + 0530 >' "
)binary_operator
(string_'-C') string_'-C'
(call
(attribute
(string_'HEAD~{commit_number}') string_'HEAD~{commit_number}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_commit_number) identifier_commit_number
(identifier_commit_cumalative_count) identifier_commit_cumalative_count
)keyword_argument
)argument_list
)call
)list
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(identifier_self) identifier_self
(identifier_repository_name) identifier_repository_name
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(list
(string_'git') string_'git'
(string_'pull') string_'pull'
(string_'--no-edit') string_'--no-edit'
)list
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(identifier_self) identifier_self
(identifier_repository_name) identifier_repository_name
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(list
(string_'git') string_'git'
(string_'push') string_'push'
(string_'origin') string_'origin'
(string_'master') string_'master'
)list
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(identifier_self) identifier_self
(identifier_repository_name) identifier_repository_name
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Amends the Commit to form the heart |
(module
(function_definition
(function_name_disallow) function_name_disallow
(parameters
(identifier_nodes) identifier_nodes
)parameters
(block
(function_definition
(function_name_disallowed) function_name_disallowed
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier_unsupported_nodes) identifier_unsupported_nodes
)attribute
(tuple
)tuple
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(identifier_nodes) identifier_nodes
(block
(expression_statement
(assignment
(identifier_new_method) identifier_new_method
(call
(identifier__node_not_implemented) identifier__node_not_implemented
(argument_list
(identifier_node) identifier_node
(identifier_cls) identifier_cls
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(string_'visit_{node}') string_'visit_{node}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_node) identifier_node
(identifier_node) identifier_node
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_cls) identifier_cls
(identifier_unsupported_nodes) identifier_unsupported_nodes
)attribute
(tuple
(identifier_name) identifier_name
)tuple
)augmented_assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(identifier_new_method) identifier_new_method
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_cls) identifier_cls
)return_statement
)block
)function_definition
(return_statement
(identifier_disallowed) identifier_disallowed
)return_statement
)block
)function_definition
)module | Decorator to disallow certain nodes from parsing. Raises a
NotImplementedError instead.
Returns
-------
disallowed : callable |
(module
(function_definition
(function_name_get_sh_ids) function_name_get_sh_ids
(parameters
(identifier_self) identifier_self
(identifier_identity) identifier_identity
(identifier_backend_name) identifier_backend_name
)parameters
(block
(expression_statement
(assignment
(identifier_identity_tuple) identifier_identity_tuple
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(attribute
(identifier_identity) identifier_identity
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sh_ids) identifier_sh_ids
(call
(attribute
(identifier_self) identifier_self
(identifier___get_sh_ids_cache) identifier___get_sh_ids_cache
)attribute
(argument_list
(identifier_identity_tuple) identifier_identity_tuple
(identifier_backend_name) identifier_backend_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_sh_ids) identifier_sh_ids
)return_statement
)block
)function_definition
)module | Return the Sorting Hat id and uuid for an identity |
(module
(function_definition
(function_name__convert_to_degress) function_name__convert_to_degress
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_d0) identifier_d0
(subscript
(subscript
(identifier_value) identifier_value
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d1) identifier_d1
(subscript
(subscript
(identifier_value) identifier_value
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_d0) identifier_d0
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(identifier_d1) identifier_d1
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m0) identifier_m0
(subscript
(subscript
(identifier_value) identifier_value
(integer_1) integer_1
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m1) identifier_m1
(subscript
(subscript
(identifier_value) identifier_value
(integer_1) integer_1
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_m0) identifier_m0
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(identifier_m1) identifier_m1
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s0) identifier_s0
(subscript
(subscript
(identifier_value) identifier_value
(integer_2) integer_2
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s1) identifier_s1
(subscript
(subscript
(identifier_value) identifier_value
(integer_2) integer_2
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_s0) identifier_s0
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(identifier_s1) identifier_s1
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(identifier_d) identifier_d
(parenthesized_expression
(binary_operator
(identifier_m) identifier_m
(float_60.0) float_60.0
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_s) identifier_s
(float_3600.0) float_3600.0
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Helper function to convert the GPS coordinates stored in the EXIF to degress in float format |
(module
(function_definition
(function_name_time_window) function_name_time_window
(parameters
(identifier_self) identifier_self
(identifier_window_width_ms) identifier_window_width_ms
)parameters
(block
(expression_statement
(assignment
(identifier_op) identifier_op
(call
(identifier_Operator) identifier_Operator
(argument_list
(call
(identifier__generate_uuid) identifier__generate_uuid
(argument_list
)argument_list
)call
(attribute
(identifier_OpType) identifier_OpType
(identifier_TimeWindow) identifier_TimeWindow
)attribute
(string_"TimeWindow") string_"TimeWindow"
(keyword_argument
(identifier_num_instances) identifier_num_instances
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(identifier_config) identifier_config
)attribute
(identifier_parallelism) identifier_parallelism
)attribute
)keyword_argument
(keyword_argument
(identifier_other) identifier_other
(identifier_window_width_ms) identifier_window_width_ms
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___register) identifier___register
)attribute
(argument_list
(identifier_op) identifier_op
)argument_list
)call
)return_statement
)block
)function_definition
)module | Applies a system time window to the stream.
Attributes:
window_width_ms (int): The length of the window in ms. |
(module
(function_definition
(function_name__geodetic_to_cartesian) function_name__geodetic_to_cartesian
(parameters
(identifier_cls) identifier_cls
(identifier_lat) identifier_lat
(identifier_lon) identifier_lon
(identifier_alt) identifier_alt
)parameters
(block
(expression_statement
(assignment
(identifier_C) identifier_C
(binary_operator
(attribute
(identifier_Earth) identifier_Earth
(identifier_r) identifier_r
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(integer_1) integer_1
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_Earth) identifier_Earth
(identifier_e) identifier_e
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_S) identifier_S
(binary_operator
(binary_operator
(attribute
(identifier_Earth) identifier_Earth
(identifier_r) identifier_r
)attribute
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(binary_operator
(attribute
(identifier_Earth) identifier_Earth
(identifier_e) identifier_e
)attribute
(integer_2) integer_2
)binary_operator
)binary_operator
)parenthesized_expression
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(integer_1) integer_1
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_Earth) identifier_Earth
(identifier_e) identifier_e
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r_d) identifier_r_d
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_C) identifier_C
(identifier_alt) identifier_alt
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r_k) identifier_r_k
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_S) identifier_S
(identifier_alt) identifier_alt
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_norm) identifier_norm
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_r_d) identifier_r_d
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_r_k) identifier_r_k
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_norm) identifier_norm
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_lon) identifier_lon
)argument_list
)call
)binary_operator
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_lon) identifier_lon
)argument_list
)call
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_lat) identifier_lat
)argument_list
)call
)list
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Conversion from latitude, longitude and altitude coordinates to
cartesian with respect to an ellipsoid
Args:
lat (float): Latitude in radians
lon (float): Longitude in radians
alt (float): Altitude to sea level in meters
Return:
numpy.array: 3D element (in meters) |
(module
(function_definition
(function_name_get_interpolated) function_name_get_interpolated
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
(identifier_extent) identifier_extent
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_interpolate) identifier_interpolate
)attribute
(argument_list
(identifier_target) identifier_target
(identifier_extent) identifier_extent
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return a new vector that has been moved towards the given target by
the given extent. The extent should be between 0 and 1. |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_Iterable) identifier_Iterable
)type
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(slice
(integer_0) integer_0
(colon) colon
(integer_1) integer_1
)slice
)subscript
(tuple
(string_b'd') string_b'd'
(string_b'l') string_b'l'
)tuple
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___wrap_with_tuple) identifier___wrap_with_tuple
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___parse) identifier___parse
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Start of decode process. Returns final results. |
(module
(function_definition
(function_name__apply_credentials) function_name__apply_credentials
(parameters
(default_parameter
(identifier_auto_refresh) identifier_auto_refresh
(True) True
)default_parameter
(default_parameter
(identifier_credentials) identifier_credentials
(None) None
)default_parameter
(default_parameter
(identifier_headers) identifier_headers
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(attribute
(call
(attribute
(identifier_credentials) identifier_credentials
(identifier_get_credentials) identifier_get_credentials
)attribute
(argument_list
)argument_list
)call
(identifier_access_token) identifier_access_token
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_auto_refresh) identifier_auto_refresh
(True) True
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_token) identifier_token
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(identifier_credentials) identifier_credentials
(identifier_refresh) identifier_refresh
)attribute
(argument_list
(keyword_argument
(identifier_access_token) identifier_access_token
(None) None
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_credentials) identifier_credentials
(identifier_jwt_is_expired) identifier_jwt_is_expired
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(identifier_credentials) identifier_credentials
(identifier_refresh) identifier_refresh
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_headers) identifier_headers
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'Authorization') string_'Authorization'
(call
(attribute
(string_"Bearer {}") string_"Bearer {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update Authorization header.
Update request headers with latest `access_token`. Perform token
`refresh` if token is ``None``.
Args:
auto_refresh (bool): Perform token refresh if access_token is ``None`` or expired. Defaults to ``True``.
credentials (class): Read-only credentials.
headers (class): Requests `CaseInsensitiveDict`. |
(module
(function_definition
(function_name_do_random) function_name_do_random
(parameters
(identifier_context) identifier_context
(identifier_seq) identifier_seq
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_random) identifier_random
(identifier_choice) identifier_choice
)attribute
(argument_list
(identifier_seq) identifier_seq
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(return_statement
(call
(attribute
(attribute
(identifier_context) identifier_context
(identifier_environment) identifier_environment
)attribute
(identifier_undefined) identifier_undefined
)attribute
(argument_list
(string_'No random item, sequence was empty.') string_'No random item, sequence was empty.'
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return a random item from the sequence. |
(module
(function_definition
(function_name__sonar_data) function_name__sonar_data
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_data) identifier_data
(slice
(integer_1) integer_1
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pin_number) identifier_pin_number
(subscript
(identifier_data) identifier_data
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(subscript
(identifier_data) identifier_data
(attribute
(identifier_PrivateConstants) identifier_PrivateConstants
(identifier_MSB) identifier_MSB
)attribute
)subscript
(integer_7) integer_7
)binary_operator
)parenthesized_expression
(subscript
(identifier_data) identifier_data
(attribute
(identifier_PrivateConstants) identifier_PrivateConstants
(identifier_LSB) identifier_LSB
)attribute
)subscript
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reply_data) identifier_reply_data
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(subscript
(attribute
(identifier_self) identifier_self
(identifier_active_sonar_map) identifier_active_sonar_map
)attribute
(identifier_pin_number) identifier_pin_number
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_0) integer_0
)subscript
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_2) integer_2
)subscript
(identifier_val) identifier_val
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_2) integer_2
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_active_sonar_map) identifier_active_sonar_map
)attribute
(identifier_pin_number) identifier_pin_number
)subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
)assignment
)expression_statement
(if_statement
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_0) integer_0
)subscript
(block
(expression_statement
(call
(attribute
(identifier_reply_data) identifier_reply_data
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_pin_number) identifier_pin_number
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_reply_data) identifier_reply_data
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
(if_statement
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_1) integer_1
)subscript
(block
(expression_statement
(await
(call
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_0) integer_0
)subscript
(argument_list
(identifier_reply_data) identifier_reply_data
)argument_list
)call
)await
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_loop) identifier_loop
(identifier_call_soon) identifier_call_soon
)attribute
(argument_list
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_0) integer_0
)subscript
(identifier_reply_data) identifier_reply_data
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
(integer_1) integer_1
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_active_sonar_map) identifier_active_sonar_map
)attribute
(identifier_pin_number) identifier_pin_number
)subscript
(identifier_sonar_pin_entry) identifier_sonar_pin_entry
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sleep_tune) identifier_sleep_tune
)attribute
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | This method handles the incoming sonar data message and stores
the data in the response table.
:param data: Message data from Firmata
:returns: No return value. |
(module
(function_definition
(function_name_query_names) function_name_query_names
(parameters
(identifier_self) identifier_self
(identifier_pat) identifier_pat
)parameters
(block
(for_statement
(identifier_item) identifier_item
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_chnames) identifier_chnames
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_fnmatch) identifier_fnmatch
(identifier_fnmatchcase) identifier_fnmatchcase
)attribute
(argument_list
(subscript
(identifier_item) identifier_item
(integer_1) integer_1
)subscript
(identifier_pat) identifier_pat
)argument_list
)call
(block
(print_statement
(identifier_item) identifier_item
)print_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | pat a shell pattern. See fnmatch.fnmatchcase. Print the
results to stdout. |
(module
(function_definition
(function_name_write_json) function_name_write_json
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(binary_operator
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_results_folder_name) identifier_results_folder_name
)attribute
(string_'/results-') string_'/results-'
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_global_count) identifier_get_global_count
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)binary_operator
(string_'.json') string_'.json'
)binary_operator
(string_'a') string_'a'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Dump data into json file. |
(module
(function_definition
(function_name_ref) function_name_ref
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_RefTrace) identifier_RefTrace
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filehandle) identifier_filehandle
)attribute
(attribute
(identifier_self) identifier_self
(identifier_dtype) identifier_dtype
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_shape) identifier_shape
)attribute
(attribute
(identifier_self) identifier_self
(identifier_readonly) identifier_readonly
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(identifier_x) identifier_x
)yield
)expression_statement
(expression_statement
(call
(attribute
(identifier_x) identifier_x
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | A write-back version of Trace
Returns
-------
ref : RefTrace
`ref` is returned in a context manager, and must be in a ``with``
statement
Notes
-----
.. versionadded:: 1.6
Examples
--------
>>> with trace.ref as ref:
... ref[10] += 1.617 |
(module
(function_definition
(function_name_translate_state) function_name_translate_state
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_s) identifier_s
(identifier_basestring) identifier_basestring
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_s) identifier_s
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(call
(attribute
(identifier_s) identifier_s
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"_") string_"_"
(string_" ") string_" "
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_t) identifier_t
(argument_list
(call
(identifier__) identifier__
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Translate the given state string |
(module
(function_definition
(function_name_require_bool) function_name_require_bool
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_key) identifier_key
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(attribute
(identifier_self) identifier_self
(identifier_get_bool) identifier_get_bool
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ConfigMissingError) identifier_ConfigMissingError
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_full_key) identifier_full_key
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_v) identifier_v
)return_statement
)block
)function_definition
)module | Returns a configuration value, as a bool, by its given key. If it doesn't exist, or the
configuration value is not a legal bool, an error is thrown.
:param str key: The requested configuration key.
:return: The configuration key's value.
:rtype: bool
:raises ConfigMissingError: The configuration value did not exist.
:raises ConfigTypeError: The configuration value existed but couldn't be coerced to bool. |
(module
(function_definition
(function_name_tilequeue_rawr_seed_all) function_name_tilequeue_rawr_seed_all
(parameters
(identifier_cfg) identifier_cfg
(identifier_peripherals) identifier_peripherals
)parameters
(block
(expression_statement
(assignment
(identifier_rawr_yaml) identifier_rawr_yaml
(call
(attribute
(attribute
(identifier_cfg) identifier_cfg
(identifier_yml) identifier_yml
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'rawr') string_'rawr'
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_rawr_yaml) identifier_rawr_yaml
(None) None
)comparison_operator
(string_'Missing rawr configuration in yaml') string_'Missing rawr configuration in yaml'
)assert_statement
(expression_statement
(assignment
(identifier_group_by_zoom) identifier_group_by_zoom
(call
(attribute
(identifier_rawr_yaml) identifier_rawr_yaml
(identifier_get) identifier_get
)attribute
(argument_list
(string_'group-zoom') string_'group-zoom'
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_group_by_zoom) identifier_group_by_zoom
(None) None
)comparison_operator
(string_'Missing group-zoom rawr config') string_'Missing group-zoom rawr config'
)assert_statement
(expression_statement
(assignment
(identifier_max_coord) identifier_max_coord
(binary_operator
(integer_2) integer_2
(identifier_group_by_zoom) identifier_group_by_zoom
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_coords) identifier_coords
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(call
(identifier_xrange) identifier_xrange
(argument_list
(integer_0) integer_0
(identifier_max_coord) identifier_max_coord
)argument_list
)call
(block
(for_statement
(identifier_y) identifier_y
(call
(identifier_xrange) identifier_xrange
(argument_list
(integer_0) integer_0
(identifier_max_coord) identifier_max_coord
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_coords) identifier_coords
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Coordinate) identifier_Coordinate
(argument_list
(keyword_argument
(identifier_zoom) identifier_zoom
(identifier_group_by_zoom) identifier_group_by_zoom
)keyword_argument
(keyword_argument
(identifier_column) identifier_column
(identifier_x) identifier_x
)keyword_argument
(keyword_argument
(identifier_row) identifier_row
(identifier_y) identifier_y
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(call
(identifier__tilequeue_rawr_seed) identifier__tilequeue_rawr_seed
(argument_list
(identifier_cfg) identifier_cfg
(identifier_peripherals) identifier_peripherals
(identifier_coords) identifier_coords
)argument_list
)call
)expression_statement
)block
)function_definition
)module | command to enqueue all the tiles at the group-by zoom |
(module
(function_definition
(function_name__get_model) function_name__get_model
(parameters
(identifier_self) identifier_self
(identifier_appname) identifier_appname
(identifier_modelname) identifier_modelname
)parameters
(block
(expression_statement
(assignment
(identifier_app) identifier_app
(call
(attribute
(identifier_self) identifier_self
(identifier__get_app) identifier__get_app
)attribute
(argument_list
(identifier_appname) identifier_appname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_models) identifier_models
(call
(attribute
(identifier_app) identifier_app
(identifier_get_models) identifier_get_models
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_model) identifier_model
(None) None
)assignment
)expression_statement
(for_statement
(identifier_mod) identifier_mod
(identifier_models) identifier_models
(block
(if_statement
(comparison_operator
(attribute
(identifier_mod) identifier_mod
(identifier___name__) identifier___name__
)attribute
(identifier_modelname) identifier_modelname
)comparison_operator
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(identifier_mod) identifier_mod
)assignment
)expression_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(binary_operator
(string_"Model ") string_"Model "
(identifier_modelname) identifier_modelname
)binary_operator
(string_" not found") string_" not found"
)binary_operator
)assignment
)expression_statement
)block
)function_definition
)module | return model or None |
(module
(function_definition
(function_name_stored_bind) function_name_stored_bind
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bind) identifier_bind
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_store) identifier_store
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__bound_pangler_store) identifier__bound_pangler_store
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_instance) identifier_instance
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_store) identifier_store
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_p) identifier_p
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(assignment
(subscript
(identifier_store) identifier_store
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_bind) identifier_bind
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)assignment
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_p) identifier_p
)return_statement
)block
)function_definition
)module | Bind an instance to this Pangler, using the bound Pangler store.
This method functions identically to `bind`, except that it might
return a Pangler which was previously bound to the provided instance. |
(module
(function_definition
(function_name_path_distance) function_name_path_distance
(parameters
(identifier_points) identifier_points
)parameters
(block
(expression_statement
(assignment
(identifier_vecs) identifier_vecs
(subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_diff) identifier_diff
)attribute
(argument_list
(identifier_points) identifier_points
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(slice
(colon) colon
)slice
(slice
(colon) colon
(integer_3) integer_3
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d2) identifier_d2
(list_comprehension
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_p) identifier_p
(identifier_p) identifier_p
)argument_list
)call
(for_in_clause
(identifier_p) identifier_p
(identifier_vecs) identifier_vecs
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(identifier_d2) identifier_d2
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute the path distance from given set of points |
(module
(function_definition
(function_name_connectivity) function_name_connectivity
(parameters
(identifier_measure_names) identifier_measure_names
(identifier_b) identifier_b
(default_parameter
(identifier_c) identifier_c
(None) None
)default_parameter
(default_parameter
(identifier_nfft) identifier_nfft
(integer_512) integer_512
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_con) identifier_con
(call
(identifier_Connectivity) identifier_Connectivity
(argument_list
(identifier_b) identifier_b
(identifier_c) identifier_c
(identifier_nfft) identifier_nfft
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_con) identifier_con
(identifier_measure_names) identifier_measure_names
)argument_list
)call
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(return_statement
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(identifier_m) identifier_m
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_con) identifier_con
(identifier_m) identifier_m
)argument_list
)call
(argument_list
)argument_list
)call
)tuple
(for_in_clause
(identifier_m) identifier_m
(identifier_measure_names) identifier_measure_names
)for_in_clause
)generator_expression
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Calculate connectivity measures.
Parameters
----------
measure_names : str or list of str
Name(s) of the connectivity measure(s) to calculate. See
:class:`Connectivity` for supported measures.
b : array, shape (n_channels, n_channels * model_order)
VAR model coefficients. See :ref:`var-model-coefficients` for details
about the arrangement of coefficients.
c : array, shape (n_channels, n_channels), optional
Covariance matrix of the driving noise process. Identity matrix is used
if set to None (default).
nfft : int, optional
Number of frequency bins to calculate. Note that these points cover the
range between 0 and half the sampling rate.
Returns
-------
result : array, shape (n_channels, n_channels, `nfft`)
An array of shape (m, m, nfft) is returned if measures is a string. If
measures is a list of strings, a dictionary is returned, where each key
is the name of the measure, and the corresponding values are arrays of
shape (m, m, nfft).
Notes
-----
When using this function, it is more efficient to get several measures at
once than calling the function multiple times.
Examples
--------
>>> c = connectivity(['DTF', 'PDC'], [[0.3, 0.6], [0.0, 0.9]]) |
(module
(function_definition
(function_name_count_async) function_name_count_async
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_q_options) identifier_q_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(call
(attribute
(identifier_self) identifier_self
(identifier__fix_namespace) identifier__fix_namespace
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_qry) identifier_qry
(identifier__count_async) identifier__count_async
)attribute
(argument_list
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
(dictionary_splat
(identifier_q_options) identifier_q_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Count the number of query results, up to a limit.
This is the asynchronous version of Query.count(). |
(module
(function_definition
(function_name__uri) function_name__uri
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
)parameters
(block
(if_statement
(boolean_operator
(identifier_url) identifier_url
(not_operator
(call
(attribute
(identifier_url) identifier_url
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
(identifier_url) identifier_url
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_uri) identifier_uri
(call
(attribute
(string_"{0}://{1}{2}{3}") string_"{0}://{1}{2}{3}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__protocol) identifier__protocol
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_real_connection) identifier_real_connection
)attribute
(identifier_host) identifier_host
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__port_postfix) identifier__port_postfix
)attribute
(argument_list
)argument_list
)call
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_uri) identifier_uri
)return_statement
)block
)function_definition
)module | Returns request absolute URI |
(module
(function_definition
(function_name_from_object) function_name_from_object
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(return_statement
(conditional_expression
(identifier_obj) identifier_obj
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(identifier_Contact) identifier_Contact
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(identifier_Contact) identifier_Contact
(argument_list
(call
(attribute
(identifier_cast) identifier_cast
(identifier_string_to_enum) identifier_string_to_enum
)attribute
(argument_list
(attribute
(identifier_obj) identifier_obj
(identifier_name) identifier_name
)attribute
(attribute
(identifier_Contact) identifier_Contact
(identifier_ContactName) identifier_ContactName
)attribute
)argument_list
)call
(attribute
(identifier_obj) identifier_obj
(identifier_value) identifier_value
)attribute
(keyword_argument
(identifier_is_primary) identifier_is_primary
(boolean_operator
(attribute
(identifier_obj) identifier_obj
(identifier_is_primary) identifier_is_primary
)attribute
(call
(attribute
(identifier_cast) identifier_cast
(identifier_string_to_boolean) identifier_string_to_boolean
)attribute
(argument_list
(attribute
(identifier_obj) identifier_obj
(identifier_is_primary) identifier_is_primary
)attribute
(keyword_argument
(identifier_strict) identifier_strict
(True) True
)keyword_argument
)argument_list
)call
)boolean_operator
)keyword_argument
(keyword_argument
(identifier_is_verified) identifier_is_verified
(boolean_operator
(attribute
(identifier_obj) identifier_obj
(identifier_is_verified) identifier_is_verified
)attribute
(call
(attribute
(identifier_cast) identifier_cast
(identifier_string_to_boolean) identifier_string_to_boolean
)attribute
(argument_list
(attribute
(identifier_obj) identifier_obj
(identifier_is_verified) identifier_is_verified
)attribute
(keyword_argument
(identifier_strict) identifier_strict
(True) True
)keyword_argument
)argument_list
)call
)boolean_operator
)keyword_argument
)argument_list
)call
)conditional_expression
)return_statement
)block
)function_definition
)module | Convert an object representing a contact information to an instance
`Contact`.
@param obj: an object containg the following attributes:
* `name`: an item of the enumeration `ContactName` representing the
type of this contact information.
* `value`: value of this contact information representing by a string,
such as ``+84.01272170781``, the formatted value for a telephone
number property.
* `is_primary`: indicate whether this contact property is the first to
be used to contact the entity that this contact information
corresponds to. There is only one primary contact property for a
given property name (e.g., `EMAIL`, `PHONE`, `WEBSITE`).
* `is_verified`: indicate whether this contact information has been
verified, whether it has been grabbed from a trusted Social
Networking Service (SNS), or whether through a challenge/response
process.
@raise ValueError: if the value of this contact information is null. |
(module
(function_definition
(function_name_on_network_adapter_change) function_name_on_network_adapter_change
(parameters
(identifier_self) identifier_self
(identifier_network_adapter) identifier_network_adapter
(identifier_change_adapter) identifier_change_adapter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_network_adapter) identifier_network_adapter
(identifier_INetworkAdapter) identifier_INetworkAdapter
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"network_adapter can only be an instance of type INetworkAdapter") string_"network_adapter can only be an instance of type INetworkAdapter"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_change_adapter) identifier_change_adapter
(identifier_bool) identifier_bool
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"change_adapter can only be an instance of type bool") string_"change_adapter can only be an instance of type bool"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(string_"onNetworkAdapterChange") string_"onNetworkAdapterChange"
(keyword_argument
(identifier_in_p) identifier_in_p
(list
(identifier_network_adapter) identifier_network_adapter
(identifier_change_adapter) identifier_change_adapter
)list
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Triggered when settings of a network adapter of the
associated virtual machine have changed.
in network_adapter of type :class:`INetworkAdapter`
in change_adapter of type bool
raises :class:`VBoxErrorInvalidVmState`
Session state prevents operation.
raises :class:`VBoxErrorInvalidObjectState`
Session type prevents operation. |
(module
(function_definition
(function_name_minutes_in_range) function_name_minutes_in_range
(parameters
(identifier_self) identifier_self
(identifier_start_minute) identifier_start_minute
(identifier_end_minute) identifier_end_minute
)parameters
(block
(expression_statement
(assignment
(identifier_start_idx) identifier_start_idx
(call
(identifier_searchsorted) identifier_searchsorted
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__trading_minutes_nanos) identifier__trading_minutes_nanos
)attribute
(attribute
(identifier_start_minute) identifier_start_minute
(identifier_value) identifier_value
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end_idx) identifier_end_idx
(call
(identifier_searchsorted) identifier_searchsorted
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__trading_minutes_nanos) identifier__trading_minutes_nanos
)attribute
(attribute
(identifier_end_minute) identifier_end_minute
(identifier_value) identifier_value
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_end_minute) identifier_end_minute
(identifier_value) identifier_value
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__trading_minutes_nanos) identifier__trading_minutes_nanos
)attribute
(identifier_end_idx) identifier_end_idx
)subscript
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_end_idx) identifier_end_idx
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_all_minutes) identifier_all_minutes
)attribute
(slice
(identifier_start_idx) identifier_start_idx
(colon) colon
(identifier_end_idx) identifier_end_idx
)slice
)subscript
)return_statement
)block
)function_definition
)module | Given start and end minutes, return all the calendar minutes
in that range, inclusive.
Given minutes don't need to be calendar minutes.
Parameters
----------
start_minute: pd.Timestamp
The minute representing the start of the desired range.
end_minute: pd.Timestamp
The minute representing the end of the desired range.
Returns
-------
pd.DatetimeIndex
The minutes in the desired range. |
(module
(function_definition
(function_name_diffuse_template) function_name_diffuse_template
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_kwargs_copy) identifier_kwargs_copy
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_base_dict) identifier_base_dict
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs_copy) identifier_kwargs_copy
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__replace_none) identifier__replace_none
)attribute
(argument_list
(identifier_kwargs_copy) identifier_kwargs_copy
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_localpath) identifier_localpath
(call
(attribute
(attribute
(identifier_NameFactory) identifier_NameFactory
(identifier_diffuse_template_format) identifier_diffuse_template_format
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs_copy) identifier_kwargs_copy
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'fullpath') string_'fullpath'
(False) False
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fullpath) identifier_fullpath
)attribute
(argument_list
(keyword_argument
(identifier_localpath) identifier_localpath
(identifier_localpath) identifier_localpath
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_localpath) identifier_localpath
)return_statement
)block
)function_definition
)module | return the file name for other diffuse map templates |
(module
(function_definition
(function_name__process) function_name__process
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_packet) identifier_packet
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Received invalid JSON from client. Ignoring.') string_'Received invalid JSON from client. Ignoring.'
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(subscript
(identifier_packet) identifier_packet
(string_'cmd') string_'cmd'
)subscript
(string_'run-command') string_'run-command'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__run_command) identifier__run_command
)attribute
(argument_list
(identifier_packet) identifier_packet
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_packet) identifier_packet
(string_'cmd') string_'cmd'
)subscript
(string_'in') string_'in'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pipeinput) identifier__pipeinput
)attribute
(identifier_send_text) identifier_send_text
)attribute
(argument_list
(subscript
(identifier_packet) identifier_packet
(string_'data') string_'data'
)subscript
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_packet) identifier_packet
(string_'cmd') string_'cmd'
)subscript
(string_'size') string_'size'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_packet) identifier_packet
(string_'data') string_'data'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
(call
(identifier_Size) identifier_Size
(argument_list
(keyword_argument
(identifier_rows) identifier_rows
(subscript
(identifier_data) identifier_data
(integer_0) integer_0
)subscript
)keyword_argument
(keyword_argument
(identifier_columns) identifier_columns
(subscript
(identifier_data) identifier_data
(integer_1) integer_1
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pymux) identifier_pymux
)attribute
(identifier_invalidate) identifier_invalidate
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_packet) identifier_packet
(string_'cmd') string_'cmd'
)subscript
(string_'start-gui') string_'start-gui'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_detach_other_clients) identifier_detach_other_clients
(call
(identifier_bool) identifier_bool
(argument_list
(subscript
(identifier_packet) identifier_packet
(string_'detach-others') string_'detach-others'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_color_depth) identifier_color_depth
(subscript
(identifier_packet) identifier_packet
(string_'color-depth') string_'color-depth'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_term) identifier_term
(subscript
(identifier_packet) identifier_packet
(string_'term') string_'term'
)subscript
)assignment
)expression_statement
(if_statement
(identifier_detach_other_clients) identifier_detach_other_clients
(block
(for_statement
(identifier_c) identifier_c
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pymux) identifier_pymux
)attribute
(identifier_connections) identifier_connections
)attribute
(block
(expression_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_detach_and_close) identifier_detach_and_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Create app...') string_'Create app...'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__create_app) identifier__create_app
)attribute
(argument_list
(keyword_argument
(identifier_color_depth) identifier_color_depth
(identifier_color_depth) identifier_color_depth
)keyword_argument
(keyword_argument
(identifier_term) identifier_term
(identifier_term) identifier_term
)keyword_argument
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Process packet received from client. |
(module
(function_definition
(function_name_currency_context) function_name_currency_context
(parameters
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(subscript
(identifier_context) identifier_context
(string_'request') string_'request'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_currency_code) identifier_currency_code
(call
(identifier_memoize_nullary) identifier_memoize_nullary
(argument_list
(lambda
(call
(identifier_get_currency_code) identifier_get_currency_code
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)lambda
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'CURRENCIES') string_'CURRENCIES'
)subscript
(call
(attribute
(attribute
(identifier_Currency) identifier_Currency
(identifier_active) identifier_active
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'CURRENCY_CODE') string_'CURRENCY_CODE'
)subscript
(identifier_currency_code) identifier_currency_code
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'CURRENCY') string_'CURRENCY'
)subscript
(call
(identifier_memoize_nullary) identifier_memoize_nullary
(argument_list
(lambda
(call
(identifier_get_currency) identifier_get_currency
(argument_list
(identifier_currency_code) identifier_currency_code
)argument_list
)call
)lambda
)argument_list
)call
)assignment
)expression_statement
(return_statement
(string_'') string_''
)return_statement
)block
)function_definition
)module | Use instead of context processor
Context variables are only valid within the block scope |
(module
(function_definition
(function_name_show_tabulated) function_name_show_tabulated
(parameters
(identifier_self) identifier_self
(identifier_begin) identifier_begin
(identifier_middle) identifier_middle
(identifier_end) identifier_end
)parameters
(block
(expression_statement
(call
(identifier_internal_assert) identifier_internal_assert
(argument_list
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_begin) identifier_begin
)argument_list
)call
(identifier_info_tabulation) identifier_info_tabulation
)comparison_operator
(string_"info message too long") string_"info message too long"
(identifier_begin) identifier_begin
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_show) identifier_show
)attribute
(argument_list
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(identifier_begin) identifier_begin
(binary_operator
(string_" ") string_" "
(parenthesized_expression
(binary_operator
(identifier_info_tabulation) identifier_info_tabulation
(call
(identifier_len) identifier_len
(argument_list
(identifier_begin) identifier_begin
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
(identifier_middle) identifier_middle
)binary_operator
(string_" ") string_" "
)binary_operator
(identifier_end) identifier_end
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Shows a tabulated message. |
(module
(function_definition
(function_name_create_user) function_name_create_user
(parameters
(identifier_self) identifier_self
(identifier_claims) identifier_claims
)parameters
(block
(expression_statement
(assignment
(identifier_email) identifier_email
(call
(attribute
(identifier_claims) identifier_claims
(identifier_get) identifier_get
)attribute
(argument_list
(string_'email') string_'email'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_username) identifier_username
(call
(attribute
(identifier_self) identifier_self
(identifier_get_username) identifier_get_username
)attribute
(argument_list
(identifier_claims) identifier_claims
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_UserModel) identifier_UserModel
)attribute
(identifier_objects) identifier_objects
)attribute
(identifier_create_user) identifier_create_user
)attribute
(argument_list
(identifier_username) identifier_username
(identifier_email) identifier_email
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return object for a newly created user account. |
(module
(function_definition
(function_name_unregister) function_name_unregister
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
)parameters
(block
(if_statement
(comparison_operator
(identifier_command) identifier_command
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__commands) identifier__commands
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(string_"Can not unregister command %s") string_"Can not unregister command %s"
(identifier_command) identifier_command
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(delete_statement
(parenthesized_expression
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__click_root_command) identifier__click_root_command
)attribute
(identifier_commands) identifier_commands
)attribute
(identifier_command) identifier_command
)subscript
)parenthesized_expression
)delete_statement
(delete_statement
(parenthesized_expression
(subscript
(attribute
(identifier_self) identifier_self
(identifier__commands) identifier__commands
)attribute
(identifier_command) identifier_command
)subscript
)parenthesized_expression
)delete_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"Command %s got unregistered") string_"Command %s got unregistered"
(identifier_command) identifier_command
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Unregisters an existing command, so that this command is no longer available on the command line interface.
This function is mainly used during plugin deactivation.
:param command: Name of the command |
(module
(function_definition
(function_name_purge) function_name_purge
(parameters
(identifier_datasets) identifier_datasets
(identifier_reuses) identifier_reuses
(identifier_organizations) identifier_organizations
)parameters
(block
(expression_statement
(assignment
(identifier_purge_all) identifier_purge_all
(not_operator
(call
(identifier_any) identifier_any
(argument_list
(tuple
(identifier_datasets) identifier_datasets
(identifier_reuses) identifier_reuses
(identifier_organizations) identifier_organizations
)tuple
)argument_list
)call
)not_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_purge_all) identifier_purge_all
(identifier_datasets) identifier_datasets
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Purging datasets') string_'Purging datasets'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_purge_datasets) identifier_purge_datasets
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_purge_all) identifier_purge_all
(identifier_reuses) identifier_reuses
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Purging reuses') string_'Purging reuses'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_purge_reuses) identifier_purge_reuses
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_purge_all) identifier_purge_all
(identifier_organizations) identifier_organizations
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Purging organizations') string_'Purging organizations'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_purge_organizations) identifier_purge_organizations
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_success) identifier_success
(argument_list
(string_'Done') string_'Done'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Permanently remove data flagged as deleted.
If no model flag is given, all models are purged. |
(module
(function_definition
(function_name_datapt_to_wcspt) function_name_datapt_to_wcspt
(parameters
(identifier_self) identifier_self
(identifier_datapt) identifier_datapt
(default_parameter
(identifier_coords) identifier_coords
(string_'data') string_'data'
)default_parameter
(default_parameter
(identifier_naxispath) identifier_naxispath
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_naxispath) identifier_naxispath
(block
(raise_statement
(identifier_NotImplementedError) identifier_NotImplementedError
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_pixtoradec) identifier_pixtoradec
)attribute
(argument_list
(tuple
(subscript
(identifier_pt) identifier_pt
(integer_0) integer_0
)subscript
(subscript
(identifier_pt) identifier_pt
(integer_1) integer_1
)subscript
)tuple
(keyword_argument
(identifier_coords) identifier_coords
(identifier_coords) identifier_coords
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_pt) identifier_pt
(identifier_datapt) identifier_datapt
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert multiple data points to WCS.
Parameters
----------
datapt : array-like
Pixel coordinates in the format of
``[[x0, y0, ...], [x1, y1, ...], ..., [xn, yn, ...]]``.
coords : 'data' or None, optional, default to 'data'
Expresses whether the data coordinate is indexed from zero.
naxispath : list-like or None, optional, defaults to None
A sequence defining the pixel indexes > 2D, if any.
Returns
-------
wcspt : array-like
WCS coordinates in the format of
``[[ra0, dec0], [ra1, dec1], ..., [ran, decn]]``. |
(module
(function_definition
(function_name_move_to_clipboard) function_name_move_to_clipboard
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_files_queryset) identifier_files_queryset
(identifier_folders_queryset) identifier_folders_queryset
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_has_change_permission) identifier_has_change_permission
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)not_operator
(block
(raise_statement
(identifier_PermissionDenied) identifier_PermissionDenied
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'POST') string_'POST'
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_clipboard) identifier_clipboard
(call
(attribute
(identifier_tools) identifier_tools
(identifier_get_user_clipboard) identifier_get_user_clipboard
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_check_files_edit_permissions) identifier_check_files_edit_permissions
(argument_list
(identifier_request) identifier_request
(identifier_files_queryset) identifier_files_queryset
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_check_folder_edit_permissions) identifier_check_folder_edit_permissions
(argument_list
(identifier_request) identifier_request
(identifier_folders_queryset) identifier_folders_queryset
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_files_count) identifier_files_count
(list
(integer_0) integer_0
)list
)assignment
)expression_statement
(function_definition
(function_name_move_files) function_name_move_files
(parameters
(identifier_files) identifier_files
)parameters
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_files_count) identifier_files_count
(integer_0) integer_0
)subscript
(call
(attribute
(identifier_tools) identifier_tools
(identifier_move_file_to_clipboard) identifier_move_file_to_clipboard
)attribute
(argument_list
(identifier_files) identifier_files
(identifier_clipboard) identifier_clipboard
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)function_definition
(function_definition
(function_name_move_folders) function_name_move_folders
(parameters
(identifier_folders) identifier_folders
)parameters
(block
(for_statement
(identifier_f) identifier_f
(identifier_folders) identifier_folders
(block
(expression_statement
(call
(identifier_move_files) identifier_move_files
(argument_list
(attribute
(identifier_f) identifier_f
(identifier_files) identifier_files
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_move_folders) identifier_move_folders
(argument_list
(call
(attribute
(attribute
(identifier_f) identifier_f
(identifier_children) identifier_children
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
(expression_statement
(call
(identifier_move_files) identifier_move_files
(argument_list
(identifier_files_queryset) identifier_files_queryset
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_move_folders) identifier_move_folders
(argument_list
(identifier_folders_queryset) identifier_folders_queryset
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_message_user) identifier_message_user
)attribute
(argument_list
(identifier_request) identifier_request
(binary_operator
(call
(identifier__) identifier__
(argument_list
(concatenated_string
(string_"Successfully moved %(count)d files to ") string_"Successfully moved %(count)d files to "
(string_"clipboard.") string_"clipboard."
)concatenated_string
)argument_list
)call
(dictionary
(pair
(string_"count") string_"count"
(subscript
(identifier_files_count) identifier_files_count
(integer_0) integer_0
)subscript
)pair
)dictionary
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Action which moves the selected files and files in selected folders
to clipboard. |
(module
(function_definition
(function_name_jwt_required) function_name_jwt_required
(parameters
(default_parameter
(identifier_realm) identifier_realm
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)decorator
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(identifier__jwt_required) identifier__jwt_required
(argument_list
(boolean_operator
(identifier_realm) identifier_realm
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'JWT_DEFAULT_REALM') string_'JWT_DEFAULT_REALM'
)subscript
)boolean_operator
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_fn) identifier_fn
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | View decorator that requires a valid JWT token to be present in the request
:param realm: an optional realm |
(module
(function_definition
(function_name_remove_alert) function_name_remove_alert
(parameters
(identifier_thing_name) identifier_thing_name
(identifier_key) identifier_key
(default_parameter
(identifier_session) identifier_session
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier__request) identifier__request
(argument_list
(string_'get') string_'get'
(call
(attribute
(string_'/remove/alert/for/{0}') string_'/remove/alert/for/{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_thing_name) identifier_thing_name
)argument_list
)call
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_'key') string_'key'
(identifier_key) identifier_key
)pair
)dictionary
)keyword_argument
(keyword_argument
(identifier_session) identifier_session
(identifier_session) identifier_session
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove an alert for the given thing |
(module
(function_definition
(function_name_dbmin20years) function_name_dbmin20years
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_float) identifier_float
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'value {} need to be of type float ') string_'value {} need to be of type float '
(string_'for field `dbmin20years`') string_'for field `dbmin20years`'
)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__dbmin20years) identifier__dbmin20years
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Corresponds to IDD Field `dbmin20years`
20-year return period values for minimum extreme dry-bulb temperature
Args:
value (float): value for IDD Field `dbmin20years`
Unit: C
if `value` is None it will not be checked against the
specification and is assumed to be a missing value
Raises:
ValueError: if `value` is not a valid value |
(module
(function_definition
(function_name_export) function_name_export
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(identifier_dictexporter) identifier_dictexporter
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_dictexporter) identifier_dictexporter
)attribute
(call
(identifier_DictExporter) identifier_DictExporter
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_dictexporter) identifier_dictexporter
(identifier_export) identifier_export
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier_kwargs) identifier_kwargs
)attribute
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return JSON for tree starting at `node`. |
(module
(function_definition
(function_name_parse_mailto) function_name_parse_mailto
(parameters
(identifier_mailto_str) identifier_mailto_str
)parameters
(block
(if_statement
(call
(attribute
(identifier_mailto_str) identifier_mailto_str
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'mailto:') string_'mailto:'
)argument_list
)call
(block
(import_statement
(dotted_name
(identifier_urllib) identifier_urllib
(identifier_parse) identifier_parse
)dotted_name
)import_statement
(expression_statement
(assignment
(pattern_list
(identifier_to_str) identifier_to_str
(identifier_parms_str) identifier_parms_str
)pattern_list
(subscript
(call
(attribute
(subscript
(identifier_mailto_str) identifier_mailto_str
(slice
(integer_7) integer_7
(colon) colon
)slice
)subscript
(identifier_partition) identifier_partition
)attribute
(argument_list
(string_'?') string_'?'
)argument_list
)call
(slice
(colon) colon
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(string_u'') string_u''
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_to) identifier_to
(call
(attribute
(attribute
(identifier_urllib) identifier_urllib
(identifier_parse) identifier_parse
)attribute
(identifier_unquote) identifier_unquote
)attribute
(argument_list
(identifier_to_str) identifier_to_str
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_to) identifier_to
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(string_'To') string_'To'
)subscript
(list
(identifier_to) identifier_to
)list
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_s) identifier_s
(call
(attribute
(identifier_parms_str) identifier_parms_str
(identifier_split) identifier_split
)attribute
(argument_list
(string_'&') string_'&'
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(subscript
(call
(attribute
(identifier_s) identifier_s
(identifier_partition) identifier_partition
)attribute
(argument_list
(string_'=') string_'='
)argument_list
)call
(slice
(colon) colon
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_key) identifier_key
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(string_'Body') string_'Body'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(attribute
(identifier_urllib) identifier_urllib
(identifier_parse) identifier_parse
)attribute
(identifier_unquote) identifier_unquote
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(identifier_value) identifier_value
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(identifier_key) identifier_key
)subscript
(list
(call
(attribute
(attribute
(identifier_urllib) identifier_urllib
(identifier_parse) identifier_parse
)attribute
(identifier_unquote) identifier_unquote
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)list
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(tuple
(identifier_headers) identifier_headers
(identifier_body) identifier_body
)tuple
)return_statement
)block
(else_clause
(block
(return_statement
(tuple
(None) None
(None) None
)tuple
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Interpret mailto-string
:param mailto_str: the string to interpret. Must conform to :rfc:2368.
:type mailto_str: str
:return: the header fields and the body found in the mailto link as a tuple
of length two
:rtype: tuple(dict(str->list(str)), str) |
(module
(function_definition
(function_name_getCodecList) function_name_getCodecList
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_checkVersion) identifier_checkVersion
)attribute
(argument_list
(string_'1.4') string_'1.4'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(string_"core show codecs") string_"core show codecs"
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(string_"show codecs") string_"show codecs"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_cmdresp) identifier_cmdresp
(call
(attribute
(identifier_self) identifier_self
(identifier_executeCommand) identifier_executeCommand
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info_dict) identifier_info_dict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_cmdresp) identifier_cmdresp
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mobj) identifier_mobj
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_'\s*(\d+)\s+\((.+)\)\s+\((.+)\)\s+(\w+)\s+(\w+)\s+\((.+)\)$') string_'\s*(\d+)\s+\((.+)\)\s+\((.+)\)\s+(\w+)\s+(\w+)\s+\((.+)\)$'
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_mobj) identifier_mobj
(block
(expression_statement
(assignment
(subscript
(identifier_info_dict) identifier_info_dict
(call
(attribute
(identifier_mobj) identifier_mobj
(identifier_group) identifier_group
)attribute
(argument_list
(integer_5) integer_5
)argument_list
)call
)subscript
(tuple
(call
(attribute
(identifier_mobj) identifier_mobj
(identifier_group) identifier_group
)attribute
(argument_list
(integer_4) integer_4
)argument_list
)call
(call
(attribute
(identifier_mobj) identifier_mobj
(identifier_group) identifier_group
)attribute
(argument_list
(integer_6) integer_6
)argument_list
)call
)tuple
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_info_dict) identifier_info_dict
)return_statement
)block
)function_definition
)module | Query Asterisk Manager Interface for defined codecs.
CLI Command - core show codecs
@return: Dictionary - Short Name -> (Type, Long Name) |
(module
(function_definition
(function_name_create_toolbutton) function_name_create_toolbutton
(parameters
(identifier_parent) identifier_parent
(default_parameter
(identifier_text) identifier_text
(None) None
)default_parameter
(default_parameter
(identifier_shortcut) identifier_shortcut
(None) None
)default_parameter
(default_parameter
(identifier_icon) identifier_icon
(None) None
)default_parameter
(default_parameter
(identifier_tip) identifier_tip
(None) None
)default_parameter
(default_parameter
(identifier_toggled) identifier_toggled
(None) None
)default_parameter
(default_parameter
(identifier_triggered) identifier_triggered
(None) None
)default_parameter
(default_parameter
(identifier_autoraise) identifier_autoraise
(True) True
)default_parameter
(default_parameter
(identifier_text_beside_icon) identifier_text_beside_icon
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_button) identifier_button
(call
(identifier_QToolButton) identifier_QToolButton
(argument_list
(identifier_parent) identifier_parent
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_text) identifier_text
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setText) identifier_setText
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_icon) identifier_icon
(None) None
)comparison_operator
(block
(if_statement
(call
(identifier_is_text_string) identifier_is_text_string
(argument_list
(identifier_icon) identifier_icon
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_icon) identifier_icon
(call
(identifier_get_icon) identifier_get_icon
(argument_list
(identifier_icon) identifier_icon
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setIcon) identifier_setIcon
)attribute
(argument_list
(identifier_icon) identifier_icon
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_text) identifier_text
(None) None
)comparison_operator
(comparison_operator
(identifier_tip) identifier_tip
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setToolTip) identifier_setToolTip
)attribute
(argument_list
(conditional_expression
(identifier_text) identifier_text
(comparison_operator
(identifier_tip) identifier_tip
(None) None
)comparison_operator
(identifier_tip) identifier_tip
)conditional_expression
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_text_beside_icon) identifier_text_beside_icon
(block
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setToolButtonStyle) identifier_setToolButtonStyle
)attribute
(argument_list
(attribute
(identifier_Qt) identifier_Qt
(identifier_ToolButtonTextBesideIcon) identifier_ToolButtonTextBesideIcon
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setAutoRaise) identifier_setAutoRaise
)attribute
(argument_list
(identifier_autoraise) identifier_autoraise
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_triggered) identifier_triggered
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_button) identifier_button
(identifier_clicked) identifier_clicked
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_triggered) identifier_triggered
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_toggled) identifier_toggled
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_button) identifier_button
(identifier_toggled) identifier_toggled
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_toggled) identifier_toggled
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setCheckable) identifier_setCheckable
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_shortcut) identifier_shortcut
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_button) identifier_button
(identifier_setShortcut) identifier_setShortcut
)attribute
(argument_list
(identifier_shortcut) identifier_shortcut
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_button) identifier_button
)return_statement
)block
)function_definition
)module | Create a QToolButton |
(module
(function_definition
(function_name__ctypes_code_parameter) function_name__ctypes_code_parameter
(parameters
(identifier_lines) identifier_lines
(identifier_parameter) identifier_parameter
(identifier_position) identifier_position
)parameters
(block
(expression_statement
(assignment
(identifier_mdict) identifier_mdict
(dictionary
(pair
(string_'indices') string_'indices'
(identifier__ctypes_indices) identifier__ctypes_indices
)pair
(pair
(string_'variable') string_'variable'
(identifier__ctypes_variables) identifier__ctypes_variables
)pair
(pair
(string_'out') string_'out'
(identifier__ctypes_out) identifier__ctypes_out
)pair
(pair
(string_'regular') string_'regular'
(identifier__ctypes_regular) identifier__ctypes_regular
)pair
(pair
(string_'saved') string_'saved'
(identifier__ctypes_saved) identifier__ctypes_saved
)pair
(pair
(string_'assign') string_'assign'
(identifier__ctypes_assign) identifier__ctypes_assign
)pair
(pair
(string_'clean') string_'clean'
(identifier__ctypes_clean) identifier__ctypes_clean
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(subscript
(identifier_mdict) identifier_mdict
(identifier_position) identifier_position
)subscript
(argument_list
(identifier_parameter) identifier_parameter
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_line) identifier_line
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_value) identifier_value
(identifier_blank) identifier_blank
)pattern_list
(identifier_line) identifier_line
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(if_statement
(identifier_blank) identifier_blank
(block
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(string_"") string_""
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Returns the code for the specified parameter being written into a subroutine wrapper.
:arg position: one of ['indices', 'variable', 'out', 'regular', 'saved', 'assign', 'clean'] |
(module
(function_definition
(function_name_set_close_callback) function_name_set_close_callback
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_callback) identifier_callback
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(generic_type
(identifier_Callable) identifier_Callable
(type_parameter
(type
(list
)list
)type
(type
(None) None
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__close_callback) identifier__close_callback
)attribute
(identifier_callback) identifier_callback
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__maybe_add_error_listener) identifier__maybe_add_error_listener
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Call the given callback when the stream is closed.
This mostly is not necessary for applications that use the
`.Future` interface; all outstanding ``Futures`` will resolve
with a `StreamClosedError` when the stream is closed. However,
it is still useful as a way to signal that the stream has been
closed while no other read or write is in progress.
Unlike other callback-based interfaces, ``set_close_callback``
was not removed in Tornado 6.0. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_parts) identifier_parts
)parameters
(block
(expression_statement
(assignment
(identifier_cur_dir) identifier_cur_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_open) identifier_open
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cur_dir) identifier_cur_dir
(list_splat
(identifier_parts) identifier_parts
)list_splat
)argument_list
)call
(string_"rb") string_"rb"
(string_"utf-8") string_"utf-8"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Build an absolute path from parts array and and return the contents
of the resulting file. Assume UTF-8 encoding. |
(module
(function_definition
(function_name_bootstrap_buttons) function_name_bootstrap_buttons
(parameters
(identifier_parser) identifier_parser
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(identifier_parse_token_contents) identifier_parse_token_contents
(argument_list
(identifier_parser) identifier_parser
(identifier_token) identifier_token
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_"nodelist") string_"nodelist"
)subscript
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse) identifier_parse
)attribute
(argument_list
(tuple
(string_"endbuttons") string_"endbuttons"
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_delete_first_token) identifier_delete_first_token
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_ButtonsNode) identifier_ButtonsNode
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Render buttons for form
**Tag name**::
buttons
**Parameters**:
submit
Text for a submit button
reset
Text for a reset button
**Usage**::
{% buttons %}{% endbuttons %}
**Example**::
{% buttons submit='OK' reset="Cancel" %}{% endbuttons %} |
(module
(function_definition
(function_name_get_acls_recursive) function_name_get_acls_recursive
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_depth) identifier_depth
(identifier_include_ephemerals) identifier_include_ephemerals
)parameters
(block
(expression_statement
(yield
(expression_list
(identifier_path) identifier_path
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_get_acls) identifier_get_acls
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(integer_0) integer_0
)subscript
)expression_list
)yield
)expression_statement
(if_statement
(comparison_operator
(identifier_depth) identifier_depth
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_tpath) identifier_tpath
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_tree) identifier_tree
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_depth) identifier_depth
(keyword_argument
(identifier_full_path) identifier_full_path
(True) True
)keyword_argument
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_acls) identifier_acls
(identifier_stat) identifier_stat
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_acls) identifier_get_acls
)attribute
(argument_list
(identifier_tpath) identifier_tpath
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_NoNodeError) identifier_NoNodeError
(block
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(not_operator
(identifier_include_ephemerals) identifier_include_ephemerals
)not_operator
(comparison_operator
(attribute
(identifier_stat) identifier_stat
(identifier_ephemeralOwner) identifier_ephemeralOwner
)attribute
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(yield
(expression_list
(identifier_tpath) identifier_tpath
(identifier_acls) identifier_acls
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | A recursive generator wrapper for get_acls
:param path: path from which to start
:param depth: depth of the recursion (-1 no recursion, 0 means no limit)
:param include_ephemerals: get ACLs for ephemerals too |
(module
(function_definition
(function_name_fit_for_distance) function_name_fit_for_distance
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_prop) identifier_prop
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_prop) identifier_prop
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ic) identifier_ic
)attribute
(identifier_bands) identifier_bands
)attribute
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | ``True`` if any of the properties are apparent magnitudes. |
(module
(function_definition
(function_name_assign) function_name_assign
(parameters
(identifier_self) identifier_self
(identifier_dst) identifier_dst
(identifier_req) identifier_req
(identifier_src) identifier_src
)parameters
(block
(if_statement
(comparison_operator
(identifier_req) identifier_req
(string_'null') string_'null'
)comparison_operator
(block
(return_statement
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_req) identifier_req
(tuple
(string_'write') string_'write'
(string_'inplace') string_'inplace'
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_dst) identifier_dst
(slice
(colon) colon
)slice
)subscript
(identifier_src) identifier_src
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_req) identifier_req
(string_'add') string_'add'
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_dst) identifier_dst
(slice
(colon) colon
)slice
)subscript
(identifier_src) identifier_src
)augmented_assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Helper function for assigning into dst depending on requirements. |
(module
(function_definition
(function_name_container_instance_from_string) function_name_container_instance_from_string
(parameters
(identifier_id) identifier_id
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_service) identifier_service
(identifier_instance) identifier_instance
)pattern_list
(call
(attribute
(identifier_id) identifier_id
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'_') string_'_'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_instance) identifier_instance
(call
(identifier_int) identifier_int
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(raise_statement
(call
(attribute
(identifier_context) identifier_context
(identifier_ValueError) identifier_ValueError
)attribute
(argument_list
(binary_operator
(string_"Invalid container id %r") string_"Invalid container id %r"
(identifier_id) identifier_id
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(identifier__proto) identifier__proto
(identifier_ContainerInstance) identifier_ContainerInstance
)attribute
(argument_list
(keyword_argument
(identifier_service_name) identifier_service_name
(identifier_service) identifier_service
)keyword_argument
(keyword_argument
(identifier_instance) identifier_instance
(identifier_instance) identifier_instance
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a ContainerInstance from an id string |
(module
(function_definition
(function_name_push_primary_analyses_for_removal) function_name_push_primary_analyses_for_removal
(parameters
(identifier_self) identifier_self
(identifier_analysis_request) identifier_analysis_request
(identifier_analyses) identifier_analyses
)parameters
(block
(expression_statement
(assignment
(identifier_to_remove) identifier_to_remove
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_analyses_to_remove) identifier_analyses_to_remove
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_analysis_request) identifier_analysis_request
(list
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_to_remove) identifier_to_remove
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_analyses) identifier_analyses
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_analyses_to_remove) identifier_analyses_to_remove
)attribute
(identifier_analysis_request) identifier_analysis_request
)subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(identifier_to_remove) identifier_to_remove
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Stores the analyses to be removed after partitions creation |
(module
(function_definition
(function_name_set_focus) function_name_set_focus
(parameters
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)parameters
(block
(expression_statement
(string_"Set the focus in the underlying body widget.") string_"Set the focus in the underlying body widget."
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'setting focus to %s ') string_'setting focus to %s '
(identifier_pos) identifier_pos
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_body) identifier_body
)attribute
(identifier_set_focus) identifier_set_focus
)attribute
(argument_list
(identifier_pos) identifier_pos
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the focus in the underlying body widget. |
(module
(function_definition
(function_name_delete_info) function_name_delete_info
(parameters
(identifier_ctx) identifier_ctx
(identifier_info) identifier_info
)parameters
(block
(expression_statement
(assignment
(identifier_head) identifier_head
(attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_parent) identifier_parent
)attribute
(identifier_head) identifier_head
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vcf_handle) identifier_vcf_handle
(attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_parent) identifier_parent
)attribute
(identifier_handle) identifier_handle
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_outfile) identifier_outfile
(attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_parent) identifier_parent
)attribute
(identifier_outfile) identifier_outfile
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_silent) identifier_silent
(attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_parent) identifier_parent
)attribute
(identifier_silent) identifier_silent
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_info) identifier_info
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(string_"No info provided") string_"No info provided"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(string_"Please provide a info string") string_"Please provide a info string"
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(comparison_operator
(identifier_info) identifier_info
(attribute
(identifier_head) identifier_head
(identifier_info_dict) identifier_info_dict
)attribute
)comparison_operator
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"Info '{0}' is not specified in vcf header") string_"Info '{0}' is not specified in vcf header"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(string_"Please provide a valid info field") string_"Please provide a valid info field"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_head) identifier_head
(identifier_remove_header) identifier_remove_header
)attribute
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print_headers) identifier_print_headers
(argument_list
(identifier_head) identifier_head
(keyword_argument
(identifier_outfile) identifier_outfile
(identifier_outfile) identifier_outfile
)keyword_argument
(keyword_argument
(identifier_silent) identifier_silent
(identifier_silent) identifier_silent
)keyword_argument
)argument_list
)call
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_vcf_handle) identifier_vcf_handle
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(identifier_line) identifier_line
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_line) identifier_new_line
(call
(identifier_remove_vcf_info) identifier_remove_vcf_info
(argument_list
(keyword_argument
(identifier_keyword) identifier_keyword
(identifier_info) identifier_info
)keyword_argument
(keyword_argument
(identifier_variant_line) identifier_variant_line
(identifier_line) identifier_line
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print_variant) identifier_print_variant
(argument_list
(keyword_argument
(identifier_variant_line) identifier_variant_line
(identifier_new_line) identifier_new_line
)keyword_argument
(keyword_argument
(identifier_outfile) identifier_outfile
(identifier_outfile) identifier_outfile
)keyword_argument
(keyword_argument
(identifier_silent) identifier_silent
(identifier_silent) identifier_silent
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Delete a info field from all variants in a vcf |
(module
(function_definition
(function_name_resize2fs) function_name_resize2fs
(parameters
(identifier_device) identifier_device
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_'resize2fs {0}') string_'resize2fs {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_device) identifier_device
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_python_shell) identifier_python_shell
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(subscript
(identifier_out) identifier_out
(string_'retcode') string_'retcode'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)function_definition
)module | Resizes the filesystem.
CLI Example:
.. code-block:: bash
salt '*' disk.resize2fs /dev/sda1 |
(module
(function_definition
(function_name_get_object) function_name_get_object
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_get_object) identifier_get_object
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_AUDITOR_EVENT_TYPES) identifier_AUDITOR_EVENT_TYPES
)attribute
)not_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_method) identifier_method
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_event_type) identifier_event_type
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_AUDITOR_EVENT_TYPES) identifier_AUDITOR_EVENT_TYPES
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_method) identifier_method
(string_'GET') string_'GET'
)comparison_operator
(identifier_event_type) identifier_event_type
)boolean_operator
(call
(identifier_is_user) identifier_is_user
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_user) identifier_user
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_auditor) identifier_auditor
(identifier_record) identifier_record
)attribute
(argument_list
(keyword_argument
(identifier_event_type) identifier_event_type
(identifier_event_type) identifier_event_type
)keyword_argument
(keyword_argument
(identifier_instance) identifier_instance
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
)keyword_argument
(keyword_argument
(identifier_actor_id) identifier_actor_id
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_user) identifier_user
)attribute
(identifier_id) identifier_id
)attribute
)keyword_argument
(keyword_argument
(identifier_actor_name) identifier_actor_name
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_user) identifier_user
)attribute
(identifier_username) identifier_username
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
(elif_clause
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_method) identifier_method
(string_'DELETE') string_'DELETE'
)comparison_operator
(identifier_event_type) identifier_event_type
)boolean_operator
(call
(identifier_is_user) identifier_is_user
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_user) identifier_user
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_auditor) identifier_auditor
(identifier_record) identifier_record
)attribute
(argument_list
(keyword_argument
(identifier_event_type) identifier_event_type
(identifier_event_type) identifier_event_type
)keyword_argument
(keyword_argument
(identifier_instance) identifier_instance
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
)keyword_argument
(keyword_argument
(identifier_actor_id) identifier_actor_id
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_user) identifier_user
)attribute
(identifier_id) identifier_id
)attribute
)keyword_argument
(keyword_argument
(identifier_actor_name) identifier_actor_name
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_user) identifier_user
)attribute
(identifier_username) identifier_username
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__object) identifier__object
)attribute
)return_statement
)block
)function_definition
)module | We memoize the access to this function in case a second call is made. |
(module
(function_definition
(function_name_db_exists) function_name_db_exists
(parameters
(identifier_cls) identifier_cls
(identifier_impl) identifier_impl
(identifier_working_dir) identifier_working_dir
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_config) identifier_config
(identifier_get_snapshots_filename) identifier_get_snapshots_filename
)attribute
(argument_list
(identifier_impl) identifier_impl
(identifier_working_dir) identifier_working_dir
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)return_statement
)block
)function_definition
)module | Does the chainstate db exist? |
(module
(function_definition
(function_name_run_bottleneck_on_image) function_name_run_bottleneck_on_image
(parameters
(identifier_sess) identifier_sess
(identifier_image_data) identifier_image_data
(identifier_image_data_tensor) identifier_image_data_tensor
(identifier_decoded_image_tensor) identifier_decoded_image_tensor
(identifier_resized_input_tensor) identifier_resized_input_tensor
(identifier_bottleneck_tensor) identifier_bottleneck_tensor
)parameters
(block
(expression_statement
(assignment
(identifier_resized_input_values) identifier_resized_input_values
(call
(attribute
(identifier_sess) identifier_sess
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_decoded_image_tensor) identifier_decoded_image_tensor
(dictionary
(pair
(identifier_image_data_tensor) identifier_image_data_tensor
(identifier_image_data) identifier_image_data
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bottleneck_values) identifier_bottleneck_values
(call
(attribute
(identifier_sess) identifier_sess
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_bottleneck_tensor) identifier_bottleneck_tensor
(dictionary
(pair
(identifier_resized_input_tensor) identifier_resized_input_tensor
(identifier_resized_input_values) identifier_resized_input_values
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bottleneck_values) identifier_bottleneck_values
(call
(attribute
(identifier_np) identifier_np
(identifier_squeeze) identifier_squeeze
)attribute
(argument_list
(identifier_bottleneck_values) identifier_bottleneck_values
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_bottleneck_values) identifier_bottleneck_values
)return_statement
)block
)function_definition
)module | Runs inference on an image to extract the 'bottleneck' summary layer.
Args:
sess: Current active TensorFlow Session.
image_data: String of raw JPEG data.
image_data_tensor: Input data layer in the graph.
decoded_image_tensor: Output of initial image resizing and preprocessing.
resized_input_tensor: The input node of the recognition graph.
bottleneck_tensor: Layer before the final softmax.
Returns:
Numpy array of bottleneck values. |
(module
(function_definition
(function_name_getElementByWdomId) function_name_getElementByWdomId
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_id) identifier_id
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_WebEventTarget) identifier_WebEventTarget
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_elm) identifier_elm
(call
(identifier_getElementByWdomId) identifier_getElementByWdomId
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_elm) identifier_elm
(comparison_operator
(attribute
(identifier_elm) identifier_elm
(identifier_ownerDocument) identifier_ownerDocument
)attribute
(identifier_self) identifier_self
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_elm) identifier_elm
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Get an element node with ``wdom_id``.
If this document does not have the element with the id, return None. |
(module
(function_definition
(function_name_apply_gates_to_fd) function_name_apply_gates_to_fd
(parameters
(identifier_stilde_dict) identifier_stilde_dict
(identifier_gates) identifier_gates
)parameters
(block
(expression_statement
(assignment
(identifier_outdict) identifier_outdict
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(identifier_stilde_dict) identifier_stilde_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_strain_dict) identifier_strain_dict
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(list
(identifier_ifo) identifier_ifo
(call
(attribute
(subscript
(identifier_outdict) identifier_outdict
(identifier_ifo) identifier_ifo
)subscript
(identifier_to_timeseries) identifier_to_timeseries
)attribute
(argument_list
)argument_list
)call
)list
(for_in_clause
(identifier_ifo) identifier_ifo
(identifier_gates) identifier_gates
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_ifo) identifier_ifo
(identifier_d) identifier_d
)pattern_list
(call
(attribute
(call
(identifier_apply_gates_to_td) identifier_apply_gates_to_td
(argument_list
(identifier_strain_dict) identifier_strain_dict
(identifier_gates) identifier_gates
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_outdict) identifier_outdict
(identifier_ifo) identifier_ifo
)subscript
(call
(attribute
(identifier_d) identifier_d
(identifier_to_frequencyseries) identifier_to_frequencyseries
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_outdict) identifier_outdict
)return_statement
)block
)function_definition
)module | Applies the given dictionary of gates to the given dictionary of
strain in the frequency domain.
Gates are applied by IFFT-ing the strain data to the time domain, applying
the gate, then FFT-ing back to the frequency domain.
Parameters
----------
stilde_dict : dict
Dictionary of frequency-domain strain, keyed by the ifos.
gates : dict
Dictionary of gates. Keys should be the ifo to apply the data to,
values are a tuple giving the central time of the gate, the half
duration, and the taper duration.
Returns
-------
dict
Dictionary of frequency-domain strain with the gates applied. |
(module
(function_definition
(function_name_search_info) function_name_search_info
(parameters
(identifier_self) identifier_self
(identifier_search_index) identifier_search_index
)parameters
(block
(expression_statement
(assignment
(identifier_ddoc_search_info) identifier_ddoc_search_info
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_r_session) identifier_r_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(attribute
(identifier_self) identifier_self
(identifier_document_url) identifier_document_url
)attribute
(string_'_search_info') string_'_search_info'
(identifier_search_index) identifier_search_index
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ddoc_search_info) identifier_ddoc_search_info
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_response_to_json_dict) identifier_response_to_json_dict
(argument_list
(identifier_ddoc_search_info) identifier_ddoc_search_info
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves information about a specified search index within the design
document, returns dictionary
GET databasename/_design/{ddoc}/_search_info/{search_index} |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_verbose) identifier_verbose
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_quiet) identifier_quiet
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_color) identifier_color
(type
(identifier_str) identifier_str
)type
(string_"auto") string_"auto"
)typed_default_parameter
(typed_default_parameter
(identifier_title) identifier_title
(type
(identifier_str) identifier_str
)type
(string_"auto") string_"auto"
)typed_default_parameter
(typed_default_parameter
(identifier_timestamp) identifier_timestamp
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(identifier__setup) identifier__setup
(argument_list
(keyword_argument
(identifier_verbose) identifier_verbose
(identifier_verbose) identifier_verbose
)keyword_argument
(keyword_argument
(identifier_quiet) identifier_quiet
(identifier_quiet) identifier_quiet
)keyword_argument
(keyword_argument
(identifier_color) identifier_color
(identifier_color) identifier_color
)keyword_argument
(keyword_argument
(identifier_title) identifier_title
(identifier_title) identifier_title
)keyword_argument
(keyword_argument
(identifier_timestamp) identifier_timestamp
(identifier_timestamp) identifier_timestamp
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Configure behavior of message functions.
:param verbose: Whether :func:`debug` messages should get printed
:param quiet: Hide every message except :func:`warning`, :func:`error`, and
:func:`fatal`
:param color: Choices: 'auto', 'always', or 'never'. Whether to color output.
By default ('auto'), only use color when output is a terminal.
:param title: Ditto for setting terminal title
:param timestamp: Whether to prefix every message with a time stamp |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(if_statement
(identifier_text) identifier_text
(block
(if_statement
(comparison_operator
(subscript
(identifier_text) identifier_text
(integer_0) integer_0
)subscript
(string_'(w') string_'(w'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(subscript
(identifier_text) identifier_text
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_access_log) identifier_access_log
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_access_log) identifier_access_log
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(subscript
(identifier_text) identifier_text
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Write to appropriate target. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.