sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_async_run_command) function_name_async_run_command
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
(default_parameter
(identifier_retry) identifier_retry
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_is_connected) identifier_is_connected
)attribute
)not_operator
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_async_connect) identifier_async_connect
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_wait_for) identifier_wait_for
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_run) identifier_run
)attribute
(argument_list
(binary_operator
(string_"%s && %s") string_"%s && %s"
(tuple
(identifier__PATH_EXPORT_COMMAND) identifier__PATH_EXPORT_COMMAND
(identifier_command) identifier_command
)tuple
)binary_operator
)argument_list
)call
(integer_9) integer_9
)argument_list
)call
)await
)assignment
)expression_statement
)block
(except_clause
(attribute
(attribute
(identifier_asyncssh) identifier_asyncssh
(identifier_misc) identifier_misc
)attribute
(identifier_ChannelOpenError) identifier_ChannelOpenError
)attribute
(block
(if_statement
(not_operator
(identifier_retry) identifier_retry
)not_operator
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_async_connect) identifier_async_connect
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_async_run_command) identifier_async_run_command
)attribute
(argument_list
(identifier_command) identifier_command
(keyword_argument
(identifier_retry) identifier_retry
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connected) identifier__connected
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_error) identifier_error
)attribute
(argument_list
(string_"No connection to host") string_"No connection to host"
)argument_list
)call
)expression_statement
(return_statement
(list
)list
)return_statement
)block
)else_clause
)if_statement
)block
)except_clause
(except_clause
(identifier_TimeoutError) identifier_TimeoutError
(block
(delete_statement
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
)delete_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connected) identifier__connected
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Host timeout.") string_"Host timeout."
)argument_list
)call
)expression_statement
(return_statement
(list
)list
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connected) identifier__connected
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_result) identifier_result
(identifier_stdout) identifier_stdout
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Run commands through an SSH connection.
Connect to the SSH server if not currently connected, otherwise
use the existing connection. |
(module
(function_definition
(function_name_get_by_code) function_name_get_by_code
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
)parameters
(block
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(comparison_operator
(identifier_x) identifier_x
(identifier_code) identifier_code
)comparison_operator
(for_in_clause
(identifier_x) identifier_x
(tuple
(string_'_') string_'_'
(string_'-') string_'-'
)tuple
)for_in_clause
)generator_expression
)call
(block
(expression_statement
(assignment
(identifier_cc) identifier_cc
(call
(attribute
(attribute
(identifier_CultureCode) identifier_CultureCode
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_code) identifier_code
(call
(attribute
(identifier_code) identifier_code
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'_') string_'_'
(string_'-') string_'-'
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_cc) identifier_cc
(identifier_language) identifier_language
)attribute
)return_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_code) identifier_code
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_iso_639_1) identifier_iso_639_1
(identifier_code) identifier_code
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_code) identifier_code
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(binary_operator
(call
(identifier_Q) identifier_Q
(argument_list
(keyword_argument
(identifier_iso_639_2T) identifier_iso_639_2T
(identifier_code) identifier_code
)keyword_argument
)argument_list
)call
(call
(identifier_Q) identifier_Q
(argument_list
(keyword_argument
(identifier_iso_639_2B) identifier_iso_639_2B
(identifier_code) identifier_code
)keyword_argument
)argument_list
)call
)binary_operator
(call
(identifier_Q) identifier_Q
(argument_list
(keyword_argument
(identifier_iso_639_3) identifier_iso_639_3
(identifier_code) identifier_code
)keyword_argument
)argument_list
)call
)binary_operator
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Code must be either 2, or 3 characters: "%s" is %s') string_'Code must be either 2, or 3 characters: "%s" is %s'
(tuple
(identifier_code) identifier_code
(call
(identifier_len) identifier_len
(argument_list
(identifier_code) identifier_code
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Retrieve a language by a code.
:param code: iso code (any of the three) or its culture code
:return: a Language object |
(module
(function_definition
(function_name_get_dependencies) function_name_get_dependencies
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_recursive) identifier_recursive
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dependencies) identifier_dependencies
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_element) identifier_element
(attribute
(identifier_self) identifier_self
(identifier_elements) identifier_elements
)attribute
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element) identifier_element
(identifier_CellReference) identifier_CellReference
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element) identifier_element
(identifier_CellArray) identifier_CellArray
)argument_list
)call
)boolean_operator
(block
(if_statement
(identifier_recursive) identifier_recursive
(block
(expression_statement
(call
(attribute
(identifier_dependencies) identifier_dependencies
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_element) identifier_element
(identifier_ref_cell) identifier_ref_cell
)attribute
(identifier_get_dependencies) identifier_get_dependencies
)attribute
(argument_list
(True) True
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_dependencies) identifier_dependencies
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_ref_cell) identifier_ref_cell
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_dependencies) identifier_dependencies
)return_statement
)block
)function_definition
)module | Returns a list of the cells included in this cell as references.
Parameters
----------
recursive : bool
If True returns cascading dependencies.
Returns
-------
out : set of ``Cell``
List of the cells referenced by this cell. |
(module
(function_definition
(function_name_common) function_name_common
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(assignment
(identifier_mandatory) identifier_mandatory
(call
(identifier_min) identifier_min
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_mandatory) identifier_mandatory
)attribute
(attribute
(identifier_other) identifier_other
(identifier_mandatory) identifier_mandatory
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_optional) identifier_optional
(call
(identifier_min) identifier_min
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_optional) identifier_optional
)attribute
(attribute
(identifier_other) identifier_other
(identifier_optional) identifier_optional
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_multiplier) identifier_multiplier
(argument_list
(identifier_mandatory) identifier_mandatory
(binary_operator
(identifier_mandatory) identifier_mandatory
(identifier_optional) identifier_optional
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find the shared part of two multipliers. This is the largest multiplier
which can be safely subtracted from both the originals. This may
return the "zero" multiplier. |
(module
(function_definition
(function_name_get_task_cls) function_name_get_task_cls
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_task_cls) identifier_task_cls
(call
(attribute
(call
(attribute
(identifier_cls) identifier_cls
(identifier__get_reg) identifier__get_reg
)attribute
(argument_list
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_task_cls) identifier_task_cls
)not_operator
(block
(raise_statement
(call
(identifier_TaskClassNotFoundException) identifier_TaskClassNotFoundException
(argument_list
(call
(attribute
(identifier_cls) identifier_cls
(identifier__missing_task_msg) identifier__missing_task_msg
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_task_cls) identifier_task_cls
(attribute
(identifier_cls) identifier_cls
(identifier_AMBIGUOUS_CLASS) identifier_AMBIGUOUS_CLASS
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_TaskClassAmbigiousException) identifier_TaskClassAmbigiousException
(argument_list
(binary_operator
(string_'Task %r is ambiguous') string_'Task %r is ambiguous'
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_task_cls) identifier_task_cls
)return_statement
)block
)function_definition
)module | Returns an unambiguous class or raises an exception. |
(module
(function_definition
(function_name_load_meta_data) function_name_load_meta_data
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(default_parameter
(identifier_recursively) identifier_recursively
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_meta_data_path) identifier_meta_data_path
(conditional_expression
(identifier_path) identifier_path
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_state_machine) identifier_state_machine
)attribute
(identifier_file_system_path) identifier_file_system_path
)attribute
)conditional_expression
)assignment
)expression_statement
(if_statement
(identifier_meta_data_path) identifier_meta_data_path
(block
(expression_statement
(assignment
(identifier_path_meta_data) identifier_path_meta_data
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_meta_data_path) identifier_meta_data_path
(attribute
(identifier_storage) identifier_storage
(identifier_FILE_NAME_META_DATA) identifier_FILE_NAME_META_DATA
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_tmp_meta) identifier_tmp_meta
(call
(attribute
(identifier_storage) identifier_storage
(identifier_load_data_file) identifier_load_data_file
)attribute
(argument_list
(identifier_path_meta_data) identifier_path_meta_data
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_tmp_meta) identifier_tmp_meta
(dictionary
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_tmp_meta) identifier_tmp_meta
(dictionary
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_tmp_meta) identifier_tmp_meta
(call
(identifier_Vividict) identifier_Vividict
(argument_list
(identifier_tmp_meta) identifier_tmp_meta
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_recursively) identifier_recursively
(block
(expression_statement
(assignment
(identifier_root_state_path) identifier_root_state_path
(conditional_expression
(None) None
(not_operator
(identifier_path) identifier_path
)not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_root_state) identifier_root_state
)attribute
(identifier_state) identifier_state
)attribute
(identifier_state_id) identifier_state_id
)attribute
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_root_state) identifier_root_state
)attribute
(identifier_load_meta_data) identifier_load_meta_data
)attribute
(argument_list
(identifier_root_state_path) identifier_root_state_path
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_tmp_meta) identifier_tmp_meta
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_meta) identifier_meta
)attribute
(identifier_tmp_meta) identifier_tmp_meta
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_meta_signal) identifier_meta_signal
)attribute
(identifier_emit) identifier_emit
)attribute
(argument_list
(call
(identifier_MetaSignalMsg) identifier_MetaSignalMsg
(argument_list
(string_"load_meta_data") string_"load_meta_data"
(string_"all") string_"all"
(True) True
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Load meta data of state machine model from the file system
The meta data of the state machine model is loaded from the file system and stored in the meta property of the
model. Existing meta data is removed. Also the meta data of root state and children is loaded.
:param str path: Optional path to the meta data file. If not given, the path will be derived from the state
machine's path on the filesystem |
(module
(function_definition
(function_name_regroup) function_name_regroup
(parameters
(identifier_target) identifier_target
(identifier_expression) identifier_expression
)parameters
(block
(if_statement
(not_operator
(identifier_target) identifier_target
)not_operator
(block
(return_statement
(string_'') string_''
)return_statement
)block
)if_statement
(return_statement
(list_comprehension
(dictionary
(pair
(string_'grouper') string_'grouper'
(identifier_key) identifier_key
)pair
(pair
(string_'list') string_'list'
(call
(identifier_list) identifier_list
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)pair
)dictionary
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(identifier_groupby) identifier_groupby
(argument_list
(identifier_obj_list) identifier_obj_list
(lambda
(lambda_parameters
(identifier_v) identifier_v
(default_parameter
(identifier_f) identifier_f
(attribute
(identifier_expression) identifier_expression
(identifier_resolve) identifier_resolve
)attribute
)default_parameter
)lambda_parameters
(call
(identifier_f) identifier_f
(argument_list
(identifier_v) identifier_v
(True) True
)argument_list
)call
)lambda
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Regroups a list of alike objects by a common attribute.
This complex tag is best illustrated by use of an example: say that
``people`` is a list of ``Person`` objects that have ``first_name``,
``last_name``, and ``gender`` attributes, and you'd like to display a list
that looks like:
* Male:
* George Bush
* Bill Clinton
* Female:
* Margaret Thatcher
* Colendeeza Rice
* Unknown:
* Pat Smith
The following snippet of template code would accomplish this dubious task::
{% regroup people by gender as grouped %}
<ul>
{% for group in grouped %}
<li>{{ group.grouper }}
<ul>
{% for item in group.list %}
<li>{{ item }}</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
As you can see, ``{% regroup %}`` populates a variable with a list of
objects with ``grouper`` and ``list`` attributes. ``grouper`` contains the
item that was grouped by; ``list`` contains the list of objects that share
that ``grouper``. In this case, ``grouper`` would be ``Male``, ``Female``
and ``Unknown``, and ``list`` is the list of people with those genders.
Note that ``{% regroup %}`` does not work when the list to be grouped is not
sorted by the key you are grouping by! This means that if your list of
people was not sorted by gender, you'd need to make sure it is sorted
before using it, i.e.::
{% regroup people|dictsort:"gender" by gender as grouped %} |
(module
(function_definition
(function_name_describe) function_name_describe
(parameters
(identifier_DomainName) identifier_DomainName
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier__get_conn) identifier__get_conn
(argument_list
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_domain) identifier_domain
(call
(attribute
(identifier_conn) identifier_conn
(identifier_describe_elasticsearch_domain_config) identifier_describe_elasticsearch_domain_config
)attribute
(argument_list
(keyword_argument
(identifier_DomainName) identifier_DomainName
(identifier_DomainName) identifier_DomainName
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_domain) identifier_domain
(comparison_operator
(string_'DomainConfig') string_'DomainConfig'
(identifier_domain) identifier_domain
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_domain) identifier_domain
(subscript
(identifier_domain) identifier_domain
(string_'DomainConfig') string_'DomainConfig'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_keys) identifier_keys
(tuple
(string_'ElasticsearchClusterConfig') string_'ElasticsearchClusterConfig'
(string_'EBSOptions') string_'EBSOptions'
(string_'AccessPolicies') string_'AccessPolicies'
(string_'SnapshotOptions') string_'SnapshotOptions'
(string_'AdvancedOptions') string_'AdvancedOptions'
)tuple
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'domain') string_'domain'
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(tuple
(identifier_k) identifier_k
(call
(attribute
(call
(attribute
(identifier_domain) identifier_domain
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_k) identifier_k
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Options') string_'Options'
)argument_list
)call
)tuple
(for_in_clause
(identifier_k) identifier_k
(identifier_keys) identifier_keys
)for_in_clause
(if_clause
(comparison_operator
(identifier_k) identifier_k
(identifier_domain) identifier_domain
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)pair
)dictionary
)return_statement
)block
(else_clause
(block
(return_statement
(dictionary
(pair
(string_'domain') string_'domain'
(None) None
)pair
)dictionary
)return_statement
)block
)else_clause
)if_statement
)block
(except_clause
(as_pattern
(identifier_ClientError) identifier_ClientError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(return_statement
(dictionary
(pair
(string_'error') string_'error'
(call
(subscript
(identifier___utils__) identifier___utils__
(string_'boto3.get_error') string_'boto3.get_error'
)subscript
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Given a domain name describe its properties.
Returns a dictionary of interesting properties.
CLI Example:
.. code-block:: bash
salt myminion boto_elasticsearch_domain.describe mydomain |
(module
(function_definition
(function_name_vars_class) function_name_vars_class
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(identifier_chain) identifier_chain
(identifier_from_iterable) identifier_from_iterable
)attribute
(generator_expression
(call
(attribute
(call
(identifier_vars) identifier_vars
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_cls) identifier_cls
(call
(identifier_reversed) identifier_reversed
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier___mro__) identifier___mro__
)attribute
)argument_list
)call
)for_in_clause
)generator_expression
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a dict of vars for the given class, including all ancestors.
This differs from the usual behaviour of `vars` which returns attributes
belonging to the given class and not its ancestors. |
(module
(function_definition
(function_name_InterpolateValue) function_name_InterpolateValue
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(default_parameter
(identifier_type_info_obj) identifier_type_info_obj
(call
(attribute
(identifier_type_info) identifier_type_info
(identifier_String) identifier_String
)attribute
(argument_list
)argument_list
)call
)default_parameter
(default_parameter
(identifier_default_section) identifier_default_section
(None) None
)default_parameter
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_Text) identifier_Text
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(identifier_StringInterpolator) identifier_StringInterpolator
(argument_list
(identifier_value) identifier_value
(identifier_self) identifier_self
(keyword_argument
(identifier_default_section) identifier_default_section
(identifier_default_section) identifier_default_section
)keyword_argument
(keyword_argument
(identifier_parameter) identifier_parameter
(attribute
(identifier_type_info_obj) identifier_type_info_obj
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
)argument_list
)call
(identifier_Parse) identifier_Parse
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_InterpolationError) identifier_InterpolationError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(string_"{cause}: {detail}") string_"{cause}: {detail}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_cause) identifier_cause
(identifier_e) identifier_e
)keyword_argument
(keyword_argument
(identifier_detail) identifier_detail
(identifier_value) identifier_value
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(call
(identifier_type) identifier_type
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_type_info_obj) identifier_type_info_obj
(identifier_FromString) identifier_FromString
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_InterpolateValue) identifier_InterpolateValue
)attribute
(argument_list
(identifier_v) identifier_v
(keyword_argument
(identifier_default_section) identifier_default_section
(identifier_default_section) identifier_default_section
)keyword_argument
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(identifier_value) identifier_value
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Interpolate the value and parse it with the appropriate type. |
(module
(function_definition
(function_name_interstore) function_name_interstore
(parameters
(identifier_self) identifier_self
(identifier_dest) identifier_dest
(list_splat_pattern
(identifier_others) identifier_others
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
(attribute
(identifier_self) identifier_self
(identifier_key) identifier_key
)attribute
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_keys) identifier_keys
(identifier_extend) identifier_extend
)attribute
(argument_list
(list_comprehension
(attribute
(identifier_other) identifier_other
(identifier_key) identifier_key
)attribute
(for_in_clause
(identifier_other) identifier_other
(identifier_others) identifier_others
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
(identifier_sinterstore) identifier_sinterstore
)attribute
(argument_list
(identifier_dest) identifier_dest
(identifier_keys) identifier_keys
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
(identifier_Set) identifier_Set
)attribute
(argument_list
(identifier_dest) identifier_dest
)argument_list
)call
)return_statement
)block
)function_definition
)module | Store the intersection of the current set and one or more
others in a new key.
:param dest: the name of the key to store intersection
:param others: One or more :py:class:`Set` instances
:returns: A :py:class:`Set` referencing ``dest``. |
(module
(function_definition
(function_name_extended_fade_out) function_name_extended_fade_out
(parameters
(identifier_self) identifier_self
(identifier_segment) identifier_segment
(identifier_duration) identifier_duration
)parameters
(block
(expression_statement
(assignment
(identifier_dur) identifier_dur
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_duration) identifier_duration
(attribute
(attribute
(identifier_segment) identifier_segment
(identifier_track) identifier_track
)attribute
(identifier_samplerate) identifier_samplerate
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(binary_operator
(attribute
(identifier_segment) identifier_segment
(identifier_start) identifier_start
)attribute
(attribute
(identifier_segment) identifier_segment
(identifier_duration) identifier_duration
)attribute
)binary_operator
(identifier_dur) identifier_dur
)binary_operator
(line_continuation_\) line_continuation_\
(attribute
(attribute
(identifier_segment) identifier_segment
(identifier_track) identifier_track
)attribute
(identifier_duration) identifier_duration
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_segment) identifier_segment
(identifier_duration) identifier_duration
)attribute
(identifier_dur) identifier_dur
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"Cannot create fade-out that extends past the track's end") string_"Cannot create fade-out that extends past the track's end"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_score_loc_in_seconds) identifier_score_loc_in_seconds
(binary_operator
(binary_operator
(attribute
(identifier_segment) identifier_segment
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(line_continuation_\) line_continuation_\
(attribute
(identifier_segment) identifier_segment
(identifier_duration_in_seconds) identifier_duration_in_seconds
)attribute
)binary_operator
(identifier_duration) identifier_duration
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_Fade) identifier_Fade
(argument_list
(attribute
(identifier_segment) identifier_segment
(identifier_track) identifier_track
)attribute
(identifier_score_loc_in_seconds) identifier_score_loc_in_seconds
(identifier_duration) identifier_duration
(float_1.0) float_1.0
(float_0.0) float_0.0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_dynamic) identifier_add_dynamic
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
)module | Add a fade-out to a segment that extends the beginning of the
segment.
:param segment: Segment to fade out
:type segment: :py:class:`radiotool.composer.Segment`
:param duration: Duration of fade-out (in seconds)
:returns: The fade that has been added to the composition
:rtype: :py:class:`Fade` |
(module
(function_definition
(function_name_happybirthday) function_name_happybirthday
(parameters
(identifier_person) identifier_person
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Happy Birthday To You') string_'Happy Birthday To You'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Happy Birthday To You') string_'Happy Birthday To You'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(binary_operator
(string_'Happy Birthday Dear ') string_'Happy Birthday Dear '
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(subscript
(identifier_person) identifier_person
(integer_0) integer_0
)subscript
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_person) identifier_person
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Happy Birthday To You') string_'Happy Birthday To You'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sing Happy Birthday |
(module
(function_definition
(function_name_cylinder) function_name_cylinder
(parameters
(identifier_target) identifier_target
(default_parameter
(identifier_throat_length) identifier_throat_length
(string_'throat.length') string_'throat.length'
)default_parameter
(default_parameter
(identifier_throat_diameter) identifier_throat_diameter
(string_'throat.diameter') string_'throat.diameter'
)default_parameter
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_leng) identifier_leng
(subscript
(identifier_target) identifier_target
(identifier_throat_length) identifier_throat_length
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_diam) identifier_diam
(subscript
(identifier_target) identifier_target
(identifier_throat_diameter) identifier_throat_diameter
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(binary_operator
(binary_operator
(attribute
(identifier__sp) identifier__sp
(identifier_pi) identifier_pi
)attribute
(integer_4) integer_4
)binary_operator
(identifier_leng) identifier_leng
)binary_operator
(binary_operator
(identifier_diam) identifier_diam
(integer_2) integer_2
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | r"""
Calculate throat volume assuing a cylindrical shape
Parameters
----------
target : OpenPNM Object
The object which this model is associated with. This controls the
length of the calculated array, and also provides access to other
necessary properties.
throat_length and throat_diameter : strings
The dictionary keys containing the arrays with the throat diameter and
length values.
Notes
-----
At present this models does NOT account for the volume reprsented by the
intersection of the throat with a spherical pore body. |
(module
(function_definition
(function_name_sequence) function_name_sequence
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_seq) identifier_seq
(list_comprehension
(attribute
(identifier_x) identifier_x
(identifier_mol_code) identifier_mol_code
)attribute
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier__monomers) identifier__monomers
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_seq) identifier_seq
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the sequence of the `Polynucleotide` as a string.
Returns
-------
sequence : str
String of the monomer sequence of the `Polynucleotide`. |
(module
(function_definition
(function_name_disconnect) function_name_disconnect
(parameters
(identifier_self) identifier_self
(identifier_reason) identifier_reason
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__server) identifier__server
)attribute
(identifier__disconnect_client) identifier__disconnect_client
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__conn_key) identifier__conn_key
)attribute
(identifier_self) identifier_self
(identifier_reason) identifier_reason
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Disconnect this client connection for specified reason |
(module
(function_definition
(function_name_rule) function_name_rule
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_step_ratio) identifier_step_ratio
(attribute
(identifier_self) identifier_self
(identifier_step_ratio) identifier_step_ratio
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(attribute
(identifier_self) identifier_self
(identifier_method) identifier_method
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_method) identifier_method
(tuple
(string_'multicomplex') string_'multicomplex'
)tuple
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_n) identifier_n
)attribute
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_ones) identifier_ones
)attribute
(argument_list
(tuple
(integer_1) integer_1
)tuple
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_order) identifier_order
(identifier_method_order) identifier_method_order
)pattern_list
(expression_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_n) identifier_n
)attribute
(integer_1) integer_1
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier__method_order) identifier__method_order
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parity) identifier_parity
(call
(attribute
(identifier_self) identifier_self
(identifier__parity) identifier__parity
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_order) identifier_order
(identifier_method_order) identifier_method_order
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_step) identifier_step
(call
(attribute
(identifier_self) identifier_self
(identifier__richardson_step) identifier__richardson_step
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_num_terms) identifier_num_terms
(identifier_ix) identifier_ix
)pattern_list
(expression_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_order) identifier_order
(identifier_method_order) identifier_method_order
)binary_operator
)parenthesized_expression
(identifier_step) identifier_step
)binary_operator
(binary_operator
(identifier_order) identifier_order
(identifier_step) identifier_step
)binary_operator
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fd_rules) identifier_fd_rules
(call
(attribute
(identifier_FD_RULES) identifier_FD_RULES
(identifier_get) identifier_get
)attribute
(argument_list
(tuple
(identifier_step_ratio) identifier_step_ratio
(identifier_parity) identifier_parity
(identifier_num_terms) identifier_num_terms
)tuple
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_fd_rules) identifier_fd_rules
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_fd_mat) identifier_fd_mat
(call
(attribute
(identifier_self) identifier_self
(identifier__fd_matrix) identifier__fd_matrix
)attribute
(argument_list
(identifier_step_ratio) identifier_step_ratio
(identifier_parity) identifier_parity
(identifier_num_terms) identifier_num_terms
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fd_rules) identifier_fd_rules
(call
(attribute
(identifier_linalg) identifier_linalg
(identifier_pinv) identifier_pinv
)attribute
(argument_list
(identifier_fd_mat) identifier_fd_mat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_FD_RULES) identifier_FD_RULES
(tuple
(identifier_step_ratio) identifier_step_ratio
(identifier_parity) identifier_parity
(identifier_num_terms) identifier_num_terms
)tuple
)subscript
(identifier_fd_rules) identifier_fd_rules
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__flip_fd_rule) identifier__flip_fd_rule
)attribute
(block
(return_statement
(unary_operator
(subscript
(identifier_fd_rules) identifier_fd_rules
(identifier_ix) identifier_ix
)subscript
)unary_operator
)return_statement
)block
)if_statement
(return_statement
(subscript
(identifier_fd_rules) identifier_fd_rules
(identifier_ix) identifier_ix
)subscript
)return_statement
)block
)function_definition
)module | Return finite differencing rule.
The rule is for a nominal unit step size, and must be scaled later
to reflect the local step size.
Member methods used
-------------------
_fd_matrix
Member variables used
---------------------
n
order
method |
(module
(function_definition
(function_name_next_task) function_name_next_task
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(attribute
(identifier_self) identifier_self
(identifier__find_next_ready_node) identifier__find_next_ready_node
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_node) identifier_node
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_executor) identifier_executor
(call
(attribute
(identifier_node) identifier_node
(identifier_get_executor) identifier_get_executor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_executor) identifier_executor
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tlist) identifier_tlist
(call
(attribute
(identifier_executor) identifier_executor
(identifier_get_all_targets) identifier_get_all_targets
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_task) identifier_task
(call
(attribute
(identifier_self) identifier_self
(identifier_tasker) identifier_tasker
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_tlist) identifier_tlist
(comparison_operator
(identifier_node) identifier_node
(attribute
(identifier_self) identifier_self
(identifier_original_top) identifier_original_top
)attribute
)comparison_operator
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_task) identifier_task
(identifier_make_ready) identifier_make_ready
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ready_exc) identifier_ready_exc
)attribute
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_ready_exc) identifier_ready_exc
)attribute
(block
(expression_statement
(call
(attribute
(identifier_task) identifier_task
(identifier_exception_set) identifier_exception_set
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ready_exc) identifier_ready_exc
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ready_exc) identifier_ready_exc
)attribute
(None) None
)assignment
)expression_statement
(return_statement
(identifier_task) identifier_task
)return_statement
)block
)function_definition
)module | Returns the next task to be executed.
This simply asks for the next Node to be evaluated, and then wraps
it in the specific Task subclass with which we were initialized. |
(module
(function_definition
(function_name_find_outputs_in_range) function_name_find_outputs_in_range
(parameters
(identifier_self) identifier_self
(identifier_ifo) identifier_ifo
(identifier_current_segment) identifier_current_segment
(default_parameter
(identifier_useSplitLists) identifier_useSplitLists
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_currsegment_list) identifier_currsegment_list
(call
(attribute
(identifier_segments) identifier_segments
(identifier_segmentlist) identifier_segmentlist
)attribute
(argument_list
(list
(identifier_current_segment) identifier_current_segment
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_overlap_files) identifier_overlap_files
(call
(attribute
(identifier_self) identifier_self
(identifier_find_all_output_in_range) identifier_find_all_output_in_range
)attribute
(argument_list
(identifier_ifo) identifier_ifo
(identifier_current_segment) identifier_current_segment
(keyword_argument
(identifier_useSplitLists) identifier_useSplitLists
(identifier_useSplitLists) identifier_useSplitLists
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_overlap_windows) identifier_overlap_windows
(list_comprehension
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(attribute
(identifier_i) identifier_i
(identifier_segment_list) identifier_segment_list
)attribute
(identifier_currsegment_list) identifier_currsegment_list
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(identifier_overlap_files) identifier_overlap_files
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_overlap_windows) identifier_overlap_windows
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_overlap_windows) identifier_overlap_windows
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_overlap_windows) identifier_overlap_windows
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_int) identifier_int
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_segmentLst) identifier_segmentLst
(attribute
(subscript
(identifier_overlap_files) identifier_overlap_files
(call
(attribute
(identifier_overlap_windows) identifier_overlap_windows
(identifier_argmax) identifier_argmax
)attribute
(argument_list
)argument_list
)call
)subscript
(identifier_segment_list) identifier_segment_list
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output_files) identifier_output_files
(list_comprehension
(identifier_f) identifier_f
(for_in_clause
(identifier_f) identifier_f
(identifier_overlap_files) identifier_overlap_files
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_f) identifier_f
(identifier_segment_list) identifier_segment_list
)attribute
(identifier_segmentLst) identifier_segmentLst
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_output_files) identifier_output_files
)return_statement
)block
)function_definition
)module | Return the list of Files that is most appropriate for the supplied
time range. That is, the Files whose coverage time has the
largest overlap with the supplied time range.
Parameters
-----------
ifo : string
Name of the ifo (or ifos) that the File should correspond to
current_segment : glue.segment.segment
The segment of time that files must intersect.
Returns
--------
FileList class
The list of Files that are most appropriate for the time range |
(module
(function_definition
(function_name_add_connection_score) function_name_add_connection_score
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(identifier_conntime) identifier_conntime
(call
(attribute
(identifier_node) identifier_node
(identifier_seconds_until_connect_ok) identifier_seconds_until_connect_ok
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_conntime) identifier_conntime
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_"not considering %r for new connection; has %r left on ") string_"not considering %r for new connection; has %r left on "
(string_"connect blackout") string_"connect blackout"
)concatenated_string
(tuple
(identifier_node) identifier_node
(identifier_conntime) identifier_conntime
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(unary_operator
(identifier_conntime) identifier_conntime
)unary_operator
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_numconns) identifier_numconns
(call
(attribute
(identifier_self) identifier_self
(identifier_num_connectors_to) identifier_num_connectors_to
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_numconns) identifier_numconns
(attribute
(identifier_self) identifier_self
(identifier_max_connections_per_node) identifier_max_connections_per_node
)attribute
)comparison_operator
(block
(return_statement
(call
(identifier_float) identifier_float
(argument_list
(string_'-Inf') string_'-Inf'
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(attribute
(identifier_sys) identifier_sys
(identifier_maxint) identifier_maxint
)attribute
(identifier_numconns) identifier_numconns
)binary_operator
)return_statement
)block
)function_definition
)module | Return a numeric value that determines this node's score for adding
a new connection. A negative value indicates that no connections
should be made to this node for at least that number of seconds.
A value of -inf indicates no connections should be made to this
node for the foreseeable future.
This score should ideally take into account the connectedness of
available nodes, so that those with less current connections will
get more. |
(module
(function_definition
(function_name_get_average_along_axis) function_name_get_average_along_axis
(parameters
(identifier_self) identifier_self
(identifier_ind) identifier_ind
)parameters
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(string_"total") string_"total"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ng) identifier_ng
(attribute
(identifier_self) identifier_self
(identifier_dim) identifier_dim
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ind) identifier_ind
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_total) identifier_total
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_m) identifier_m
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_ind) identifier_ind
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_total) identifier_total
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_m) identifier_m
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_total) identifier_total
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_m) identifier_m
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(binary_operator
(binary_operator
(identifier_total) identifier_total
(subscript
(identifier_ng) identifier_ng
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_ind) identifier_ind
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(integer_3) integer_3
)binary_operator
)subscript
)binary_operator
(subscript
(identifier_ng) identifier_ng
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_ind) identifier_ind
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(integer_3) integer_3
)binary_operator
)subscript
)binary_operator
)return_statement
)block
)function_definition
)module | Get the averaged total of the volumetric data a certain axis direction.
For example, useful for visualizing Hartree Potentials from a LOCPOT
file.
Args:
ind (int): Index of axis.
Returns:
Average total along axis |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(None) None
)comparison_operator
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_dirty) identifier_dirty
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__loader) identifier__loader
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cachename) identifier_cachename
)attribute
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_stream) identifier_stream
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(call
(attribute
(identifier_cPickle) identifier_cPickle
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_stream) identifier_stream
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
)return_statement
)block
)function_definition
)module | Loads the Python object
Loads the Python object, either via loader(filename) or the
pickled cache file, whichever was modified most recently. |
(module
(function_definition
(function_name_text) function_name_text
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_texts) identifier_texts
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_child) identifier_child
(attribute
(identifier_self) identifier_self
(identifier_childs) identifier_childs
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_child) identifier_child
(identifier_Tag) identifier_Tag
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_texts) identifier_texts
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_child) identifier_child
(identifier_text) identifier_text
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_child) identifier_child
(identifier_Content) identifier_Content
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_texts) identifier_texts
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_child) identifier_child
(identifier_render) identifier_render
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_texts) identifier_texts
(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_texts) identifier_texts
)argument_list
)call
)return_statement
)block
)function_definition
)module | Renders the contents inside this element, without html tags. |
(module
(function_definition
(function_name_userlogin) function_name_userlogin
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_client_uuid) identifier_client_uuid
(attribute
(identifier_event) identifier_event
(identifier_clientuuid) identifier_clientuuid
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(attribute
(identifier_event) identifier_event
(identifier_user) identifier_user
)attribute
(keyword_argument
(identifier_pretty) identifier_pretty
(True) True
)keyword_argument
(keyword_argument
(identifier_lvl) identifier_lvl
(identifier_verbose) identifier_verbose
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(string_'Adding client') string_'Adding client'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_clients) identifier_clients
)attribute
(attribute
(identifier_event) identifier_event
(identifier_clientuuid) identifier_clientuuid
)attribute
)subscript
(attribute
(identifier_event) identifier_event
(identifier_user) identifier_user
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_topic) identifier_topic
(identifier_alert) identifier_alert
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_alerts) identifier_alerts
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_alert) identifier_alert
)attribute
(argument_list
(identifier_client_uuid) identifier_client_uuid
(identifier_alert) identifier_alert
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Checks if an alert is ongoing and alerts the newly connected
client, if so. |
(module
(function_definition
(function_name_setSystemProperty) function_name_setSystemProperty
(parameters
(identifier_cls) identifier_cls
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(call
(attribute
(identifier_SparkContext) identifier_SparkContext
(identifier__ensure_initialized) identifier__ensure_initialized
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(attribute
(attribute
(identifier_SparkContext) identifier_SparkContext
(identifier__jvm) identifier__jvm
)attribute
(identifier_java) identifier_java
)attribute
(identifier_lang) identifier_lang
)attribute
(identifier_System) identifier_System
)attribute
(identifier_setProperty) identifier_setProperty
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set a Java system property, such as spark.executor.memory. This must
must be invoked before instantiating SparkContext. |
(module
(function_definition
(function_name__effectupdate_raise_line_padding_on_focus) function_name__effectupdate_raise_line_padding_on_focus
(parameters
(identifier_self) identifier_self
(identifier_time_passed) identifier_time_passed
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(attribute
(identifier_self) identifier_self
(identifier__effects) identifier__effects
)attribute
(string_'raise-line-padding-on-focus') string_'raise-line-padding-on-focus'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pps) identifier_pps
(subscript
(identifier_data) identifier_data
(string_'padding_pps') string_'padding_pps'
)subscript
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_option) identifier_option
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier_option) identifier_option
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(subscript
(identifier_data) identifier_data
(string_'padding') string_'padding'
)subscript
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(binary_operator
(identifier_pps) identifier_pps
(identifier_time_passed) identifier_time_passed
)binary_operator
)augmented_assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(subscript
(identifier_data) identifier_data
(string_'padding') string_'padding'
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(subscript
(identifier_data) identifier_data
(string_'padding') string_'padding'
)subscript
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
(elif_clause
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(block
(if_statement
(comparison_operator
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(binary_operator
(identifier_pps) identifier_pps
(identifier_time_passed) identifier_time_passed
)binary_operator
)augmented_assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_option) identifier_option
(string_'padding_line') string_'padding_line'
)subscript
(integer_0) integer_0
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Gradually enlarge the padding of the focused line. |
(module
(function_definition
(function_name_relieve_all_models) function_name_relieve_all_models
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_map) identifier_map
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_relieve_model) identifier_relieve_model
)attribute
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___registered_models) identifier___registered_models
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___registered_models) identifier___registered_models
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Relieve all registered models
The method uses the set of registered models to relieve them. |
(module
(function_definition
(function_name_bk_light) function_name_bk_light
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(string_"Make the current background color light.") string_"Make the current background color light."
)expression_statement
(expression_statement
(assignment
(identifier_wAttributes) identifier_wAttributes
(call
(attribute
(identifier_cls) identifier_cls
(identifier__get_text_attributes) identifier__get_text_attributes
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_wAttributes) identifier_wAttributes
(attribute
(identifier_win32) identifier_win32
(identifier_BACKGROUND_INTENSITY) identifier_BACKGROUND_INTENSITY
)attribute
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__set_text_attributes) identifier__set_text_attributes
)attribute
(argument_list
(identifier_wAttributes) identifier_wAttributes
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Make the current background color light. |
(module
(function_definition
(function_name__is_accepted) function_name__is_accepted
(parameters
(identifier_self) identifier_self
(identifier_element_tag) identifier_element_tag
)parameters
(block
(expression_statement
(assignment
(identifier_element_tag) identifier_element_tag
(call
(attribute
(identifier_element_tag) identifier_element_tag
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__ignored_tags) identifier__ignored_tags
)attribute
(None) None
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_element_tag) identifier_element_tag
(attribute
(identifier_self) identifier_self
(identifier__ignored_tags) identifier__ignored_tags
)attribute
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__followed_tags) identifier__followed_tags
)attribute
(None) None
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_element_tag) identifier_element_tag
(attribute
(identifier_self) identifier_self
(identifier__followed_tags) identifier__followed_tags
)attribute
)comparison_operator
)return_statement
)block
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return if the link is accepted by the filters. |
(module
(function_definition
(function_name_GetNodeStorageUnits) function_name_GetNodeStorageUnits
(parameters
(identifier_r) identifier_r
(identifier_node) identifier_node
(identifier_storage_type) identifier_storage_type
(identifier_output_fields) identifier_output_fields
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(dictionary
(pair
(string_"storage_type") string_"storage_type"
(identifier_storage_type) identifier_storage_type
)pair
(pair
(string_"output_fields") string_"output_fields"
(identifier_output_fields) identifier_output_fields
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_request) identifier_request
)attribute
(argument_list
(string_"get") string_"get"
(binary_operator
(string_"/2/nodes/%s/storage") string_"/2/nodes/%s/storage"
(identifier_node) identifier_node
)binary_operator
(keyword_argument
(identifier_query) identifier_query
(identifier_query) identifier_query
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the storage units for a node.
@type node: str
@param node: the node whose storage units to return
@type storage_type: str
@param storage_type: storage type whose units to return
@type output_fields: str
@param output_fields: storage type fields to return
@rtype: int
@return: job id where results can be retrieved |
(module
(function_definition
(function_name_get_fields) function_name_get_fields
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_strip_labels) identifier_strip_labels
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_strip_labels) identifier_strip_labels
(block
(return_statement
(list_comprehension
(conditional_expression
(subscript
(identifier_f) identifier_f
(integer_0) integer_0
)subscript
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(tuple
(identifier_tuple) identifier_tuple
(identifier_list) identifier_list
)tuple
)comparison_operator
(identifier_f) identifier_f
)conditional_expression
(for_in_clause
(identifier_f) identifier_f
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
)for_in_clause
)list_comprehension
)return_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
)return_statement
)block
)function_definition
)module | Hook to dynamically change the fields that will be displayed |
(module
(function_definition
(function_name_second_textx_model) function_name_second_textx_model
(parameters
(identifier_self) identifier_self
(identifier_model_parser) identifier_model_parser
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grammar_parser) identifier_grammar_parser
)attribute
(identifier_debug) identifier_debug
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grammar_parser) identifier_grammar_parser
)attribute
(identifier_dprint) identifier_dprint
)attribute
(argument_list
(string_"RESOLVING MODEL PARSER: second_pass") string_"RESOLVING MODEL PARSER: second_pass"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__resolve_rule_refs) identifier__resolve_rule_refs
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_grammar_parser) identifier_grammar_parser
)attribute
(identifier_model_parser) identifier_model_parser
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__determine_rule_types) identifier__determine_rule_types
)attribute
(argument_list
(attribute
(identifier_model_parser) identifier_model_parser
(identifier_metamodel) identifier_metamodel
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__resolve_cls_refs) identifier__resolve_cls_refs
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_grammar_parser) identifier_grammar_parser
)attribute
(identifier_model_parser) identifier_model_parser
)argument_list
)call
)expression_statement
(return_statement
(identifier_model_parser) identifier_model_parser
)return_statement
)block
)function_definition
)module | Cross reference resolving for parser model. |
(module
(function_definition
(function_name___calculate_audio_frames) function_name___calculate_audio_frames
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_audioformat) identifier_audioformat
)attribute
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_start_frame) identifier_start_frame
(attribute
(attribute
(identifier_self) identifier_self
(identifier_clock) identifier_clock
)attribute
(identifier_current_frame) identifier_current_frame
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_totalsize) identifier_totalsize
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_clip) identifier_clip
)attribute
(identifier_audio) identifier_audio
)attribute
(identifier_fps) identifier_fps
)attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_clip) identifier_clip
)attribute
(identifier_audio) identifier_audio
)attribute
(identifier_duration) identifier_duration
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_audio_times) identifier_audio_times
)attribute
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(identifier_totalsize) identifier_totalsize
(subscript
(attribute
(identifier_self) identifier_self
(identifier_audioformat) identifier_audioformat
)attribute
(string_'buffersize') string_'buffersize'
)subscript
)argument_list
)call
)argument_list
)call
(list
(identifier_totalsize) identifier_totalsize
)list
)binary_operator
)assignment
)expression_statement
(delete_statement
(parenthesized_expression
(subscript
(attribute
(identifier_self) identifier_self
(identifier_audio_times) identifier_audio_times
)attribute
(slice
(integer_0) integer_0
(colon) colon
(identifier_start_frame) identifier_start_frame
)slice
)subscript
)parenthesized_expression
)delete_statement
)block
)function_definition
)module | Aligns audio with video.
This should be called for instance after a seeking operation or resuming
from a pause. |
(module
(function_definition
(function_name_update_nb_metadata) function_name_update_nb_metadata
(parameters
(default_parameter
(identifier_nb_path) identifier_nb_path
(None) None
)default_parameter
(default_parameter
(identifier_title) identifier_title
(None) None
)default_parameter
(default_parameter
(identifier_summary) identifier_summary
(None) None
)default_parameter
(default_parameter
(identifier_keywords) identifier_keywords
(string_'fastai') string_'fastai'
)default_parameter
(default_parameter
(identifier_overwrite) identifier_overwrite
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(string_"Creates jekyll metadata for given notebook path.") string_"Creates jekyll metadata for given notebook path."
)expression_statement
(expression_statement
(assignment
(identifier_nb) identifier_nb
(call
(identifier_read_nb) identifier_read_nb
(argument_list
(identifier_nb_path) identifier_nb_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'title') string_'title'
(identifier_title) identifier_title
)pair
(pair
(string_'summary') string_'summary'
(identifier_summary) identifier_summary
)pair
(pair
(string_'keywords') string_'keywords'
(identifier_keywords) identifier_keywords
)pair
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(identifier_v) identifier_v
)pair
(for_in_clause
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(identifier_data) identifier_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
)if_clause
)dictionary_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_data) identifier_data
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_nb) identifier_nb
(string_'metadata') string_'metadata'
)subscript
(string_'jekyll') string_'jekyll'
)subscript
(identifier_data) identifier_data
)assignment
)expression_statement
(expression_statement
(call
(identifier_write_nb) identifier_write_nb
(argument_list
(identifier_nb) identifier_nb
(identifier_nb_path) identifier_nb_path
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_NotebookNotary) identifier_NotebookNotary
(argument_list
)argument_list
)call
(identifier_sign) identifier_sign
)attribute
(argument_list
(identifier_nb) identifier_nb
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Creates jekyll metadata for given notebook path. |
(module
(function_definition
(function_name_contains_info) function_name_contains_info
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_library) identifier_library
)attribute
(None) None
)comparison_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_load) identifier_load
(attribute
(attribute
(identifier_self) identifier_self
(identifier_library) identifier_library
)attribute
(identifier_load_card) identifier_load_card
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_matches) identifier_matches
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_code) identifier_code
(attribute
(identifier_self) identifier_self
(identifier_cards) identifier_cards
)attribute
(block
(expression_statement
(assignment
(identifier_card) identifier_card
(call
(identifier_load) identifier_load
(argument_list
(identifier_code) identifier_code
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_card) identifier_card
(identifier_get_info) identifier_get_info
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(identifier_value) identifier_value
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_matches) identifier_matches
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_matches) identifier_matches
)return_statement
)block
)function_definition
)module | Returns how many cards in the deck have the specified value under the
specified key in their info data.
This method requires a library to be stored in the deck instance and
will return `None` if there is no library. |
(module
(function_definition
(function_name__format_type) function_name__format_type
(parameters
(identifier_lines) identifier_lines
(identifier_element) identifier_element
(default_parameter
(identifier_spacer) identifier_spacer
(string_"") string_""
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rlines) identifier_rlines
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rlines) identifier_rlines
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_signature) identifier_signature
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__format_summary) identifier__format_summary
(argument_list
(identifier_rlines) identifier_rlines
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_rlines) identifier_rlines
(identifier_append) identifier_append
)attribute
(argument_list
(string_"") string_""
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__format_generic) identifier__format_generic
(argument_list
(identifier_rlines) identifier_rlines
(identifier_element) identifier_element
(list
(string_"summary") string_"summary"
)list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_executables) identifier_executables
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_rlines) identifier_rlines
(identifier_append) identifier_append
)attribute
(argument_list
(string_"\nEMBEDDED PROCEDURES") string_"\nEMBEDDED PROCEDURES"
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(identifier_element) identifier_element
(identifier_executables) identifier_executables
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_rlines) identifier_rlines
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_" {}") string_" {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_value) identifier_value
(identifier___str__) identifier___str__
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_target) identifier_target
(attribute
(identifier_value) identifier_value
(identifier_target) identifier_target
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_target) identifier_target
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier__format_executable) identifier__format_executable
(argument_list
(identifier_rlines) identifier_rlines
(identifier_target) identifier_target
(string_" ") string_" "
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_members) identifier_members
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_rlines) identifier_rlines
(identifier_append) identifier_append
)attribute
(argument_list
(string_"\nEMBEDDED MEMBERS") string_"\nEMBEDDED MEMBERS"
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(identifier_element) identifier_element
(identifier_members) identifier_members
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(identifier__format_value_element) identifier__format_value_element
(argument_list
(identifier_rlines) identifier_rlines
(identifier_value) identifier_value
(string_" ") string_" "
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_extend) identifier_extend
)attribute
(argument_list
(list_comprehension
(binary_operator
(identifier_spacer) identifier_spacer
(identifier_l) identifier_l
)binary_operator
(for_in_clause
(identifier_l) identifier_l
(identifier_rlines) identifier_rlines
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Formats a derived type for full documentation output. |
(module
(function_definition
(function_name_split) function_name_split
(parameters
(identifier_str) identifier_str
(identifier_pattern) identifier_pattern
(default_parameter
(identifier_limit) identifier_limit
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_sc) identifier_sc
(attribute
(identifier_SparkContext) identifier_SparkContext
(identifier__active_spark_context) identifier__active_spark_context
)attribute
)assignment
)expression_statement
(return_statement
(call
(identifier_Column) identifier_Column
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_sc) identifier_sc
(identifier__jvm) identifier__jvm
)attribute
(identifier_functions) identifier_functions
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(call
(identifier__to_java_column) identifier__to_java_column
(argument_list
(identifier_str) identifier_str
)argument_list
)call
(identifier_pattern) identifier_pattern
(identifier_limit) identifier_limit
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Splits str around matches of the given pattern.
:param str: a string expression to split
:param pattern: a string representing a regular expression. The regex string should be
a Java regular expression.
:param limit: an integer which controls the number of times `pattern` is applied.
* ``limit > 0``: The resulting array's length will not be more than `limit`, and the
resulting array's last entry will contain all input beyond the last
matched pattern.
* ``limit <= 0``: `pattern` will be applied as many times as possible, and the resulting
array can be of any size.
.. versionchanged:: 3.0
`split` now takes an optional `limit` field. If not provided, default limit value is -1.
>>> df = spark.createDataFrame([('oneAtwoBthreeC',)], ['s',])
>>> df.select(split(df.s, '[ABC]', 2).alias('s')).collect()
[Row(s=[u'one', u'twoBthreeC'])]
>>> df.select(split(df.s, '[ABC]', -1).alias('s')).collect()
[Row(s=[u'one', u'two', u'three', u''])] |
(module
(function_definition
(function_name_pub) function_name_pub
(parameters
(identifier_topic_name) identifier_topic_name
(identifier_json_msg) identifier_json_msg
(default_parameter
(identifier_repeat_rate) identifier_repeat_rate
(None) None
)default_parameter
(default_parameter
(identifier_host) identifier_host
(call
(attribute
(attribute
(identifier_jps) identifier_jps
(identifier_env) identifier_env
)attribute
(identifier_get_master_host) identifier_get_master_host
)attribute
(argument_list
)argument_list
)call
)default_parameter
(default_parameter
(identifier_pub_port) identifier_pub_port
(attribute
(identifier_jps) identifier_jps
(identifier_DEFAULT_PUB_PORT) identifier_DEFAULT_PUB_PORT
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_pub) identifier_pub
(call
(attribute
(identifier_jps) identifier_jps
(identifier_Publisher) identifier_Publisher
)attribute
(argument_list
(identifier_topic_name) identifier_topic_name
(keyword_argument
(identifier_host) identifier_host
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_pub_port) identifier_pub_port
(identifier_pub_port) identifier_pub_port
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.1) float_0.1
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_repeat_rate) identifier_repeat_rate
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pub) identifier_pub
(identifier_publish) identifier_publish
)attribute
(argument_list
(identifier_json_msg) identifier_json_msg
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(try_statement
(block
(while_statement
(True) True
(block
(expression_statement
(call
(attribute
(identifier_pub) identifier_pub
(identifier_publish) identifier_publish
)attribute
(argument_list
(identifier_json_msg) identifier_json_msg
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(binary_operator
(float_1.0) float_1.0
(identifier_repeat_rate) identifier_repeat_rate
)binary_operator
)argument_list
)call
)expression_statement
)block
)while_statement
)block
(except_clause
(identifier_KeyboardInterrupt) identifier_KeyboardInterrupt
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | publishes the data to the topic
:param topic_name: name of the topic
:param json_msg: data to be published
:param repeat_rate: if None, publishes once. if not None, it is used as [Hz]. |
(module
(function_definition
(function_name__get_has_relation_query) function_name__get_has_relation_query
(parameters
(identifier_self) identifier_self
(identifier_relation) identifier_relation
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_relations) identifier_relations
)dotted_name
)relative_import
(dotted_name
(identifier_Relation) identifier_Relation
)dotted_name
)import_from_statement
(return_statement
(call
(attribute
(identifier_Relation) identifier_Relation
(identifier_no_constraints) identifier_no_constraints
)attribute
(argument_list
(lambda
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_model) identifier_get_model
)attribute
(argument_list
)argument_list
)call
(identifier_relation) identifier_relation
)argument_list
)call
(argument_list
)argument_list
)call
)lambda
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the "has" relation base query
:type relation: str
:rtype: Builder |
(module
(function_definition
(function_name__validate_cert_format) function_name__validate_cert_format
(parameters
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_cert_formats) identifier_cert_formats
(list
(string_'cer') string_'cer'
(string_'pfx') string_'pfx'
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_cert_formats) identifier_cert_formats
)comparison_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(parenthesized_expression
(concatenated_string
(string_"Invalid certificate format '{0}' specified. Valid formats:") string_"Invalid certificate format '{0}' specified. Valid formats:"
(string_' {1}') string_' {1}'
)concatenated_string
)parenthesized_expression
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_cert_formats) identifier_cert_formats
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_SaltInvocationError) identifier_SaltInvocationError
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Ensure that the certificate format, as determind from user input, is valid. |
(module
(function_definition
(function_name_uniform_crossover) function_name_uniform_crossover
(parameters
(identifier_parents) identifier_parents
)parameters
(block
(expression_statement
(assignment
(identifier_chromosome_length) identifier_chromosome_length
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_parents) identifier_parents
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_children) identifier_children
(list
(list
)list
(list
)list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_chromosome_length) identifier_chromosome_length
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_selected_parent) identifier_selected_parent
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_children) identifier_children
(integer_0) integer_0
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(subscript
(identifier_parents) identifier_parents
(identifier_selected_parent) identifier_selected_parent
)subscript
(identifier_i) identifier_i
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_children) identifier_children
(integer_1) integer_1
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(subscript
(identifier_parents) identifier_parents
(binary_operator
(integer_1) integer_1
(identifier_selected_parent) identifier_selected_parent
)binary_operator
)subscript
(identifier_i) identifier_i
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_children) identifier_children
)return_statement
)block
)function_definition
)module | Perform uniform crossover on two parent chromosomes.
Randomly take genes from one parent or the other.
Ex. p1 = xxxxx, p2 = yyyyy, child = xyxxy |
(module
(function_definition
(function_name__rule_compare) function_name__rule_compare
(parameters
(identifier_rule1) identifier_rule1
(identifier_rule2) identifier_rule2
)parameters
(block
(expression_statement
(assignment
(identifier_commonkeys) identifier_commonkeys
(call
(attribute
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(identifier_rule1) identifier_rule1
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_intersection) identifier_intersection
)attribute
(argument_list
(call
(attribute
(identifier_rule2) identifier_rule2
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_commonkeys) identifier_commonkeys
(block
(if_statement
(comparison_operator
(subscript
(identifier_rule1) identifier_rule1
(identifier_key) identifier_key
)subscript
(subscript
(identifier_rule2) identifier_rule2
(identifier_key) identifier_key
)subscript
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Compare the common keys between security group rules against eachother |
(module
(function_definition
(function_name_Param) function_name_Param
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(default_parameter
(identifier_unit) identifier_unit
(None) None
)default_parameter
(default_parameter
(identifier_ucd) identifier_ucd
(None) None
)default_parameter
(default_parameter
(identifier_dataType) identifier_dataType
(None) None
)default_parameter
(default_parameter
(identifier_utype) identifier_utype
(None) None
)default_parameter
(default_parameter
(identifier_ac) identifier_ac
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_atts) identifier_atts
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_atts) identifier_atts
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'ac') string_'ac'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_temp_dict) identifier_temp_dict
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_temp_dict) identifier_temp_dict
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_atts) identifier_atts
)argument_list
)call
)expression_statement
(for_statement
(identifier_k) identifier_k
(call
(attribute
(identifier_temp_dict) identifier_temp_dict
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_atts) identifier_atts
(identifier_k) identifier_k
)subscript
(None) None
)comparison_operator
(block
(delete_statement
(subscript
(identifier_atts) identifier_atts
(identifier_k) identifier_k
)subscript
)delete_statement
)block
)if_statement
)block
)for_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(boolean_operator
(identifier_ac) identifier_ac
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
)boolean_operator
(parenthesized_expression
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_string_types) identifier_string_types
)argument_list
)call
)not_operator
)parenthesized_expression
)boolean_operator
(comparison_operator
(identifier_dataType) identifier_dataType
(None) None
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier__datatypes_autoconversion) identifier__datatypes_autoconversion
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_datatype) identifier_datatype
(identifier_func) identifier_func
)pattern_list
(subscript
(identifier__datatypes_autoconversion) identifier__datatypes_autoconversion
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_atts) identifier_atts
(string_'dataType') string_'dataType'
)subscript
(identifier_datatype) identifier_datatype
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_atts) identifier_atts
(string_'value') string_'value'
)subscript
(call
(identifier_func) identifier_func
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_objectify) identifier_objectify
(identifier_Element) identifier_Element
)attribute
(argument_list
(string_'Param') string_'Param'
(keyword_argument
(identifier_attrib) identifier_attrib
(identifier_atts) identifier_atts
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | 'Parameter', used as a general purpose key-value entry in the 'What' section.
May be assembled into a :class:`Group`.
NB ``name`` is not mandated by schema, but *is* mandated in full spec.
Args:
value(str): String representing parameter value.
Or, if ``ac`` is true, then 'autoconversion' is attempted, in which case
``value`` can also be an instance of one of the following:
* :py:obj:`bool`
* :py:obj:`int`
* :py:obj:`float`
* :py:class:`datetime.datetime`
This allows you to create Params without littering your code
with string casts, or worrying if the passed value is a float or a
string, etc.
NB the value is always *stored* as a string representation,
as per VO spec.
unit(str): Units of value. See :class:`.definitions.units`
ucd(str): `unified content descriptor <http://arxiv.org/abs/1110.0525>`_.
For a list of valid UCDs, see:
http://vocabularies.referata.com/wiki/Category:IVOA_UCD.
dataType(str): Denotes type of ``value``; restricted to 3 options:
``string`` (default), ``int`` , or ``float``.
(NB *not* to be confused with standard XML Datatypes, which have many
more possible values.)
utype(str): See http://wiki.ivoa.net/twiki/bin/view/IVOA/Utypes
ac(bool): Attempt automatic conversion of passed ``value`` to string,
and set ``dataType`` accordingly (only attempted if ``dataType``
is the default, i.e. ``None``).
(NB only supports types listed in _datatypes_autoconversion dict) |
(module
(function_definition
(function_name_build_agency) function_name_build_agency
(parameters
(identifier_pfeed) identifier_pfeed
)parameters
(block
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(dictionary
(pair
(string_'agency_name') string_'agency_name'
(subscript
(attribute
(subscript
(attribute
(identifier_pfeed) identifier_pfeed
(identifier_meta) identifier_meta
)attribute
(string_'agency_name') string_'agency_name'
)subscript
(identifier_iat) identifier_iat
)attribute
(integer_0) integer_0
)subscript
)pair
(pair
(string_'agency_url') string_'agency_url'
(subscript
(attribute
(subscript
(attribute
(identifier_pfeed) identifier_pfeed
(identifier_meta) identifier_meta
)attribute
(string_'agency_url') string_'agency_url'
)subscript
(identifier_iat) identifier_iat
)attribute
(integer_0) integer_0
)subscript
)pair
(pair
(string_'agency_timezone') string_'agency_timezone'
(subscript
(attribute
(subscript
(attribute
(identifier_pfeed) identifier_pfeed
(identifier_meta) identifier_meta
)attribute
(string_'agency_timezone') string_'agency_timezone'
)subscript
(identifier_iat) identifier_iat
)attribute
(integer_0) integer_0
)subscript
)pair
)dictionary
(keyword_argument
(identifier_index) identifier_index
(list
(integer_0) integer_0
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given a ProtoFeed, return a DataFrame representing ``agency.txt`` |
(module
(function_definition
(function_name_remove_section) function_name_remove_section
(parameters
(identifier_self) identifier_self
(identifier_section_name) identifier_section_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_section_name) identifier_section_name
(string_"DEFAULT") string_"DEFAULT"
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"'DEFAULT' is reserved section name.") string_"'DEFAULT' is reserved section name."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_section_name) identifier_section_name
(attribute
(identifier_self) identifier_self
(identifier__sections) identifier__sections
)attribute
)comparison_operator
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__sections) identifier__sections
)attribute
(identifier_section_name) identifier_section_name
)subscript
)delete_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"Error! cannot find section '%s'.") string_"Error! cannot find section '%s'."
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Remove a section, it cannot be the DEFAULT section. |
(module
(function_definition
(function_name__load) function_name__load
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_scale) identifier_scale
(float_0.001) float_0.001
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ncf) identifier_ncf
(call
(identifier_Dataset) identifier_Dataset
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(string_'r') string_'r'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bandnum) identifier_bandnum
(call
(attribute
(identifier_OLCI_BAND_NAMES) identifier_OLCI_BAND_NAMES
(identifier_index) identifier_index
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_bandname) identifier_bandname
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(subscript
(subscript
(attribute
(identifier_ncf) identifier_ncf
(identifier_variables) identifier_variables
)attribute
(string_'mean_spectral_response_function') string_'mean_spectral_response_function'
)subscript
(identifier_bandnum) identifier_bandnum
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wvl) identifier_wvl
(binary_operator
(subscript
(subscript
(attribute
(identifier_ncf) identifier_ncf
(identifier_variables) identifier_variables
)attribute
(string_'mean_spectral_response_function_wavelength') string_'mean_spectral_response_function_wavelength'
)subscript
(identifier_bandnum) identifier_bandnum
(slice
(colon) colon
)slice
)subscript
(identifier_scale) identifier_scale
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rsr) identifier_rsr
)attribute
(dictionary
(pair
(string_'wavelength') string_'wavelength'
(identifier_wvl) identifier_wvl
)pair
(pair
(string_'response') string_'response'
(identifier_resp) identifier_resp
)pair
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module | Load the OLCI relative spectral responses |
(module
(function_definition
(function_name__get_boolean) function_name__get_boolean
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_bitarray) identifier_bitarray
)parameters
(block
(expression_statement
(assignment
(identifier_raw_value) identifier_raw_value
(call
(attribute
(identifier_self) identifier_self
(identifier__get_raw) identifier__get_raw
)attribute
(argument_list
(identifier_source) identifier_source
(identifier_bitarray) identifier_bitarray
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(subscript
(identifier_source) identifier_source
(string_'shortcut') string_'shortcut'
)subscript
(dictionary
(pair
(string_'description') string_'description'
(call
(attribute
(identifier_source) identifier_source
(identifier_get) identifier_get
)attribute
(argument_list
(string_'description') string_'description'
)argument_list
)call
)pair
(pair
(string_'unit') string_'unit'
(call
(attribute
(identifier_source) identifier_source
(identifier_get) identifier_get
)attribute
(argument_list
(string_'unit') string_'unit'
(string_'') string_''
)argument_list
)call
)pair
(pair
(string_'value') string_'value'
(conditional_expression
(True) True
(identifier_raw_value) identifier_raw_value
(False) False
)conditional_expression
)pair
(pair
(string_'raw_value') string_'raw_value'
(identifier_raw_value) identifier_raw_value
)pair
)dictionary
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Get boolean value, based on the data in XML |
(module
(function_definition
(function_name_environment) function_name_environment
(parameters
(dictionary_splat_pattern
(identifier_kv) identifier_kv
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_added) identifier_added
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_changed) identifier_changed
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_kv) identifier_kv
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_added) identifier_added
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_changed) identifier_changed
(identifier_key) identifier_key
)subscript
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(yield
)yield
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_added) identifier_added
(block
(delete_statement
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_key) identifier_key
)subscript
)delete_statement
)block
)for_statement
(for_statement
(identifier_key) identifier_key
(identifier_changed) identifier_changed
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_key) identifier_key
)subscript
(subscript
(identifier_changed) identifier_changed
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Context manager to run Python code with a modified UNIX process environment.
All key/value pairs in the keyword arguments are added (or changed, if the
key names an existing environmental variable) in the process environment
upon entrance into the context. Changes are undone upon exit: added
environmental variables are removed from the environment, and those whose
value was changed are reset to their pristine value. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_iterable) identifier_iterable
)parameters
(block
(for_statement
(identifier_pair) identifier_pair
(call
(identifier_pairwise_longest) identifier_pairwise_longest
(argument_list
(identifier_iterable) identifier_iterable
(keyword_argument
(identifier_fillvalue) identifier_fillvalue
(identifier__FILL) identifier__FILL
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__edges) identifier__edges
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_pair) identifier_pair
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__results) identifier__results
)attribute
(None) None
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Update with an ordered iterable of items.
Args:
iterable: An ordered iterable of items. The relative
order of the items in this iterable will be respected
in the TopoSet (in the absence of cycles). |
(module
(function_definition
(function_name_get_dict) function_name_get_dict
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(default_parameter
(identifier_state) identifier_state
(None) None
)default_parameter
(default_parameter
(identifier_base_name) identifier_base_name
(string_'View') string_'View'
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_dict_for_class) identifier_get_dict_for_class
)attribute
(argument_list
(keyword_argument
(identifier_class_name) identifier_class_name
(attribute
(identifier_obj) identifier_obj
(identifier___class__) identifier___class__
)attribute
)keyword_argument
(keyword_argument
(identifier_state) identifier_state
(attribute
(identifier_obj) identifier_obj
(identifier_state) identifier_state
)attribute
)keyword_argument
(keyword_argument
(identifier_base_name) identifier_base_name
(identifier_base_name) identifier_base_name
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | The style dict for a view instance. |
(module
(function_definition
(function_name_plot_trajectory) function_name_plot_trajectory
(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_interactive) identifier_interactive
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'interactive') string_'interactive'
(True) True
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_interactive) identifier_interactive
(block
(expression_statement
(call
(identifier_plot_trajectory_with_elegans) identifier_plot_trajectory_with_elegans
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_plot_trajectory_with_matplotlib) identifier_plot_trajectory_with_matplotlib
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Generate a plot from received instance of TrajectoryObserver and show it
See also plot_trajectory_with_elegans and plot_trajectory_with_matplotlib.
Parameters
----------
obs : TrajectoryObserver
TrajectoryObserver to render.
interactive : bool, default True
Choose a visualizer. If False, show the plot with matplotlib.
If True (only available on IPython Notebook), show it with elegans.
Examples
--------
>>> plot_trajectory(obs)
>>> plot_trajectory(obs, interactive=False) |
(module
(function_definition
(function_name_addImagePath) function_name_addImagePath
(parameters
(identifier_new_path) identifier_new_path
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_new_path) identifier_new_path
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_Settings) identifier_Settings
(identifier_ImagePaths) identifier_ImagePaths
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_path) identifier_new_path
)argument_list
)call
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(string_"http://") string_"http://"
(identifier_new_path) identifier_new_path
)comparison_operator
(comparison_operator
(string_"https://") string_"https://"
(identifier_new_path) identifier_new_path
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_new_path) identifier_new_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_status_code) identifier_status_code
)attribute
(integer_400) integer_400
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_Settings) identifier_Settings
(identifier_ImagePaths) identifier_ImagePaths
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_path) identifier_new_path
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_OSError) identifier_OSError
(argument_list
(binary_operator
(string_"Unable to connect to ") string_"Unable to connect to "
(identifier_new_path) identifier_new_path
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_OSError) identifier_OSError
(argument_list
(binary_operator
(string_"File not found: ") string_"File not found: "
(identifier_new_path) identifier_new_path
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Convenience function. Adds a path to the list of paths to search for images.
Can be a URL (but must be accessible). |
(module
(function_definition
(function_name__wait) function_name__wait
(parameters
(identifier_starting_time) identifier_starting_time
(identifier_first_timestamp) identifier_first_timestamp
(identifier_timestamp) identifier_timestamp
)parameters
(block
(expression_statement
(assignment
(identifier_target_time) identifier_target_time
(binary_operator
(identifier_starting_time) identifier_starting_time
(parenthesized_expression
(binary_operator
(identifier_timestamp) identifier_timestamp
(identifier_first_timestamp) identifier_first_timestamp
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(binary_operator
(identifier_target_time) identifier_target_time
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)binary_operator
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Given that the first timestamp in the trace file is
``first_timestamp`` and we started playing back the file at
``starting_time``, block until the current ``timestamp`` should occur. |
(module
(function_definition
(function_name_is_optional) function_name_is_optional
(parameters
(identifier_attr) identifier_attr
)parameters
(block
(return_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_attr) identifier_attr
(identifier_validator) identifier_validator
)attribute
(identifier__OptionalValidator) identifier__OptionalValidator
)argument_list
)call
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_attr) identifier_attr
(identifier_default) identifier_default
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_attr) identifier_attr
(identifier_default) identifier_default
)attribute
(identifier_NOTHING) identifier_NOTHING
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)return_statement
)block
)function_definition
)module | Helper method to find if an attribute is mandatory
:param attr:
:return: |
(module
(function_definition
(function_name_shutdown_kernel) function_name_shutdown_kernel
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_kernel_id) identifier_kernel_id
(call
(attribute
(identifier_self) identifier_self
(identifier_get_kernel_id) identifier_get_kernel_id
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_kernel_id) identifier_kernel_id
(block
(expression_statement
(assignment
(identifier_delete_url) identifier_delete_url
(call
(attribute
(identifier_self) identifier_self
(identifier_add_token) identifier_add_token
)attribute
(argument_list
(call
(identifier_url_path_join) identifier_url_path_join
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_server_url) identifier_server_url
)attribute
(string_'api/kernels/') string_'api/kernels/'
(identifier_kernel_id) identifier_kernel_id
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delete_req) identifier_delete_req
(call
(attribute
(identifier_requests) identifier_requests
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_delete_url) identifier_delete_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_delete_req) identifier_delete_req
(identifier_status_code) identifier_status_code
)attribute
(integer_204) integer_204
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_QMessageBox) identifier_QMessageBox
(identifier_warning) identifier_warning
)attribute
(argument_list
(identifier_self) identifier_self
(call
(identifier__) identifier__
(argument_list
(string_"Server error") string_"Server error"
)argument_list
)call
(call
(identifier__) identifier__
(argument_list
(concatenated_string
(string_"The Jupyter Notebook server ") string_"The Jupyter Notebook server "
(string_"failed to shutdown the kernel ") string_"failed to shutdown the kernel "
(string_"associated with this notebook. ") string_"associated with this notebook. "
(string_"If you want to shut it down, ") string_"If you want to shut it down, "
(string_"you'll have to close Spyder.") string_"you'll have to close Spyder."
)concatenated_string
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Shutdown the kernel of the client. |
(module
(function_definition
(function_name_newick) function_name_newick
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_tree_format) identifier_tree_format
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(string_"Returns newick represenation of the tree in its current state.") string_"Returns newick represenation of the tree in its current state."
)expression_statement
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_treenode) identifier_treenode
)attribute
(identifier_children) identifier_children
)attribute
(block
(expression_statement
(assignment
(identifier_features) identifier_features
(set
(string_"name") string_"name"
(string_"dist") string_"dist"
(string_"support") string_"support"
(string_"height") string_"height"
(string_"idx") string_"idx"
)set
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_testnode) identifier_testnode
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_treenode) identifier_treenode
)attribute
(identifier_children) identifier_children
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extrafeat) identifier_extrafeat
(set_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(attribute
(identifier_testnode) identifier_testnode
(identifier_features) identifier_features
)attribute
)for_in_clause
(if_clause
(comparison_operator
(identifier_i) identifier_i
(identifier_features) identifier_features
)comparison_operator
)if_clause
)set_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_features) identifier_features
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_extrafeat) identifier_extrafeat
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_treenode) identifier_treenode
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(keyword_argument
(identifier_format) identifier_format
(identifier_tree_format) identifier_tree_format
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Returns newick represenation of the tree in its current state. |
(module
(function_definition
(function_name_compstat) function_name_compstat
(parameters
(identifier_sdat) identifier_sdat
(default_parameter
(identifier_tstart) identifier_tstart
(None) None
)default_parameter
(default_parameter
(identifier_tend) identifier_tend
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_sdat) identifier_sdat
(identifier_tseries_between) identifier_tseries_between
)attribute
(argument_list
(identifier_tstart) identifier_tstart
(identifier_tend) identifier_tend
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_time) identifier_time
(attribute
(subscript
(identifier_data) identifier_data
(string_'t') string_'t'
)subscript
(identifier_values) identifier_values
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta_time) identifier_delta_time
(binary_operator
(subscript
(identifier_time) identifier_time
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(subscript
(identifier_time) identifier_time
(integer_0) integer_0
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(attribute
(subscript
(attribute
(identifier_data) identifier_data
(identifier_iloc) identifier_iloc
)attribute
(slice
(colon) colon
)slice
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(identifier_values) identifier_values
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mean) identifier_mean
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_trapz) identifier_trapz
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_x) identifier_x
(identifier_time) identifier_time
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(identifier_delta_time) identifier_delta_time
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rms) identifier_rms
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_trapz) identifier_trapz
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_data) identifier_data
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
(keyword_argument
(identifier_x) identifier_x
(identifier_time) identifier_time
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(identifier_delta_time) identifier_delta_time
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(attribute
(identifier_misc) identifier_misc
(identifier_out_name) identifier_out_name
)attribute
(argument_list
(string_'statistics.dat') string_'statistics.dat'
)argument_list
)call
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_out_file) identifier_out_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_mean) identifier_mean
(identifier_tofile) identifier_tofile
)attribute
(argument_list
(identifier_out_file) identifier_out_file
(keyword_argument
(identifier_sep) identifier_sep
(string_' ') string_' '
)keyword_argument
(keyword_argument
(identifier_format) identifier_format
(string_"%10.5e") string_"%10.5e"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_rms) identifier_rms
(identifier_tofile) identifier_tofile
)attribute
(argument_list
(identifier_out_file) identifier_out_file
(keyword_argument
(identifier_sep) identifier_sep
(string_' ') string_' '
)keyword_argument
(keyword_argument
(identifier_format) identifier_format
(string_"%10.5e") string_"%10.5e"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Compute statistics from series output by StagYY.
Create a file 'statistics.dat' containing the mean and standard deviation
of each series on the requested time span.
Args:
sdat (:class:`~stagpy.stagyydata.StagyyData`): a StagyyData instance.
tstart (float): starting time. Set to None to start at the beginning of
available data.
tend (float): ending time. Set to None to stop at the end of available
data. |
(module
(function_definition
(function_name_process_composite_comment) function_name_process_composite_comment
(parameters
(identifier_self) identifier_self
(identifier_level) identifier_level
(identifier_comments) identifier_comments
(identifier_key) identifier_key
)parameters
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(identifier_comments) identifier_comments
)comparison_operator
(block
(expression_statement
(assignment
(identifier_comment) identifier_comment
(string_"") string_""
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_comments) identifier_comments
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_spacer) identifier_spacer
(call
(attribute
(identifier_self) identifier_self
(identifier_whitespace) identifier_whitespace
)attribute
(argument_list
(identifier_level) identifier_level
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_comments) identifier_comments
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_format_comment) identifier_format_comment
)attribute
(argument_list
(identifier_spacer) identifier_spacer
(identifier_v) identifier_v
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(identifier_value) identifier_value
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_comment) identifier_comment
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_newlinechar) identifier_newlinechar
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_comments) identifier_comments
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_comment) identifier_comment
(call
(attribute
(identifier_self) identifier_self
(identifier_format_comment) identifier_format_comment
)attribute
(argument_list
(identifier_spacer) identifier_spacer
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_comment) identifier_comment
)return_statement
)block
)function_definition
)module | Process comments for composites such as MAP, LAYER etc. |
(module
(function_definition
(function_name_kappa_se_calc) function_name_kappa_se_calc
(parameters
(identifier_PA) identifier_PA
(identifier_PE) identifier_PE
(identifier_POP) identifier_POP
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_math) identifier_math
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_PA) identifier_PA
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_PA) identifier_PA
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_POP) identifier_POP
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_PE) identifier_PE
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(return_statement
(string_"None") string_"None"
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Calculate kappa standard error.
:param PA: observed agreement among raters (overall accuracy)
:type PA : float
:param PE: hypothetical probability of chance agreement (random accuracy)
:type PE : float
:param POP: population
:type POP:int
:return: kappa standard error as float |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_postcode) identifier_postcode
)parameters
(block
(expression_statement
(assignment
(identifier_postcode) identifier_postcode
(call
(identifier_quote) identifier_quote
(argument_list
(call
(attribute
(identifier_postcode) identifier_postcode
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'') string_''
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_'%s/postcode/%s.json') string_'%s/postcode/%s.json'
(tuple
(identifier_END_POINT) identifier_END_POINT
(identifier_postcode) identifier_postcode
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier__get_json_resp) identifier__get_json_resp
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Request data associated with `postcode`.
:param postcode: the postcode to search for. The postcode may
contain spaces (they will be removed).
:returns: a dict of the nearest postcode's data or None if no
postcode data is found. |
(module
(function_definition
(function_name_create_payload) function_name_create_payload
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_OverrideValue) identifier_OverrideValue
(identifier_self) identifier_self
)argument_list
)call
(identifier_create_payload) identifier_create_payload
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'smart_class_parameter') string_'smart_class_parameter'
)argument_list
)call
(block
(delete_statement
(subscript
(identifier_payload) identifier_payload
(string_'smart_class_parameter_id') string_'smart_class_parameter_id'
)subscript
)delete_statement
)block
)if_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'smart_variable') string_'smart_variable'
)argument_list
)call
(block
(delete_statement
(subscript
(identifier_payload) identifier_payload
(string_'smart_variable_id') string_'smart_variable_id'
)subscript
)delete_statement
)block
)if_statement
(return_statement
(identifier_payload) identifier_payload
)return_statement
)block
)function_definition
)module | Remove ``smart_class_parameter_id`` or ``smart_variable_id`` |
(module
(function_definition
(function_name_curtailment) function_name_curtailment
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__curtailment) identifier__curtailment
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result_dict) identifier_result_dict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_gen_list) identifier_gen_list
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__curtailment) identifier__curtailment
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_curtailment_df) identifier_curtailment_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_gen) identifier_gen
(identifier_gen_list) identifier_gen_list
(block
(expression_statement
(assignment
(subscript
(identifier_curtailment_df) identifier_curtailment_df
(identifier_gen) identifier_gen
)subscript
(attribute
(identifier_gen) identifier_gen
(identifier_curtailment) identifier_curtailment
)attribute
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_result_dict) identifier_result_dict
(identifier_key) identifier_key
)subscript
(identifier_curtailment_df) identifier_curtailment_df
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_result_dict) identifier_result_dict
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Holds curtailment assigned to each generator per curtailment target.
Returns
-------
:obj:`dict` with :pandas:`pandas.DataFrame<dataframe>`
Keys of the dictionary are generator types (and weather cell ID)
curtailment targets were given for. E.g. if curtailment is provided
as a :pandas:`pandas.DataFrame<dataframe>` with
:pandas.`pandas.MultiIndex` columns with levels 'type' and
'weather cell ID' the dictionary key is a tuple of
('type','weather_cell_id').
Values of the dictionary are dataframes with the curtailed power in
kW per generator and time step. Index of the dataframe is a
:pandas:`pandas.DatetimeIndex<datetimeindex>`. Columns are the
generators of type
:class:`edisgo.grid.components.GeneratorFluctuating`. |
(module
(function_definition
(function_name__init_peewee_ext) function_name__init_peewee_ext
(parameters
(identifier_cls) identifier_cls
(identifier_app) identifier_app
(default_parameter
(identifier_dummy_configuration) identifier_dummy_configuration
(None) None
)default_parameter
(default_parameter
(identifier_dummy_configure_args) identifier_dummy_configure_args
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(string_'DATABASE') string_'DATABASE'
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_add_post_configure_callback) identifier_add_post_configure_callback
)attribute
(argument_list
(call
(identifier_partial) identifier_partial
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier__init_peewee_ext) identifier__init_peewee_ext
)attribute
(identifier_app) identifier_app
)argument_list
)call
(keyword_argument
(identifier_run_once) identifier_run_once
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier__PEEWEE_EXT) identifier__PEEWEE_EXT
(identifier_init_app) identifier_init_app
)attribute
(argument_list
(identifier_app) identifier_app
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Init the actual PeeWee extension with the app that was created.
Since PeeWee requires the ``DATABASE`` config parameter to be present
IMMEDIATELY upon initializing the application, we need to delay this
construction. This is because, in standard use, we will create the app
and attempt to init this extension BEFORE we configure the app, which
is totally fine. To fix this, we just need to set this up to try and
run after every call to configure. If there is not ``DATABASE`` config
parameter present when run, this method does nothing other than
reschedule itself to run in the future.
In all cases, this is a Post Configure Hook that should RUN ONCE!
Args:
app (flask.Flask): The application you want to init the PeeWee
Flask extension for. Hint: if you need to use this as
a callback, use a partial to provide this.
dummy_configuration (dict): The resulting application configuration
that the post_configure hook provides to all of it's callbacks.
We will NEVER use this, but since we utilize the post_configure
system to register this for complicated apps, we gotta accept
it.
dummy_configure_args (list[object]): The args passed to the
:meth:`configure` function that triggered this callback. Just
like the above arg, we'll never use it, but we must accept it. |
(module
(function_definition
(function_name_similarity_by_path) function_name_similarity_by_path
(parameters
(typed_parameter
(identifier_sense1) identifier_sense1
(type
(string_"wn.Synset") string_"wn.Synset"
)type
)typed_parameter
(typed_parameter
(identifier_sense2) identifier_sense2
(type
(string_"wn.Synset") string_"wn.Synset"
)type
)typed_parameter
(typed_default_parameter
(identifier_option) identifier_option
(type
(identifier_str) identifier_str
)type
(string_"path") string_"path"
)typed_default_parameter
)parameters
(type
(identifier_float) identifier_float
)type
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_option) identifier_option
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(list
(string_"path") string_"path"
(string_"path_similarity") string_"path_similarity"
)list
)comparison_operator
(block
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(identifier_wn) identifier_wn
(identifier_path_similarity) identifier_path_similarity
)attribute
(argument_list
(identifier_sense1) identifier_sense1
(identifier_sense2) identifier_sense2
(keyword_argument
(identifier_if_none_return) identifier_if_none_return
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(call
(attribute
(identifier_wn) identifier_wn
(identifier_path_similarity) identifier_path_similarity
)attribute
(argument_list
(identifier_sense2) identifier_sense2
(identifier_sense1) identifier_sense1
(keyword_argument
(identifier_if_none_return) identifier_if_none_return
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_option) identifier_option
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(list
(string_"wup") string_"wup"
(string_"wupa") string_"wupa"
(string_"wu-palmer") string_"wu-palmer"
(string_"wu-palmer") string_"wu-palmer"
)list
)comparison_operator
(block
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(identifier_wn) identifier_wn
(identifier_wup_similarity) identifier_wup_similarity
)attribute
(argument_list
(identifier_sense1) identifier_sense1
(identifier_sense2) identifier_sense2
(keyword_argument
(identifier_if_none_return) identifier_if_none_return
(integer_0) integer_0
)keyword_argument
)argument_list
)call
(call
(attribute
(identifier_wn) identifier_wn
(identifier_wup_similarity) identifier_wup_similarity
)attribute
(argument_list
(identifier_sense2) identifier_sense2
(identifier_sense1) identifier_sense1
(keyword_argument
(identifier_if_none_return) identifier_if_none_return
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(call
(attribute
(identifier_option) identifier_option
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(list
(string_'lch') string_'lch'
(string_"leacock-chordorow") string_"leacock-chordorow"
)list
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_sense1) identifier_sense1
(identifier_pos) identifier_pos
)attribute
(attribute
(identifier_sense2) identifier_sense2
(identifier_pos) identifier_pos
)attribute
)comparison_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_wn) identifier_wn
(identifier_lch_similarity) identifier_lch_similarity
)attribute
(argument_list
(identifier_sense1) identifier_sense1
(identifier_sense2) identifier_sense2
(keyword_argument
(identifier_if_none_return) identifier_if_none_return
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Returns maximum path similarity between two senses.
:param sense1: A synset.
:param sense2: A synset.
:param option: String, one of ('path', 'wup', 'lch').
:return: A float, similarity measurement. |
(module
(function_definition
(function_name__internal_reschedule) function_name__internal_reschedule
(parameters
(identifier_callback) identifier_callback
(default_parameter
(identifier_retry) identifier_retry
(integer_3) integer_3
)default_parameter
(default_parameter
(identifier_sleep_time) identifier_sleep_time
(attribute
(identifier_constants) identifier_constants
(identifier_DEFAULT_SLEEP) identifier_DEFAULT_SLEEP
)attribute
)default_parameter
)parameters
(block
(for_statement
(identifier_foo) identifier_foo
(call
(identifier_range) identifier_range
(argument_list
(identifier_retry) identifier_retry
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_container_process) identifier_container_process
(call
(subscript
(identifier_callback) identifier_callback
(integer_0) integer_0
)subscript
(argument_list
(subscript
(identifier_callback) identifier_callback
(integer_1) integer_1
)subscript
(list_splat
(subscript
(identifier_callback) identifier_callback
(integer_2) integer_2
)subscript
)list_splat
(dictionary_splat
(subscript
(identifier_callback) identifier_callback
(integer_3) integer_3
)subscript
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(identifier_sleep_time) identifier_sleep_time
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_container_process) identifier_container_process
(identifier_poll) identifier_poll
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rcode) identifier_rcode
(attribute
(identifier_container_process) identifier_container_process
(identifier_returncode) identifier_returncode
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_rcode) identifier_rcode
(None) None
)comparison_operator
(block
(return_statement
(identifier_container_process) identifier_container_process
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_ConuException) identifier_ConuException
(argument_list
(call
(attribute
(string_"Unable to start nspawn container - process failed for {}-times") string_"Unable to start nspawn container - process failed for {}-times"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_retry) identifier_retry
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | workaround method for internal_run_container method
It sometimes fails because of Dbus or whatever, so try to start it moretimes
:param callback: callback method list
:param retry: how many times try to invoke command
:param sleep_time: how long wait before subprocess.poll() to find if it failed
:return: subprocess object |
(module
(function_definition
(function_name_create_pos) function_name_create_pos
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_pos_type) identifier_pos_type
(identifier_pos_id) identifier_pos_id
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'type') string_'type'
(identifier_pos_type) identifier_pos_type
)pair
(pair
(string_'id') string_'id'
(identifier_pos_id) identifier_pos_id
)pair
(pair
(string_'location') string_'location'
(identifier_location) identifier_location
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_req) identifier_do_req
)attribute
(argument_list
(string_'POST') string_'POST'
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_merchant_api_base_url) identifier_merchant_api_base_url
)attribute
(string_'/pos/') string_'/pos/'
)binary_operator
(identifier_arguments) identifier_arguments
)argument_list
)call
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create POS resource
Arguments:
name:
Human-readable name of the POS, used for displaying payment
request origin to end user
pos_type:
POS type
location:
Merchant location
pos_id:
The ID of the POS that is to be created. Has to be unique for
the merchant |
(module
(function_definition
(function_name_verify_response) function_name_verify_response
(parameters
(identifier_self) identifier_self
(identifier_response_json) identifier_response_json
(default_parameter
(identifier_signed_id_name) identifier_signed_id_name
(string_'transactionid') string_'transactionid'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_auth_json) identifier_auth_json
(call
(attribute
(identifier_response_json) identifier_response_json
(identifier_get) identifier_get
)attribute
(argument_list
(string_'auth') string_'auth'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nonce) identifier_nonce
(call
(attribute
(identifier_auth_json) identifier_auth_json
(identifier_get) identifier_get
)attribute
(argument_list
(string_'nonce') string_'nonce'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(call
(attribute
(identifier_auth_json) identifier_auth_json
(identifier_get) identifier_get
)attribute
(argument_list
(string_'timestamp') string_'timestamp'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_signature) identifier_signature
(call
(attribute
(identifier_binascii) identifier_binascii
(identifier_unhexlify) identifier_unhexlify
)attribute
(argument_list
(call
(attribute
(identifier_auth_json) identifier_auth_json
(identifier_get) identifier_get
)attribute
(argument_list
(string_'signature') string_'signature'
(string_'') string_''
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_signed_id) identifier_signed_id
(call
(attribute
(identifier_response_json) identifier_response_json
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_signed_id_name) identifier_signed_id_name
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_verify_signature) identifier_verify_signature
)attribute
(argument_list
(keyword_argument
(identifier_signature) identifier_signature
(identifier_signature) identifier_signature
)keyword_argument
(keyword_argument
(identifier_nonce) identifier_nonce
(identifier_nonce) identifier_nonce
)keyword_argument
(keyword_argument
(identifier_timestamp) identifier_timestamp
(identifier_timestamp) identifier_timestamp
)keyword_argument
(keyword_argument
(identifier_signed_id) identifier_signed_id
(identifier_signed_id) identifier_signed_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Verify the response message.
:param response_json:
:param signed_id_name:
:return: |
(module
(function_definition
(function_name_append_sample) function_name_append_sample
(parameters
(identifier_self) identifier_self
(identifier_v) identifier_v
(identifier_vartype) identifier_vartype
(default_parameter
(identifier__left) identifier__left
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_vstr) identifier_vstr
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(identifier_rjust) identifier_rjust
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_length) identifier_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_vstr) identifier_vstr
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_vartype) identifier_vartype
(attribute
(identifier_dimod) identifier_dimod
(identifier_SPIN) identifier_SPIN
)attribute
)comparison_operator
(block
(function_definition
(function_name_f) function_name_f
(parameters
(identifier_datum) identifier_datum
)parameters
(block
(return_statement
(call
(identifier__spinstr) identifier__spinstr
(argument_list
(subscript
(attribute
(identifier_datum) identifier_datum
(identifier_sample) identifier_sample
)attribute
(identifier_v) identifier_v
)subscript
(keyword_argument
(identifier_rjust) identifier_rjust
(identifier_length) identifier_length
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)block
(else_clause
(block
(function_definition
(function_name_f) function_name_f
(parameters
(identifier_datum) identifier_datum
)parameters
(block
(return_statement
(call
(identifier__binarystr) identifier__binarystr
(argument_list
(subscript
(attribute
(identifier_datum) identifier_datum
(identifier_sample) identifier_sample
)attribute
(identifier_v) identifier_v
)subscript
(keyword_argument
(identifier_rjust) identifier_rjust
(identifier_length) identifier_length
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_vstr) identifier_vstr
(identifier_f) identifier_f
(keyword_argument
(identifier__left) identifier__left
(identifier__left) identifier__left
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add a sample column |
(module
(function_definition
(function_name__populate_common_request) function_name__populate_common_request
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_url_record) identifier_url_record
(attribute
(attribute
(identifier_self) identifier_self
(identifier__item_session) identifier__item_session
)attribute
(identifier_url_record) identifier_url_record
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_url_record) identifier_url_record
(identifier_parent_url) identifier_parent_url
)attribute
(not_operator
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_fields) identifier_fields
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Referer') string_'Referer'
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_referrer) identifier__add_referrer
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_url_record) identifier_url_record
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__fetch_rule) identifier__fetch_rule
)attribute
(identifier_http_login) identifier_http_login
)attribute
(block
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_request) identifier_request
(identifier_username) identifier_username
)attribute
(attribute
(identifier_request) identifier_request
(identifier_password) identifier_password
)attribute
)pattern_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__fetch_rule) identifier__fetch_rule
)attribute
(identifier_http_login) identifier_http_login
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Populate the Request with common fields. |
(module
(function_definition
(function_name_do_selection_reduction_to_one_parent) function_name_do_selection_reduction_to_one_parent
(parameters
(identifier_selection) identifier_selection
)parameters
(block
(expression_statement
(assignment
(identifier_all_models_selected) identifier_all_models_selected
(call
(attribute
(identifier_selection) identifier_selection
(identifier_get_all) identifier_get_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parent_m_count_dict) identifier_parent_m_count_dict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_model) identifier_model
(identifier_all_models_selected) identifier_all_models_selected
(block
(expression_statement
(assignment
(subscript
(identifier_parent_m_count_dict) identifier_parent_m_count_dict
(attribute
(identifier_model) identifier_model
(identifier_parent) identifier_parent
)attribute
)subscript
(conditional_expression
(binary_operator
(subscript
(identifier_parent_m_count_dict) identifier_parent_m_count_dict
(attribute
(identifier_model) identifier_model
(identifier_parent) identifier_parent
)attribute
)subscript
(integer_1) integer_1
)binary_operator
(comparison_operator
(attribute
(identifier_model) identifier_model
(identifier_parent) identifier_parent
)attribute
(identifier_parent_m_count_dict) identifier_parent_m_count_dict
)comparison_operator
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_parent_m) identifier_parent_m
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_count_parent) identifier_current_count_parent
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_possible_parent_m) identifier_possible_parent_m
(identifier_count) identifier_count
)pattern_list
(call
(attribute
(identifier_parent_m_count_dict) identifier_parent_m_count_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_parent_m) identifier_parent_m
(conditional_expression
(identifier_possible_parent_m) identifier_possible_parent_m
(comparison_operator
(identifier_current_count_parent) identifier_current_count_parent
(identifier_count) identifier_count
)comparison_operator
(identifier_parent_m) identifier_parent_m
)conditional_expression
)assignment
)expression_statement
)block
)for_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_selection) identifier_selection
(identifier_states) identifier_states
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(attribute
(attribute
(call
(attribute
(identifier_selection) identifier_selection
(identifier_get_selected_state) identifier_get_selected_state
)attribute
(argument_list
)argument_list
)call
(identifier_state) identifier_state
)attribute
(identifier_is_root_state) identifier_is_root_state
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_parent_m) identifier_parent_m
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_all_models_selected) identifier_all_models_selected
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_selection) identifier_selection
(identifier_set) identifier_set
)attribute
(argument_list
(call
(attribute
(identifier_selection) identifier_selection
(identifier_get_selected_state) identifier_get_selected_state
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_parent_m) identifier_parent_m
(None) None
)comparison_operator
(block
(for_statement
(identifier_model) identifier_model
(identifier_all_models_selected) identifier_all_models_selected
(block
(if_statement
(comparison_operator
(attribute
(identifier_model) identifier_model
(identifier_parent) identifier_parent
)attribute
(identifier_parent_m) identifier_parent_m
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_selection) identifier_selection
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_model) identifier_model
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_parent_m) identifier_parent_m
)return_statement
)block
)function_definition
)module | Find and reduce selection to one parent state.
:param selection:
:return: state model which is parent of selection or None if root state |
(module
(function_definition
(function_name_select_radio_button) function_name_select_radio_button
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_key_index) identifier_key_index
(call
(attribute
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__parameter) identifier__parameter
)attribute
(identifier_options) identifier_options
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_radio_button) identifier_radio_button
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_input_button_group) identifier_input_button_group
)attribute
(identifier_button) identifier_button
)attribute
(argument_list
(identifier_key_index) identifier_key_index
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_radio_button) identifier_radio_button
(identifier_click) identifier_click
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Helper to select a radio button with key.
:param key: The key of the radio button.
:type key: str |
(module
(function_definition
(function_name_setArticleThreshold) function_name_setArticleThreshold
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_int) identifier_int
)argument_list
)call
)assert_statement
(assert_statement
(comparison_operator
(identifier_value) identifier_value
(integer_0) integer_0
)comparison_operator
)assert_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_topicPage) identifier_topicPage
)attribute
(string_"articleTreshWgt") string_"articleTreshWgt"
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | what is the minimum total weight that an article has to have in order to get it among the results?
@param value: threshold to use |
(module
(function_definition
(function_name_top) function_name_top
(parameters
(identifier_self) identifier_self
(identifier_num) identifier_num
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_topIterator) function_name_topIterator
(parameters
(identifier_iterator) identifier_iterator
)parameters
(block
(expression_statement
(yield
(call
(attribute
(identifier_heapq) identifier_heapq
(identifier_nlargest) identifier_nlargest
)attribute
(argument_list
(identifier_num) identifier_num
(identifier_iterator) identifier_iterator
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(return_statement
(call
(attribute
(identifier_heapq) identifier_heapq
(identifier_nlargest) identifier_nlargest
)attribute
(argument_list
(identifier_num) identifier_num
(binary_operator
(identifier_a) identifier_a
(identifier_b) identifier_b
)binary_operator
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_mapPartitions) identifier_mapPartitions
)attribute
(argument_list
(identifier_topIterator) identifier_topIterator
)argument_list
)call
(identifier_reduce) identifier_reduce
)attribute
(argument_list
(identifier_merge) identifier_merge
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the top N elements from an RDD.
.. note:: This method should only be used if the resulting array is expected
to be small, as all the data is loaded into the driver's memory.
.. note:: It returns the list sorted in descending order.
>>> sc.parallelize([10, 4, 2, 12, 3]).top(1)
[12]
>>> sc.parallelize([2, 3, 4, 5, 6], 2).top(2)
[6, 5]
>>> sc.parallelize([10, 4, 2, 12, 3]).top(3, key=str)
[4, 3, 2] |
(module
(function_definition
(function_name_has_child_banks) function_name_has_child_banks
(parameters
(identifier_self) identifier_self
(identifier_bank_id) identifier_bank_id
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(identifier_has_child_catalogs) identifier_has_child_catalogs
)attribute
(argument_list
(keyword_argument
(identifier_catalog_id) identifier_catalog_id
(identifier_bank_id) identifier_bank_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__hierarchy_session) identifier__hierarchy_session
)attribute
(identifier_has_children) identifier_has_children
)attribute
(argument_list
(keyword_argument
(identifier_id_) identifier_id_
(identifier_bank_id) identifier_bank_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Tests if a bank has any children.
arg: bank_id (osid.id.Id): a ``bank_id``
return: (boolean) - ``true`` if the ``bank_id`` has children,
``false`` otherwise
raise: NotFound - ``bank_id`` is not found
raise: NullArgument - ``bank_id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name___init_configsvrs) function_name___init_configsvrs
(parameters
(identifier_self) identifier_self
(identifier_params) identifier_params
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__configsvrs) identifier__configsvrs
)attribute
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_cfg) identifier_cfg
(identifier_params) identifier_params
(block
(expression_statement
(assignment
(identifier_cfg) identifier_cfg
(call
(attribute
(identifier_self) identifier_self
(identifier__strip_auth) identifier__strip_auth
)attribute
(argument_list
(identifier_cfg) identifier_cfg
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_server_id) identifier_server_id
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'server_id') string_'server_id'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'version') string_'version'
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'configsvr') string_'configsvr'
(True) True
)pair
)dictionary
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_enable_ipv6) identifier_enable_ipv6
)attribute
(block
(expression_statement
(call
(attribute
(identifier_common) identifier_common
(identifier_enable_ipv6_single) identifier_enable_ipv6_single
)attribute
(argument_list
(identifier_cfg) identifier_cfg
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__configsvrs) identifier__configsvrs
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(identifier_Servers) identifier_Servers
(argument_list
)argument_list
)call
(identifier_create) identifier_create
)attribute
(argument_list
(string_'mongod') string_'mongod'
(identifier_cfg) identifier_cfg
(keyword_argument
(identifier_sslParams) identifier_sslParams
(attribute
(identifier_self) identifier_self
(identifier_sslParams) identifier_sslParams
)attribute
)keyword_argument
(keyword_argument
(identifier_autostart) identifier_autostart
(True) True
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier_version) identifier_version
)keyword_argument
(keyword_argument
(identifier_server_id) identifier_server_id
(identifier_server_id) identifier_server_id
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | create and start config servers |
(module
(function_definition
(function_name_shlex_split) function_name_shlex_split
(parameters
(identifier_s) identifier_s
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_s) identifier_s
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_data) identifier_data
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(call
(attribute
(identifier_shlex) identifier_shlex
(identifier_split) identifier_split
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_stringutils) identifier_stringutils
)attribute
(identifier_to_str) identifier_to_str
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_s) identifier_s
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Only split if variable is a string |
(module
(function_definition
(function_name_recursive_cov) function_name_recursive_cov
(parameters
(identifier_self) identifier_self
(identifier_cov) identifier_cov
(identifier_length) identifier_length
(identifier_mean) identifier_mean
(identifier_chain) identifier_chain
(default_parameter
(identifier_scaling) identifier_scaling
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_epsilon) identifier_epsilon
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(binary_operator
(identifier_length) identifier_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_chain) identifier_chain
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_k) identifier_k
(identifier_length) identifier_length
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_mean) identifier_new_mean
(call
(attribute
(identifier_self) identifier_self
(identifier_recursive_mean) identifier_recursive_mean
)attribute
(argument_list
(identifier_mean) identifier_mean
(identifier_length) identifier_length
(identifier_chain) identifier_chain
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_t0) identifier_t0
(binary_operator
(identifier_k) identifier_k
(call
(attribute
(identifier_np) identifier_np
(identifier_outer) identifier_outer
)attribute
(argument_list
(identifier_mean) identifier_mean
(identifier_mean) identifier_mean
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_t1) identifier_t1
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(attribute
(identifier_chain) identifier_chain
(identifier_T) identifier_T
)attribute
(identifier_chain) identifier_chain
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_t2) identifier_t2
(binary_operator
(identifier_n) identifier_n
(call
(attribute
(identifier_np) identifier_np
(identifier_outer) identifier_outer
)attribute
(argument_list
(identifier_new_mean) identifier_new_mean
(identifier_new_mean) identifier_new_mean
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_t3) identifier_t3
(binary_operator
(identifier_epsilon) identifier_epsilon
(call
(attribute
(identifier_np) identifier_np
(identifier_eye) identifier_eye
)attribute
(argument_list
(subscript
(attribute
(identifier_cov) identifier_cov
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_cov) identifier_new_cov
(binary_operator
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_k) identifier_k
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_n) identifier_n
(float_1.) float_1.
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_cov) identifier_cov
)binary_operator
(binary_operator
(binary_operator
(identifier_scaling) identifier_scaling
(parenthesized_expression
(binary_operator
(identifier_n) identifier_n
(float_1.) float_1.
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(identifier_t0) identifier_t0
(identifier_t1) identifier_t1
)binary_operator
(identifier_t2) identifier_t2
)binary_operator
(identifier_t3) identifier_t3
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_new_cov) identifier_new_cov
(identifier_new_mean) identifier_new_mean
)expression_list
)return_statement
)block
)function_definition
)module | r"""Compute the covariance recursively.
Return the new covariance and the new mean.
.. math::
C_k & = \frac{1}{k-1} (\sum_{i=1}^k x_i x_i^T - k\bar{x_k}\bar{x_k}^T)
C_n & = \frac{1}{n-1} (\sum_{i=1}^k x_i x_i^T + \sum_{i=k+1}^n x_i x_i^T - n\bar{x_n}\bar{x_n}^T)
& = \frac{1}{n-1} ((k-1)C_k + k\bar{x_k}\bar{x_k}^T + \sum_{i=k+1}^n x_i x_i^T - n\bar{x_n}\bar{x_n}^T)
:Parameters:
- cov : matrix
Previous covariance matrix.
- length : int
Length of chain used to compute the previous covariance.
- mean : array
Previous mean.
- chain : array
Sample used to update covariance.
- scaling : float
Scaling parameter
- epsilon : float
Set to a small value to avoid singular matrices. |
(module
(function_definition
(function_name_line) function_name_line
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_text) identifier_text
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_out) identifier_out
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_out) identifier_out
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | A simple helper to write line with `\n` |
(module
(function_definition
(function_name_participant_names) function_name_participant_names
(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
(return_statement
(list_comprehension
(attribute
(call
(attribute
(identifier_obj) identifier_obj
(identifier_get_component_profile) identifier_get_component_profile
)attribute
(argument_list
)argument_list
)call
(identifier_instance_name) identifier_instance_name
)attribute
(line_continuation_\) line_continuation_\
(for_in_clause
(identifier_obj) identifier_obj
(attribute
(identifier_self) identifier_self
(identifier__participants) identifier__participants
)attribute
)for_in_clause
)list_comprehension
)return_statement
)block
)with_statement
)block
)function_definition
)module | The names of the RTObjects participating in this context. |
(module
(function_definition
(function_name_dict_has_any_keys) function_name_dict_has_any_keys
(parameters
(identifier_self) identifier_self
(identifier_keys) identifier_keys
)parameters
(block
(if_statement
(not_operator
(call
(identifier__is_non_string_iterable) identifier__is_non_string_iterable
(argument_list
(identifier_keys) identifier_keys
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
(identifier_keys) identifier_keys
)list
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(identifier_cython_context) identifier_cython_context
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(return_statement
(call
(identifier_SArray) identifier_SArray
(argument_list
(keyword_argument
(identifier__proxy) identifier__proxy
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___proxy__) identifier___proxy__
)attribute
(identifier_dict_has_any_keys) identifier_dict_has_any_keys
)attribute
(argument_list
(identifier_keys) identifier_keys
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Create a boolean SArray by checking the keys of an SArray of
dictionaries. An element of the output SArray is True if the
corresponding input element's dictionary has any of the given keys.
Fails on SArrays whose data type is not ``dict``.
Parameters
----------
keys : list
A list of key values to check each dictionary against.
Returns
-------
out : SArray
A SArray of int type, where each element indicates whether the
input SArray element contains any key in the input list.
See Also
--------
dict_has_all_keys
Examples
--------
>>> sa = turicreate.SArray([{"this":1, "is":5, "dog":7}, {"animal":1},
{"this": 2, "are": 1, "cat": 5}])
>>> sa.dict_has_any_keys(["is", "this", "are"])
dtype: int
Rows: 3
[1, 0, 1] |
(module
(function_definition
(function_name__read_page_header) function_name__read_page_header
(parameters
(identifier_file_obj) identifier_file_obj
)parameters
(block
(expression_statement
(assignment
(identifier_tin) identifier_tin
(call
(identifier_TFileTransport) identifier_TFileTransport
(argument_list
(identifier_file_obj) identifier_file_obj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pin) identifier_pin
(call
(attribute
(call
(identifier_TCompactProtocolFactory) identifier_TCompactProtocolFactory
(argument_list
)argument_list
)call
(identifier_get_protocol) identifier_get_protocol
)attribute
(argument_list
(identifier_tin) identifier_tin
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_page_header) identifier_page_header
(call
(attribute
(identifier_parquet_thrift) identifier_parquet_thrift
(identifier_PageHeader) identifier_PageHeader
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_page_header) identifier_page_header
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_pin) identifier_pin
)argument_list
)call
)expression_statement
(return_statement
(identifier_page_header) identifier_page_header
)return_statement
)block
)function_definition
)module | Read the page_header from the given fo. |
(module
(function_definition
(function_name_log) function_name_log
(parameters
(identifier_message) identifier_message
(identifier_type) identifier_type
)parameters
(block
(expression_statement
(call
(attribute
(parenthesized_expression
(conditional_expression
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(comparison_operator
(identifier_type) identifier_type
(string_'notice') string_'notice'
)comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)conditional_expression
)parenthesized_expression
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(identifier_message) identifier_message
(string_"\n") string_"\n"
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Log notices to stdout and errors to stderr |
(module
(function_definition
(function_name_create_identity) function_name_create_identity
(parameters
(identifier_user_id) identifier_user_id
(identifier_curve_name) identifier_curve_name
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_interface) identifier_interface
(identifier_Identity) identifier_Identity
)attribute
(argument_list
(keyword_argument
(identifier_identity_str) identifier_identity_str
(string_'gpg://') string_'gpg://'
)keyword_argument
(keyword_argument
(identifier_curve_name) identifier_curve_name
(identifier_curve_name) identifier_curve_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_result) identifier_result
(identifier_identity_dict) identifier_identity_dict
)attribute
(string_'host') string_'host'
)subscript
(identifier_user_id) identifier_user_id
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Create GPG identity for hardware device. |
(module
(function_definition
(function_name__reset) function_name__reset
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_indexable) identifier_indexable
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_deindex) identifier_deindex
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier__traverse_command) identifier__traverse_command
)attribute
(argument_list
(identifier_command) identifier_command
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_indexable) identifier_indexable
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_index) identifier_index
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Shortcut for commands that reset values of the field.
All will be deindexed and reindexed. |
(module
(function_definition
(function_name_time_coef) function_name_time_coef
(parameters
(identifier_tc) identifier_tc
(identifier_nc) identifier_nc
(identifier_tb) identifier_tb
(identifier_nb) identifier_nb
)parameters
(block
(expression_statement
(assignment
(identifier_tc) identifier_tc
(call
(identifier_float) identifier_float
(argument_list
(identifier_tc) identifier_tc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nc) identifier_nc
(call
(identifier_float) identifier_float
(argument_list
(identifier_nc) identifier_nc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tb) identifier_tb
(call
(identifier_float) identifier_float
(argument_list
(identifier_tb) identifier_tb
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nb) identifier_nb
(call
(identifier_float) identifier_float
(argument_list
(identifier_nb) identifier_nb
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_q) identifier_q
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_tc) identifier_tc
(identifier_nb) identifier_nb
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_tb) identifier_tb
(identifier_nc) identifier_nc
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_q) identifier_q
)return_statement
)block
)function_definition
)module | Return time coefficient relative to base numbers.
@param tc: current test time
@param nc: current test data size
@param tb: base test time
@param nb: base test data size
@return: time coef. |
(module
(function_definition
(function_name_get_exitstatus) function_name_get_exitstatus
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Exit status is {0}") string_"Exit status is {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__spawn) identifier__spawn
)attribute
(identifier_exitstatus) identifier_exitstatus
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__spawn) identifier__spawn
)attribute
(identifier_exitstatus) identifier_exitstatus
)attribute
)return_statement
)block
)function_definition
)module | Get the exit status of the program execution.
Returns:
int: Exit status as reported by the operating system,
or None if it is not available. |
(module
(function_definition
(function_name_SensorDataDelete) function_name_SensorDataDelete
(parameters
(identifier_self) identifier_self
(identifier_sensor_id) identifier_sensor_id
(identifier_data_id) identifier_data_id
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___SenseApiCall__) identifier___SenseApiCall__
)attribute
(argument_list
(call
(attribute
(string_'/sensors/{0}/data/{1}.json') string_'/sensors/{0}/data/{1}.json'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_sensor_id) identifier_sensor_id
(identifier_data_id) identifier_data_id
)argument_list
)call
(string_'DELETE') string_'DELETE'
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___error_) identifier___error_
)attribute
(string_"api call unsuccessful") string_"api call unsuccessful"
)assignment
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Delete a sensor datum from a specific sensor in CommonSense.
@param sensor_id (int) - Sensor id of the sensor to delete data from
@param data_id (int) - Id of the data point to delete
@return (bool) - Boolean indicating whether SensorDataDelete was successful. |
(module
(function_definition
(function_name__node_info) function_name__node_info
(parameters
(identifier_conn) identifier_conn
)parameters
(block
(expression_statement
(assignment
(identifier_raw) identifier_raw
(call
(attribute
(identifier_conn) identifier_conn
(identifier_getInfo) identifier_getInfo
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
(pair
(string_'cpucores') string_'cpucores'
(subscript
(identifier_raw) identifier_raw
(integer_6) integer_6
)subscript
)pair
(pair
(string_'cpumhz') string_'cpumhz'
(subscript
(identifier_raw) identifier_raw
(integer_3) integer_3
)subscript
)pair
(pair
(string_'cpumodel') string_'cpumodel'
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(subscript
(identifier_raw) identifier_raw
(integer_0) integer_0
)subscript
)argument_list
)call
)pair
(pair
(string_'cpus') string_'cpus'
(subscript
(identifier_raw) identifier_raw
(integer_2) integer_2
)subscript
)pair
(pair
(string_'cputhreads') string_'cputhreads'
(subscript
(identifier_raw) identifier_raw
(integer_7) integer_7
)subscript
)pair
(pair
(string_'numanodes') string_'numanodes'
(subscript
(identifier_raw) identifier_raw
(integer_4) integer_4
)subscript
)pair
(pair
(string_'phymemory') string_'phymemory'
(subscript
(identifier_raw) identifier_raw
(integer_1) integer_1
)subscript
)pair
(pair
(string_'sockets') string_'sockets'
(subscript
(identifier_raw) identifier_raw
(integer_5) integer_5
)subscript
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Internal variant of node_info taking a libvirt connection as parameter |
(module
(function_definition
(function_name_convert_values) function_name_convert_values
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_matchdict) identifier_matchdict
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_converted) identifier_converted
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_varname) identifier_varname
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_matchdict) identifier_matchdict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_converter) identifier_converter
(subscript
(attribute
(identifier_self) identifier_self
(identifier_converters) identifier_converters
)attribute
(identifier_varname) identifier_varname
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_converted) identifier_converted
(identifier_varname) identifier_varname
)subscript
(call
(identifier_converter) identifier_converter
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_converted) identifier_converted
)return_statement
)block
)function_definition
)module | convert values of ``matchdict``
with converter this object has. |
(module
(function_definition
(function_name_max_brightness) function_name_max_brightness
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_status_filename) identifier_status_filename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(string_'max_brightness') string_'max_brightness'
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_status_filename) identifier_status_filename
)argument_list
)call
(as_pattern_target
(identifier_status_fp) identifier_status_fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_status_fp) identifier_status_fp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_status_text) identifier_status_text
(call
(attribute
(identifier_result) identifier_result
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_status) identifier_status
(call
(identifier_int) identifier_int
(argument_list
(identifier_status_text) identifier_status_text
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(identifier_status_text) identifier_status_text
)return_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_status) identifier_status
)return_statement
)block
)function_definition
)module | Get the device's maximum brightness level. |
(module
(function_definition
(function_name_assign_value) function_name_assign_value
(parameters
(identifier_self) identifier_self
(identifier_comp_def) identifier_comp_def
(identifier_value) identifier_value
(identifier_src_ref) identifier_src_ref
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_assign_value) identifier_assign_value
)attribute
(argument_list
(identifier_comp_def) identifier_comp_def
(identifier_value) identifier_value
(identifier_src_ref) identifier_src_ref
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_"rclr") string_"rclr"
(attribute
(identifier_comp_def) identifier_comp_def
(identifier_properties) identifier_properties
)attribute
)comparison_operator
(block
(delete_statement
(subscript
(attribute
(identifier_comp_def) identifier_comp_def
(identifier_properties) identifier_properties
)attribute
(string_"rclr") string_"rclr"
)subscript
)delete_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_"rset") string_"rset"
(attribute
(identifier_comp_def) identifier_comp_def
(identifier_properties) identifier_properties
)attribute
)comparison_operator
(block
(delete_statement
(subscript
(attribute
(identifier_comp_def) identifier_comp_def
(identifier_properties) identifier_properties
)attribute
(string_"rset") string_"rset"
)subscript
)delete_statement
)block
)if_statement
)block
)function_definition
)module | Overrides other related properties |
(module
(function_definition
(function_name__schema_from_verb) function_name__schema_from_verb
(parameters
(identifier_verb) identifier_verb
(default_parameter
(identifier_partial) identifier_partial
(False) False
)default_parameter
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_verbs) identifier_verbs
)dotted_name
)relative_import
(dotted_name
(identifier_Verbs) identifier_Verbs
)dotted_name
)import_from_statement
(return_statement
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_Verbs) identifier_Verbs
(identifier_verb) identifier_verb
)argument_list
)call
(argument_list
(keyword_argument
(identifier_partial) identifier_partial
(identifier_partial) identifier_partial
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an instance of schema for given verb. |
(module
(function_definition
(function_name_is_valid_callsign) function_name_is_valid_callsign
(parameters
(identifier_self) identifier_self
(identifier_callsign) identifier_callsign
(default_parameter
(identifier_timestamp) identifier_timestamp
(identifier_timestamp_now) identifier_timestamp_now
)default_parameter
)parameters
(block
(try_statement
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_all) identifier_get_all
)attribute
(argument_list
(identifier_callsign) identifier_callsign
(identifier_timestamp) identifier_timestamp
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Checks if a callsign is valid
Args:
callsign (str): Amateur Radio callsign
timestamp (datetime, optional): datetime in UTC (tzinfo=pytz.UTC)
Returns:
bool: True / False
Example:
The following checks if "DH1TW" is a valid callsign
>>> from pyhamtools import LookupLib, Callinfo
>>> my_lookuplib = LookupLib(lookuptype="countryfile")
>>> cic = Callinfo(my_lookuplib)
>>> cic.is_valid_callsign("DH1TW")
True |
(module
(function_definition
(function_name_convert_bytes_to_ints) function_name_convert_bytes_to_ints
(parameters
(identifier_in_bytes) identifier_in_bytes
(identifier_num) identifier_num
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_dtype) identifier_dtype
)attribute
(argument_list
(binary_operator
(string_'>i') string_'>i'
(call
(identifier_str) identifier_str
(argument_list
(identifier_num) identifier_num
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_frombuffer) identifier_frombuffer
)attribute
(argument_list
(identifier_in_bytes) identifier_in_bytes
(identifier_dt) identifier_dt
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert a byte array into an integer array. The number of bytes forming an integer
is defined by num
:param in_bytes: the input bytes
:param num: the number of bytes per int
:return the integer array |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(string_'id') string_'id'
(attribute
(identifier_self) identifier_self
(identifier__bug) identifier__bug
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__bugsy) identifier__bugsy
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(binary_operator
(string_'bug/%s') string_'bug/%s'
(subscript
(attribute
(identifier_self) identifier_self
(identifier__bug) identifier__bug
)attribute
(string_'id') string_'id'
)subscript
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__bug) identifier__bug
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(dictionary_splat
(subscript
(subscript
(identifier_result) identifier_result
(string_'bugs') string_'bugs'
)subscript
(integer_0) integer_0
)subscript
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_BugException) identifier_BugException
(argument_list
(string_"Unable to update bug that isn't in Bugzilla") string_"Unable to update bug that isn't in Bugzilla"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Update this object with the latest changes from Bugzilla
>>> bug.status
'NEW'
#Changes happen on Bugzilla
>>> bug.update()
>>> bug.status
'FIXED' |
(module
(function_definition
(function_name__set_align) function_name__set_align
(parameters
(identifier_self) identifier_self
(identifier_orientation) identifier_orientation
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_orientation_letter) identifier_orientation_letter
(subscript
(identifier_orientation) identifier_orientation
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_possible_alignments) identifier_possible_alignments
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(call
(attribute
(string_'_possible_{}aligns') string_'_possible_{}aligns'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_orientation_letter) identifier_orientation_letter
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_alignments) identifier_all_alignments
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(call
(attribute
(string_'_all_{}aligns') string_'_all_{}aligns'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_orientation_letter) identifier_orientation_letter
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_possible_alignments) identifier_possible_alignments
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_all_alignments) identifier_all_alignments
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_'non-permitted') string_'non-permitted'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_'non-existant') string_'non-existant'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Can't set {} {} alignment {!r} on element {!r}") string_"Can't set {} {} alignment {!r} on element {!r}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_msg) identifier_msg
(identifier_orientation) identifier_orientation
(identifier_value) identifier_value
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(call
(attribute
(string_'_{}align') string_'_{}align'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_orientation_letter) identifier_orientation_letter
)argument_list
)call
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)function_definition
)module | We define a setter because it's better to diagnose this kind of
programmatic error here than have to work out why alignment is odd when
we sliently fail! |
(module
(function_definition
(function_name_get_resources_by_bin) function_name_get_resources_by_bin
(parameters
(identifier_self) identifier_self
(identifier_bin_id) identifier_bin_id
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) identifier_mgr
(call
(attribute
(identifier_self) identifier_self
(identifier__get_provider_manager) identifier__get_provider_manager
)attribute
(argument_list
(string_'RESOURCE') string_'RESOURCE'
(keyword_argument
(identifier_local) identifier_local
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lookup_session) identifier_lookup_session
(call
(attribute
(identifier_mgr) identifier_mgr
(identifier_get_resource_lookup_session_for_bin) identifier_get_resource_lookup_session_for_bin
)attribute
(argument_list
(identifier_bin_id) identifier_bin_id
(keyword_argument
(identifier_proxy) identifier_proxy
(attribute
(identifier_self) identifier_self
(identifier__proxy) identifier__proxy
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_lookup_session) identifier_lookup_session
(identifier_use_isolated_bin_view) identifier_use_isolated_bin_view
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_lookup_session) identifier_lookup_session
(identifier_get_resources) identifier_get_resources
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the list of ``Resources`` associated with a ``Bin``.
arg: bin_id (osid.id.Id): ``Id`` of a ``Bin``
return: (osid.resource.ResourceList) - list of related resources
raise: NotFound - ``bin_id`` is not found
raise: NullArgument - ``bin_id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_self) identifier_self
(identifier_d) identifier_d
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_length) identifier_length
)attribute
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_"length") string_"length"
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_instanceHigh) identifier_instanceHigh
)attribute
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_"instanceHigh") string_"instanceHigh"
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_instanceMid) identifier_instanceMid
)attribute
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_"instanceMid") string_"instanceMid"
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_instanceLow) identifier_instanceLow
)attribute
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_"instanceLow") string_"instanceLow"
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_material) identifier_material
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_"material") string_"material"
(dictionary
(pair
(string_'Data1') string_'Data1'
(integer_0) integer_0
)pair
(pair
(string_'Data2') string_'Data2'
(integer_0) integer_0
)pair
(pair
(string_'Data3') string_'Data3'
(integer_0) integer_0
)pair
(pair
(string_'Data4') string_'Data4'
(list_comprehension
(integer_0) integer_0
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_8) integer_8
)argument_list
)call
)for_in_clause
)list_comprehension
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Data1) identifier_Data1
)attribute
(call
(attribute
(identifier_material) identifier_material
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Data1') string_'Data1'
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Data2) identifier_Data2
)attribute
(call
(attribute
(identifier_material) identifier_material
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Data2') string_'Data2'
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Data3) identifier_Data3
)attribute
(call
(attribute
(identifier_material) identifier_material
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Data3') string_'Data3'
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Data4) identifier_Data4
)attribute
(call
(attribute
(identifier_material) identifier_material
(identifier_get) identifier_get
)attribute
(argument_list
(string_"Data4") string_"Data4"
(list_comprehension
(integer_0) integer_0
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_8) integer_8
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_SMPTELabel) identifier_SMPTELabel
)attribute
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_"SMPTELabel") string_"SMPTELabel"
(list_comprehension
(integer_0) integer_0
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_12) integer_12
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set MobID from a dict |
(module
(function_definition
(function_name_set_connection) function_name_set_connection
(parameters
(identifier_self) identifier_self
(identifier_service_name) identifier_service_name
(identifier_to_cache) identifier_to_cache
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_services) identifier_services
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_service_name) identifier_service_name
(dictionary
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_services) identifier_services
)attribute
(identifier_service_name) identifier_service_name
)subscript
(string_'connection') string_'connection'
)subscript
(identifier_to_cache) identifier_to_cache
)assignment
)expression_statement
)block
)function_definition
)module | Sets a connection class within the cache.
:param service_name: The service a given ``Connection`` talks to. Ex.
``sqs``, ``sns``, ``dynamodb``, etc.
:type service_name: string
:param to_cache: The class to be cached for the service.
:type to_cache: class |
(module
(function_definition
(function_name__update_items) function_name__update_items
(parameters
(identifier_self) identifier_self
(identifier_items) identifier_items
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(identifier_items) identifier_items
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_map) identifier_map
)attribute
(dictionary_comprehension
(pair
(identifier_item) identifier_item
(identifier_idx) identifier_idx
)pair
(for_in_clause
(tuple_pattern
(identifier_idx) identifier_idx
(identifier_item) identifier_item
)tuple_pattern
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
)block
)function_definition
)module | Replace the 'items' list of this OrderedSet with a new one, updating
self.map accordingly. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.