sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_update_view_bounds) function_name_update_view_bounds
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_view_bounds) identifier_view_bounds
)attribute
(identifier_left) identifier_left
)attribute
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pan) identifier_pan
)attribute
(identifier_X) identifier_X
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_world_center) identifier_world_center
)attribute
(identifier_X) identifier_X
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_view_bounds) identifier_view_bounds
)attribute
(identifier_top) identifier_top
)attribute
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pan) identifier_pan
)attribute
(identifier_Y) identifier_Y
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_world_center) identifier_world_center
)attribute
(identifier_Y) identifier_Y
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_view_bounds) identifier_view_bounds
)attribute
(identifier_width) identifier_width
)attribute
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_world_center) identifier_world_center
)attribute
(identifier_X) identifier_X
)attribute
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_view_bounds) identifier_view_bounds
)attribute
(identifier_height) identifier_height
)attribute
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_world_center) identifier_world_center
)attribute
(identifier_Y) identifier_Y
)attribute
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
)block
)function_definition
)module | Update the camera's view bounds. |
(module
(function_definition
(function_name_tabledefinehypercolumn) function_name_tabledefinehypercolumn
(parameters
(identifier_tabdesc) identifier_tabdesc
(identifier_name) identifier_name
(identifier_ndim) identifier_ndim
(identifier_datacolumns) identifier_datacolumns
(default_parameter
(identifier_coordcolumns) identifier_coordcolumns
(False) False
)default_parameter
(default_parameter
(identifier_idcolumns) identifier_idcolumns
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rec) identifier_rec
(dictionary
(pair
(string_'HCndim') string_'HCndim'
(identifier_ndim) identifier_ndim
)pair
(pair
(string_'HCdatanames') string_'HCdatanames'
(identifier_datacolumns) identifier_datacolumns
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_coordcolumns) identifier_coordcolumns
(identifier_bool) identifier_bool
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_rec) identifier_rec
(string_'HCcoordnames') string_'HCcoordnames'
)subscript
(identifier_coordcolumns) identifier_coordcolumns
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_idcolumns) identifier_idcolumns
(identifier_bool) identifier_bool
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_rec) identifier_rec
(string_'HCidnames') string_'HCidnames'
)subscript
(identifier_idcolumns) identifier_idcolumns
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'_define_hypercolumn_') string_'_define_hypercolumn_'
(identifier_tabdesc) identifier_tabdesc
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_tabdesc) identifier_tabdesc
(string_'_define_hypercolumn_') string_'_define_hypercolumn_'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_tabdesc) identifier_tabdesc
(string_'_define_hypercolumn_') string_'_define_hypercolumn_'
)subscript
(identifier_name) identifier_name
)subscript
(identifier_rec) identifier_rec
)assignment
)expression_statement
)block
)function_definition
)module | Add a hypercolumn to a table description.
It defines a hypercolumn and adds it the given table description.
A hypercolumn is an entity used by the Tiled Storage Managers (TSM). It
defines which columns have to be stored together with a TSM.
It should only be used by expert users who want to use a TSM to its
full extent. For a basic TSM s hypercolumn definition is not needed.
tabledesc
A table description (result from :func:`maketabdesc`).
name
Name of hypercolumn
ndim
Dimensionality of hypercolumn; normally 1 more than the dimensionality
of the arrays in the data columns to be stored with the TSM
datacolumns
Data columns to be stored with TSM
coordcolumns
Optional coordinate columns to be stored with TSM
idcolumns
Optional id columns to be stored with TSM
For example::
scd1 = makescacoldesc("col2", "aa")
scd2 = makescacoldesc("col1", 1, "IncrementalStMan")
scd3 = makescacoldesc("colrec1", {})
acd1 = makearrcoldesc("arr1", 1, 0, [2,3,4])
acd2 = makearrcoldesc("arr2", as_complex(0))
td = maketabdesc([scd1, scd2, scd3, acd1, acd2])
tabledefinehypercolumn(td, "TiledArray", 4, ["arr1"])
tab = table("mytable", tabledesc=td, nrow=100)
| This creates a table description `td` from five column descriptions
and then creates a 100-row table called mytable from the table
description.
| The columns contain respectivily strings, integer scalars, records,
3D integer arrays with fixed shape [2,3,4], and complex arrays with
variable shape.
| The first array is stored with the Tiled Storage Manager (in this case
the TiledColumnStMan). |
(module
(function_definition
(function_name_trim_and_pad_all_features) function_name_trim_and_pad_all_features
(parameters
(identifier_features) identifier_features
(identifier_length) identifier_length
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(call
(identifier__trim_and_pad) identifier__trim_and_pad
(argument_list
(identifier_v) identifier_v
(identifier_length) identifier_length
)argument_list
)call
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_features) identifier_features
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Trim and pad first dimension of all features to size length. |
(module
(function_definition
(function_name_best_prefix) function_name_best_prefix
(parameters
(identifier_bytes) identifier_bytes
(default_parameter
(identifier_system) identifier_system
(identifier_NIST) identifier_NIST
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_bytes) identifier_bytes
(identifier_Bitmath) identifier_Bitmath
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(attribute
(identifier_bytes) identifier_bytes
(identifier_bytes) identifier_bytes
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(identifier_bytes) identifier_bytes
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(call
(identifier_Byte) identifier_Byte
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_best_prefix) identifier_best_prefix
)attribute
(argument_list
(keyword_argument
(identifier_system) identifier_system
(identifier_system) identifier_system
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a bitmath instance representing the best human-readable
representation of the number of bytes given by ``bytes``. In addition
to a numeric type, the ``bytes`` parameter may also be a bitmath type.
Optionally select a preferred unit system by specifying the ``system``
keyword. Choices for ``system`` are ``bitmath.NIST`` (default) and
``bitmath.SI``.
Basically a shortcut for:
>>> import bitmath
>>> b = bitmath.Byte(12345)
>>> best = b.best_prefix()
Or:
>>> import bitmath
>>> best = (bitmath.KiB(12345) * 4201).best_prefix() |
(module
(function_definition
(function_name__fill_and_verify_parameter_shape) function_name__fill_and_verify_parameter_shape
(parameters
(identifier_x) identifier_x
(identifier_n) identifier_n
(identifier_parameter_label) identifier_parameter_label
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier__fill_shape) identifier__fill_shape
(argument_list
(identifier_x) identifier_x
(identifier_n) identifier_n
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_TypeError) identifier_TypeError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(attribute
(identifier_base) identifier_base
(identifier_IncompatibleShapeError) identifier_IncompatibleShapeError
)attribute
(argument_list
(binary_operator
(binary_operator
(string_"Invalid ") string_"Invalid "
(identifier_parameter_label) identifier_parameter_label
)binary_operator
(call
(attribute
(concatenated_string
(string_" shape: ") string_" shape: "
(string_"{}") string_"{}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Expands x if necessary into a `n`-D kernel shape and reports errors. |
(module
(function_definition
(function_name_send_commands) function_name_send_commands
(parameters
(identifier_self) identifier_self
(identifier_commands) identifier_commands
(default_parameter
(identifier_timeout) identifier_timeout
(float_1.0) float_1.0
)default_parameter
(default_parameter
(identifier_max_retries) identifier_max_retries
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_eor) identifier_eor
(tuple
(string_'\n') string_'\n'
(string_'\n- ') string_'\n- '
)tuple
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_eor) identifier_eor
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_eor) identifier_eor
(binary_operator
(list
(identifier_eor) identifier_eor
)list
(call
(identifier_len) identifier_len
(argument_list
(identifier_commands) identifier_commands
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_responses) identifier_responses
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_command) identifier_command
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_commands) identifier_commands
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_rsp) identifier_rsp
(call
(attribute
(identifier_self) identifier_self
(identifier_send_command) identifier_send_command
)attribute
(argument_list
(identifier_command) identifier_command
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
(keyword_argument
(identifier_max_retries) identifier_max_retries
(identifier_max_retries) identifier_max_retries
)keyword_argument
(keyword_argument
(identifier_eor) identifier_eor
(subscript
(identifier_eor) identifier_eor
(identifier_i) identifier_i
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_responses) identifier_responses
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_rsp) identifier_rsp
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_command_error) identifier_command_error
)attribute
(argument_list
(identifier_rsp) identifier_rsp
)argument_list
)call
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.25) float_0.25
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_responses) identifier_responses
)return_statement
)block
)function_definition
)module | Send a sequence of commands to the drive and collect output.
Takes a sequence of many commands and executes them one by one
till either all are executed or one runs out of retries
(`max_retries`). Retries are optionally performed if a command's
repsonse indicates that there was an error. Remaining commands
are not executed. The processed output of the final execution
(last try or retry) of each command that was actually executed
is returned.
This function basically feeds commands one by one to
``send_command`` and collates the outputs.
Parameters
----------
commands : iterable of str
Iterable of commands to send to the drive. Each command must
be an ``str``.
timeout : float or None, optional
Optional timeout in seconds to use when reading the
response. A negative value or ``None`` indicates that the
an infinite timeout should be used.
max_retries : int, optional
Maximum number of retries to do per command in the case of
errors.
eor : str or iterable of str, optional
End Of Resonse. An EOR is either a ``str`` or an iterable
of ``str`` that denote the possible endings of a response.
'eor' can be a single EOR, in which case it is used for all
commands, or it can be an iterable of EOR to use for each
individual command. For most commands, it should be
``('\\n', '\\n- ')``, but for running a program, it should
be ``'*END\\n'``. The default is ``('\\n', '\\n- ')``.
Returns
-------
outputs : list of lists
``list`` composed of the processed responses of each command
in the order that they were done up to and including the
last command executed. See ``send_command`` for the format
of processed responses.
See Also
--------
send_command : Send a single command.
Examples
--------
A sequence of commands to energize the motor, move it a bit away
from the starting position, and then do 4 forward/reverse
cycles, and de-energize the motor. **DO NOT** try these specific
movement distances without checking that the motion won't damage
something (very motor and application specific).
>>> from GeminiMotorDrive.drivers import ASCII_RS232
>>> ra = ASCII_RS232('/dev/ttyS1')
>>> ra.send_commands(['DRIVE1', 'D-10000', 'GO']
... + ['D-10000','GO','D10000','GO']*4
... + [ 'DRIVE0'])
[['DRIVE1', 'DRIVE1\\r', 'DRIVE1', None, []],
['D-10000', 'D-10000\\r', 'D-10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D-10000', 'D-10000\\r', 'D-10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D10000', 'D10000\\r', 'D10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D-10000', 'D-10000\\r', 'D-10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D10000', 'D10000\\r', 'D10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D-10000', 'D-10000\\r', 'D-10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D10000', 'D10000\\r', 'D10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D-10000', 'D-10000\\r', 'D-10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['D10000', 'D10000\\r', 'D10000', None, []],
['GO', 'GO\\r', 'GO', None, []],
['DRIVE0', 'DRIVE0\\r', 'DRIVE0', None, []]] |
(module
(function_definition
(function_name_variance) function_name_variance
(parameters
(identifier_x) identifier_x
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_x) identifier_x
(identifier_ndim) identifier_ndim
)attribute
(integer_1) integer_1
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_x) identifier_x
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_var) identifier_var
)attribute
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_var) identifier_var
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a numpy array of column variance
Parameters
----------
x : ndarray
A numpy array instance
Returns
-------
ndarray
A 1 x n numpy array instance of column variance
Examples
--------
>>> a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
>>> np.testing.assert_array_almost_equal(
... variance(a),
... [0.666666, 0.666666, 0.666666])
>>> a = np.array([1, 2, 3])
>>> np.testing.assert_array_almost_equal(
... variance(a),
... 0.666666) |
(module
(function_definition
(function_name_get_etag) function_name_get_etag
(parameters
(identifier_storage) identifier_storage
(identifier_path) identifier_path
(identifier_prefixed_path) identifier_prefixed_path
)parameters
(block
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(identifier_get_cache_key) identifier_get_cache_key
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_etag) identifier_etag
(call
(attribute
(identifier_cache) identifier_cache
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_cache_key) identifier_cache_key
(False) False
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_etag) identifier_etag
(False) False
)comparison_operator
(block
(expression_statement
(assignment
(identifier_etag) identifier_etag
(call
(identifier_get_remote_etag) identifier_get_remote_etag
(argument_list
(identifier_storage) identifier_storage
(identifier_prefixed_path) identifier_prefixed_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cache) identifier_cache
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_cache_key) identifier_cache_key
(identifier_etag) identifier_etag
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_etag) identifier_etag
)return_statement
)block
)function_definition
)module | Get etag of path from cache or S3 - in that order. |
(module
(function_definition
(function_name_date_to_long_form_string) function_name_date_to_long_form_string
(parameters
(identifier_dt) identifier_dt
(default_parameter
(identifier_locale_) identifier_locale_
(string_'en_US.utf8') string_'en_US.utf8'
)default_parameter
)parameters
(block
(if_statement
(identifier_locale_) identifier_locale_
(block
(expression_statement
(assignment
(identifier_old_locale) identifier_old_locale
(call
(attribute
(identifier_locale) identifier_locale
(identifier_getlocale) identifier_getlocale
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_locale) identifier_locale
(identifier_setlocale) identifier_setlocale
)attribute
(argument_list
(attribute
(identifier_locale) identifier_locale
(identifier_LC_ALL) identifier_LC_ALL
)attribute
(identifier_locale_) identifier_locale_
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(attribute
(identifier_dt) identifier_dt
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_"%A %B %d %Y") string_"%A %B %d %Y"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_locale_) identifier_locale_
(block
(expression_statement
(call
(attribute
(identifier_locale) identifier_locale
(identifier_setlocale) identifier_setlocale
)attribute
(argument_list
(attribute
(identifier_locale) identifier_locale
(identifier_LC_ALL) identifier_LC_ALL
)attribute
(identifier_old_locale) identifier_old_locale
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_v) identifier_v
)return_statement
)block
)function_definition
)module | dt should be a datetime.date object. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filepath) identifier_filepath
)attribute
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_outfile) identifier_outfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_outfile) identifier_outfile
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fernet) identifier_fernet
)attribute
(identifier_encrypt) identifier_encrypt
)attribute
(argument_list
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_dump) identifier_dump
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Encrypts and writes the current state back onto the filesystem |
(module
(function_definition
(function_name_xpath) function_name_xpath
(parameters
(identifier_self) identifier_self
(identifier_xpath) identifier_xpath
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_adapter) identifier_adapter
)attribute
(identifier_xpath_on_node) identifier_xpath_on_node
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_impl_node) identifier_impl_node
)attribute
(identifier_xpath) identifier_xpath
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_result) identifier_result
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier__maybe_wrap_node) identifier__maybe_wrap_node
)attribute
(argument_list
(identifier_r) identifier_r
)argument_list
)call
(for_in_clause
(identifier_r) identifier_r
(identifier_result) identifier_result
)for_in_clause
)list_comprehension
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__maybe_wrap_node) identifier__maybe_wrap_node
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Perform an XPath query on the current node.
:param string xpath: XPath query.
:param dict kwargs: Optional keyword arguments that are passed through
to the underlying XML library implementation.
:return: results of the query as a list of :class:`Node` objects, or
a list of base type objects if the XPath query does not reference
node objects. |
(module
(function_definition
(function_name_get_item) function_name_get_item
(parameters
(identifier_env) identifier_env
(identifier_name) identifier_name
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_key) identifier_key
(call
(attribute
(identifier_name) identifier_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_env) identifier_env
(identifier_dict) identifier_dict
)argument_list
)call
(comparison_operator
(identifier_key) identifier_key
(identifier_env) identifier_env
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(subscript
(identifier_env) identifier_env
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_env) identifier_env
(attribute
(identifier_types) identifier_types
(identifier_ModuleType) identifier_ModuleType
)attribute
)argument_list
)call
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_env) identifier_env
(identifier___dict__) identifier___dict__
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(subscript
(attribute
(identifier_env) identifier_env
(identifier___dict__) identifier___dict__
)attribute
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_env) identifier_env
)return_statement
)block
)function_definition
)module | Get an item from a dictionary, handling nested lookups with dotted notation.
Args:
env: the environment (dictionary) to use to look up the name.
name: the name to look up, in dotted notation.
default: the value to return if the name if not found.
Returns:
The result of looking up the name, if found; else the default. |
(module
(function_definition
(function_name_maxTreeDepthDivide) function_name_maxTreeDepthDivide
(parameters
(identifier_rootValue) identifier_rootValue
(default_parameter
(identifier_currentDepth) identifier_currentDepth
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_parallelLevel) identifier_parallelLevel
(integer_2) integer_2
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_thisRoot) identifier_thisRoot
(call
(attribute
(call
(attribute
(identifier_shared) identifier_shared
(identifier_getConst) identifier_getConst
)attribute
(argument_list
(string_'myTree') string_'myTree'
)argument_list
)call
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_rootValue) identifier_rootValue
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_currentDepth) identifier_currentDepth
(identifier_parallelLevel) identifier_parallelLevel
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_maxDepth) identifier_maxDepth
)attribute
(argument_list
(identifier_currentDepth) identifier_currentDepth
)argument_list
)call
)return_statement
)block
(else_clause
(block
(if_statement
(not_operator
(call
(identifier_any) identifier_any
(argument_list
(list
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_left) identifier_left
)attribute
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_right) identifier_right
)attribute
)list
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_currentDepth) identifier_currentDepth
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_all) identifier_all
(argument_list
(list
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_left) identifier_left
)attribute
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_right) identifier_right
)attribute
)list
)argument_list
)call
)not_operator
(block
(return_statement
(call
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_maxDepth) identifier_maxDepth
)attribute
(argument_list
(identifier_currentDepth) identifier_currentDepth
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(identifier_futures) identifier_futures
(identifier_map) identifier_map
)attribute
(argument_list
(identifier_maxTreeDepthDivide) identifier_maxTreeDepthDivide
(list
(attribute
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_left) identifier_left
)attribute
(identifier_payload) identifier_payload
)attribute
(attribute
(attribute
(identifier_thisRoot) identifier_thisRoot
(identifier_right) identifier_right
)attribute
(identifier_payload) identifier_payload
)attribute
)list
(call
(identifier_cycle) identifier_cycle
(argument_list
(list
(binary_operator
(identifier_currentDepth) identifier_currentDepth
(integer_1) integer_1
)binary_operator
)list
)argument_list
)call
(call
(identifier_cycle) identifier_cycle
(argument_list
(list
(identifier_parallelLevel) identifier_parallelLevel
)list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Finds a tree node that represents rootValue and computes the max depth
of this tree branch.
This function will emit new futures until currentDepth=parallelLevel |
(module
(function_definition
(function_name_header) function_name_header
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(string_"place %s\n") string_"place %s\n"
(attribute
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(identifier_city) identifier_city
)attribute
)binary_operator
(binary_operator
(string_"latitude %.2f\n") string_"latitude %.2f\n"
(attribute
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(identifier_latitude) identifier_latitude
)attribute
)binary_operator
)binary_operator
(binary_operator
(string_"longitude %.2f\n") string_"longitude %.2f\n"
(unary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(identifier_longitude) identifier_longitude
)attribute
)unary_operator
)binary_operator
)binary_operator
(binary_operator
(string_"time_zone %d\n") string_"time_zone %d\n"
(parenthesized_expression
(binary_operator
(unary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(identifier_time_zone) identifier_time_zone
)attribute
)unary_operator
(integer_15) integer_15
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
(binary_operator
(string_"site_elevation %.1f\n") string_"site_elevation %.1f\n"
(attribute
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
(identifier_elevation) identifier_elevation
)attribute
)binary_operator
)binary_operator
(string_"weather_data_file_units 1\n") string_"weather_data_file_units 1\n"
)binary_operator
)return_statement
)block
)function_definition
)module | Wea header. |
(module
(function_definition
(function_name_active_pt_window) function_name_active_pt_window
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_" The active prompt_toolkit layout Window. ") string_" The active prompt_toolkit layout Window. "
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_active_tab) identifier_active_tab
)attribute
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(attribute
(attribute
(identifier_self) identifier_self
(identifier_active_tab) identifier_active_tab
)attribute
(identifier_active_window) identifier_active_window
)attribute
)assignment
)expression_statement
(if_statement
(identifier_w) identifier_w
(block
(return_statement
(attribute
(identifier_w) identifier_w
(identifier_pt_window) identifier_pt_window
)attribute
)return_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | The active prompt_toolkit layout Window. |
(module
(function_definition
(function_name_get_user_details) function_name_get_user_details
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_account) identifier_account
(subscript
(identifier_response) identifier_response
(string_'account') string_'account'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(boolean_operator
(call
(attribute
(identifier_account) identifier_account
(identifier_get) identifier_get
)attribute
(argument_list
(string_'json_metadata') string_'json_metadata'
)argument_list
)call
(string_'{}') string_'{}'
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_account) identifier_account
(string_'json_metadata') string_'json_metadata'
)subscript
(identifier_metadata) identifier_metadata
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'id') string_'id'
(subscript
(identifier_account) identifier_account
(string_'id') string_'id'
)subscript
)pair
(pair
(string_'username') string_'username'
(subscript
(identifier_account) identifier_account
(string_'name') string_'name'
)subscript
)pair
(pair
(string_'name') string_'name'
(call
(attribute
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_get) identifier_get
)attribute
(argument_list
(string_"profile") string_"profile"
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
(string_'') string_''
)argument_list
)call
)pair
(pair
(string_'account') string_'account'
(identifier_account) identifier_account
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Return user details from GitHub account |
(module
(function_definition
(function_name_unmarshal) function_name_unmarshal
(parameters
(identifier_compoundSignature) identifier_compoundSignature
(identifier_data) identifier_data
(default_parameter
(identifier_offset) identifier_offset
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_lendian) identifier_lendian
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start_offset) identifier_start_offset
(identifier_offset) identifier_offset
)assignment
)expression_statement
(for_statement
(identifier_ct) identifier_ct
(call
(identifier_genCompleteTypes) identifier_genCompleteTypes
(argument_list
(identifier_compoundSignature) identifier_compoundSignature
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tcode) identifier_tcode
(subscript
(identifier_ct) identifier_ct
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_offset) identifier_offset
(call
(identifier_len) identifier_len
(argument_list
(call
(subscript
(identifier_pad) identifier_pad
(identifier_tcode) identifier_tcode
)subscript
(argument_list
(identifier_offset) identifier_offset
)argument_list
)call
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_nbytes) identifier_nbytes
(identifier_value) identifier_value
)pattern_list
(call
(subscript
(identifier_unmarshallers) identifier_unmarshallers
(identifier_tcode) identifier_tcode
)subscript
(argument_list
(identifier_ct) identifier_ct
(identifier_data) identifier_data
(identifier_offset) identifier_offset
(identifier_lendian) identifier_lendian
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_offset) identifier_offset
(identifier_nbytes) identifier_nbytes
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_values) identifier_values
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(binary_operator
(identifier_offset) identifier_offset
(identifier_start_offset) identifier_start_offset
)binary_operator
(identifier_values) identifier_values
)expression_list
)return_statement
)block
)function_definition
)module | Unmarshals DBus encoded data.
@type compoundSignature: C{string}
@param compoundSignature: DBus signature specifying the encoded value types
@type data: C{string}
@param data: Binary data
@type offset: C{int}
@param offset: Offset within data at which data for compoundSignature
starts (used during recursion)
@type lendian: C{bool}
@param lendian: True if data is encoded in little-endian format
@returns: (number_of_bytes_decoded, list_of_values) |
(module
(function_definition
(function_name_DeserializeTX) function_name_DeserializeTX
(parameters
(identifier_buffer) identifier_buffer
)parameters
(block
(expression_statement
(assignment
(identifier_mstream) identifier_mstream
(call
(identifier_MemoryStream) identifier_MemoryStream
(argument_list
(identifier_buffer) identifier_buffer
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(identifier_BinaryReader) identifier_BinaryReader
(argument_list
(identifier_mstream) identifier_mstream
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tx) identifier_tx
(call
(attribute
(identifier_Transaction) identifier_Transaction
(identifier_DeserializeFrom) identifier_DeserializeFrom
)attribute
(argument_list
(identifier_reader) identifier_reader
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_tx) identifier_tx
)return_statement
)block
)function_definition
)module | Deserialize the stream into a Transaction object.
Args:
buffer (BytesIO): stream to deserialize the Transaction from.
Returns:
neo.Core.TX.Transaction: |
(module
(function_definition
(function_name_run_in_greenlet) function_name_run_in_greenlet
(parameters
(identifier_callable) identifier_callable
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_callable) identifier_callable
)argument_list
)call
)decorator
(function_definition
(function_name__) function_name__
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_green) identifier_green
(call
(identifier_greenlet) identifier_greenlet
(argument_list
(identifier_callable) identifier_callable
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_green) identifier_green
(identifier_switch) identifier_switch
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(while_statement
(call
(identifier_isawaitable) identifier_isawaitable
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_green) identifier_green
(identifier_switch) identifier_switch
)attribute
(argument_list
(parenthesized_expression
(await
(identifier_result) identifier_result
)await
)parenthesized_expression
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(identifier_exc_info) identifier_exc_info
(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_result) identifier_result
(call
(attribute
(identifier_green) identifier_green
(identifier_throw) identifier_throw
)attribute
(argument_list
(list_splat
(identifier_exc_info) identifier_exc_info
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)while_statement
(return_statement
(call
(attribute
(identifier_green) identifier_green
(identifier_switch) identifier_switch
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier__) identifier__
)return_statement
)block
)function_definition
)module | Decorator to run a ``callable`` on a new greenlet.
A ``callable`` decorated with this decorator returns a coroutine |
(module
(function_definition
(function_name_CopyToDateTimeString) function_name_CopyToDateTimeString
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__timestamp) identifier__timestamp
)attribute
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_number_of_days) identifier_number_of_days
(identifier_hours) identifier_hours
(identifier_minutes) identifier_minutes
(identifier_seconds) identifier_seconds
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__GetTimeValues) identifier__GetTimeValues
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__timestamp) identifier__timestamp
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day_of_month) identifier_day_of_month
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__GetDateValuesWithEpoch) identifier__GetDateValuesWithEpoch
)attribute
(argument_list
(identifier_number_of_days) identifier_number_of_days
(attribute
(identifier_self) identifier_self
(identifier__EPOCH) identifier__EPOCH
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_microseconds) identifier_microseconds
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__timestamp) identifier__timestamp
)attribute
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(attribute
(identifier_definitions) identifier_definitions
(identifier_MICROSECONDS_PER_SECOND) identifier_MICROSECONDS_PER_SECOND
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'{0:04d}-{1:02d}-{2:02d} {3:02d}:{4:02d}:{5:02d}.{6:06d}') string_'{0:04d}-{1:02d}-{2:02d} {3:02d}:{4:02d}:{5:02d}.{6:06d}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day_of_month) identifier_day_of_month
(identifier_hours) identifier_hours
(identifier_minutes) identifier_minutes
(identifier_seconds) identifier_seconds
(identifier_microseconds) identifier_microseconds
)argument_list
)call
)return_statement
)block
)function_definition
)module | Copies the Cocoa timestamp to a date and time string.
Returns:
str: date and time value formatted as: YYYY-MM-DD hh:mm:ss.###### or
None if the timestamp cannot be copied to a date and time string. |
(module
(function_definition
(function_name_http_methods) function_name_http_methods
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_urls) identifier_urls
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_route_data) identifier_route_data
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_class_definition) identifier_class_definition
)parameters
(block
(expression_statement
(assignment
(identifier_instance) identifier_instance
(identifier_class_definition) identifier_class_definition
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_class_definition) identifier_class_definition
(identifier_type) identifier_type
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_instance) identifier_instance
(call
(identifier_class_definition) identifier_class_definition
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_router) identifier_router
(call
(attribute
(identifier_self) identifier_self
(identifier_urls) identifier_urls
)attribute
(argument_list
(conditional_expression
(identifier_urls) identifier_urls
(identifier_urls) identifier_urls
(call
(attribute
(string_"/{0}") string_"/{0}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_instance) identifier_instance
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)conditional_expression
(dictionary_splat
(identifier_route_data) identifier_route_data
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_method) identifier_method
(identifier_HTTP_METHODS) identifier_HTTP_METHODS
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_instance) identifier_instance
(call
(attribute
(identifier_method) identifier_method
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_handler) identifier_handler
(block
(expression_statement
(assignment
(identifier_http_routes) identifier_http_routes
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_handler) identifier_handler
(string_'_hug_http_routes') string_'_hug_http_routes'
(tuple
)tuple
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_http_routes) identifier_http_routes
(block
(for_statement
(identifier_route) identifier_route
(identifier_http_routes) identifier_http_routes
(block
(expression_statement
(call
(call
(identifier_http) identifier_http
(argument_list
(dictionary_splat
(attribute
(call
(attribute
(call
(attribute
(identifier_router) identifier_router
(identifier_accept) identifier_accept
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
(identifier_where) identifier_where
)attribute
(argument_list
(dictionary_splat
(identifier_route) identifier_route
)dictionary_splat
)argument_list
)call
(identifier_route) identifier_route
)attribute
)dictionary_splat
)argument_list
)call
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(call
(identifier_http) identifier_http
(argument_list
(dictionary_splat
(attribute
(call
(attribute
(identifier_router) identifier_router
(identifier_accept) identifier_accept
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
(identifier_route) identifier_route
)attribute
)dictionary_splat
)argument_list
)call
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_cli_routes) identifier_cli_routes
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_handler) identifier_handler
(string_'_hug_cli_routes') string_'_hug_cli_routes'
(tuple
)tuple
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_cli_routes) identifier_cli_routes
(block
(for_statement
(identifier_route) identifier_route
(identifier_cli_routes) identifier_cli_routes
(block
(expression_statement
(call
(call
(identifier_cli) identifier_cli
(argument_list
(dictionary_splat
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_where) identifier_where
)attribute
(argument_list
(dictionary_splat
(identifier_route) identifier_route
)dictionary_splat
)argument_list
)call
(identifier_route) identifier_route
)attribute
)dictionary_splat
)argument_list
)call
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_class_definition) identifier_class_definition
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Creates routes from a class, where the class method names should line up to HTTP METHOD types |
(module
(function_definition
(function_name_participating_ecs) function_name_participating_ecs
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__mutex) identifier__mutex
)attribute
)with_item
)with_clause
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__participating_ecs) identifier__participating_ecs
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__participating_ecs) identifier__participating_ecs
)attribute
(list_comprehension
(call
(identifier_ExecutionContext) identifier_ExecutionContext
(argument_list
(identifier_ec) identifier_ec
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__obj) identifier__obj
)attribute
(identifier_get_context_handle) identifier_get_context_handle
)attribute
(argument_list
(identifier_ec) identifier_ec
)argument_list
)call
)argument_list
)call
(line_continuation_\) line_continuation_\
(for_in_clause
(identifier_ec) identifier_ec
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__obj) identifier__obj
)attribute
(identifier_get_participating_contexts) identifier_get_participating_contexts
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__participating_ecs) identifier__participating_ecs
)attribute
)return_statement
)block
)function_definition
)module | A list of the execution contexts this component is participating in. |
(module
(function_definition
(function_name_iterrowproxy) function_name_iterrowproxy
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_cls) identifier_cls
(identifier_RowProxy) identifier_RowProxy
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_row_proxy) identifier_row_proxy
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(None) None
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_self) identifier_self
(block
(if_statement
(not_operator
(identifier_headers) identifier_headers
)not_operator
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(identifier_row) identifier_row
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_row_proxy) identifier_row_proxy
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_headers) identifier_headers
)argument_list
)call
)assignment
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(yield
(call
(attribute
(identifier_row_proxy) identifier_row_proxy
(identifier_set_row) identifier_set_row
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Iterate over the resource as row proxy objects, which allow acessing colums as attributes. Like iterrows,
but allows for setting a specific RowProxy class. |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_tabix_file) identifier_tabix_file
)attribute
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tabix_file) identifier_tabix_file
)attribute
(identifier_closed) identifier_closed
)attribute
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tabix_file) identifier_tabix_file
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Close underlying stream |
(module
(function_definition
(function_name_piped_bamprep) function_name_piped_bamprep
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_out_file) identifier_out_file
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"region") string_"region"
)subscript
(identifier_region) identifier_region
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier__need_prep) identifier__need_prep
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)not_operator
(block
(return_statement
(list
(identifier_data) identifier_data
)list
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_safe_makedir) identifier_safe_makedir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_region) identifier_region
(integer_0) integer_0
)subscript
(string_"nochrom") string_"nochrom"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_prep_bam) identifier_prep_bam
(call
(attribute
(identifier_shared) identifier_shared
(identifier_write_nochr_reads) identifier_write_nochr_reads
)attribute
(argument_list
(subscript
(identifier_data) identifier_data
(string_"work_bam") string_"work_bam"
)subscript
(identifier_out_file) identifier_out_file
(subscript
(identifier_data) identifier_data
(string_"config") string_"config"
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_region) identifier_region
(integer_0) integer_0
)subscript
(string_"noanalysis") string_"noanalysis"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_prep_bam) identifier_prep_bam
(call
(attribute
(identifier_shared) identifier_shared
(identifier_write_noanalysis_reads) identifier_write_noanalysis_reads
)attribute
(argument_list
(subscript
(identifier_data) identifier_data
(string_"work_bam") string_"work_bam"
)subscript
(subscript
(identifier_region) identifier_region
(integer_1) integer_1
)subscript
(identifier_out_file) identifier_out_file
(subscript
(identifier_data) identifier_data
(string_"config") string_"config"
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(if_statement
(not_operator
(call
(attribute
(identifier_utils) identifier_utils
(identifier_file_exists) identifier_file_exists
)attribute
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
)not_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_tx_tmpdir) identifier_tx_tmpdir
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(as_pattern_target
(identifier_tmp_dir) identifier_tmp_dir
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier__piped_bamprep_region) identifier__piped_bamprep_region
(argument_list
(identifier_data) identifier_data
(identifier_region) identifier_region
(identifier_out_file) identifier_out_file
(identifier_tmp_dir) identifier_tmp_dir
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_prep_bam) identifier_prep_bam
(identifier_out_file) identifier_out_file
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_bam) identifier_bam
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_prep_bam) identifier_prep_bam
(subscript
(identifier_data) identifier_data
(string_"config") string_"config"
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"work_bam") string_"work_bam"
)subscript
(identifier_prep_bam) identifier_prep_bam
)assignment
)expression_statement
(return_statement
(list
(identifier_data) identifier_data
)list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Perform full BAM preparation using pipes to avoid intermediate disk IO.
Handles realignment of original BAMs. |
(module
(function_definition
(function_name_add_gate_option_group) function_name_add_gate_option_group
(parameters
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(assignment
(identifier_gate_group) identifier_gate_group
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument_group) identifier_add_argument_group
)attribute
(argument_list
(string_"Options for gating data.") string_"Options for gating data."
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_gate_group) identifier_gate_group
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--gate") string_"--gate"
(keyword_argument
(identifier_nargs) identifier_nargs
(string_"+") string_"+"
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_metavar) identifier_metavar
(string_"IFO:CENTRALTIME:HALFDUR:TAPERDUR") string_"IFO:CENTRALTIME:HALFDUR:TAPERDUR"
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(concatenated_string
(string_"Apply one or more gates to the data before ") string_"Apply one or more gates to the data before "
(string_"filtering.") string_"filtering."
)concatenated_string
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_gate_group) identifier_gate_group
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--gate-overwhitened") string_"--gate-overwhitened"
(keyword_argument
(identifier_action) identifier_action
(string_"store_true") string_"store_true"
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(concatenated_string
(string_"Overwhiten data first, then apply the ") string_"Overwhiten data first, then apply the "
(string_"gates specified in --gate. Overwhitening ") string_"gates specified in --gate. Overwhitening "
(string_"allows for sharper tapers to be used, ") string_"allows for sharper tapers to be used, "
(string_"since lines are not blurred.") string_"since lines are not blurred."
)concatenated_string
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_gate_group) identifier_gate_group
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--psd-gate") string_"--psd-gate"
(keyword_argument
(identifier_nargs) identifier_nargs
(string_"+") string_"+"
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_metavar) identifier_metavar
(string_"IFO:CENTRALTIME:HALFDUR:TAPERDUR") string_"IFO:CENTRALTIME:HALFDUR:TAPERDUR"
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(concatenated_string
(string_"Apply one or more gates to the data used ") string_"Apply one or more gates to the data used "
(string_"for computing the PSD. Gates are applied ") string_"for computing the PSD. Gates are applied "
(string_"prior to FFT-ing the data for PSD ") string_"prior to FFT-ing the data for PSD "
(string_"estimation.") string_"estimation."
)concatenated_string
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_gate_group) identifier_gate_group
)return_statement
)block
)function_definition
)module | Adds the options needed to apply gates to data.
Parameters
----------
parser : object
ArgumentParser instance. |
(module
(function_definition
(function_name_write_ast) function_name_write_ast
(parameters
(identifier_patched_ast_node) identifier_patched_ast_node
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_child) identifier_child
(attribute
(identifier_patched_ast_node) identifier_patched_ast_node
(identifier_sorted_children) identifier_sorted_children
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_child) identifier_child
(attribute
(identifier_ast) identifier_ast
(identifier_AST) identifier_AST
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_write_ast) identifier_write_ast
(argument_list
(identifier_child) identifier_child
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_child) identifier_child
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Extract source form a patched AST node with `sorted_children` field
If the node is patched with sorted_children turned off you can use
`node_region` function for obtaining code using module source code. |
(module
(function_definition
(function_name_create_business_rules) function_name_create_business_rules
(parameters
(identifier_self) identifier_self
(identifier_hosts) identifier_hosts
(identifier_services) identifier_services
(identifier_hostgroups) identifier_hostgroups
(identifier_servicegroups) identifier_servicegroups
(identifier_macromodulations) identifier_macromodulations
(identifier_timeperiods) identifier_timeperiods
)parameters
(block
(for_statement
(identifier_item) identifier_item
(identifier_self) identifier_self
(block
(expression_statement
(call
(attribute
(identifier_item) identifier_item
(identifier_create_business_rules) identifier_create_business_rules
)attribute
(argument_list
(identifier_hosts) identifier_hosts
(identifier_services) identifier_services
(identifier_hostgroups) identifier_hostgroups
(identifier_servicegroups) identifier_servicegroups
(identifier_macromodulations) identifier_macromodulations
(identifier_timeperiods) identifier_timeperiods
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Loop on hosts or services and call SchedulingItem.create_business_rules
:param hosts: hosts to link to
:type hosts: alignak.objects.host.Hosts
:param services: services to link to
:type services: alignak.objects.service.Services
:param hostgroups: hostgroups to link to
:type hostgroups: alignak.objects.hostgroup.Hostgroups
:param servicegroups: servicegroups to link to
:type servicegroups: alignak.objects.servicegroup.Servicegroups
:param macromodulations: macromodulations to link to
:type macromodulations: alignak.objects.macromodulation.Macromodulations
:param timeperiods: timeperiods to link to
:type timeperiods: alignak.objects.timeperiod.Timeperiods
:return: None |
(module
(function_definition
(function_name_start_discovery) function_name_start_discovery
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_service_uuids) identifier_service_uuids
(list
)list
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_discovery_filter) identifier_discovery_filter
(dictionary
(pair
(string_'Transport') string_'Transport'
(string_'le') string_'le'
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_service_uuids) identifier_service_uuids
(block
(expression_statement
(assignment
(subscript
(identifier_discovery_filter) identifier_discovery_filter
(string_'UUIDs') string_'UUIDs'
)subscript
(identifier_service_uuids) identifier_service_uuids
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__adapter) identifier__adapter
)attribute
(identifier_SetDiscoveryFilter) identifier_SetDiscoveryFilter
)attribute
(argument_list
(identifier_discovery_filter) identifier_discovery_filter
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__adapter) identifier__adapter
)attribute
(identifier_StartDiscovery) identifier_StartDiscovery
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_dbus) identifier_dbus
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_DBusException) identifier_DBusException
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_e) identifier_e
(identifier_get_dbus_name) identifier_get_dbus_name
)attribute
(argument_list
)argument_list
)call
(string_'org.bluez.Error.NotReady') string_'org.bluez.Error.NotReady'
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_NotReady) identifier_NotReady
)attribute
(argument_list
(concatenated_string
(string_"Bluetooth adapter not ready. ") string_"Bluetooth adapter not ready. "
(string_"Set `is_adapter_powered` to `True` or run 'echo \"power on\" | sudo bluetoothctl'.") string_"Set `is_adapter_powered` to `True` or run 'echo \"power on\" | sudo bluetoothctl'."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_e) identifier_e
(identifier_get_dbus_name) identifier_get_dbus_name
)attribute
(argument_list
)argument_list
)call
(string_'org.bluez.Error.InProgress') string_'org.bluez.Error.InProgress'
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier__error_from_dbus_error) identifier__error_from_dbus_error
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Starts a discovery for BLE devices with given service UUIDs.
:param service_uuids: Filters the search to only return devices with given UUIDs. |
(module
(function_definition
(function_name_build_pattern) function_name_build_pattern
(parameters
(identifier_body) identifier_body
(identifier_features) identifier_features
)parameters
(block
(expression_statement
(assignment
(identifier_line_patterns) identifier_line_patterns
(call
(identifier_apply_features) identifier_apply_features
(argument_list
(identifier_body) identifier_body
(identifier_features) identifier_features
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_reduce) identifier_reduce
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(list_comprehension
(binary_operator
(identifier_i) identifier_i
(identifier_j) identifier_j
)binary_operator
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_j) identifier_j
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)argument_list
)call
)for_in_clause
)list_comprehension
)lambda
(identifier_line_patterns) identifier_line_patterns
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts body into a pattern i.e. a point in the features space.
Applies features to the body lines and sums up the results.
Elements of the pattern indicate how many times a certain feature occurred
in the last lines of the body. |
(module
(function_definition
(function_name_print_logins) function_name_print_logins
(parameters
(identifier_logins) identifier_logins
)parameters
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(attribute
(identifier_formatting) identifier_formatting
(identifier_Table) identifier_Table
)attribute
(argument_list
(list
(string_'Date') string_'Date'
(string_'IP Address') string_'IP Address'
(string_'Successufl Login?') string_'Successufl Login?'
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_login) identifier_login
(identifier_logins) identifier_logins
(block
(expression_statement
(call
(attribute
(identifier_table) identifier_table
(identifier_add_row) identifier_add_row
)attribute
(argument_list
(list
(call
(attribute
(identifier_login) identifier_login
(identifier_get) identifier_get
)attribute
(argument_list
(string_'createDate') string_'createDate'
)argument_list
)call
(call
(attribute
(identifier_login) identifier_login
(identifier_get) identifier_get
)attribute
(argument_list
(string_'ipAddress') string_'ipAddress'
)argument_list
)call
(call
(attribute
(identifier_login) identifier_login
(identifier_get) identifier_get
)attribute
(argument_list
(string_'successFlag') string_'successFlag'
)argument_list
)call
)list
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_table) identifier_table
)return_statement
)block
)function_definition
)module | Prints out the login history for a user |
(module
(function_definition
(function_name_is_constrained_reaction) function_name_is_constrained_reaction
(parameters
(identifier_model) identifier_model
(identifier_rxn) identifier_rxn
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_lower_bound) identifier_lower_bound
(identifier_upper_bound) identifier_upper_bound
)pattern_list
(call
(attribute
(identifier_helpers) identifier_helpers
(identifier_find_bounds) identifier_find_bounds
)attribute
(argument_list
(identifier_model) identifier_model
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_rxn) identifier_rxn
(identifier_reversibility) identifier_reversibility
)attribute
(block
(return_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_rxn) identifier_rxn
(identifier_lower_bound) identifier_lower_bound
)attribute
(identifier_lower_bound) identifier_lower_bound
)comparison_operator
(comparison_operator
(attribute
(identifier_rxn) identifier_rxn
(identifier_upper_bound) identifier_upper_bound
)attribute
(identifier_upper_bound) identifier_upper_bound
)comparison_operator
)boolean_operator
)return_statement
)block
(else_clause
(block
(return_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_rxn) identifier_rxn
(identifier_lower_bound) identifier_lower_bound
)attribute
(integer_0) integer_0
)comparison_operator
(comparison_operator
(attribute
(identifier_rxn) identifier_rxn
(identifier_upper_bound) identifier_upper_bound
)attribute
(identifier_upper_bound) identifier_upper_bound
)comparison_operator
)boolean_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return whether a reaction has fixed constraints. |
(module
(function_definition
(function_name_json_http_resp) function_name_json_http_resp
(parameters
(identifier_handler) identifier_handler
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_event) identifier_event
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_event) identifier_event
(identifier_context) identifier_context
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exception) identifier_exception
)as_pattern_target
)as_pattern
(block
(return_statement
(dictionary
(pair
(string_'statusCode') string_'statusCode'
(integer_500) integer_500
)pair
(pair
(string_'body') string_'body'
(call
(identifier_str) identifier_str
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
(return_statement
(dictionary
(pair
(string_'statusCode') string_'statusCode'
(integer_200) integer_200
)pair
(pair
(string_'body') string_'body'
(identifier_body) identifier_body
)pair
)dictionary
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Automatically serialize return value to the body of a successfull HTTP
response.
Returns a 500 error if the response cannot be serialized
Usage::
>>> from lambda_decorators import json_http_resp
>>> @json_http_resp
... def handler(event, context):
... return {'hello': 'world'}
>>> handler({}, object())
{'statusCode': 200, 'body': '{"hello": "world"}'}
in this example, the decorated handler returns:
.. code:: python
{'statusCode': 200, 'body': '{"hello": "world"}'} |
(module
(function_definition
(function_name_binds) function_name_binds
(parameters
(identifier_val) identifier_val
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(identifier_helpers) identifier_helpers
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_SaltInvocationError) identifier_SaltInvocationError
(argument_list
(call
(attribute
(concatenated_string
(string_'\'{0}\' is not a dictionary or list of bind ') string_'\'{0}\' is not a dictionary or list of bind '
(string_'definitions') string_'definitions'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_val) identifier_val
)return_statement
)block
)function_definition
)module | On the CLI, these are passed as multiple instances of a given CLI option.
In Salt, we accept these as a comma-delimited list but the API expects a
Python list. |
(module
(function_definition
(function_name_stem) function_name_stem
(parameters
(identifier_self) identifier_self
(identifier_word) identifier_word
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_stemmer) identifier_stemmer
)attribute
(block
(return_statement
(call
(identifier_unicode_to_ascii) identifier_unicode_to_ascii
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__stemmer) identifier__stemmer
)attribute
(identifier_stem) identifier_stem
)attribute
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_word) identifier_word
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Perform stemming on an input word. |
(module
(function_definition
(function_name__qvm_run) function_name__qvm_run
(parameters
(identifier_self) identifier_self
(identifier_quil_program) identifier_quil_program
(identifier_classical_addresses) identifier_classical_addresses
(identifier_trials) identifier_trials
(identifier_measurement_noise) identifier_measurement_noise
(identifier_gate_noise) identifier_gate_noise
(identifier_random_seed) identifier_random_seed
)parameters
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(identifier_qvm_run_payload) identifier_qvm_run_payload
(argument_list
(identifier_quil_program) identifier_quil_program
(identifier_classical_addresses) identifier_classical_addresses
(identifier_trials) identifier_trials
(identifier_measurement_noise) identifier_measurement_noise
(identifier_gate_noise) identifier_gate_noise
(identifier_random_seed) identifier_random_seed
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_post_json) identifier_post_json
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_sync_endpoint) identifier_sync_endpoint
)attribute
(string_"/qvm") string_"/qvm"
)binary_operator
(identifier_payload) identifier_payload
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ram) identifier_ram
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(call
(attribute
(identifier_ram) identifier_ram
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_ram) identifier_ram
(identifier_k) identifier_k
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(subscript
(identifier_ram) identifier_ram
(identifier_k) identifier_k
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_ram) identifier_ram
)return_statement
)block
)function_definition
)module | Run a Forest ``run`` job on a QVM.
Users should use :py:func:`QVM.run` instead of calling this directly. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_gandi) identifier_gandi
(identifier_address) identifier_address
(identifier_force) identifier_force
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_source) identifier_source
(identifier_domain) identifier_domain
)pattern_list
(identifier_address) identifier_address
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_force) identifier_force
)not_operator
(block
(expression_statement
(assignment
(identifier_proceed) identifier_proceed
(call
(attribute
(identifier_click) identifier_click
(identifier_confirm) identifier_confirm
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_'Are you sure to delete the domain ') string_'Are you sure to delete the domain '
(string_'mail forward %s@%s ?') string_'mail forward %s@%s ?'
)concatenated_string
(tuple
(identifier_source) identifier_source
(identifier_domain) identifier_domain
)tuple
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_proceed) identifier_proceed
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_gandi) identifier_gandi
(identifier_forward) identifier_forward
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_domain) identifier_domain
(identifier_source) identifier_source
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Delete a domain mail forward. |
(module
(function_definition
(function_name_embedding) function_name_embedding
(parameters
(identifier_x) identifier_x
(identifier_vocab_size) identifier_vocab_size
(identifier_dense_size) identifier_dense_size
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_reuse) identifier_reuse
(None) None
)default_parameter
(default_parameter
(identifier_multiplier) identifier_multiplier
(float_1.0) float_1.0
)default_parameter
(default_parameter
(identifier_symbol_dropout_rate) identifier_symbol_dropout_rate
(float_0.0) float_0.0
)default_parameter
(default_parameter
(identifier_embedding_var) identifier_embedding_var
(None) None
)default_parameter
(default_parameter
(identifier_dtype) identifier_dtype
(attribute
(identifier_tf) identifier_tf
(identifier_float32) identifier_float32
)attribute
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_variable_scope) identifier_variable_scope
)attribute
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_default_name) identifier_default_name
(string_"embedding") string_"embedding"
)keyword_argument
(keyword_argument
(identifier_values) identifier_values
(list
(identifier_x) identifier_x
)list
)keyword_argument
(keyword_argument
(identifier_reuse) identifier_reuse
(identifier_reuse) identifier_reuse
)keyword_argument
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(identifier_embedding_var) identifier_embedding_var
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_embedding_var) identifier_embedding_var
(call
(attribute
(identifier_tf) identifier_tf
(identifier_get_variable) identifier_get_variable
)attribute
(argument_list
(string_"kernel") string_"kernel"
(list
(identifier_vocab_size) identifier_vocab_size
(identifier_dense_size) identifier_dense_size
)list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_tf) identifier_tf
(identifier_executing_eagerly) identifier_executing_eagerly
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_embedding_var) identifier_embedding_var
(call
(identifier_convert_gradient_to_tensor) identifier_convert_gradient_to_tensor
(argument_list
(identifier_embedding_var) identifier_embedding_var
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_dropout_no_scaling) identifier_dropout_no_scaling
(argument_list
(identifier_x) identifier_x
(binary_operator
(float_1.0) float_1.0
(identifier_symbol_dropout_rate) identifier_symbol_dropout_rate
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_emb_x) identifier_emb_x
(call
(identifier_gather) identifier_gather
(argument_list
(identifier_embedding_var) identifier_embedding_var
(identifier_x) identifier_x
(identifier_dtype) identifier_dtype
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_multiplier) identifier_multiplier
(float_1.0) float_1.0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_emb_x) identifier_emb_x
(identifier_multiplier) identifier_multiplier
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_static_shape) identifier_static_shape
(call
(attribute
(attribute
(identifier_emb_x) identifier_emb_x
(identifier_shape) identifier_shape
)attribute
(identifier_as_list) identifier_as_list
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_static_shape) identifier_static_shape
)argument_list
)call
(integer_5) integer_5
)comparison_operator
(block
(return_statement
(identifier_emb_x) identifier_emb_x
)return_statement
)block
)if_statement
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_static_shape) identifier_static_shape
)argument_list
)call
(integer_5) integer_5
)comparison_operator
)assert_statement
(return_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_squeeze) identifier_squeeze
)attribute
(argument_list
(identifier_emb_x) identifier_emb_x
(integer_3) integer_3
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Embed x of type int64 into dense vectors, reducing to max 4 dimensions. |
(module
(function_definition
(function_name_resolve) function_name_resolve
(parameters
(identifier_self) identifier_self
(identifier_link_resource_type) identifier_link_resource_type
(identifier_resource_id) identifier_resource_id
(default_parameter
(identifier_array) identifier_array
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_array) identifier_array
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_container) identifier_container
(call
(attribute
(attribute
(identifier_array) identifier_array
(identifier_items_mapped) identifier_items_mapped
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_link_resource_type) identifier_link_resource_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_container) identifier_container
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_resource_id) identifier_resource_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_clz) identifier_clz
(call
(attribute
(identifier_utils) identifier_utils
(identifier_class_for_type) identifier_class_for_type
)attribute
(argument_list
(identifier_link_resource_type) identifier_link_resource_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_fetch) identifier_fetch
)attribute
(argument_list
(identifier_clz) identifier_clz
)argument_list
)call
(identifier_where) identifier_where
)attribute
(argument_list
(dictionary
(pair
(string_'sys.id') string_'sys.id'
(identifier_resource_id) identifier_resource_id
)pair
)dictionary
)argument_list
)call
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Resolve a link to a CDA resource.
Provided an `array` argument, attempt to retrieve the resource from the `mapped_items`
section of that array (containing both included and regular resources), in case the
resource cannot be found in the array (or if no `array` was provided) - attempt to fetch
the resource from the API by issuing a network request.
:param link_resource_type: (str) Resource type as str.
:param resource_id: (str) Remote ID of the linked resource.
:param array: (:class:`.Array`) Optional array resource.
:return: :class:`.Resource` subclass, `None` if it cannot be retrieved. |
(module
(function_definition
(function_name_check_for_completion) function_name_check_for_completion
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_job_result_obj) identifier_job_result_obj
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_job_status) identifier_job_status
(subscript
(identifier_job_result_obj) identifier_job_result_obj
(string_'status') string_'status'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_job_status) identifier_job_status
(string_'complete') string_'complete'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_op_status_code) identifier_op_status_code
(subscript
(identifier_job_result_obj) identifier_job_result_obj
(string_'job-status-code') string_'job-status-code'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_op_status_code) identifier_op_status_code
(tuple
(integer_200) integer_200
(integer_201) integer_201
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(identifier_op_result_obj) identifier_op_result_obj
(call
(attribute
(identifier_job_result_obj) identifier_job_result_obj
(identifier_get) identifier_get
)attribute
(argument_list
(string_'job-results') string_'job-results'
(None) None
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_op_status_code) identifier_op_status_code
(integer_204) integer_204
)comparison_operator
(block
(expression_statement
(assignment
(identifier_op_result_obj) identifier_op_result_obj
(None) None
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_error_result_obj) identifier_error_result_obj
(call
(attribute
(identifier_job_result_obj) identifier_job_result_obj
(identifier_get) identifier_get
)attribute
(argument_list
(string_'job-results') string_'job-results'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_error_result_obj) identifier_error_result_obj
)not_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(None) None
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(string_'message') string_'message'
(identifier_error_result_obj) identifier_error_result_obj
)comparison_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(subscript
(identifier_error_result_obj) identifier_error_result_obj
(string_'message') string_'message'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(string_'error') string_'error'
(identifier_error_result_obj) identifier_error_result_obj
)comparison_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(subscript
(identifier_error_result_obj) identifier_error_result_obj
(string_'error') string_'error'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_error_obj) identifier_error_obj
(dictionary
(pair
(string_'http-status') string_'http-status'
(identifier_op_status_code) identifier_op_status_code
)pair
(pair
(string_'reason') string_'reason'
(subscript
(identifier_job_result_obj) identifier_job_result_obj
(string_'job-reason-code') string_'job-reason-code'
)subscript
)pair
(pair
(string_'message') string_'message'
(identifier_message) identifier_message
)pair
(pair
(string_'request-method') string_'request-method'
(attribute
(identifier_self) identifier_self
(identifier_op_method) identifier_op_method
)attribute
)pair
(pair
(string_'request-uri') string_'request-uri'
(attribute
(identifier_self) identifier_self
(identifier_op_uri) identifier_op_uri
)attribute
)pair
)dictionary
)assignment
)expression_statement
(raise_statement
(call
(identifier_HTTPError) identifier_HTTPError
(argument_list
(identifier_error_obj) identifier_error_obj
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_op_result_obj) identifier_op_result_obj
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_job_status) identifier_job_status
(identifier_op_result_obj) identifier_op_result_obj
)expression_list
)return_statement
)block
)function_definition
)module | Check once for completion of the job and return completion status and
result if it has completed.
If the job completed in error, an :exc:`~zhmcclient.HTTPError`
exception is raised.
Returns:
: A tuple (status, result) with:
* status (:term:`string`): Completion status of the job, as
returned in the ``status`` field of the response body of the
"Query Job Status" HMC operation, as follows:
* ``"complete"``: Job completed (successfully).
* any other value: Job is not yet complete.
* result (:term:`json object` or `None`): `None` for incomplete
jobs. For completed jobs, the result of the original asynchronous
operation that was performed by the job, from the ``job-results``
field of the response body of the "Query Job Status" HMC
operation. That result is a :term:`json object` as described
for the asynchronous operation, or `None` if the operation has no
result.
Raises:
:exc:`~zhmcclient.HTTPError`: The job completed in error, or the job
status cannot be retrieved, or the job cannot be deleted.
:exc:`~zhmcclient.ParseError`
:exc:`~zhmcclient.ClientAuthError`
:exc:`~zhmcclient.ServerAuthError`
:exc:`~zhmcclient.ConnectionError` |
(module
(function_definition
(function_name__ssh_client) function_name__ssh_client
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ssh) identifier_ssh
(call
(attribute
(identifier_paramiko) identifier_paramiko
(identifier_SSHClient) identifier_SSHClient
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ssh) identifier_ssh
(identifier_load_system_host_keys) identifier_load_system_host_keys
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ssh) identifier_ssh
(identifier_set_missing_host_key_policy) identifier_set_missing_host_key_policy
)attribute
(argument_list
(call
(attribute
(identifier_paramiko) identifier_paramiko
(identifier_RejectPolicy) identifier_RejectPolicy
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_ssh) identifier_ssh
)return_statement
)block
)function_definition
)module | Gets an SSH client to connect with. |
(module
(function_definition
(function_name_get_app) function_name_get_app
(parameters
(identifier_opts) identifier_opts
)parameters
(block
(expression_statement
(assignment
(identifier_apiopts) identifier_apiopts
(call
(attribute
(identifier_opts) identifier_opts
(identifier_get) identifier_get
)attribute
(argument_list
(subscript
(call
(attribute
(identifier___name__) identifier___name__
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'.') string_'.'
(integer_2) integer_2
)argument_list
)call
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_cherrypy) identifier_cherrypy
(identifier_config) identifier_config
)attribute
(string_'saltopts') string_'saltopts'
)subscript
(identifier_opts) identifier_opts
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_cherrypy) identifier_cherrypy
(identifier_config) identifier_config
)attribute
(string_'apiopts') string_'apiopts'
)subscript
(identifier_apiopts) identifier_apiopts
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(identifier_API) identifier_API
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cpyopts) identifier_cpyopts
(call
(attribute
(identifier_root) identifier_root
(identifier_get_conf) identifier_get_conf
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_root) identifier_root
(identifier_apiopts) identifier_apiopts
(identifier_cpyopts) identifier_cpyopts
)expression_list
)return_statement
)block
)function_definition
)module | Returns a WSGI app and a configuration dictionary |
(module
(function_definition
(function_name_list_extensions) function_name_list_extensions
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_blacklist) identifier_blacklist
(call
(identifier_set) identifier_set
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_settings) identifier_settings
(string_'OPENSTACK_NOVA_EXTENSIONS_BLACKLIST') string_'OPENSTACK_NOVA_EXTENSIONS_BLACKLIST'
(list
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nova_api) identifier_nova_api
(call
(attribute
(identifier__nova) identifier__nova
(identifier_novaclient) identifier_novaclient
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(generator_expression
(identifier_extension) identifier_extension
(for_in_clause
(identifier_extension) identifier_extension
(call
(attribute
(call
(attribute
(identifier_nova_list_extensions) identifier_nova_list_extensions
(identifier_ListExtManager) identifier_ListExtManager
)attribute
(argument_list
(identifier_nova_api) identifier_nova_api
)argument_list
)call
(identifier_show_all) identifier_show_all
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_extension) identifier_extension
(identifier_name) identifier_name
)attribute
(identifier_blacklist) identifier_blacklist
)comparison_operator
)if_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | List all nova extensions, except the ones in the blacklist. |
(module
(function_definition
(function_name_response) function_name_response
(parameters
(identifier_code) identifier_code
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier__ret_json) identifier__ret_json
(call
(identifier_jsonify) identifier_jsonify
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(identifier_make_response) identifier_make_response
(argument_list
(identifier__ret_json) identifier__ret_json
(identifier_code) identifier_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_resp) identifier_resp
(identifier_headers) identifier_headers
)attribute
(string_"Content-Type") string_"Content-Type"
)subscript
(string_"application/json; charset=utf-8") string_"application/json; charset=utf-8"
)assignment
)expression_statement
(return_statement
(identifier_resp) identifier_resp
)return_statement
)block
)function_definition
)module | Generic HTTP JSON response method
:param code: HTTP code (int)
:param kwargs: Data structure for response (dict)
:return: HTTP Json response |
(module
(function_definition
(function_name_trace2array) function_name_trace2array
(parameters
(identifier_self) identifier_self
(identifier_sl) identifier_sl
)parameters
(block
(expression_statement
(assignment
(identifier_chain) identifier_chain
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_stochastic) identifier_stochastic
(attribute
(identifier_self) identifier_self
(identifier_stochastics) identifier_stochastics
)attribute
(block
(expression_statement
(assignment
(identifier_tr) identifier_tr
(call
(attribute
(attribute
(identifier_stochastic) identifier_stochastic
(identifier_trace) identifier_trace
)attribute
(identifier_gettrace) identifier_gettrace
)attribute
(argument_list
(keyword_argument
(identifier_slicing) identifier_slicing
(identifier_sl) identifier_sl
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tr) identifier_tr
(None) None
)comparison_operator
(block
(raise_statement
(identifier_AttributeError) identifier_AttributeError
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_chain) identifier_chain
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_tr) identifier_tr
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_hstack) identifier_hstack
)attribute
(argument_list
(identifier_chain) identifier_chain
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an array with the trace of all stochastics, sliced by sl. |
(module
(function_definition
(function_name__update_element) function_name__update_element
(parameters
(identifier_name) identifier_name
(identifier_element_type) identifier_element_type
(identifier_data) identifier_data
(default_parameter
(identifier_server) identifier_server
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(identifier_quote) identifier_quote
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_safe) identifier_safe
(string_'') string_''
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'properties') string_'properties'
(identifier_data) identifier_data
)comparison_operator
(block
(expression_statement
(assignment
(identifier_properties) identifier_properties
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(subscript
(identifier_data) identifier_data
(string_'properties') string_'properties'
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_properties) identifier_properties
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'name') string_'name'
(identifier_key) identifier_key
)pair
(pair
(string_'value') string_'value'
(identifier_value) identifier_value
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier__api_post) identifier__api_post
(argument_list
(call
(attribute
(string_'{0}/{1}/property') string_'{0}/{1}/property'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_element_type) identifier_element_type
(identifier_name) identifier_name
)argument_list
)call
(identifier_properties) identifier_properties
(identifier_server) identifier_server
)argument_list
)call
)expression_statement
(delete_statement
(subscript
(identifier_data) identifier_data
(string_'properties') string_'properties'
)subscript
)delete_statement
(if_statement
(not_operator
(identifier_data) identifier_data
)not_operator
(block
(return_statement
(call
(identifier_unquote) identifier_unquote
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_update_data) identifier_update_data
(call
(identifier__get_element) identifier__get_element
(argument_list
(identifier_name) identifier_name
(identifier_element_type) identifier_element_type
(identifier_server) identifier_server
(keyword_argument
(identifier_with_properties) identifier_with_properties
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_update_data) identifier_update_data
(block
(expression_statement
(call
(attribute
(identifier_update_data) identifier_update_data
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier___context__) identifier___context__
(string_'retcode') string_'retcode'
)subscript
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_defaults) identifier_defaults
)attribute
(identifier_exitcodes) identifier_exitcodes
)attribute
(identifier_SALT_BUILD_FAIL) identifier_SALT_BUILD_FAIL
)attribute
)assignment
)expression_statement
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_'Cannot update {0}') string_'Cannot update {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier__api_post) identifier__api_post
(argument_list
(call
(attribute
(string_'{0}/{1}') string_'{0}/{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_element_type) identifier_element_type
(identifier_name) identifier_name
)argument_list
)call
(call
(identifier__clean_data) identifier__clean_data
(argument_list
(identifier_update_data) identifier_update_data
)argument_list
)call
(identifier_server) identifier_server
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_unquote) identifier_unquote
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update an element, including it's properties |
(module
(function_definition
(function_name_vertical_percent) function_name_vertical_percent
(parameters
(identifier_plot) identifier_plot
(default_parameter
(identifier_percent) identifier_percent
(float_0.1) float_0.1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_plot_bottom) identifier_plot_bottom
(identifier_plot_top) identifier_plot_top
)pattern_list
(call
(attribute
(identifier_plot) identifier_plot
(identifier_get_ylim) identifier_get_ylim
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_percent) identifier_percent
(parenthesized_expression
(binary_operator
(identifier_plot_top) identifier_plot_top
(identifier_plot_bottom) identifier_plot_bottom
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Using the size of the y axis, return a fraction of that size. |
(module
(function_definition
(function_name_source_components) function_name_source_components
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_raw_sccs) identifier_raw_sccs
(call
(attribute
(identifier_self) identifier_self
(identifier__component_graph) identifier__component_graph
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vertex_to_root) identifier_vertex_to_root
(call
(attribute
(identifier_self) identifier_self
(identifier_vertex_dict) identifier_vertex_dict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_non_sources) identifier_non_sources
(call
(attribute
(identifier_self) identifier_self
(identifier_vertex_set) identifier_vertex_set
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_scc) identifier_scc
(identifier_raw_sccs) identifier_raw_sccs
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(subscript
(subscript
(identifier_scc) identifier_scc
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_item_type) identifier_item_type
(identifier_w) identifier_w
)pattern_list
(identifier_scc) identifier_scc
(block
(if_statement
(comparison_operator
(identifier_item_type) identifier_item_type
(string_'VERTEX') string_'VERTEX'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_vertex_to_root) identifier_vertex_to_root
(identifier_w) identifier_w
)subscript
(identifier_root) identifier_root
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_item_type) identifier_item_type
(string_'EDGE') string_'EDGE'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_non_sources) identifier_non_sources
(identifier_add) identifier_add
)attribute
(argument_list
(subscript
(identifier_vertex_to_root) identifier_vertex_to_root
(identifier_w) identifier_w
)subscript
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_sccs) identifier_sccs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_raw_scc) identifier_raw_scc
(identifier_raw_sccs) identifier_raw_sccs
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(subscript
(subscript
(identifier_raw_scc) identifier_raw_scc
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_root) identifier_root
(identifier_non_sources) identifier_non_sources
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_sccs) identifier_sccs
(identifier_append) identifier_append
)attribute
(argument_list
(list_comprehension
(identifier_v) identifier_v
(for_in_clause
(pattern_list
(identifier_vtype) identifier_vtype
(identifier_v) identifier_v
)pattern_list
(identifier_raw_scc) identifier_raw_scc
)for_in_clause
(if_clause
(comparison_operator
(identifier_vtype) identifier_vtype
(string_'VERTEX') string_'VERTEX'
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_full_subgraph) identifier_full_subgraph
)attribute
(argument_list
(identifier_scc) identifier_scc
)argument_list
)call
(for_in_clause
(identifier_scc) identifier_scc
(identifier_sccs) identifier_sccs
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return the strongly connected components not reachable from any other
component. Any component in the graph is reachable from one of these. |
(module
(function_definition
(function_name_noise_get_turbulence) function_name_noise_get_turbulence
(parameters
(typed_parameter
(identifier_n) identifier_n
(type
(attribute
(attribute
(identifier_tcod) identifier_tcod
(identifier_noise) identifier_noise
)attribute
(identifier_Noise) identifier_Noise
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_f) identifier_f
(type
(generic_type
(identifier_Sequence) identifier_Sequence
(type_parameter
(type
(identifier_float) identifier_float
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_oc) identifier_oc
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_default_parameter
(identifier_typ) identifier_typ
(type
(identifier_int) identifier_int
)type
(identifier_NOISE_DEFAULT) identifier_NOISE_DEFAULT
)typed_default_parameter
)parameters
(type
(identifier_float) identifier_float
)type
(block
(return_statement
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_lib) identifier_lib
(identifier_TCOD_noise_get_turbulence_ex) identifier_TCOD_noise_get_turbulence_ex
)attribute
(argument_list
(attribute
(identifier_n) identifier_n
(identifier_noise_c) identifier_noise_c
)attribute
(call
(attribute
(identifier_ffi) identifier_ffi
(identifier_new) identifier_new
)attribute
(argument_list
(string_"float[4]") string_"float[4]"
(identifier_f) identifier_f
)argument_list
)call
(identifier_oc) identifier_oc
(identifier_typ) identifier_typ
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the turbulence noise sampled from the ``f`` coordinate.
Args:
n (Noise): A Noise instance.
f (Sequence[float]): The point to sample the noise from.
typ (int): The noise algorithm to use.
octaves (float): The level of level. Should be more than 1.
Returns:
float: The sampled noise value. |
(module
(function_definition
(function_name_create_aql_text) function_name_create_aql_text
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_aql_query_text) identifier_aql_query_text
(string_"") string_""
)assignment
)expression_statement
(for_statement
(identifier_arg) identifier_arg
(identifier_args) identifier_args
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_arg) identifier_arg
(call
(attribute
(string_"({})") string_"({})"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_arg) identifier_arg
(call
(attribute
(call
(attribute
(call
(attribute
(string_"({})") string_"({})"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"[") string_"["
(string_"") string_""
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"]") string_"]"
(string_"") string_""
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(augmented_assignment
(identifier_aql_query_text) identifier_aql_query_text
(identifier_arg) identifier_arg
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_aql_query_text) identifier_aql_query_text
)return_statement
)block
)function_definition
)module | Create AQL querty from string or list or dict arguments |
(module
(function_definition
(function_name__get_qvm_with_topology) function_name__get_qvm_with_topology
(parameters
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_topology) identifier_topology
(type
(attribute
(identifier_nx) identifier_nx
(identifier_Graph) identifier_Graph
)attribute
)type
)typed_parameter
(typed_default_parameter
(identifier_noisy) identifier_noisy
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_requires_executable) identifier_requires_executable
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
(typed_default_parameter
(identifier_connection) identifier_connection
(type
(identifier_ForestConnection) identifier_ForestConnection
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_qvm_type) identifier_qvm_type
(type
(identifier_str) identifier_str
)type
(string_'qvm') string_'qvm'
)typed_default_parameter
)parameters
(type
(identifier_QuantumComputer) identifier_QuantumComputer
)type
(block
(expression_statement
(assignment
(identifier_device) identifier_device
(call
(identifier_NxDevice) identifier_NxDevice
(argument_list
(keyword_argument
(identifier_topology) identifier_topology
(identifier_topology) identifier_topology
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_noisy) identifier_noisy
(block
(expression_statement
(assignment
(identifier_noise_model) identifier_noise_model
(call
(identifier_decoherence_noise_with_asymmetric_ro) identifier_decoherence_noise_with_asymmetric_ro
(argument_list
(keyword_argument
(identifier_gates) identifier_gates
(call
(identifier_gates_in_isa) identifier_gates_in_isa
(argument_list
(call
(attribute
(identifier_device) identifier_device
(identifier_get_isa) identifier_get_isa
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_noise_model) identifier_noise_model
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier__get_qvm_qc) identifier__get_qvm_qc
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_qvm_type) identifier_qvm_type
(identifier_qvm_type) identifier_qvm_type
)keyword_argument
(keyword_argument
(identifier_connection) identifier_connection
(identifier_connection) identifier_connection
)keyword_argument
(keyword_argument
(identifier_device) identifier_device
(identifier_device) identifier_device
)keyword_argument
(keyword_argument
(identifier_noise_model) identifier_noise_model
(identifier_noise_model) identifier_noise_model
)keyword_argument
(keyword_argument
(identifier_requires_executable) identifier_requires_executable
(identifier_requires_executable) identifier_requires_executable
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a QVM with the provided topology.
:param name: A name for your quantum computer. This field does not affect behavior of the
constructed QuantumComputer.
:param topology: A graph representing the desired qubit connectivity.
:param noisy: Whether to include a generic noise model. If you want more control over
the noise model, please construct your own :py:class:`NoiseModel` and use
:py:func:`_get_qvm_qc` instead of this function.
:param requires_executable: Whether this QVM will refuse to run a :py:class:`Program` and
only accept the result of :py:func:`compiler.native_quil_to_executable`. Setting this
to True better emulates the behavior of a QPU.
:param connection: An optional :py:class:`ForestConnection` object. If not specified,
the default values for URL endpoints will be used.
:param qvm_type: The type of QVM. Either 'qvm' or 'pyqvm'.
:return: A pre-configured QuantumComputer |
(module
(function_definition
(function_name_sort_url) function_name_sort_url
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(boolean_operator
(boolean_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_sort_direction) identifier_sort_direction
)attribute
(string_"asc") string_"asc"
)comparison_operator
)parenthesized_expression
(string_"-") string_"-"
)boolean_operator
(string_"") string_""
)boolean_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_get_url) identifier_get_url
)attribute
(argument_list
(keyword_argument
(identifier_order_by) identifier_order_by
(binary_operator
(identifier_prefix) identifier_prefix
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)binary_operator
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the URL to sort the linked table by this column. If the
table is already sorted by this column, the order is reversed.
Since there is no canonical URL for a table the current URL (via
the HttpRequest linked to the Table instance) is reused, and any
unrelated parameters will be included in the output. |
(module
(function_definition
(function_name_get_var_count) function_name_get_var_count
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_c_int) identifier_c_int
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_library) identifier_library
)attribute
(identifier_get_var_count) identifier_get_var_count
)attribute
(identifier_argtypes) identifier_argtypes
)attribute
(list
(call
(identifier_POINTER) identifier_POINTER
(argument_list
(identifier_c_int) identifier_c_int
)argument_list
)call
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_library) identifier_library
)attribute
(identifier_get_var_count) identifier_get_var_count
)attribute
(argument_list
(call
(identifier_byref) identifier_byref
(argument_list
(identifier_n) identifier_n
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_n) identifier_n
(identifier_value) identifier_value
)attribute
)return_statement
)block
)function_definition
)module | Return number of variables |
(module
(function_definition
(function_name_system_exit_exception_handler) function_name_system_exit_exception_handler
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_reporter) identifier_reporter
(call
(identifier_Reporter) identifier_Reporter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_reporter) identifier_reporter
(identifier_Footer_label) identifier_Footer_label
)attribute
(identifier_setText) identifier_setText
)attribute
(argument_list
(call
(attribute
(string_"The severity of this exception is critical, <b>{0}</b> cannot continue and will now close!") string_"The severity of this exception is critical, <b>{0}</b> cannot continue and will now close!"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_Constants) identifier_Constants
(identifier_application_name) identifier_application_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_base_exception_handler) identifier_base_exception_handler
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_foundations) identifier_foundations
(identifier_core) identifier_core
)attribute
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Provides a system exit exception handler.
:param \*args: Arguments.
:type \*args: \*
:return: Definition success.
:rtype: bool |
(module
(function_definition
(function_name_append) function_name_append
(parameters
(identifier_a) identifier_a
(identifier_vancestors) identifier_vancestors
)parameters
(block
(expression_statement
(assignment
(identifier_add) identifier_add
(True) True
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_j) identifier_j
(identifier_va) identifier_va
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_vancestors) identifier_vancestors
)argument_list
)call
(block
(if_statement
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_va) identifier_va
(identifier_a) identifier_a
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_add) identifier_add
(False) False
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
(if_statement
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_a) identifier_a
(identifier_va) identifier_va
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_vancestors) identifier_vancestors
(identifier_j) identifier_j
)subscript
(identifier_a) identifier_a
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_add) identifier_add
(False) False
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_add) identifier_add
(block
(expression_statement
(call
(attribute
(identifier_vancestors) identifier_vancestors
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Append ``a`` to the list of the virtual ancestors, unless it is already
included. |
(module
(function_definition
(function_name_features) function_name_features
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(set
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_BAN) identifier_BAN
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_BAN_WITH_KICK) identifier_BAN_WITH_KICK
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_KICK) identifier_KICK
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_SEND_MESSAGE) identifier_SEND_MESSAGE
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_SEND_MESSAGE_TRACKED) identifier_SEND_MESSAGE_TRACKED
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_SET_TOPIC) identifier_SET_TOPIC
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_SET_NICK) identifier_SET_NICK
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_INVITE) identifier_INVITE
)attribute
(attribute
(attribute
(attribute
(attribute
(identifier_aioxmpp) identifier_aioxmpp
(identifier_im) identifier_im
)attribute
(identifier_conversation) identifier_conversation
)attribute
(identifier_ConversationFeature) identifier_ConversationFeature
)attribute
(identifier_INVITE_DIRECT) identifier_INVITE_DIRECT
)attribute
)set
)return_statement
)block
)function_definition
)module | The set of features supported by this MUC. This may vary depending on
features exported by the MUC service, so be sure to check this for each
individual MUC. |
(module
(function_definition
(function_name_match_date) function_name_match_date
(parameters
(identifier_date) identifier_date
(identifier_date_pattern) identifier_date_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
(identifier_day_of_week) identifier_day_of_week
)pattern_list
(identifier_date) identifier_date
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_year_p) identifier_year_p
(identifier_month_p) identifier_month_p
(identifier_day_p) identifier_day_p
(identifier_day_of_week_p) identifier_day_of_week_p
)pattern_list
(identifier_date_pattern) identifier_date_pattern
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_year_p) identifier_year_p
(integer_255) integer_255
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(identifier_year) identifier_year
(identifier_year_p) identifier_year_p
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(identifier_month_p) identifier_month_p
(integer_255) integer_255
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(identifier_month_p) identifier_month_p
(integer_13) integer_13
)comparison_operator
(block
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_month) identifier_month
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_month_p) identifier_month_p
(integer_14) integer_14
)comparison_operator
(block
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_month) identifier_month
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_month) identifier_month
(identifier_month_p) identifier_month_p
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(identifier_day_p) identifier_day_p
(integer_255) integer_255
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(identifier_day_p) identifier_day_p
(integer_32) integer_32
)comparison_operator
(block
(expression_statement
(assignment
(identifier_last_day) identifier_last_day
(subscript
(call
(attribute
(identifier_calendar) identifier_calendar
(identifier_monthrange) identifier_monthrange
)attribute
(argument_list
(binary_operator
(identifier_year) identifier_year
(integer_1900) integer_1900
)binary_operator
(identifier_month) identifier_month
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_day) identifier_day
(identifier_last_day) identifier_last_day
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_day_p) identifier_day_p
(integer_33) integer_33
)comparison_operator
(block
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_day) identifier_day
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_day_p) identifier_day_p
(integer_34) integer_34
)comparison_operator
(block
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_day) identifier_day
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_day) identifier_day
(identifier_day_p) identifier_day_p
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(identifier_day_of_week_p) identifier_day_of_week_p
(integer_255) integer_255
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(identifier_day_of_week) identifier_day_of_week
(identifier_day_of_week_p) identifier_day_of_week_p
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Match a specific date, a four-tuple with no special values, with a date
pattern, four-tuple possibly having special values. |
(module
(function_definition
(function_name__get_entities) function_name__get_entities
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(default_parameter
(identifier_language) identifier_language
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(dictionary
(pair
(string_'document') string_'document'
(dictionary
(pair
(string_'type') string_'type'
(string_'PLAIN_TEXT') string_'PLAIN_TEXT'
)pair
(pair
(string_'content') string_'content'
(identifier_text) identifier_text
)pair
)dictionary
)pair
(pair
(string_'encodingType') string_'encodingType'
(string_'UTF32') string_'UTF32'
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_language) identifier_language
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_body) identifier_body
(string_'document') string_'document'
)subscript
(string_'language') string_'language'
)subscript
(identifier_language) identifier_language
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier_documents) identifier_documents
)attribute
(argument_list
)argument_list
)call
(identifier_analyzeEntities) identifier_analyzeEntities
)attribute
(argument_list
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_request) identifier_request
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_entity) identifier_entity
(call
(attribute
(identifier_response) identifier_response
(identifier_get) identifier_get
)attribute
(argument_list
(string_'entities') string_'entities'
(list
)list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mentions) identifier_mentions
(call
(attribute
(identifier_entity) identifier_entity
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mentions') string_'mentions'
(list
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_mentions) identifier_mentions
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_entity_text) identifier_entity_text
(subscript
(subscript
(identifier_mentions) identifier_mentions
(integer_0) integer_0
)subscript
(string_'text') string_'text'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_offset) identifier_offset
(subscript
(identifier_entity_text) identifier_entity_text
(string_'beginOffset') string_'beginOffset'
)subscript
)assignment
)expression_statement
(for_statement
(identifier_word) identifier_word
(call
(attribute
(subscript
(identifier_entity_text) identifier_entity_text
(string_'content') string_'content'
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'content') string_'content'
(identifier_word) identifier_word
)pair
(pair
(string_'beginOffset') string_'beginOffset'
(identifier_offset) identifier_offset
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_offset) identifier_offset
(call
(identifier_len) identifier_len
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Returns the list of entities retrieved from the given text.
Args:
text (str): Input text.
language (:obj:`str`, optional): Language code.
Returns:
List of entities. |
(module
(function_definition
(function_name_process_results) function_name_process_results
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_result) identifier_result
(attribute
(identifier_self) identifier_self
(identifier__results) identifier__results
)attribute
(block
(expression_statement
(assignment
(identifier_provider) identifier_provider
(attribute
(identifier_result) identifier_result
(identifier_provider) identifier_provider
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_providers) identifier_providers
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_provider) identifier_provider
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_result) identifier_result
(identifier_error) identifier_error
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_failed_providers) identifier_failed_providers
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_provider) identifier_provider
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_result) identifier_result
(identifier_response) identifier_response
)attribute
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_blacklisted) identifier_blacklisted
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_provider_categories) identifier_provider_categories
(call
(attribute
(identifier_provider) identifier_provider
(identifier_process_response) identifier_process_response
)attribute
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_response) identifier_response
)attribute
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(call
(attribute
(identifier_provider_categories) identifier_provider_categories
(identifier_issubset) identifier_issubset
)attribute
(argument_list
(identifier_DNSBL_CATEGORIES) identifier_DNSBL_CATEGORIES
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_categories) identifier_categories
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_categories) identifier_categories
)attribute
(identifier_union) identifier_union
)attribute
(argument_list
(identifier_provider_categories) identifier_provider_categories
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_detected_by) identifier_detected_by
)attribute
(attribute
(identifier_provider) identifier_provider
(identifier_host) identifier_host
)attribute
)subscript
(call
(identifier_list) identifier_list
(argument_list
(identifier_provider_categories) identifier_provider_categories
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Process results by providers |
(module
(function_definition
(function_name_should_log) function_name_should_log
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_logger_name) identifier_logger_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_level) identifier_level
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(if_statement
(comparison_operator
(tuple
(identifier_logger_name) identifier_logger_name
(identifier_level) identifier_level
)tuple
(attribute
(identifier_self) identifier_self
(identifier__should_log) identifier__should_log
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_log_level_per_rule) identifier_log_level_per_rule
(call
(attribute
(identifier_self) identifier_self
(identifier__get_log_level) identifier__get_log_level
)attribute
(argument_list
(identifier_logger_name) identifier_logger_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_log_level_per_rule_numeric) identifier_log_level_per_rule_numeric
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_logging) identifier_logging
(call
(attribute
(identifier_log_level_per_rule) identifier_log_level_per_rule
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(integer_10) integer_10
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_log_level_event_numeric) identifier_log_level_event_numeric
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_logging) identifier_logging
(call
(attribute
(identifier_level) identifier_level
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(integer_10) integer_10
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_should_log) identifier_should_log
(comparison_operator
(identifier_log_level_event_numeric) identifier_log_level_event_numeric
(identifier_log_level_per_rule_numeric) identifier_log_level_per_rule_numeric
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__should_log) identifier__should_log
)attribute
(tuple
(identifier_logger_name) identifier_logger_name
(identifier_level) identifier_level
)tuple
)subscript
(identifier_should_log) identifier_should_log
)assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__should_log) identifier__should_log
)attribute
(tuple
(identifier_logger_name) identifier_logger_name
(identifier_level) identifier_level
)tuple
)subscript
)return_statement
)block
)function_definition
)module | Returns if a message for the logger should be logged. |
(module
(function_definition
(function_name_integer) function_name_integer
(parameters
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(identifier_token) identifier_token
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_neg) identifier_neg
(False) False
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_token) identifier_token
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(call
(attribute
(identifier_compat) identifier_compat
(identifier_b) identifier_b
)attribute
(argument_list
(string_'-') string_'-'
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(subscript
(identifier_token) identifier_token
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_neg) identifier_neg
(True) True
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_token) identifier_token
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(call
(attribute
(identifier_compat) identifier_compat
(identifier_b) identifier_b
)attribute
(argument_list
(string_'0x') string_'0x'
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_int) identifier_int
(argument_list
(identifier_token) identifier_token
(integer_16) integer_16
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_token) identifier_token
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(call
(attribute
(identifier_compat) identifier_compat
(identifier_b) identifier_b
)attribute
(argument_list
(string_'0b') string_'0b'
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_token) identifier_token
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(attribute
(identifier_token) identifier_token
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(call
(attribute
(identifier_compat) identifier_compat
(identifier_b) identifier_b
)attribute
(argument_list
(string_'0o') string_'0o'
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_int) identifier_int
(argument_list
(identifier_token) identifier_token
(integer_8) integer_8
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_int) identifier_int
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_int) identifier_int
(argument_list
(identifier_token) identifier_token
(integer_16) integer_16
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_neg) identifier_neg
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(unary_operator
(identifier_result) identifier_result
)unary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Convert numeric strings into integers.
@type token: str
@param token: String to parse.
@rtype: int
@return: Parsed integer value. |
(module
(function_definition
(function_name__parse) function_name__parse
(parameters
(identifier_cls) identifier_cls
(identifier_scope) identifier_scope
)parameters
(block
(if_statement
(not_operator
(identifier_scope) identifier_scope
)not_operator
(block
(return_statement
(tuple
(string_'default') string_'default'
)tuple
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_scope) identifier_scope
(identifier_string_types) identifier_string_types
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_scope) identifier_scope
(call
(attribute
(identifier_scope) identifier_scope
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_scope) identifier_scope
(set_comprehension
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_s) identifier_s
(identifier_scope) identifier_scope
)for_in_clause
(if_clause
(identifier_s) identifier_s
)if_clause
)set_comprehension
)assignment
)expression_statement
(return_statement
(boolean_operator
(identifier_scope) identifier_scope
(tuple
(string_'default') string_'default'
)tuple
)boolean_operator
)return_statement
)block
)function_definition
)module | Parses the input scope into a normalized set of strings.
:param scope: A string or tuple containing zero or more scope names.
:return: A set of scope name strings, or a tuple with the default scope name.
:rtype: set |
(module
(function_definition
(function_name_local_dt) function_name_local_dt
(parameters
(identifier_dt) identifier_dt
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_dt) identifier_dt
(identifier_tzinfo) identifier_tzinfo
)attribute
)not_operator
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(attribute
(identifier_pytz) identifier_pytz
(identifier_utc) identifier_utc
)attribute
(identifier_localize) identifier_localize
)attribute
(argument_list
(identifier_dt) identifier_dt
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_LOCALTZ) identifier_LOCALTZ
(identifier_normalize) identifier_normalize
)attribute
(argument_list
(call
(attribute
(identifier_dt) identifier_dt
(identifier_astimezone) identifier_astimezone
)attribute
(argument_list
(identifier_LOCALTZ) identifier_LOCALTZ
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an aware datetime in system timezone, from a naive or aware
datetime.
Naive datetime are assumed to be in UTC TZ. |
(module
(function_definition
(function_name_remove_node) function_name_remove_node
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(if_statement
(comparison_operator
(identifier_node) identifier_node
(attribute
(identifier_self) identifier_self
(identifier__nodes) identifier__nodes
)attribute
)comparison_operator
(block
(expression_statement
(yield
(call
(attribute
(identifier_node) identifier_node
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__nodes) identifier__nodes
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Removes a node from the project.
In theory this should be called by the node manager.
:param node: Node instance |
(module
(function_definition
(function_name_to_json) function_name_to_json
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_Webhook) identifier_Webhook
(identifier_self) identifier_self
)argument_list
)call
(identifier_to_json) identifier_to_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'name') string_'name'
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)pair
(pair
(string_'url') string_'url'
(attribute
(identifier_self) identifier_self
(identifier_url) identifier_url
)attribute
)pair
(pair
(string_'topics') string_'topics'
(attribute
(identifier_self) identifier_self
(identifier_topics) identifier_topics
)attribute
)pair
(pair
(string_'httpBasicUsername') string_'httpBasicUsername'
(attribute
(identifier_self) identifier_self
(identifier_http_basic_username) identifier_http_basic_username
)attribute
)pair
(pair
(string_'headers') string_'headers'
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)pair
)dictionary
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_filters) identifier_filters
)attribute
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'filters') string_'filters'
(attribute
(identifier_self) identifier_self
(identifier_filters) identifier_filters
)attribute
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_transformation) identifier_transformation
)attribute
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'transformation') string_'transformation'
(attribute
(identifier_self) identifier_self
(identifier_transformation) identifier_transformation
)attribute
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Returns the JSON representation of the webhook. |
(module
(function_definition
(function_name_select) function_name_select
(parameters
(default_parameter
(identifier_message) identifier_message
(string_"") string_""
)default_parameter
(default_parameter
(identifier_title) identifier_title
(string_"Lackey Input") string_"Lackey Input"
)default_parameter
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_options) identifier_options
(None) None
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_options) identifier_options
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(return_statement
(string_"") string_""
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_default) identifier_default
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_default) identifier_default
(subscript
(identifier_options) identifier_options
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_default) identifier_default
(identifier_options) identifier_options
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"<<default>> not in options[]") string_"<<default>> not in options[]"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(identifier_tk) identifier_tk
(identifier_Tk) identifier_Tk
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_input_text) identifier_input_text
(call
(attribute
(identifier_tk) identifier_tk
(identifier_StringVar) identifier_StringVar
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_input_text) identifier_input_text
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_PopupList) identifier_PopupList
(argument_list
(identifier_root) identifier_root
(identifier_message) identifier_message
(identifier_title) identifier_title
(identifier_options) identifier_options
(identifier_default) identifier_default
(identifier_input_text) identifier_input_text
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_root) identifier_root
(identifier_focus_force) identifier_focus_force
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_root) identifier_root
(identifier_mainloop) identifier_mainloop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_input_text) identifier_input_text
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a dropdown selection dialog with the specified message and options
`default` must be one of the options.
Returns the selected value. |
(module
(function_definition
(function_name_namedb_preorder_insert) function_name_namedb_preorder_insert
(parameters
(identifier_cur) identifier_cur
(identifier_preorder_rec) identifier_preorder_rec
)parameters
(block
(expression_statement
(assignment
(identifier_preorder_row) identifier_preorder_row
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_preorder_rec) identifier_preorder_rec
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(string_'preorder_hash') string_'preorder_hash'
(identifier_preorder_row) identifier_preorder_row
)comparison_operator
(string_"BUG: missing preorder_hash") string_"BUG: missing preorder_hash"
)assert_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_preorder_query) identifier_preorder_query
(identifier_preorder_values) identifier_preorder_values
)pattern_list
(call
(identifier_namedb_insert_prepare) identifier_namedb_insert_prepare
(argument_list
(identifier_cur) identifier_cur
(identifier_preorder_row) identifier_preorder_row
(string_"preorders") string_"preorders"
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(identifier_e) identifier_e
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"FATAL: Failed to insert name preorder '%s'") string_"FATAL: Failed to insert name preorder '%s'"
(subscript
(identifier_preorder_row) identifier_preorder_row
(string_'preorder_hash') string_'preorder_hash'
)subscript
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_abort) identifier_abort
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_namedb_query_execute) identifier_namedb_query_execute
(argument_list
(identifier_cur) identifier_cur
(identifier_preorder_query) identifier_preorder_query
(identifier_preorder_values) identifier_preorder_values
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Add a name or namespace preorder record, if it doesn't exist already.
DO NOT CALL THIS DIRECTLY. |
(module
(function_definition
(function_name_append) function_name_append
(parameters
(identifier_entry) identifier_entry
)parameters
(block
(if_statement
(not_operator
(identifier_entry) identifier_entry
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(identifier_get_rc_path) identifier_get_rc_path
(argument_list
)argument_list
)call
(string_'a') string_'a'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_entry) identifier_entry
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_writelines) identifier_writelines
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(identifier_entry) identifier_entry
(string_'\n') string_'\n'
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)with_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Error writing your ~/.vacationrc file!') string_'Error writing your ~/.vacationrc file!'
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Append either a list of strings or a string to our file. |
(module
(function_definition
(function_name_data_find_text) function_name_data_find_text
(parameters
(identifier_data) identifier_data
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_el) identifier_el
(call
(identifier_data_find) identifier_data_find
(argument_list
(identifier_data) identifier_data
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_el) identifier_el
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_texts) identifier_texts
(list_comprehension
(identifier_child) identifier_child
(for_in_clause
(identifier_child) identifier_child
(subscript
(identifier_el) identifier_el
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)for_in_clause
(if_clause
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_child) identifier_child
(tuple
(identifier_tuple) identifier_tuple
(identifier_list) identifier_list
(identifier_dict) identifier_dict
)tuple
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_texts) identifier_texts
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_six) identifier_six
(identifier_ensure_text) identifier_ensure_text
)attribute
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_encoding) identifier_encoding
(string_"utf-8") string_"utf-8"
)keyword_argument
(keyword_argument
(identifier_errors) identifier_errors
(string_"strict") string_"strict"
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_texts) identifier_texts
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the text value of the element-as-tuple in tuple ``data`` using
simplified XPath ``path``. |
(module
(function_definition
(function_name_dbmax05years) function_name_dbmax05years
(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 `dbmax05years`') string_'for field `dbmax05years`'
)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__dbmax05years) identifier__dbmax05years
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Corresponds to IDD Field `dbmax05years`
5-year return period values for maximum extreme dry-bulb temperature
Args:
value (float): value for IDD Field `dbmax05years`
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__req) function_name__req
(parameters
(identifier_self) identifier_self
(identifier_req) identifier_req
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'DUT> %s') string_'DUT> %s'
(identifier_req) identifier_req
)argument_list
)call
)expression_statement
(expression_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_pause) identifier_pause
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)expression_statement
(expression_statement
(assignment
(identifier_times) identifier_times
(integer_3) integer_3
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(None) None
)assignment
)expression_statement
(while_statement
(identifier_times) identifier_times
(block
(expression_statement
(assignment
(identifier_times) identifier_times
(binary_operator
(identifier_times) identifier_times
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__sendline) identifier__sendline
)attribute
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__expect) identifier__expect
)attribute
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_line) identifier_line
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(list
)list
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(identifier_self) identifier_self
(identifier__readline) identifier__readline
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Got line %s') string_'Got line %s'
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_line) identifier_line
(string_'Done') string_'Done'
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
(if_statement
(identifier_line) identifier_line
(block
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
(break_statement
)break_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_'Failed to send command') string_'Failed to send command'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init) identifier__init
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)while_statement
(expression_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_resume) identifier_resume
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Send command and wait for response.
The command will be repeated 3 times at most in case data loss of serial port.
Args:
req (str): Command to send, please do not include new line in the end.
Returns:
[str]: The output lines |
(module
(function_definition
(function_name_list_json_files) function_name_list_json_files
(parameters
(identifier_directory) identifier_directory
(default_parameter
(identifier_recursive) identifier_recursive
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_json_files) identifier_json_files
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_top) identifier_top
(identifier_dirs) identifier_dirs
(identifier_files) identifier_files
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_dirs) identifier_dirs
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_paths) identifier_paths
(generator_expression
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_top) identifier_top
(identifier_f) identifier_f
)argument_list
)call
(for_in_clause
(identifier_f) identifier_f
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)for_in_clause
)generator_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_json_files) identifier_json_files
(identifier_extend) identifier_extend
)attribute
(generator_expression
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(identifier_paths) identifier_paths
)for_in_clause
(if_clause
(call
(identifier_is_json) identifier_is_json
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)if_clause
)generator_expression
)call
)expression_statement
(if_statement
(not_operator
(identifier_recursive) identifier_recursive
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_json_files) identifier_json_files
)return_statement
)block
)function_definition
)module | Return a list of file paths for JSON files within `directory`.
Args:
directory: A path to a directory.
recursive: If ``True``, this function will descend into all
subdirectories.
Returns:
A list of JSON file paths directly under `directory`. |
(module
(function_definition
(function_name_get_intended_direction) function_name_get_intended_direction
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_x) identifier_target_x
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_x) identifier_current_x
)attribute
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_y) identifier_target_y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_y) identifier_current_y
)attribute
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(identifier_y) identifier_y
(identifier_x) identifier_x
)expression_list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_y) identifier_target_y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_y) identifier_current_y
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_y) identifier_y
(integer_1) integer_1
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_y) identifier_target_y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_y) identifier_current_y
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_y) identifier_y
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_x) identifier_target_x
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_x) identifier_current_x
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(integer_1) integer_1
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_x) identifier_target_x
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_x) identifier_current_x
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(expression_list
(identifier_y) identifier_y
(identifier_x) identifier_x
)expression_list
)return_statement
)block
)function_definition
)module | returns a Y,X value showing which direction the
agent should move in order to get to the target |
(module
(function_definition
(function_name___build_sms_data) function_name___build_sms_data
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignment
(identifier_attributes) identifier_attributes
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attributes_to_translate) identifier_attributes_to_translate
(dictionary
(pair
(string_'to') string_'to'
(string_'To') string_'To'
)pair
(pair
(string_'message') string_'message'
(string_'Content') string_'Content'
)pair
(pair
(string_'client_id') string_'client_id'
(string_'ClientID') string_'ClientID'
)pair
(pair
(string_'concat') string_'concat'
(string_'Concat') string_'Concat'
)pair
(pair
(string_'from_name') string_'from_name'
(string_'From') string_'From'
)pair
(pair
(string_'invalid_char_option') string_'invalid_char_option'
(string_'InvalidCharOption') string_'InvalidCharOption'
)pair
(pair
(string_'truncate') string_'truncate'
(string_'Truncate') string_'Truncate'
)pair
(pair
(string_'wrapper_id') string_'wrapper_id'
(string_'WrapperId') string_'WrapperId'
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_attr) identifier_attr
(identifier_attributes_to_translate) identifier_attributes_to_translate
(block
(expression_statement
(assignment
(identifier_val_to_use) identifier_val_to_use
(None) None
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_message) identifier_message
(identifier_attr) identifier_attr
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_val_to_use) identifier_val_to_use
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_message) identifier_message
(identifier_attr) identifier_attr
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_val_to_use) identifier_val_to_use
(None) None
)comparison_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_val_to_use) identifier_val_to_use
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_val_to_use) identifier_val_to_use
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_attributes) identifier_attributes
(subscript
(identifier_attributes_to_translate) identifier_attributes_to_translate
(identifier_attr) identifier_attr
)subscript
)subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_val_to_use) identifier_val_to_use
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_attributes) identifier_attributes
)return_statement
)block
)function_definition
)module | Build a dictionary of SMS message elements |
(module
(function_definition
(function_name_get_parent) function_name_get_parent
(parameters
(identifier_port_id) identifier_port_id
)parameters
(block
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(attribute
(identifier_db) identifier_db
(identifier_get_reader_session) identifier_get_reader_session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_session) identifier_session
(identifier_begin) identifier_begin
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_subport_model) identifier_subport_model
(attribute
(identifier_trunk_models) identifier_trunk_models
(identifier_SubPort) identifier_SubPort
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_trunk_model) identifier_trunk_model
(attribute
(identifier_trunk_models) identifier_trunk_models
(identifier_Trunk) identifier_Trunk
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subport) identifier_subport
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_session) identifier_session
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_subport_model) identifier_subport_model
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_subport_model) identifier_subport_model
(identifier_port_id) identifier_port_id
)attribute
(identifier_port_id) identifier_port_id
)comparison_operator
)argument_list
)call
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_subport) identifier_subport
(block
(expression_statement
(assignment
(identifier_trunk) identifier_trunk
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_session) identifier_session
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_trunk_model) identifier_trunk_model
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_trunk_model) identifier_trunk_model
(identifier_id) identifier_id
)attribute
(attribute
(identifier_subport) identifier_subport
(identifier_trunk_id) identifier_trunk_id
)attribute
)comparison_operator
)argument_list
)call
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_trunk) identifier_trunk
(block
(expression_statement
(assignment
(identifier_trunk_port_id) identifier_trunk_port_id
(attribute
(attribute
(identifier_trunk) identifier_trunk
(identifier_port) identifier_port
)attribute
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(subscript
(call
(identifier_get_ports) identifier_get_ports
(argument_list
(keyword_argument
(identifier_port_id) identifier_port_id
(identifier_trunk_port_id) identifier_trunk_port_id
)keyword_argument
(keyword_argument
(identifier_active) identifier_active
(False) False
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)with_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Get trunk subport's parent port |
(module
(function_definition
(function_name_dumps) function_name_dumps
(parameters
(identifier_mesh) identifier_mesh
)parameters
(block
(import_from_statement
(dotted_name
(identifier_lxml) identifier_lxml
)dotted_name
(dotted_name
(identifier_etree) identifier_etree
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_dae) identifier_dae
(call
(identifier_mesh_to_collada) identifier_mesh_to_collada
(argument_list
(identifier_mesh) identifier_mesh
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dae) identifier_dae
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_etree) identifier_etree
(identifier_tostring) identifier_tostring
)attribute
(argument_list
(attribute
(identifier_dae) identifier_dae
(identifier_xmlnode) identifier_xmlnode
)attribute
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'UTF-8') string_'UTF-8'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generates a UTF-8 XML string containing the mesh, in collada format. |
(module
(function_definition
(function_name_focus_prev_matching) function_name_focus_prev_matching
(parameters
(identifier_self) identifier_self
(identifier_querystring) identifier_querystring
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_focus_property) identifier_focus_property
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(attribute
(identifier_x) identifier_x
(identifier__message) identifier__message
)attribute
(identifier_matches) identifier_matches
)attribute
(argument_list
(identifier_querystring) identifier_querystring
)argument_list
)call
)lambda
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tree) identifier__tree
)attribute
(identifier_prev_position) identifier_prev_position
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | focus previous matching message in depth first order |
(module
(function_definition
(function_name_get_item_properties) function_name_get_item_properties
(parameters
(identifier_item) identifier_item
(identifier_fields) identifier_fields
(default_parameter
(identifier_mixed_case_fields) identifier_mixed_case_fields
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_formatters) identifier_formatters
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_formatters) identifier_formatters
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_formatters) identifier_formatters
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_row) identifier_row
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(identifier_fields) identifier_fields
(block
(if_statement
(comparison_operator
(identifier_field) identifier_field
(identifier_formatters) identifier_formatters
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_row) identifier_row
(identifier_append) identifier_append
)attribute
(argument_list
(call
(subscript
(identifier_formatters) identifier_formatters
(identifier_field) identifier_field
)subscript
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_field) identifier_field
(identifier_mixed_case_fields) identifier_mixed_case_fields
)comparison_operator
(block
(expression_statement
(assignment
(identifier_field_name) identifier_field_name
(call
(attribute
(identifier_field) identifier_field
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'_') string_'_'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_field_name) identifier_field_name
(call
(attribute
(call
(attribute
(identifier_field) identifier_field
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'_') string_'_'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_item) identifier_item
(identifier_field_name) identifier_field_name
)argument_list
)call
)not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_dict) identifier_dict
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_item) identifier_item
(identifier_field_name) identifier_field_name
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_item) identifier_item
(identifier_field_name) identifier_field_name
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_data) identifier_data
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(string_'') string_''
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_row) identifier_row
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a tuple containing the item properties.
:param item: a single item resource (e.g. Server, Tenant, etc)
:param fields: tuple of strings with the desired field names
:param mixed_case_fields: tuple of field names to preserve case
:param formatters: dictionary mapping field names to callables
to format the values |
(module
(function_definition
(function_name_create_statement) function_name_create_statement
(parameters
(identifier_self) identifier_self
(identifier_connection_id) identifier_connection_id
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_requests_pb2) identifier_requests_pb2
(identifier_CreateStatementRequest) identifier_CreateStatementRequest
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_connection_id) identifier_connection_id
)attribute
(identifier_connection_id) identifier_connection_id
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response_data) identifier_response_data
(call
(attribute
(identifier_self) identifier_self
(identifier__apply) identifier__apply
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_responses_pb2) identifier_responses_pb2
(identifier_CreateStatementResponse) identifier_CreateStatementResponse
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_ParseFromString) identifier_ParseFromString
)attribute
(argument_list
(identifier_response_data) identifier_response_data
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_response) identifier_response
(identifier_statement_id) identifier_statement_id
)attribute
)return_statement
)block
)function_definition
)module | Creates a new statement.
:param connection_id:
ID of the current connection.
:returns:
New statement ID. |
(module
(function_definition
(function_name_GetAnalyzerInstance) function_name_GetAnalyzerInstance
(parameters
(identifier_cls) identifier_cls
(identifier_analyzer_name) identifier_analyzer_name
)parameters
(block
(expression_statement
(assignment
(identifier_analyzer_name) identifier_analyzer_name
(call
(attribute
(identifier_analyzer_name) identifier_analyzer_name
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_analyzer_name) identifier_analyzer_name
(attribute
(identifier_cls) identifier_cls
(identifier__analyzer_classes) identifier__analyzer_classes
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(call
(attribute
(string_'analyzer class not set for name: {0:s}.') string_'analyzer class not set for name: {0:s}.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_analyzer_name) identifier_analyzer_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_analyzer_class) identifier_analyzer_class
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__analyzer_classes) identifier__analyzer_classes
)attribute
(identifier_analyzer_name) identifier_analyzer_name
)subscript
)assignment
)expression_statement
(return_statement
(call
(identifier_analyzer_class) identifier_analyzer_class
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves an instance of a specific analyzer.
Args:
analyzer_name (str): name of the analyzer to retrieve.
Returns:
BaseAnalyzer: analyzer instance.
Raises:
KeyError: if analyzer class is not set for the corresponding name. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_ext) identifier_ext
(None) None
)default_parameter
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_stop) identifier_stop
(None) None
)default_parameter
(default_parameter
(identifier_recursive) identifier_recursive
(False) False
)default_parameter
(default_parameter
(identifier_npartitions) identifier_npartitions
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_uri_to_path) identifier_uri_to_path
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(attribute
(identifier_self) identifier_self
(identifier_list) identifier_list
)attribute
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_ext) identifier_ext
(identifier_ext) identifier_ext
)keyword_argument
(keyword_argument
(identifier_start) identifier_start
(identifier_start) identifier_start
)keyword_argument
(keyword_argument
(identifier_stop) identifier_stop
(identifier_stop) identifier_stop
)keyword_argument
(keyword_argument
(identifier_recursive) identifier_recursive
(identifier_recursive) identifier_recursive
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nfiles) identifier_nfiles
(call
(identifier_len) identifier_len
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_nfiles) identifier_nfiles
)attribute
(identifier_nfiles) identifier_nfiles
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_spark) identifier_spark
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
(identifier_spark) identifier_spark
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_npartitions) identifier_npartitions
(conditional_expression
(call
(identifier_min) identifier_min
(argument_list
(identifier_npartitions) identifier_npartitions
(identifier_nfiles) identifier_nfiles
)argument_list
)call
(identifier_npartitions) identifier_npartitions
(identifier_nfiles) identifier_nfiles
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rdd) identifier_rdd
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
(identifier_parallelize) identifier_parallelize
)attribute
(argument_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_files) identifier_files
)argument_list
)call
(identifier_npartitions) identifier_npartitions
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_rdd) identifier_rdd
(identifier_map) identifier_map
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_kv) identifier_kv
)lambda_parameters
(tuple
(subscript
(identifier_kv) identifier_kv
(integer_0) integer_0
)subscript
(call
(identifier_readlocal) identifier_readlocal
(argument_list
(subscript
(identifier_kv) identifier_kv
(integer_1) integer_1
)subscript
)argument_list
)call
(subscript
(identifier_kv) identifier_kv
(integer_1) integer_1
)subscript
)tuple
)lambda
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(list_comprehension
(tuple
(identifier_k) identifier_k
(call
(identifier_readlocal) identifier_readlocal
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(identifier_v) identifier_v
)tuple
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Sets up Spark RDD across files specified by dataPath on local filesystem.
Returns RDD of <integer file index, string buffer> k/v pairs. |
(module
(function_definition
(function_name_queue_purge) function_name_queue_purge
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_queue) identifier_queue
(string_'') string_''
)default_parameter
(default_parameter
(identifier_nowait) identifier_nowait
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_AMQPWriter) identifier_AMQPWriter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_short) identifier_write_short
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_shortstr) identifier_write_shortstr
)attribute
(argument_list
(identifier_queue) identifier_queue
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_nowait) identifier_nowait
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_method) identifier__send_method
)attribute
(argument_list
(tuple
(integer_50) integer_50
(integer_30) integer_30
)tuple
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_nowait) identifier_nowait
)not_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_wait) identifier_wait
)attribute
(argument_list
(keyword_argument
(identifier_allowed_methods) identifier_allowed_methods
(list
(tuple
(integer_50) integer_50
(integer_31) integer_31
)tuple
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Purge a queue
This method removes all messages from a queue. It does not
cancel consumers. Purged messages are deleted without any
formal "undo" mechanism.
RULE:
A call to purge MUST result in an empty queue.
RULE:
On transacted channels the server MUST not purge messages
that have already been sent to a client but not yet
acknowledged.
RULE:
The server MAY implement a purge queue or log that allows
system administrators to recover accidentally-purged
messages. The server SHOULD NOT keep purged messages in
the same storage spaces as the live messages since the
volumes of purged messages may get very large.
PARAMETERS:
queue: shortstr
Specifies the name of the queue to purge. If the
queue name is empty, refers to the current queue for
the channel, which is the last declared queue.
RULE:
If the client did not previously declare a queue,
and the queue name in this method is empty, the
server MUST raise a connection exception with
reply code 530 (not allowed).
RULE:
The queue must exist. Attempting to purge a non-
existing queue causes a channel exception.
nowait: boolean
do not send a reply method
If set, the server will not respond to the method. The
client should not wait for a reply method. If the
server could not complete the method it will raise a
channel or connection exception.
if nowait is False, returns a message_count |
(module
(function_definition
(function_name_insrti) function_name_insrti
(parameters
(identifier_item) identifier_item
(identifier_inset) identifier_inset
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_inset) identifier_inset
(attribute
(identifier_stypes) identifier_stypes
(identifier_SpiceCell) identifier_SpiceCell
)attribute
)argument_list
)call
)assert_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_item) identifier_item
(string_"__iter__") string_"__iter__"
)argument_list
)call
(block
(for_statement
(identifier_i) identifier_i
(identifier_item) identifier_item
(block
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_insrti_c) identifier_insrti_c
)attribute
(argument_list
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_inset) identifier_inset
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_insrti_c) identifier_insrti_c
)attribute
(argument_list
(identifier_item) identifier_item
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_inset) identifier_inset
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Insert an item into an integer set.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/insrti_c.html
:param item: Item to be inserted.
:type item: Union[float,Iterable[int]]
:param inset: Insertion set.
:type inset: spiceypy.utils.support_types.SpiceCell |
(module
(function_definition
(function_name_getConnectionStats) function_name_getConnectionStats
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cur) identifier_cur
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cur) identifier_cur
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(attribute
(identifier_cur) identifier_cur
(identifier_fetchall) identifier_fetchall
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_rows) identifier_rows
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_rows) identifier_rows
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns dictionary with number of connections for each database.
@return: Dictionary of database connection statistics. |
(module
(function_definition
(function_name_remove_service) function_name_remove_service
(parameters
(identifier_self) identifier_self
(identifier_zeroconf) identifier_zeroconf
(identifier_srv_type) identifier_srv_type
(identifier_srv_name) identifier_srv_name
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_servers) identifier_servers
)attribute
(identifier_remove_server) identifier_remove_server
)attribute
(argument_list
(identifier_srv_name) identifier_srv_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"Glances server %s removed from the autodetect list") string_"Glances server %s removed from the autodetect list"
(identifier_srv_name) identifier_srv_name
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove the server from the list. |
(module
(function_definition
(function_name_GetPublicCert) function_name_GetPublicCert
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cert_url) identifier_cert_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_google_api_url) identifier_google_api_url
)attribute
(string_'publicKeys') string_'publicKeys'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_resp) identifier_resp
(identifier_content) identifier_content
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_http) identifier_http
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_cert_url) identifier_cert_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status) identifier_status
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_simplejson) identifier_simplejson
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_GitkitServerError) identifier_GitkitServerError
)attribute
(argument_list
(binary_operator
(string_'Error response for cert url: %s') string_'Error response for cert url: %s'
(identifier_content) identifier_content
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Download Gitkit public cert.
Returns:
dict of public certs. |
(module
(function_definition
(function_name_authentication_url) function_name_authentication_url
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'client_id') string_'client_id'
(attribute
(identifier_self) identifier_self
(identifier_client_id) identifier_client_id
)attribute
)pair
(pair
(string_'response_type') string_'response_type'
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)pair
(pair
(string_'redirect_uri') string_'redirect_uri'
(attribute
(identifier_self) identifier_self
(identifier_callback_url) identifier_callback_url
)attribute
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(identifier_AUTHENTICATION_URL) identifier_AUTHENTICATION_URL
(string_"?") string_"?"
)binary_operator
(call
(identifier_urlencode) identifier_urlencode
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Redirect your users to here to authenticate them. |
(module
(function_definition
(function_name_geometrize_stops) function_name_geometrize_stops
(parameters
(typed_parameter
(identifier_stops) identifier_stops
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_use_utm) identifier_use_utm
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(type
(identifier_DataFrame) identifier_DataFrame
)type
(block
(import_statement
(aliased_import
(dotted_name
(identifier_geopandas) identifier_geopandas
)dotted_name
(identifier_gpd) identifier_gpd
)aliased_import
)import_statement
(expression_statement
(assignment
(identifier_g) identifier_g
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_stops) identifier_stops
(identifier_assign) identifier_assign
)attribute
(argument_list
(keyword_argument
(identifier_geometry) identifier_geometry
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(list_comprehension
(call
(attribute
(identifier_sg) identifier_sg
(identifier_Point) identifier_Point
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(for_in_clause
(identifier_p) identifier_p
(attribute
(subscript
(identifier_x) identifier_x
(list
(string_"stop_lon") string_"stop_lon"
(string_"stop_lat") string_"stop_lat"
)list
)subscript
(identifier_values) identifier_values
)attribute
)for_in_clause
)list_comprehension
)lambda
)keyword_argument
)argument_list
)call
(identifier_drop) identifier_drop
)attribute
(argument_list
(list
(string_"stop_lon") string_"stop_lon"
(string_"stop_lat") string_"stop_lat"
)list
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
(identifier_pipe) identifier_pipe
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_gpd) identifier_gpd
(identifier_GeoDataFrame) identifier_GeoDataFrame
)attribute
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_crs) identifier_crs
(attribute
(identifier_cs) identifier_cs
(identifier_WGS84) identifier_WGS84
)attribute
)keyword_argument
)argument_list
)call
)lambda
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_use_utm) identifier_use_utm
(block
(expression_statement
(assignment
(pattern_list
(identifier_lat) identifier_lat
(identifier_lon) identifier_lon
)pattern_list
(attribute
(subscript
(attribute
(identifier_stops) identifier_stops
(identifier_loc) identifier_loc
)attribute
(integer_0) integer_0
(list
(string_"stop_lat") string_"stop_lat"
(string_"stop_lon") string_"stop_lon"
)list
)subscript
(identifier_values) identifier_values
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_crs) identifier_crs
(call
(attribute
(identifier_hp) identifier_hp
(identifier_get_utm_crs) identifier_get_utm_crs
)attribute
(argument_list
(identifier_lat) identifier_lat
(identifier_lon) identifier_lon
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(attribute
(identifier_g) identifier_g
(identifier_to_crs) identifier_to_crs
)attribute
(argument_list
(identifier_crs) identifier_crs
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_g) identifier_g
)return_statement
)block
)function_definition
)module | Given a stops DataFrame, convert it to a GeoPandas GeoDataFrame
and return the result.
Parameters
----------
stops : DataFrame
A GTFS stops table
use_utm : boolean
If ``True``, then convert the output to local UTM coordinates;
otherwise use WGS84 coordinates
Returns
-------
GeoPandas GeoDataFrame
Looks like the given stops DataFrame, but has a ``'geometry'``
column of Shapely Point objects that replaces
the ``'stop_lon'`` and ``'stop_lat'`` columns.
Notes
-----
Requires GeoPandas. |
(module
(function_definition
(function_name_getcosIm) function_name_getcosIm
(parameters
(identifier_alat) identifier_alat
)parameters
(block
(expression_statement
(assignment
(identifier_alat) identifier_alat
(call
(attribute
(identifier_np) identifier_np
(identifier_float64) identifier_float64
)attribute
(argument_list
(identifier_alat) identifier_alat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_radians) identifier_radians
)attribute
(argument_list
(identifier_alat) identifier_alat
)argument_list
)call
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(integer_4) integer_4
(binary_operator
(integer_3) integer_3
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_radians) identifier_radians
)attribute
(argument_list
(identifier_alat) identifier_alat
)argument_list
)call
)argument_list
)call
(integer_2) integer_2
)binary_operator
)binary_operator
)binary_operator
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Computes cosIm from modified apex latitude.
Parameters
==========
alat : array_like
Modified apex latitude
Returns
=======
cosIm : ndarray or float |
(module
(function_definition
(function_name_set_scrollbars_cb) function_name_set_scrollbars_cb
(parameters
(identifier_self) identifier_self
(identifier_w) identifier_w
(identifier_tf) identifier_tf
)parameters
(block
(expression_statement
(assignment
(identifier_scrollbars) identifier_scrollbars
(conditional_expression
(string_'on') string_'on'
(identifier_tf) identifier_tf
(string_'off') string_'off'
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_t_) identifier_t_
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
(keyword_argument
(identifier_scrollbars) identifier_scrollbars
(identifier_scrollbars) identifier_scrollbars
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This callback is invoked when the user checks the 'Use Scrollbars'
box in the preferences pane. |
(module
(function_definition
(function_name__lockfile) function_name__lockfile
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pfile) identifier_pfile
(call
(attribute
(identifier_pipfile) identifier_pipfile
(identifier_load) identifier_load
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pipfile_location) identifier_pipfile_location
)attribute
(keyword_argument
(identifier_inject_env) identifier_inject_env
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lockfile) identifier_lockfile
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_pfile) identifier_pfile
(identifier_lock) identifier_lock
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_section) identifier_section
(tuple
(string_"default") string_"default"
(string_"develop") string_"develop"
)tuple
(block
(expression_statement
(assignment
(identifier_lock_section) identifier_lock_section
(call
(attribute
(identifier_lockfile) identifier_lockfile
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_section) identifier_section
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_lock_section) identifier_lock_section
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_norm_key) identifier_norm_key
(call
(identifier_pep423_name) identifier_pep423_name
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_lockfile) identifier_lockfile
(identifier_section) identifier_section
)subscript
(identifier_norm_key) identifier_norm_key
)subscript
(call
(attribute
(identifier_lock_section) identifier_lock_section
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_lockfile) identifier_lockfile
)return_statement
)block
)function_definition
)module | Pipfile.lock divided by PyPI and external dependencies. |
(module
(function_definition
(function_name_get_keys_of_max_n) function_name_get_keys_of_max_n
(parameters
(identifier_dict_obj) identifier_dict_obj
(identifier_n) identifier_n
)parameters
(block
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(list_comprehension
(subscript
(identifier_item) identifier_item
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_item) identifier_item
(subscript
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_dict_obj) identifier_dict_obj
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_item) identifier_item
)lambda_parameters
(subscript
(identifier_item) identifier_item
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
(slice
(colon) colon
(identifier_n) identifier_n
)slice
)subscript
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the keys that maps to the top n max values in the given dict.
Example:
--------
>>> dict_obj = {'a':2, 'b':1, 'c':5}
>>> get_keys_of_max_n(dict_obj, 2)
['a', 'c'] |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_valid) identifier_valid
)attribute
)not_operator
(block
(expression_statement
(assignment
(identifier_err) identifier_err
(parenthesized_expression
(concatenated_string
(string_"\nMessengers and listeners that still need set:\n\n") string_"\nMessengers and listeners that still need set:\n\n"
(string_"messengers : %s\n\n") string_"messengers : %s\n\n"
(string_"listeners : %s\n") string_"listeners : %s\n"
)concatenated_string
)parenthesized_expression
)assignment
)expression_statement
(raise_statement
(call
(identifier_InvalidApplication) identifier_InvalidApplication
(argument_list
(binary_operator
(identifier_err) identifier_err
(tuple
(attribute
(identifier_self) identifier_self
(identifier_needed_messengers) identifier_needed_messengers
)attribute
(attribute
(identifier_self) identifier_self
(identifier_needed_listeners) identifier_needed_listeners
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dispatcher) identifier_dispatcher
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | If we have a set of plugins that provide our expected listeners and
messengers, tell our dispatcher to start up. Otherwise, raise
InvalidApplication |
(module
(function_definition
(function_name_warning) function_name_warning
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__execActions) identifier__execActions
)attribute
(argument_list
(string_'warning') string_'warning'
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(identifier_self) identifier_self
(identifier__execFilters) identifier__execFilters
)attribute
(argument_list
(string_'warning') string_'warning'
(identifier_msg) identifier_msg
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__processMsg) identifier__processMsg
)attribute
(argument_list
(string_'warning') string_'warning'
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__sendMsg) identifier__sendMsg
)attribute
(argument_list
(string_'warning') string_'warning'
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Log Warning Messages |
(module
(function_definition
(function_name_set_environment_variable) function_name_set_environment_variable
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(identifier_Message) identifier_Message
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_add_byte) identifier_add_byte
)attribute
(argument_list
(identifier_cMSG_CHANNEL_REQUEST) identifier_cMSG_CHANNEL_REQUEST
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_add_int) identifier_add_int
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_remote_chanid) identifier_remote_chanid
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_add_string) identifier_add_string
)attribute
(argument_list
(string_"env") string_"env"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_add_boolean) identifier_add_boolean
)attribute
(argument_list
(False) False
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_add_string) identifier_add_string
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_add_string) identifier_add_string
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier__send_user_message) identifier__send_user_message
)attribute
(argument_list
(identifier_m) identifier_m
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the value of an environment variable.
.. warning::
The server may reject this request depending on its ``AcceptEnv``
setting; such rejections will fail silently (which is common client
practice for this particular request type). Make sure you
understand your server's configuration before using!
:param str name: name of the environment variable
:param str value: value of the environment variable
:raises:
`.SSHException` -- if the request was rejected or the channel was
closed |
(module
(function_definition
(function_name_simple) function_name_simple
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__days) identifier__days
)attribute
(block
(return_statement
(binary_operator
(string_'%sD') string_'%sD'
(attribute
(identifier_self) identifier_self
(identifier_totaldays) identifier_totaldays
)attribute
)binary_operator
)return_statement
)block
(elif_clause
(attribute
(identifier_self) identifier_self
(identifier_months) identifier_months
)attribute
(block
(return_statement
(binary_operator
(string_'%sM') string_'%sM'
(attribute
(identifier_self) identifier_self
(identifier__months) identifier__months
)attribute
)binary_operator
)return_statement
)block
)elif_clause
(elif_clause
(attribute
(identifier_self) identifier_self
(identifier_years) identifier_years
)attribute
(block
(return_statement
(binary_operator
(string_'%sY') string_'%sY'
(attribute
(identifier_self) identifier_self
(identifier_years) identifier_years
)attribute
)binary_operator
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(string_'') string_''
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | A string representation with only one period delimiter. |
(module
(function_definition
(function_name_file_upload) function_name_file_upload
(parameters
(identifier_self) identifier_self
(identifier_local_path) identifier_local_path
(identifier_remote_path) identifier_remote_path
(identifier_l_st) identifier_l_st
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sftp) identifier_sftp
)attribute
(identifier_put) identifier_put
)attribute
(argument_list
(identifier_local_path) identifier_local_path
(identifier_remote_path) identifier_remote_path
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__match_modes) identifier__match_modes
)attribute
(argument_list
(identifier_remote_path) identifier_remote_path
(identifier_l_st) identifier_l_st
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Upload local_path to remote_path and set permission and mtime. |
(module
(function_definition
(function_name_filter) function_name_filter
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_PluginException) identifier_PluginException
(argument_list
(string_'The plugin must be installed to application.') string_'The plugin must be installed to application.'
)argument_list
)call
)raise_statement
)block
)if_statement
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_func) identifier_func
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(identifier_filters) identifier_filters
)attribute
(identifier_name) identifier_name
)subscript
(identifier_func) identifier_func
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(return_statement
(call
(identifier_wrapper) identifier_wrapper
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Register function to filters. |
(module
(function_definition
(function_name__CreateIndexIfNotExists) function_name__CreateIndexIfNotExists
(parameters
(identifier_self) identifier_self
(identifier_index_name) identifier_index_name
(identifier_mappings) identifier_mappings
)parameters
(block
(try_statement
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_indices) identifier_indices
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_index_name) identifier_index_name
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_indices) identifier_indices
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_body) identifier_body
(dictionary
(pair
(string_'mappings') string_'mappings'
(identifier_mappings) identifier_mappings
)pair
)dictionary
)keyword_argument
(keyword_argument
(identifier_index) identifier_index
(identifier_index_name) identifier_index_name
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_elasticsearch) identifier_elasticsearch
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_ConnectionError) identifier_ConnectionError
)attribute
(as_pattern_target
(identifier_exception) identifier_exception
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(call
(attribute
(string_'Unable to create Elasticsearch index with error: {0!s}') string_'Unable to create Elasticsearch index with error: {0!s}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Creates an Elasticsearch index if it does not exist.
Args:
index_name (str): mame of the index.
mappings (dict[str, object]): mappings of the index.
Raises:
RuntimeError: if the Elasticsearch index cannot be created. |
(module
(function_definition
(function_name_replay) function_name_replay
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
(default_parameter
(identifier_ts) identifier_ts
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_end_ts) identifier_end_ts
(None) None
)default_parameter
(default_parameter
(identifier_with_ts) identifier_with_ts
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_self) identifier_self
(identifier__keygen) identifier__keygen
)attribute
(argument_list
(identifier_event) identifier_event
(identifier_ts) identifier_ts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end_ts) identifier_end_ts
(conditional_expression
(identifier_end_ts) identifier_end_ts
(identifier_end_ts) identifier_end_ts
(string_"+inf") string_"+inf"
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_elements) identifier_elements
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_r) identifier_r
)attribute
(identifier_zrangebyscore) identifier_zrangebyscore
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_ts) identifier_ts
(identifier_end_ts) identifier_end_ts
(keyword_argument
(identifier_withscores) identifier_withscores
(identifier_with_ts) identifier_with_ts
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_with_ts) identifier_with_ts
)not_operator
(block
(return_statement
(list_comprehension
(call
(identifier_s) identifier_s
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(for_in_clause
(identifier_e) identifier_e
(identifier_elements) identifier_elements
)for_in_clause
)list_comprehension
)return_statement
)block
(else_clause
(block
(return_statement
(list_comprehension
(tuple
(call
(identifier_s) identifier_s
(argument_list
(subscript
(identifier_e) identifier_e
(integer_0) integer_0
)subscript
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_e) identifier_e
(integer_1) integer_1
)subscript
)argument_list
)call
)tuple
(for_in_clause
(identifier_e) identifier_e
(identifier_elements) identifier_elements
)for_in_clause
)list_comprehension
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Replay events based on timestamp.
If you split namespace with ts, the replay will only return events
within the same namespace.
:param event: event name
:param ts: replay events after ts, default from 0.
:param end_ts: replay events to ts, default to "+inf".
:param with_ts: return timestamp with events, default to False.
:return: list of pks when with_ts set to False, list of (pk, ts) tuples
when with_ts is True. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.