sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_destroySingleton) function_name_destroySingleton
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_singleton_key) identifier_singleton_key
(call
(attribute
(string_'_{0}__singleton') string_'_{0}__singleton'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_singleton) identifier_singleton
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_cls) identifier_cls
(identifier_singleton_key) identifier_singleton_key
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_singleton) identifier_singleton
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_cls) identifier_cls
(identifier_singleton_key) identifier_singleton_key
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_singleton) identifier_singleton
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_singleton) identifier_singleton
(identifier_deleteLater) identifier_deleteLater
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Destroys the singleton instance of this class, if one exists. |
(module
(function_definition
(function_name_format) function_name_format
(parameters
(identifier_self) identifier_self
(identifier_fmt) identifier_fmt
(default_parameter
(identifier_locale) identifier_locale
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__formatter) identifier__formatter
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_fmt) identifier_fmt
(identifier_locale) identifier_locale
)argument_list
)call
)return_statement
)block
)function_definition
)module | Formats the instance using the given format.
:param fmt: The format to use
:type fmt: str
:param locale: The locale to use
:type locale: str or None
:rtype: str |
(module
(function_definition
(function_name_join) function_name_join
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_pad) identifier_pad
(None) None
)default_parameter
(default_parameter
(identifier_gap) identifier_gap
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_self) identifier_self
)not_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_EntryClass) identifier_EntryClass
)attribute
(argument_list
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_empty) identifier_empty
)attribute
(argument_list
(binary_operator
(tuple
(integer_0) integer_0
)tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier_EntryClass) identifier_EntryClass
)attribute
(identifier__ndim) identifier__ndim
)attribute
)binary_operator
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_t) identifier_t
)lambda_parameters
(attribute
(attribute
(identifier_t) identifier_t
(identifier_epoch) identifier_epoch
)attribute
(identifier_gps) identifier_gps
)attribute
)lambda
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(subscript
(identifier_self) identifier_self
(integer_0) integer_0
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_series) identifier_series
(subscript
(identifier_self) identifier_self
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_series) identifier_series
(keyword_argument
(identifier_gap) identifier_gap
(identifier_gap) identifier_gap
)keyword_argument
(keyword_argument
(identifier_pad) identifier_pad
(identifier_pad) identifier_pad
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Concatenate all of the elements of this list into a single object
Parameters
----------
pad : `float`, optional, default: `0.0`
value with which to pad gaps
gap : `str`, optional, default: `'raise'`
what to do if there are gaps in the data, one of
- ``'raise'`` - raise a `ValueError`
- ``'ignore'`` - remove gap and join data
- ``'pad'`` - pad gap with zeros
If `pad` is given and is not `None`, the default is ``'pad'``,
otherwise ``'raise'``.
Returns
-------
series : `gwpy.types.TimeSeriesBase` subclass
a single series containing all data from each entry in this list
See Also
--------
TimeSeries.append
for details on how the individual series are concatenated together |
(module
(function_definition
(function_name_establish_scp_conn) function_name_establish_scp_conn
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ssh_connect_params) identifier_ssh_connect_params
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ssh_ctl_chan) identifier_ssh_ctl_chan
)attribute
(identifier__connect_params_dict) identifier__connect_params_dict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_scp_conn) identifier_scp_conn
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ssh_ctl_chan) identifier_ssh_ctl_chan
)attribute
(identifier__build_ssh_client) identifier__build_ssh_client
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_scp_conn) identifier_scp_conn
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(dictionary_splat
(identifier_ssh_connect_params) identifier_ssh_connect_params
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_scp_client) identifier_scp_client
)attribute
(call
(attribute
(identifier_scp) identifier_scp
(identifier_SCPClient) identifier_SCPClient
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_scp_conn) identifier_scp_conn
)attribute
(identifier_get_transport) identifier_get_transport
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Establish the secure copy connection. |
(module
(function_definition
(function_name_ConvertMessage) function_name_ConvertMessage
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignment
(identifier_message_descriptor) identifier_message_descriptor
(attribute
(identifier_message) identifier_message
(identifier_DESCRIPTOR) identifier_DESCRIPTOR
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_full_name) identifier_full_name
(attribute
(identifier_message_descriptor) identifier_message_descriptor
(identifier_full_name) identifier_full_name
)attribute
)assignment
)expression_statement
(if_statement
(call
(identifier__IsWrapperMessage) identifier__IsWrapperMessage
(argument_list
(identifier_message_descriptor) identifier_message_descriptor
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ConvertWrapperMessage) identifier__ConvertWrapperMessage
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_full_name) identifier_full_name
(identifier__WKTJSONMETHODS) identifier__WKTJSONMETHODS
)comparison_operator
(block
(expression_statement
(call
(call
(identifier_methodcaller) identifier_methodcaller
(argument_list
(subscript
(subscript
(identifier__WKTJSONMETHODS) identifier__WKTJSONMETHODS
(identifier_full_name) identifier_full_name
)subscript
(integer_1) integer_1
)subscript
(identifier_value) identifier_value
(identifier_message) identifier_message
)argument_list
)call
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ConvertFieldValuePair) identifier__ConvertFieldValuePair
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Convert a JSON object into a message.
Args:
value: A JSON object.
message: A WKT or regular protocol message to record the data.
Raises:
ParseError: In case of convert problems. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_series_list) identifier_series_list
)parameters
(block
(if_statement
(not_operator
(identifier_series_list) identifier_series_list
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_series_notebook) identifier_series_notebook
)attribute
(identifier_AddPage) identifier_AddPage
)attribute
(argument_list
(call
(attribute
(identifier_wx) identifier_wx
(identifier_Panel) identifier_Panel
)attribute
(argument_list
(identifier_self) identifier_self
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
(call
(identifier__) identifier__
(argument_list
(string_"+") string_"+"
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_updating) identifier_updating
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_series_notebook) identifier_series_notebook
)attribute
(identifier_DeleteAllPages) identifier_DeleteAllPages
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_page) identifier_page
(identifier_attrdict) identifier_attrdict
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_series_list) identifier_series_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_series_panel) identifier_series_panel
(call
(identifier_SeriesPanel) identifier_SeriesPanel
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_attrdict) identifier_attrdict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(string_"Series") string_"Series"
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_series_notebook) identifier_series_notebook
)attribute
(identifier_InsertPage) identifier_InsertPage
)attribute
(argument_list
(identifier_page) identifier_page
(identifier_series_panel) identifier_series_panel
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_series_notebook) identifier_series_notebook
)attribute
(identifier_AddPage) identifier_AddPage
)attribute
(argument_list
(call
(attribute
(identifier_wx) identifier_wx
(identifier_Panel) identifier_Panel
)attribute
(argument_list
(identifier_self) identifier_self
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
(call
(identifier__) identifier__
(argument_list
(string_"+") string_"+"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_updating) identifier_updating
)attribute
(False) False
)assignment
)expression_statement
)block
)function_definition
)module | Updates widget content from series_list
Parameters
----------
series_list: List of dict
\tList of dicts with data from all series |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filename) identifier_filename
(string_'w') string_'w'
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_xml) identifier_xml
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Save metadata to XML file |
(module
(function_definition
(function_name_get_expression_engine) function_name_get_expression_engine
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(try_statement
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_expression_engines) identifier_expression_engines
)attribute
(identifier_name) identifier_name
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_InvalidEngineError) identifier_InvalidEngineError
(argument_list
(call
(attribute
(string_"Unsupported expression engine: {}") string_"Unsupported expression engine: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return an expression engine instance. |
(module
(function_definition
(function_name_normalizeFileFormatVersion) function_name_normalizeFileFormatVersion
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_int) identifier_int
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(concatenated_string
(string_"File format versions must be instances of ") string_"File format versions must be instances of "
(string_":ref:`type-int`, not %s.") string_":ref:`type-int`, not %s."
)concatenated_string
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Normalizes a font's file format version.
* **value** must be a :ref:`type-int`.
* Returned value will be a ``int``. |
(module
(function_definition
(function_name_double_click) function_name_double_click
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_scroll_to) identifier_scroll_to
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(call
(identifier_ActionChains) identifier_ActionChains
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_driver) identifier_driver
)attribute
)argument_list
)call
(identifier_double_click) identifier_double_click
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__element) identifier__element
)attribute
)argument_list
)call
(identifier_perform) identifier_perform
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Performs a double click in the element.
Currently works only on Chrome driver. |
(module
(function_definition
(function_name__add_somatic_opts) function_name__add_somatic_opts
(parameters
(identifier_opts) identifier_opts
(identifier_paired) identifier_paired
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string_"--min-alternate-fraction") string_"--min-alternate-fraction"
(identifier_opts) identifier_opts
)comparison_operator
(comparison_operator
(string_"-F") string_"-F"
(identifier_opts) identifier_opts
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_min_af) identifier_min_af
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_in) identifier_get_in
)attribute
(argument_list
(attribute
(identifier_paired) identifier_paired
(identifier_tumor_config) identifier_tumor_config
)attribute
(tuple
(string_"algorithm") string_"algorithm"
(string_"min_allele_fraction") string_"min_allele_fraction"
)tuple
(integer_10) integer_10
)argument_list
)call
)argument_list
)call
(float_100.0) float_100.0
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_opts) identifier_opts
(binary_operator
(string_" --min-alternate-fraction %s") string_" --min-alternate-fraction %s"
(identifier_min_af) identifier_min_af
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_opts) identifier_opts
(parenthesized_expression
(concatenated_string
(string_" --pooled-discrete --pooled-continuous ") string_" --pooled-discrete --pooled-continuous "
(string_"--report-genotype-likelihood-max --allele-balance-priors-off") string_"--report-genotype-likelihood-max --allele-balance-priors-off"
)concatenated_string
)parenthesized_expression
)augmented_assignment
)expression_statement
(return_statement
(identifier_opts) identifier_opts
)return_statement
)block
)function_definition
)module | Add somatic options to current set. See _run_freebayes_paired for references. |
(module
(function_definition
(function_name_set_status) function_name_set_status
(parameters
(identifier_self) identifier_self
(identifier_new_status) identifier_new_status
)parameters
(block
(if_statement
(comparison_operator
(identifier_new_status) identifier_new_status
(attribute
(identifier_Report) identifier_Report
(identifier_allowed_statuses) identifier_allowed_statuses
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'status must be one of: %s') string_'status must be one of: %s'
(parenthesized_expression
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_Report) identifier_Report
(identifier_allowed_statuses) identifier_allowed_statuses
)attribute
)argument_list
)call
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__data_fields) identifier__data_fields
)attribute
(string_'status') string_'status'
)subscript
(call
(attribute
(identifier_new_status) identifier_new_status
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set the status of the report.
:param new_status: the new status of the report (either PASSED, FAILED or ERROR) |
(module
(function_definition
(function_name_get_next_invoke_id) function_name_get_next_invoke_id
(parameters
(identifier_self) identifier_self
(identifier_addr) identifier_addr
)parameters
(block
(if_statement
(identifier__debug) identifier__debug
(block
(expression_statement
(call
(attribute
(identifier_StateMachineAccessPoint) identifier_StateMachineAccessPoint
(identifier__debug) identifier__debug
)attribute
(argument_list
(string_"get_next_invoke_id") string_"get_next_invoke_id"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_initialID) identifier_initialID
(attribute
(identifier_self) identifier_self
(identifier_nextInvokeID) identifier_nextInvokeID
)attribute
)assignment
)expression_statement
(while_statement
(integer_1) integer_1
(block
(expression_statement
(assignment
(identifier_invokeID) identifier_invokeID
(attribute
(identifier_self) identifier_self
(identifier_nextInvokeID) identifier_nextInvokeID
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_nextInvokeID) identifier_nextInvokeID
)attribute
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_nextInvokeID) identifier_nextInvokeID
)attribute
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(integer_256) integer_256
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_initialID) identifier_initialID
(attribute
(identifier_self) identifier_self
(identifier_nextInvokeID) identifier_nextInvokeID
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"no available invoke ID") string_"no available invoke ID"
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_tr) identifier_tr
(attribute
(identifier_self) identifier_self
(identifier_clientTransactions) identifier_clientTransactions
)attribute
(block
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_invokeID) identifier_invokeID
(attribute
(identifier_tr) identifier_tr
(identifier_invokeID) identifier_invokeID
)attribute
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_addr) identifier_addr
(attribute
(identifier_tr) identifier_tr
(identifier_pdu_address) identifier_pdu_address
)attribute
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)for_statement
)block
)while_statement
(return_statement
(identifier_invokeID) identifier_invokeID
)return_statement
)block
)function_definition
)module | Called by clients to get an unused invoke ID. |
(module
(function_definition
(function_name_view_list) function_name_view_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_done) identifier_done
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
)list
)assignment
)expression_statement
(while_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_done) identifier_done
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_count) identifier_count
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_self) identifier_self
(identifier_view_indexes) identifier_view_indexes
)attribute
(argument_list
(identifier_done) identifier_done
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | return a list of polygon indexes lists for the waypoints |
(module
(function_definition
(function_name_token_delete) function_name_token_delete
(parameters
(identifier_remote) identifier_remote
(default_parameter
(identifier_token) identifier_token
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_session_key) identifier_session_key
(call
(identifier_token_session_key) identifier_token_session_key
(argument_list
(attribute
(identifier_remote) identifier_remote
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_session_key) identifier_session_key
(None) None
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove OAuth access tokens from session.
:param remote: The remote application.
:param token: Type of token to get. Data passed from ``oauth.request()`` to
identify which token to retrieve. (Default: ``''``)
:returns: The token. |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_cls) identifier_cls
(identifier_d) identifier_d
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(subscript
(identifier_d) identifier_d
(string_'rargname') string_'rargname'
)subscript
(subscript
(identifier_d) identifier_d
(string_'value') string_'value'
)subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_'properties') string_'properties'
(dictionary
)dictionary
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(call
(attribute
(identifier_d) identifier_d
(identifier_get) identifier_get
)attribute
(argument_list
(string_'optional') string_'optional'
(False) False
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Instantiate a Role from a dictionary representation. |
(module
(function_definition
(function_name__imm_delattr) function_name__imm_delattr
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(call
(identifier__imm_is_persist) identifier__imm_is_persist
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(identifier__imm_value_data) identifier__imm_value_data
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_values) identifier_values
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dd) identifier_dd
(call
(attribute
(identifier_object) identifier_object
(identifier___getattribute__) identifier___getattribute__
)attribute
(argument_list
(identifier_self) identifier_self
(string_'__dict__') string_'__dict__'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_dd) identifier_dd
)comparison_operator
(block
(delete_statement
(subscript
(identifier_dd) identifier_dd
(identifier_name) identifier_name
)subscript
)delete_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(call
(identifier__imm_const_data) identifier__imm_const_data
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)comparison_operator
(block
(expression_statement
(call
(identifier__imm_check) identifier__imm_check
(argument_list
(identifier_imm) identifier_imm
(list
(identifier_name) identifier_name
)list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_'Attempt to reset parameter \'%s\' of non-transient immutable') string_'Attempt to reset parameter \'%s\' of non-transient immutable'
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(call
(identifier__imm_trans_delattr) identifier__imm_trans_delattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | A persistent immutable's delattr allows the object's value-caches to be invalidated, otherwise
raises an exception. |
(module
(function_definition
(function_name_GET_savedgetitemvalues) function_name_GET_savedgetitemvalues
(parameters
(identifier_self) identifier_self
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(identifier_dict_) identifier_dict_
(call
(attribute
(attribute
(identifier_state) identifier_state
(identifier_getitemvalues) identifier_getitemvalues
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dict_) identifier_dict_
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_GET_getitemvalues) identifier_GET_getitemvalues
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_dict_) identifier_dict_
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__outputs) identifier__outputs
)attribute
(identifier_name) identifier_name
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get the previously saved values of all |GetItem| objects. |
(module
(function_definition
(function_name__generate_html) function_name__generate_html
(parameters
(identifier_data) identifier_data
(identifier_out) identifier_out
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'<html>') string_'<html>'
(keyword_argument
(identifier_file) identifier_file
(identifier_out) identifier_out
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'<body>') string_'<body>'
(keyword_argument
(identifier_file) identifier_file
(identifier_out) identifier_out
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__generate_html_table) identifier__generate_html_table
(argument_list
(identifier_data) identifier_data
(identifier_out) identifier_out
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'</body>') string_'</body>'
(keyword_argument
(identifier_file) identifier_file
(identifier_out) identifier_out
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'</html>') string_'</html>'
(keyword_argument
(identifier_file) identifier_file
(identifier_out) identifier_out
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Generate report data as HTML |
(module
(function_definition
(function_name_transitDurationCircular) function_name_transitDurationCircular
(parameters
(identifier_P) identifier_P
(identifier_R_s) identifier_R_s
(identifier_R_p) identifier_R_p
(identifier_a) identifier_a
(identifier_i) identifier_i
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(if_statement
(comparison_operator
(identifier_i) identifier_i
(identifier_nan) identifier_nan
)comparison_operator
(block
(expression_statement
(assignment
(identifier_i) identifier_i
(binary_operator
(integer_90) integer_90
(attribute
(identifier_aq) identifier_aq
(identifier_deg) identifier_deg
)attribute
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(call
(attribute
(identifier_i) identifier_i
(identifier_rescale) identifier_rescale
)attribute
(argument_list
(attribute
(identifier_aq) identifier_aq
(identifier_rad) identifier_rad
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_k) identifier_k
(binary_operator
(identifier_R_p) identifier_R_p
(identifier_R_s) identifier_R_s
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b) identifier_b
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_a) identifier_a
(call
(identifier_cos) identifier_cos
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)parenthesized_expression
(identifier_R_s) identifier_R_s
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_duration) identifier_duration
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_P) identifier_P
(identifier_pi) identifier_pi
)binary_operator
)parenthesized_expression
(call
(identifier_arcsin) identifier_arcsin
(argument_list
(attribute
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_R_s) identifier_R_s
(call
(identifier_sqrt) identifier_sqrt
(argument_list
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_k) identifier_k
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_b) identifier_b
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_a) identifier_a
(call
(identifier_sin) identifier_sin
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
(identifier_simplified) identifier_simplified
)attribute
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_duration) identifier_duration
(identifier_rescale) identifier_rescale
)attribute
(argument_list
(attribute
(identifier_aq) identifier_aq
(identifier_min) identifier_min
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | r"""Estimation of the primary transit time. Assumes a circular orbit.
.. math::
T_\text{dur} = \frac{P}{\pi}\sin^{-1}
\left[\frac{R_\star}{a}\frac{\sqrt{(1+k)^2 + b^2}}{\sin{a}} \right]
Where :math:`T_\text{dur}` transit duration, P orbital period,
:math:`R_\star` radius of the star, a is the semi-major axis,
k is :math:`\frac{R_p}{R_s}`, b is :math:`\frac{a}{R_*} \cos{i}`
(Seager & Mallen-Ornelas 2003) |
(module
(function_definition
(function_name_timestamp) function_name_timestamp
(parameters
(identifier_datetime_obj) identifier_datetime_obj
)parameters
(block
(expression_statement
(assignment
(identifier_start_of_time) identifier_start_of_time
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(argument_list
(integer_1970) integer_1970
(integer_1) integer_1
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_diff) identifier_diff
(binary_operator
(identifier_datetime_obj) identifier_datetime_obj
(identifier_start_of_time) identifier_start_of_time
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_diff) identifier_diff
(identifier_total_seconds) identifier_total_seconds
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return Unix timestamp as float.
The number of seconds that have elapsed since January 1, 1970. |
(module
(function_definition
(function_name__parse_player_data) function_name__parse_player_data
(parameters
(identifier_self) identifier_self
(identifier_player_data) identifier_player_data
)parameters
(block
(for_statement
(identifier_field) identifier_field
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
(block
(expression_statement
(assignment
(identifier_short_field) identifier_short_field
(subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_field) identifier_field
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'player_id') string_'player_id'
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'index') string_'index'
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'most_recent_season') string_'most_recent_season'
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'name') string_'name'
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'weight') string_'weight'
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'height') string_'height'
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_short_field) identifier_short_field
(string_'season') string_'season'
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_field_stats) identifier_field_stats
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_player_data) identifier_player_data
)argument_list
)call
(identifier_dict) identifier_dict
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_year) identifier_year
(identifier_data) identifier_data
)pattern_list
(call
(attribute
(identifier_player_data) identifier_player_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_stats) identifier_stats
(call
(identifier_pq) identifier_pq
(argument_list
(subscript
(identifier_data) identifier_data
(string_'data') string_'data'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_value) identifier__parse_value
)attribute
(argument_list
(identifier_stats) identifier_stats
(identifier_short_field) identifier_short_field
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_field_stats) identifier_field_stats
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_stats) identifier_stats
(call
(identifier_pq) identifier_pq
(argument_list
(identifier_player_data) identifier_player_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_value) identifier__parse_value
)attribute
(argument_list
(identifier_stats) identifier_stats
(identifier_short_field) identifier_short_field
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_field_stats) identifier_field_stats
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_field) identifier_field
(identifier_field_stats) identifier_field_stats
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Parse all player information and set attributes.
Iterate through each class attribute to parse the data from the HTML
page and set the attribute value with the result.
Parameters
----------
player_data : dictionary or string
If this class is inherited from the ``Player`` class, player_data
will be a dictionary where each key is a string representing the
season and each value contains the HTML data as a string. If this
class is inherited from the ``BoxscorePlayer`` class, player_data
will be a string representing the player's game statistics in HTML
format. |
(module
(function_definition
(function_name_separate_namespace) function_name_separate_namespace
(parameters
(identifier_qname) identifier_qname
)parameters
(block
(expression_statement
(string_"Separates the namespace from the element") string_"Separates the namespace from the element"
)expression_statement
(import_statement
(dotted_name
(identifier_re) identifier_re
)dotted_name
)import_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_namespace) identifier_namespace
(identifier_element_name) identifier_element_name
)pattern_list
(call
(attribute
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_'^{(.+)}(.+)$') string_'^{(.+)}(.+)$'
(identifier_qname) identifier_qname
)argument_list
)call
(identifier_groups) identifier_groups
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(expression_statement
(assignment
(identifier_namespace) identifier_namespace
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_element_name) identifier_element_name
(identifier_qname) identifier_qname
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(identifier_namespace) identifier_namespace
(identifier_element_name) identifier_element_name
)expression_list
)return_statement
)block
)function_definition
)module | Separates the namespace from the element |
(module
(function_definition
(function_name__extract_player_stats) function_name__extract_player_stats
(parameters
(identifier_self) identifier_self
(identifier_table) identifier_table
(identifier_player_dict) identifier_player_dict
(identifier_home_or_away) identifier_home_or_away
)parameters
(block
(for_statement
(identifier_row) identifier_row
(call
(attribute
(call
(identifier_table) identifier_table
(argument_list
(string_'tbody tr') string_'tbody tr'
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_player_id) identifier_player_id
(call
(attribute
(identifier_self) identifier_self
(identifier__find_player_id) identifier__find_player_id
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_player_id) identifier_player_id
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_self) identifier_self
(identifier__find_player_name) identifier__find_player_name
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(augmented_assignment
(subscript
(subscript
(identifier_player_dict) identifier_player_dict
(identifier_player_id) identifier_player_id
)subscript
(string_'data') string_'data'
)subscript
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(subscript
(identifier_player_dict) identifier_player_dict
(identifier_player_id) identifier_player_id
)subscript
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'data') string_'data'
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'team') string_'team'
(identifier_home_or_away) identifier_home_or_away
)pair
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_player_dict) identifier_player_dict
)return_statement
)block
)function_definition
)module | Combine all player stats into a single object.
Since each player generally has a couple of rows worth of stats (one
for basic stats and another for advanced stats) on the boxscore page,
both rows should be combined into a single string object to easily
query all fields from a single object instead of determining which row
to pull metrics from.
Parameters
----------
table : PyQuery object
A PyQuery object of a single boxscore table, such as the home
team's advanced stats or the away team's basic stats.
player_dict : dictionary
A dictionary where each key is a string of the player's ID and each
value is a dictionary where the values contain the player's name,
HTML data, and a string constant indicating which team the player
is a member of.
home_or_away : string constant
A string constant indicating whether the player plays for the home
or away team.
Returns
-------
dictionary
Returns a ``dictionary`` where each key is a string of the player's
ID and each value is a dictionary where the values contain the
player's name, HTML data, and a string constant indicating which
team the player is a member of. |
(module
(function_definition
(function_name_click) function_name_click
(parameters
(identifier_self) identifier_self
(identifier_entity) identifier_entity
(default_parameter
(identifier_reply_to) identifier_reply_to
(None) None
)default_parameter
(default_parameter
(identifier_silent) identifier_silent
(False) False
)default_parameter
(default_parameter
(identifier_clear_draft) identifier_clear_draft
(False) False
)default_parameter
(default_parameter
(identifier_hide_via) identifier_hide_via
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_entity) identifier_entity
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_get_input_entity) identifier_get_input_entity
)attribute
(argument_list
(identifier_entity) identifier_entity
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reply_id) identifier_reply_id
(conditional_expression
(None) None
(comparison_operator
(identifier_reply_to) identifier_reply_to
(None) None
)comparison_operator
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_message_id) identifier_get_message_id
)attribute
(argument_list
(identifier_reply_to) identifier_reply_to
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(attribute
(identifier_functions) identifier_functions
(identifier_messages) identifier_messages
)attribute
(identifier_SendInlineBotResultRequest) identifier_SendInlineBotResultRequest
)attribute
(argument_list
(keyword_argument
(identifier_peer) identifier_peer
(identifier_entity) identifier_entity
)keyword_argument
(keyword_argument
(identifier_query_id) identifier_query_id
(attribute
(identifier_self) identifier_self
(identifier__query_id) identifier__query_id
)attribute
)keyword_argument
(keyword_argument
(identifier_id) identifier_id
(attribute
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(identifier_id) identifier_id
)attribute
)keyword_argument
(keyword_argument
(identifier_silent) identifier_silent
(identifier_silent) identifier_silent
)keyword_argument
(keyword_argument
(identifier_clear_draft) identifier_clear_draft
(identifier_clear_draft) identifier_clear_draft
)keyword_argument
(keyword_argument
(identifier_hide_via) identifier_hide_via
(identifier_hide_via) identifier_hide_via
)keyword_argument
(keyword_argument
(identifier_reply_to_msg_id) identifier_reply_to_msg_id
(identifier_reply_id) identifier_reply_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier__get_response_message) identifier__get_response_message
)attribute
(argument_list
(identifier_req) identifier_req
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)await
(identifier_entity) identifier_entity
)argument_list
)call
)return_statement
)block
)function_definition
)module | Clicks this result and sends the associated `message`.
Args:
entity (`entity`):
The entity to which the message of this result should be sent.
reply_to (`int` | `Message <telethon.tl.custom.message.Message>`, optional):
If present, the sent message will reply to this ID or message.
silent (`bool`, optional):
If ``True``, the sent message will not notify the user(s).
clear_draft (`bool`, optional):
Whether the draft should be removed after sending the
message from this result or not. Defaults to ``False``.
hide_via (`bool`, optional):
Whether the "via @bot" should be hidden or not.
Only works with certain bots (like @bing or @gif). |
(module
(function_definition
(function_name__get_esxdatacenter_proxy_details) function_name__get_esxdatacenter_proxy_details
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_det) identifier_det
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'esxdatacenter.get_details') string_'esxdatacenter.get_details'
)subscript
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'vcenter') string_'vcenter'
)argument_list
)call
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'username') string_'username'
)argument_list
)call
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'password') string_'password'
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'protocol') string_'protocol'
)argument_list
)call
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'port') string_'port'
)argument_list
)call
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mechanism') string_'mechanism'
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'principal') string_'principal'
)argument_list
)call
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'domain') string_'domain'
)argument_list
)call
(call
(attribute
(identifier_det) identifier_det
(identifier_get) identifier_get
)attribute
(argument_list
(string_'datacenter') string_'datacenter'
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | Returns the running esxdatacenter's proxy details |
(module
(function_definition
(function_name__validate_str_list) function_name__validate_str_list
(parameters
(identifier_arg) identifier_arg
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(attribute
(identifier_six) identifier_six
(identifier_binary_type) identifier_binary_type
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_stringutils) identifier_stringutils
)attribute
(identifier_to_unicode) identifier_to_unicode
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)list
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
(identifier_arg) identifier_arg
)list
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_Iterable) identifier_Iterable
)argument_list
)call
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_Mapping) identifier_Mapping
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_arg) identifier_arg
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | ensure ``arg`` is a list of strings |
(module
(function_definition
(function_name_fbank) function_name_fbank
(parameters
(identifier_signal) identifier_signal
(default_parameter
(identifier_samplerate) identifier_samplerate
(integer_16000) integer_16000
)default_parameter
(default_parameter
(identifier_winlen) identifier_winlen
(float_0.025) float_0.025
)default_parameter
(default_parameter
(identifier_winstep) identifier_winstep
(float_0.01) float_0.01
)default_parameter
(default_parameter
(identifier_nfilt) identifier_nfilt
(integer_26) integer_26
)default_parameter
(default_parameter
(identifier_nfft) identifier_nfft
(integer_512) integer_512
)default_parameter
(default_parameter
(identifier_lowfreq) identifier_lowfreq
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_highfreq) identifier_highfreq
(None) None
)default_parameter
(default_parameter
(identifier_preemph) identifier_preemph
(float_0.97) float_0.97
)default_parameter
(default_parameter
(identifier_winfunc) identifier_winfunc
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_ones) identifier_ones
)attribute
(argument_list
(tuple
(identifier_x) identifier_x
)tuple
)argument_list
)call
)lambda
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_highfreq) identifier_highfreq
(boolean_operator
(identifier_highfreq) identifier_highfreq
(binary_operator
(identifier_samplerate) identifier_samplerate
(integer_2) integer_2
)binary_operator
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_signal) identifier_signal
(call
(attribute
(identifier_sigproc) identifier_sigproc
(identifier_preemphasis) identifier_preemphasis
)attribute
(argument_list
(identifier_signal) identifier_signal
(identifier_preemph) identifier_preemph
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_frames) identifier_frames
(call
(attribute
(identifier_sigproc) identifier_sigproc
(identifier_framesig) identifier_framesig
)attribute
(argument_list
(identifier_signal) identifier_signal
(binary_operator
(identifier_winlen) identifier_winlen
(identifier_samplerate) identifier_samplerate
)binary_operator
(binary_operator
(identifier_winstep) identifier_winstep
(identifier_samplerate) identifier_samplerate
)binary_operator
(identifier_winfunc) identifier_winfunc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pspec) identifier_pspec
(call
(attribute
(identifier_sigproc) identifier_sigproc
(identifier_powspec) identifier_powspec
)attribute
(argument_list
(identifier_frames) identifier_frames
(identifier_nfft) identifier_nfft
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_energy) identifier_energy
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_pspec) identifier_pspec
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_energy) identifier_energy
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(identifier_energy) identifier_energy
(integer_0) integer_0
)comparison_operator
(attribute
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_finfo) identifier_finfo
)attribute
(argument_list
(identifier_float) identifier_float
)argument_list
)call
(identifier_eps) identifier_eps
)attribute
(identifier_energy) identifier_energy
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fb) identifier_fb
(call
(identifier_get_filterbanks) identifier_get_filterbanks
(argument_list
(identifier_nfilt) identifier_nfilt
(identifier_nfft) identifier_nfft
(identifier_samplerate) identifier_samplerate
(identifier_lowfreq) identifier_lowfreq
(identifier_highfreq) identifier_highfreq
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_feat) identifier_feat
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_pspec) identifier_pspec
(attribute
(identifier_fb) identifier_fb
(identifier_T) identifier_T
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_feat) identifier_feat
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(identifier_feat) identifier_feat
(integer_0) integer_0
)comparison_operator
(attribute
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_finfo) identifier_finfo
)attribute
(argument_list
(identifier_float) identifier_float
)argument_list
)call
(identifier_eps) identifier_eps
)attribute
(identifier_feat) identifier_feat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_feat) identifier_feat
(identifier_energy) identifier_energy
)expression_list
)return_statement
)block
)function_definition
)module | Compute Mel-filterbank energy features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an N*1 array
:param samplerate: the sample rate of the signal we are working with, in Hz.
:param winlen: the length of the analysis window in seconds. Default is 0.025s (25 milliseconds)
:param winstep: the step between successive windows in seconds. Default is 0.01s (10 milliseconds)
:param nfilt: the number of filters in the filterbank, default 26.
:param nfft: the FFT size. Default is 512.
:param lowfreq: lowest band edge of mel filters. In Hz, default is 0.
:param highfreq: highest band edge of mel filters. In Hz, default is samplerate/2
:param preemph: apply preemphasis filter with preemph as coefficient. 0 is no filter. Default is 0.97.
:param winfunc: the analysis window to apply to each frame. By default no window is applied. You can use numpy window functions here e.g. winfunc=numpy.hamming
:returns: 2 values. The first is a numpy array of size (NUMFRAMES by nfilt) containing features. Each row holds 1 feature vector. The
second return value is the energy in each frame (total energy, unwindowed) |
(module
(function_definition
(function_name__update_ret) function_name__update_ret
(parameters
(identifier_ret) identifier_ret
(identifier_goids) identifier_goids
(identifier_go2color) identifier_go2color
)parameters
(block
(if_statement
(identifier_goids) identifier_goids
(block
(expression_statement
(call
(attribute
(subscript
(identifier_ret) identifier_ret
(string_'GOs') string_'GOs'
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_goids) identifier_goids
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_go2color) identifier_go2color
(block
(for_statement
(pattern_list
(identifier_goid) identifier_goid
(identifier_color) identifier_color
)pattern_list
(call
(attribute
(identifier_go2color) identifier_go2color
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(string_'go2color') string_'go2color'
)subscript
(identifier_goid) identifier_goid
)subscript
(identifier_color) identifier_color
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Update 'GOs' and 'go2color' in dict with goids and go2color. |
(module
(function_definition
(function_name_fei_metadata) function_name_fei_metadata
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_is_fei) identifier_is_fei
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tags) identifier_tags
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pages) identifier_pages
)attribute
(integer_0) integer_0
)subscript
(identifier_tags) identifier_tags
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'FEI_SFEG') string_'FEI_SFEG'
(identifier_tags) identifier_tags
)comparison_operator
(block
(return_statement
(attribute
(subscript
(identifier_tags) identifier_tags
(string_'FEI_SFEG') string_'FEI_SFEG'
)subscript
(identifier_value) identifier_value
)attribute
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'FEI_HELIOS') string_'FEI_HELIOS'
(identifier_tags) identifier_tags
)comparison_operator
(block
(return_statement
(attribute
(subscript
(identifier_tags) identifier_tags
(string_'FEI_HELIOS') string_'FEI_HELIOS'
)subscript
(identifier_value) identifier_value
)attribute
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return FEI metadata from SFEG or HELIOS tags as dict. |
(module
(function_definition
(function_name_formatargvalues) function_name_formatargvalues
(parameters
(identifier_args) identifier_args
(identifier_varargs) identifier_varargs
(identifier_varkw) identifier_varkw
(identifier_locals) identifier_locals
(default_parameter
(identifier_formatarg) identifier_formatarg
(identifier_str) identifier_str
)default_parameter
(default_parameter
(identifier_formatvarargs) identifier_formatvarargs
(lambda
(lambda_parameters
(identifier_name) identifier_name
)lambda_parameters
(binary_operator
(string_'*') string_'*'
(identifier_name) identifier_name
)binary_operator
)lambda
)default_parameter
(default_parameter
(identifier_formatvarkw) identifier_formatvarkw
(lambda
(lambda_parameters
(identifier_name) identifier_name
)lambda_parameters
(binary_operator
(string_'**') string_'**'
(identifier_name) identifier_name
)binary_operator
)lambda
)default_parameter
(default_parameter
(identifier_formatvalue) identifier_formatvalue
(lambda
(lambda_parameters
(identifier_value) identifier_value
)lambda_parameters
(binary_operator
(string_'=') string_'='
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)binary_operator
)lambda
)default_parameter
(default_parameter
(identifier_join) identifier_join
(identifier_joinseq) identifier_joinseq
)default_parameter
)parameters
(block
(function_definition
(function_name_convert) function_name_convert
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_locals) identifier_locals
(identifier_locals) identifier_locals
)default_parameter
(default_parameter
(identifier_formatarg) identifier_formatarg
(identifier_formatarg) identifier_formatarg
)default_parameter
(default_parameter
(identifier_formatvalue) identifier_formatvalue
(identifier_formatvalue) identifier_formatvalue
)default_parameter
)parameters
(block
(return_statement
(binary_operator
(call
(identifier_formatarg) identifier_formatarg
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(call
(identifier_formatvalue) identifier_formatvalue
(argument_list
(subscript
(identifier_locals) identifier_locals
(identifier_name) identifier_name
)subscript
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_specs) identifier_specs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_specs) identifier_specs
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_strseq) identifier_strseq
(argument_list
(subscript
(identifier_args) identifier_args
(identifier_i) identifier_i
)subscript
(identifier_convert) identifier_convert
(identifier_join) identifier_join
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(identifier_varargs) identifier_varargs
(block
(expression_statement
(call
(attribute
(identifier_specs) identifier_specs
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(call
(identifier_formatvarargs) identifier_formatvarargs
(argument_list
(identifier_varargs) identifier_varargs
)argument_list
)call
(call
(identifier_formatvalue) identifier_formatvalue
(argument_list
(subscript
(identifier_locals) identifier_locals
(identifier_varargs) identifier_varargs
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_varkw) identifier_varkw
(block
(expression_statement
(call
(attribute
(identifier_specs) identifier_specs
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(call
(identifier_formatvarkw) identifier_formatvarkw
(argument_list
(identifier_varkw) identifier_varkw
)argument_list
)call
(call
(identifier_formatvalue) identifier_formatvalue
(argument_list
(subscript
(identifier_locals) identifier_locals
(identifier_varkw) identifier_varkw
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(binary_operator
(binary_operator
(string_'(') string_'('
(call
(attribute
(identifier_string) identifier_string
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_specs) identifier_specs
(string_', ') string_', '
)argument_list
)call
)binary_operator
(string_')') string_')'
)binary_operator
)return_statement
)block
)function_definition
)module | Format an argument spec from the 4 values returned by getargvalues.
The first four arguments are (args, varargs, varkw, locals). The
next four arguments are the corresponding optional formatting functions
that are called to turn names and values into strings. The ninth
argument is an optional function to format the sequence of arguments. |
(module
(function_definition
(function_name_get_storage) function_name_get_storage
(parameters
(identifier_self) identifier_self
(identifier_id_or_uri) identifier_id_or_uri
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_URI) identifier_URI
)attribute
(call
(attribute
(string_"/{}/storage") string_"/{}/storage"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_extract_id_from_uri) identifier_extract_id_from_uri
(argument_list
(identifier_id_or_uri) identifier_id_or_uri
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get storage details of an OS Volume.
Args:
id_or_uri: ID or URI of the OS Volume.
Returns:
dict: Storage details |
(module
(function_definition
(function_name_random_point_triangle) function_name_random_point_triangle
(parameters
(identifier_triangle) identifier_triangle
(default_parameter
(identifier_use_int_coords) identifier_use_int_coords
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_xs) identifier_xs
(identifier_ys) identifier_ys
)pattern_list
(attribute
(attribute
(attribute
(identifier_triangle) identifier_triangle
(identifier_exterior) identifier_exterior
)attribute
(identifier_coords) identifier_coords
)attribute
(identifier_xy) identifier_xy
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_A) identifier_A
(identifier_B) identifier_B
(identifier_C) identifier_C
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(subscript
(identifier_xs) identifier_xs
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(subscript
(identifier_ys) identifier_ys
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_r1) identifier_r1
(identifier_r2) identifier_r2
)pattern_list
(expression_list
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_rand) identifier_rand
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_rand) identifier_rand
)attribute
(argument_list
)argument_list
)call
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_rx) identifier_rx
(identifier_ry) identifier_ry
)pattern_list
(binary_operator
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(call
(identifier_sqrt) identifier_sqrt
(argument_list
(identifier_r1) identifier_r1
)argument_list
)call
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_A) identifier_A
)argument_list
)call
)binary_operator
(binary_operator
(binary_operator
(call
(identifier_sqrt) identifier_sqrt
(argument_list
(identifier_r1) identifier_r1
)argument_list
)call
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_r2) identifier_r2
)binary_operator
)parenthesized_expression
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_B) identifier_B
)argument_list
)call
)binary_operator
)binary_operator
(binary_operator
(binary_operator
(call
(identifier_sqrt) identifier_sqrt
(argument_list
(identifier_r1) identifier_r1
)argument_list
)call
(identifier_r2) identifier_r2
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_C) identifier_C
)argument_list
)call
)binary_operator
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_use_int_coords) identifier_use_int_coords
(block
(expression_statement
(assignment
(pattern_list
(identifier_rx) identifier_rx
(identifier_ry) identifier_ry
)pattern_list
(expression_list
(call
(identifier_round) identifier_round
(argument_list
(identifier_rx) identifier_rx
)argument_list
)call
(call
(identifier_round) identifier_round
(argument_list
(identifier_ry) identifier_ry
)argument_list
)call
)expression_list
)assignment
)expression_statement
(return_statement
(call
(identifier_Point) identifier_Point
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_rx) identifier_rx
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(identifier_ry) identifier_ry
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_rx) identifier_rx
(identifier_ry) identifier_ry
)argument_list
)call
)return_statement
)block
)function_definition
)module | Selects a random point in interior of a triangle |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_tmos_version) identifier_tmos_version
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__meta_data) identifier__meta_data
)attribute
(string_'bigip') string_'bigip'
)subscript
(identifier_tmos_version) identifier_tmos_version
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_LooseVersion) identifier_LooseVersion
(argument_list
(identifier_tmos_version) identifier_tmos_version
)argument_list
)call
(call
(identifier_LooseVersion) identifier_LooseVersion
(argument_list
(string_'12.0.0') string_'12.0.0'
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(concatenated_string
(string_"Update() is unsupported for User on version %s. ") string_"Update() is unsupported for User on version %s. "
(string_"Utilize Modify() method instead") string_"Utilize Modify() method instead"
)concatenated_string
(identifier_tmos_version) identifier_tmos_version
)binary_operator
)assignment
)expression_statement
(raise_statement
(call
(identifier_UnsupportedOperation) identifier_UnsupportedOperation
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__update) identifier__update
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Due to a password decryption bug
we will disable update() method for 12.1.0 and up |
(module
(function_definition
(function_name_free_processed_queue) function_name_free_processed_queue
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__lock) identifier__lock
)attribute
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__processed_coordinators) identifier__processed_coordinators
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(for_statement
(identifier__coordinator) identifier__coordinator
(attribute
(identifier_self) identifier_self
(identifier__processed_coordinators) identifier__processed_coordinators
)attribute
(block
(expression_statement
(call
(attribute
(identifier__coordinator) identifier__coordinator
(identifier_free_resources) identifier_free_resources
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__processed_coordinators) identifier__processed_coordinators
)attribute
(list
)list
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
)block
)function_definition
)module | call the Aspera sdk to freeup resources |
(module
(function_definition
(function_name__get_conda_channels) function_name__get_conda_channels
(parameters
(identifier_conda_bin) identifier_conda_bin
)parameters
(block
(expression_statement
(assignment
(identifier_channels) identifier_channels
(list
(string_"bioconda") string_"bioconda"
(string_"conda-forge") string_"conda-forge"
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_safe_load) identifier_safe_load
)attribute
(argument_list
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(list
(identifier_conda_bin) identifier_conda_bin
(string_"config") string_"config"
(string_"--show") string_"--show"
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_c) identifier_c
(identifier_channels) identifier_channels
(block
(expression_statement
(assignment
(identifier_present) identifier_present
(False) False
)assignment
)expression_statement
(for_statement
(identifier_orig_c) identifier_orig_c
(boolean_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_"channels") string_"channels"
)argument_list
)call
(list
)list
)boolean_operator
(block
(if_statement
(call
(attribute
(identifier_orig_c) identifier_orig_c
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(tuple
(identifier_c) identifier_c
(binary_operator
(string_"%s/") string_"%s/"
(identifier_c) identifier_c
)binary_operator
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_present) identifier_present
(True) True
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_present) identifier_present
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_out) identifier_out
(list
(string_"-c") string_"-c"
(identifier_c) identifier_c
)list
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Retrieve default conda channels, checking if they are pre-specified in config.
This allows users to override defaults with specific mirrors in their .condarc |
(module
(function_definition
(function_name_select_uri_implementation) function_name_select_uri_implementation
(parameters
(identifier_ecore_model_path) identifier_ecore_model_path
)parameters
(block
(if_statement
(call
(attribute
(identifier_URL_PATTERN) identifier_URL_PATTERN
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_ecore_model_path) identifier_ecore_model_path
)argument_list
)call
(block
(return_statement
(attribute
(attribute
(attribute
(identifier_pyecore) identifier_pyecore
(identifier_resources) identifier_resources
)attribute
(identifier_resource) identifier_resource
)attribute
(identifier_HttpURI) identifier_HttpURI
)attribute
)return_statement
)block
)if_statement
(return_statement
(attribute
(attribute
(identifier_pyecore) identifier_pyecore
(identifier_resources) identifier_resources
)attribute
(identifier_URI) identifier_URI
)attribute
)return_statement
)block
)function_definition
)module | Select the right URI implementation regarding the Ecore model path schema. |
(module
(function_definition
(function_name__from_dict) function_name__from_dict
(parameters
(identifier_cls) identifier_cls
(identifier__dict) identifier__dict
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'contentItems') string_'contentItems'
(identifier__dict) identifier__dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'content_items') string_'content_items'
)subscript
(list_comprehension
(call
(attribute
(identifier_ContentItem) identifier_ContentItem
(identifier__from_dict) identifier__from_dict
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(parenthesized_expression
(call
(attribute
(identifier__dict) identifier__dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'contentItems') string_'contentItems'
)argument_list
)call
)parenthesized_expression
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Required property \'contentItems\' not present in Content JSON') string_'Required property \'contentItems\' not present in Content JSON'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Initialize a Content object from a json dictionary. |
(module
(function_definition
(function_name_medial_axis) function_name_medial_axis
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_resolution) identifier_resolution
(None) None
)default_parameter
(default_parameter
(identifier_clip) identifier_clip
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_resolution) identifier_resolution
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_resolution) identifier_resolution
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_scale) identifier_scale
)attribute
(float_1000.0) float_1000.0
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_exchange) identifier_exchange
(identifier_misc) identifier_misc
)dotted_name
)relative_import
(dotted_name
(identifier_edges_to_path) identifier_edges_to_path
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_edge_vert) identifier_edge_vert
(list_comprehension
(call
(attribute
(identifier_polygons) identifier_polygons
(identifier_medial_axis) identifier_medial_axis
)attribute
(argument_list
(identifier_i) identifier_i
(identifier_resolution) identifier_resolution
(identifier_clip) identifier_clip
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier_polygons_full) identifier_polygons_full
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_medials) identifier_medials
(list_comprehension
(call
(identifier_Path2D) identifier_Path2D
(argument_list
(dictionary_splat
(call
(identifier_edges_to_path) identifier_edges_to_path
(argument_list
(keyword_argument
(identifier_edges) identifier_edges
(identifier_e) identifier_e
)keyword_argument
(keyword_argument
(identifier_vertices) identifier_vertices
(identifier_v) identifier_v
)keyword_argument
)argument_list
)call
)dictionary_splat
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_e) identifier_e
(identifier_v) identifier_v
)pattern_list
(identifier_edge_vert) identifier_edge_vert
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_medial) identifier_medial
(call
(identifier_concatenate) identifier_concatenate
(argument_list
(identifier_medials) identifier_medials
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_medial) identifier_medial
)return_statement
)block
)function_definition
)module | Find the approximate medial axis based
on a voronoi diagram of evenly spaced points on the
boundary of the polygon.
Parameters
----------
resolution : None or float
Distance between each sample on the polygon boundary
clip : None, or (2,) float
Min, max number of samples
Returns
----------
medial : Path2D object
Contains only medial axis of Path |
(module
(function_definition
(function_name_get_option_as_list) function_name_get_option_as_list
(parameters
(identifier_self) identifier_self
(identifier_optionname) identifier_optionname
(default_parameter
(identifier_delimiter) identifier_delimiter
(string_",") string_","
)default_parameter
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(call
(attribute
(identifier_self) identifier_self
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(identifier_optionname) identifier_optionname
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_opt_list) identifier_opt_list
(list_comprehension
(call
(attribute
(identifier_opt) identifier_opt
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_opt) identifier_opt
(call
(attribute
(identifier_option) identifier_option
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_delimiter) identifier_delimiter
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(None) None
(identifier_opt_list) identifier_opt_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Will try to return the option as a list separated by the
delimiter. |
(module
(function_definition
(function_name_cached_query) function_name_cached_query
(parameters
(identifier_qs) identifier_qs
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(identifier_generate_cache_key) identifier_generate_cache_key
(argument_list
(identifier_qs) identifier_qs
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_get_cached) identifier_get_cached
(argument_list
(identifier_cache_key) identifier_cache_key
(identifier_list) identifier_list
(keyword_argument
(identifier_args) identifier_args
(tuple
(identifier_qs) identifier_qs
)tuple
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(None) None
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Auto cached queryset and generate results. |
(module
(function_definition
(function_name_deep_copy) function_name_deep_copy
(parameters
(identifier_item_original) identifier_item_original
)parameters
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_item_original) identifier_item_original
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_item) identifier_item
(identifier__id) identifier__id
)attribute
(attribute
(call
(attribute
(identifier_uuid) identifier_uuid
(identifier_uuid4) identifier_uuid4
)attribute
(argument_list
)argument_list
)call
(identifier_hex) identifier_hex
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_item) identifier_item
(string_'_children') string_'_children'
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_item) identifier_item
(identifier__children) identifier__children
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_children_new) identifier_children_new
(call
(attribute
(identifier_collections) identifier_collections
(identifier_OrderedDict) identifier_OrderedDict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_subitem_original) identifier_subitem_original
(call
(attribute
(attribute
(identifier_item) identifier_item
(identifier__children) identifier__children
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_subitem) identifier_subitem
(call
(identifier_deep_copy) identifier_deep_copy
(argument_list
(identifier_subitem_original) identifier_subitem_original
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_subitem) identifier_subitem
(identifier__parent) identifier__parent
)attribute
(identifier_item) identifier_item
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_children_new) identifier_children_new
(call
(attribute
(identifier_subitem) identifier_subitem
(identifier_get_name) identifier_get_name
)attribute
(argument_list
)argument_list
)call
)subscript
(identifier_subitem) identifier_subitem
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_item) identifier_item
(identifier__children) identifier__children
)attribute
(identifier_children_new) identifier_children_new
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_item) identifier_item
)return_statement
)block
)function_definition
)module | Return a recursive deep-copy of item where each copy has a new ID. |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(identifier_value) identifier_value
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(attribute
(identifier_value) identifier_value
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_'') string_''
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_card_type) identifier_card_type
)attribute
(call
(identifier_verify_credit_card) identifier_verify_credit_card
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_card_type) identifier_card_type
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_forms) identifier_forms
(identifier_ValidationError) identifier_ValidationError
)attribute
(argument_list
(string_"Invalid credit card number.") string_"Invalid credit card number."
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Raises a ValidationError if the card is not valid and stashes card type. |
(module
(function_definition
(function_name__max_weight_operator) function_name__max_weight_operator
(parameters
(typed_parameter
(identifier_ops) identifier_ops
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(identifier_PauliTerm) identifier_PauliTerm
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(None) None
)type
(type
(identifier_PauliTerm) identifier_PauliTerm
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_mapping) identifier_mapping
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_op) identifier_op
(identifier_ops) identifier_ops
(block
(for_statement
(pattern_list
(identifier_idx) identifier_idx
(identifier_op_str) identifier_op_str
)pattern_list
(identifier_op) identifier_op
(block
(if_statement
(comparison_operator
(identifier_idx) identifier_idx
(identifier_mapping) identifier_mapping
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(identifier_mapping) identifier_mapping
(identifier_idx) identifier_idx
)subscript
(identifier_op_str) identifier_op_str
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_mapping) identifier_mapping
(identifier_idx) identifier_idx
)subscript
(identifier_op_str) identifier_op_str
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_op) identifier_op
(call
(attribute
(identifier_functools) identifier_functools
(identifier_reduce) identifier_reduce
)attribute
(argument_list
(identifier_mul) identifier_mul
(generator_expression
(call
(identifier_PauliTerm) identifier_PauliTerm
(argument_list
(identifier_op) identifier_op
(identifier_q) identifier_q
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_q) identifier_q
(identifier_op) identifier_op
)pattern_list
(call
(attribute
(identifier_mapping) identifier_mapping
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
(call
(identifier_sI) identifier_sI
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_op) identifier_op
)return_statement
)block
)function_definition
)module | Construct a PauliTerm operator by taking the non-identity single-qubit operator at each
qubit position.
This function will return ``None`` if the input operators do not share a natural tensor
product basis.
For example, the max_weight_operator of ["XI", "IZ"] is "XZ". Asking for the max weight
operator of something like ["XI", "ZI"] will return None. |
(module
(function_definition
(function_name_get_cairo_export_info) function_name_get_cairo_export_info
(parameters
(identifier_self) identifier_self
(identifier_filetype) identifier_filetype
)parameters
(block
(expression_statement
(assignment
(identifier_export_dlg) identifier_export_dlg
(call
(identifier_CairoExportDialog) identifier_CairoExportDialog
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(keyword_argument
(identifier_filetype) identifier_filetype
(identifier_filetype) identifier_filetype
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_export_dlg) identifier_export_dlg
(identifier_ShowModal) identifier_ShowModal
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_wx) identifier_wx
(identifier_ID_OK) identifier_ID_OK
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_export_dlg) identifier_export_dlg
(identifier_get_info) identifier_get_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_export_dlg) identifier_export_dlg
(identifier_Destroy) identifier_Destroy
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_export_dlg) identifier_export_dlg
(identifier_Destroy) identifier_Destroy
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Shows Cairo export dialog and returns info
Parameters
----------
filetype: String in ["pdf", "svg"]
\tFile type for which export info is gathered |
(module
(function_definition
(function_name__validate_rel) function_name__validate_rel
(parameters
(identifier_param) identifier_param
(identifier_rels) identifier_rels
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_param) identifier_param
(identifier_field) identifier_field
)attribute
(identifier_count) identifier_count
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidQueryParams) identifier_InvalidQueryParams
(argument_list
(dictionary_splat
(dictionary
(pair
(string_'detail') string_'detail'
(binary_operator
(concatenated_string
(string_'The filter query param of "%s" is attempting to ') string_'The filter query param of "%s" is attempting to '
(string_'filter on a nested relationship which is not ') string_'filter on a nested relationship which is not '
(string_'currently supported.') string_'currently supported.'
)concatenated_string
(identifier_param) identifier_param
)binary_operator
)pair
(pair
(string_'links') string_'links'
(identifier_LINK) identifier_LINK
)pair
(pair
(string_'parameter') string_'parameter'
(identifier_PARAM) identifier_PARAM
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(string_'/') string_'/'
(attribute
(identifier_param) identifier_param
(identifier_field) identifier_field
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_model_field) identifier_model_field
(subscript
(call
(attribute
(attribute
(identifier_param) identifier_param
(identifier_field) identifier_field
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_model_field) identifier_model_field
(identifier_rels) identifier_rels
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidQueryParams) identifier_InvalidQueryParams
(argument_list
(dictionary_splat
(dictionary
(pair
(string_'detail') string_'detail'
(binary_operator
(concatenated_string
(string_'The filter query param of "%s" is attempting to ') string_'The filter query param of "%s" is attempting to '
(string_'filter on a relationship but the "%s" field is ') string_'filter on a relationship but the "%s" field is '
(string_'NOT a relationship field.') string_'NOT a relationship field.'
)concatenated_string
(tuple
(identifier_param) identifier_param
(identifier_model_field) identifier_model_field
)tuple
)binary_operator
)pair
(pair
(string_'links') string_'links'
(identifier_LINK) identifier_LINK
)pair
(pair
(string_'parameter') string_'parameter'
(identifier_PARAM) identifier_PARAM
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Validate relationship based filters
We don't support nested filters currently.
FIX: Ensure the relationship filter field exists on the
relationships model! |
(module
(function_definition
(function_name_profile_create) function_name_profile_create
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_config) identifier_config
(None) None
)default_parameter
(default_parameter
(identifier_devices) identifier_devices
(None) None
)default_parameter
(default_parameter
(identifier_description) identifier_description
(None) None
)default_parameter
(default_parameter
(identifier_remote_addr) identifier_remote_addr
(None) None
)default_parameter
(default_parameter
(identifier_cert) identifier_cert
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_verify_cert) identifier_verify_cert
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(identifier_pylxd_client_get) identifier_pylxd_client_get
(argument_list
(identifier_remote_addr) identifier_remote_addr
(identifier_cert) identifier_cert
(identifier_key) identifier_key
(identifier_verify_cert) identifier_verify_cert
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_config) identifier_config
(identifier_devices) identifier_devices
)pattern_list
(call
(identifier_normalize_input_values) identifier_normalize_input_values
(argument_list
(identifier_config) identifier_config
(identifier_devices) identifier_devices
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_profile) identifier_profile
(call
(attribute
(attribute
(identifier_client) identifier_client
(identifier_profiles) identifier_profiles
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_config) identifier_config
(identifier_devices) identifier_devices
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_pylxd) identifier_pylxd
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_LXDAPIException) identifier_LXDAPIException
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_description) identifier_description
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_profile) identifier_profile
(identifier_description) identifier_description
)attribute
(identifier_description) identifier_description
)assignment
)expression_statement
(expression_statement
(call
(identifier_pylxd_save_object) identifier_pylxd_save_object
(argument_list
(identifier_profile) identifier_profile
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier__pylxd_model_to_dict) identifier__pylxd_model_to_dict
(argument_list
(identifier_profile) identifier_profile
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a profile.
name :
The name of the profile to get.
config :
A config dict or None (None = unset).
Can also be a list:
[{'key': 'boot.autostart', 'value': 1},
{'key': 'security.privileged', 'value': '1'}]
devices :
A device dict or None (None = unset).
description :
A description string or None (None = unset).
remote_addr :
An URL to a remote Server, you also have to give cert and key if
you provide remote_addr and its a TCP Address!
Examples:
https://myserver.lan:8443
/var/lib/mysocket.sock
cert :
PEM Formatted SSL Certificate.
Examples:
~/.config/lxc/client.crt
key :
PEM Formatted SSL Key.
Examples:
~/.config/lxc/client.key
verify_cert : True
Wherever to verify the cert, this is by default True
but in the most cases you want to set it off as LXD
normaly uses self-signed certificates.
CLI Examples:
.. code-block:: bash
$ salt '*' lxd.profile_create autostart config="{boot.autostart: 1, boot.autostart.delay: 2, boot.autostart.priority: 1}"
$ salt '*' lxd.profile_create shared_mounts devices="{shared_mount: {type: 'disk', source: '/home/shared', path: '/home/shared'}}"
See the `lxd-docs`_ for the details about the config and devices dicts.
.. _lxd-docs: https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-10 |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_getter) identifier_getter
)attribute
(None) None
)comparison_operator
(string_"Getter accessor is not specified.") string_"Getter accessor is not specified."
)assert_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_getter) identifier_getter
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_getter) identifier_getter
)attribute
(argument_list
(identifier_obj) identifier_obj
(dictionary_splat
(call
(identifier__get_context) identifier__get_context
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__getter_argspec) identifier__getter_argspec
)attribute
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_getter) identifier_getter
)attribute
(identifier_string_types) identifier_string_types
)argument_list
)call
(string_"Accessor must be a function or a dot-separated string.") string_"Accessor must be a function or a dot-separated string."
)assert_statement
(for_statement
(identifier_attr) identifier_attr
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_getter) identifier_getter
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_".") string_"."
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(subscript
(identifier_obj) identifier_obj
(identifier_attr) identifier_attr
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_obj) identifier_obj
(identifier_attr) identifier_attr
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
(block
(return_statement
(call
(identifier_obj) identifier_obj
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Get an attribute from a value.
:param obj: Object to get the attribute value from.
:return: Value of object's attribute. |
(module
(function_definition
(function_name_add_network) function_name_add_network
(parameters
(identifier_self) identifier_self
(identifier_network) identifier_network
(identifier_netmask) identifier_netmask
(default_parameter
(identifier_area) identifier_area
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_network) identifier_network
(string_'') string_''
)comparison_operator
(comparison_operator
(identifier_netmask) identifier_netmask
(string_'') string_''
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_'network and mask values ') string_'network and mask values '
(string_'may not be empty') string_'may not be empty'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_'network {}/{} area {}') string_'network {}/{} area {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_network) identifier_network
(identifier_netmask) identifier_netmask
(identifier_area) identifier_area
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_configure_ospf) identifier_configure_ospf
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)return_statement
)block
)function_definition
)module | Adds a network to be advertised by OSPF
Args:
network (str): The network to be advertised in dotted decimal
notation
netmask (str): The netmask to configure
area (str): The area the network belongs to.
By default this value is 0
Returns:
bool: True if the command completes successfully
Exception:
ValueError: This will get raised if network or netmask
are not passed to the method |
(module
(function_definition
(function_name_deck_issue_mode) function_name_deck_issue_mode
(parameters
(typed_parameter
(identifier_proto) identifier_proto
(type
(identifier_DeckSpawnProto) identifier_DeckSpawnProto
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(block
(if_statement
(comparison_operator
(attribute
(identifier_proto) identifier_proto
(identifier_issue_mode) identifier_issue_mode
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(yield
(string_"NONE") string_"NONE"
)yield
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_mode) identifier_mode
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(attribute
(identifier_proto) identifier_proto
(identifier_MODE) identifier_MODE
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(attribute
(identifier_proto) identifier_proto
(identifier_issue_mode) identifier_issue_mode
)attribute
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(binary_operator
(identifier_value) identifier_value
(attribute
(identifier_proto) identifier_proto
(identifier_issue_mode) identifier_issue_mode
)attribute
)binary_operator
(block
(expression_statement
(yield
(identifier_mode) identifier_mode
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | interpret issue mode bitfeg |
(module
(function_definition
(function_name__extract_specs_dependencies) function_name__extract_specs_dependencies
(parameters
(identifier_specs) identifier_specs
)parameters
(block
(expression_statement
(assignment
(identifier_deps) identifier_deps
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_signatures) identifier_signatures
(call
(attribute
(attribute
(identifier_specs) identifier_specs
(identifier_functions) identifier_functions
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_signature) identifier_signature
(identifier_signatures) identifier_signatures
(block
(for_statement
(identifier_t) identifier_t
(identifier_signature) identifier_signature
(block
(expression_statement
(call
(attribute
(identifier_deps) identifier_deps
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_pytype_to_deps) identifier_pytype_to_deps
(argument_list
(identifier_t) identifier_t
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)for_statement
(for_statement
(identifier_signature) identifier_signature
(call
(attribute
(attribute
(identifier_specs) identifier_specs
(identifier_capsules) identifier_capsules
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_t) identifier_t
(identifier_signature) identifier_signature
(block
(expression_statement
(call
(attribute
(identifier_deps) identifier_deps
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_pytype_to_deps) identifier_pytype_to_deps
(argument_list
(identifier_t) identifier_t
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_deps) identifier_deps
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(comparison_operator
(string_"include") string_"include"
(identifier_x) identifier_x
)comparison_operator
)lambda
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Extract types dependencies from specs for each exported signature. |
(module
(function_definition
(function_name_get_attribute_from_config) function_name_get_attribute_from_config
(parameters
(identifier_config) identifier_config
(identifier_section) identifier_section
(identifier_attribute) identifier_attribute
)parameters
(block
(expression_statement
(assignment
(identifier_section) identifier_section
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_section) identifier_section
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_section) identifier_section
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(call
(attribute
(identifier_section) identifier_section
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_attribute) identifier_attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_option) identifier_option
(block
(return_statement
(identifier_option) identifier_option
)return_statement
)block
)if_statement
)block
)if_statement
(raise_statement
(call
(identifier_ConfigurationError) identifier_ConfigurationError
(argument_list
(call
(attribute
(concatenated_string
(string_"Config file badly formed!\n") string_"Config file badly formed!\n"
(string_"Failed to get attribute '{}' from section '{}'!") string_"Failed to get attribute '{}' from section '{}'!"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_attribute) identifier_attribute
(identifier_section) identifier_section
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Try to parse an attribute of the config file.
Args:
config (defaultdict): A defaultdict.
section (str): The section of the config file to get information from.
attribute (str): The attribute of the section to fetch.
Returns:
str: The string corresponding to the section and attribute.
Raises:
ConfigurationError |
(module
(function_definition
(function_name_pin_add) function_name_pin_add
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(list_splat_pattern
(identifier_paths) identifier_paths
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(string_"recursive") string_"recursive"
(identifier_kwargs) identifier_kwargs
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_"opts") string_"opts"
(dictionary
(pair
(string_"recursive") string_"recursive"
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_"recursive") string_"recursive"
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(binary_operator
(tuple
(identifier_path) identifier_path
)tuple
(identifier_paths) identifier_paths
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'/pin/add') string_'/pin/add'
(identifier_args) identifier_args
(keyword_argument
(identifier_decoder) identifier_decoder
(string_'json') string_'json'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Pins objects to local storage.
Stores an IPFS object(s) from a given path locally to disk.
.. code-block:: python
>>> c.pin_add("QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZKZMTodAtmvyGZ5d")
{'Pins': ['QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZKZMTodAtmvyGZ5d']}
Parameters
----------
path : str
Path to object(s) to be pinned
recursive : bool
Recursively unpin the object linked to by the specified object(s)
Returns
-------
dict : List of IPFS objects that have been pinned |
(module
(function_definition
(function_name__convert_datetime_str) function_name__convert_datetime_str
(parameters
(identifier_response) identifier_response
)parameters
(block
(if_statement
(identifier_response) identifier_response
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(conditional_expression
(tuple
(identifier_k) identifier_k
(call
(attribute
(string_'{0}') string_'{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)tuple
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(attribute
(identifier_datetime) identifier_datetime
(identifier_date) identifier_date
)attribute
)argument_list
)call
(tuple
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple
)conditional_expression
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | modify any key-value pair where value is a datetime object to a string. |
(module
(function_definition
(function_name_marching_cubes) function_name_marching_cubes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_meshed) identifier_meshed
(call
(identifier_matrix_to_marching_cubes) identifier_matrix_to_marching_cubes
(argument_list
(keyword_argument
(identifier_matrix) identifier_matrix
(attribute
(identifier_self) identifier_self
(identifier_matrix) identifier_matrix
)attribute
)keyword_argument
(keyword_argument
(identifier_pitch) identifier_pitch
(attribute
(identifier_self) identifier_self
(identifier_pitch) identifier_pitch
)attribute
)keyword_argument
(keyword_argument
(identifier_origin) identifier_origin
(attribute
(identifier_self) identifier_self
(identifier_origin) identifier_origin
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_meshed) identifier_meshed
)return_statement
)block
)function_definition
)module | A marching cubes Trimesh representation of the voxels.
No effort was made to clean or smooth the result in any way;
it is merely the result of applying the scikit-image
measure.marching_cubes function to self.matrix.
Returns
---------
meshed: Trimesh object representing the current voxel
object, as returned by marching cubes algorithm. |
(module
(function_definition
(function_name_cross_product_compare) function_name_cross_product_compare
(parameters
(identifier_start) identifier_start
(identifier_candidate1) identifier_candidate1
(identifier_candidate2) identifier_candidate2
)parameters
(block
(expression_statement
(assignment
(identifier_delta1) identifier_delta1
(binary_operator
(identifier_candidate1) identifier_candidate1
(identifier_start) identifier_start
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta2) identifier_delta2
(binary_operator
(identifier_candidate2) identifier_candidate2
(identifier_start) identifier_start
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_cross_product) identifier_cross_product
(argument_list
(identifier_delta1) identifier_delta1
(identifier_delta2) identifier_delta2
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compare two relative changes by their cross-product.
This is meant to be a way to determine which vector is more "inside"
relative to ``start``.
.. note::
This is a helper for :func:`_simple_convex_hull`.
Args:
start (numpy.ndarray): The start vector (as 1D NumPy array with
2 elements).
candidate1 (numpy.ndarray): The first candidate vector (as 1D
NumPy array with 2 elements).
candidate2 (numpy.ndarray): The second candidate vector (as 1D
NumPy array with 2 elements).
Returns:
float: The cross product of the two differences. |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Shutting down pairing server') string_'Shutting down pairing server'
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__web_server) identifier__web_server
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__web_server) identifier__web_server
)attribute
(identifier_shutdown) identifier_shutdown
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__server) identifier__server
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__server) identifier__server
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__server) identifier__server
)attribute
(identifier_wait_closed) identifier_wait_closed
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Stop pairing server and unpublish service. |
(module
(function_definition
(function_name__combined_grouping_values) function_name__combined_grouping_values
(parameters
(identifier_grouping_name) identifier_grouping_name
(identifier_collection_a) identifier_collection_a
(identifier_collection_b) identifier_collection_b
)parameters
(block
(expression_statement
(assignment
(identifier_new_grouping) identifier_new_grouping
(call
(attribute
(call
(attribute
(attribute
(identifier_collection_a) identifier_collection_a
(identifier_groupings) identifier_groupings
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_grouping_name) identifier_grouping_name
(dictionary
)dictionary
)argument_list
)call
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_new_grouping) identifier_new_grouping
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_collection_b) identifier_collection_b
(identifier_groupings) identifier_groupings
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_grouping_name) identifier_grouping_name
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_new_grouping) identifier_new_grouping
)return_statement
)block
)function_definition
)module | returns a dict with values from both collections for a given grouping name
Warning: collection2 overrides collection1 if there is a group_key conflict |
(module
(function_definition
(function_name_import_localities) function_name_import_localities
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_delimiter) identifier_delimiter
(string_';') string_';'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_creates) identifier_creates
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_updates) identifier_updates
(list
)list
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_mode) identifier_mode
(string_"r") string_"r"
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_infile) identifier_infile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_csv) identifier_csv
(identifier_DictReader) identifier_DictReader
)attribute
(argument_list
(identifier_infile) identifier_infile
(keyword_argument
(identifier_delimiter) identifier_delimiter
(call
(identifier_str) identifier_str
(argument_list
(identifier_delimiter) identifier_delimiter
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(identifier_atomic) identifier_atomic
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(for_statement
(identifier_row) identifier_row
(identifier_reader) identifier_reader
(block
(expression_statement
(assignment
(subscript
(identifier_row) identifier_row
(string_'point') string_'point'
)subscript
(call
(identifier_Point) identifier_Point
(argument_list
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_row) identifier_row
(string_'longitude') string_'longitude'
)subscript
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_row) identifier_row
(string_'latitude') string_'latitude'
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_locality) identifier_locality
(identifier_created) identifier_created
)pattern_list
(call
(attribute
(attribute
(identifier_Locality) identifier_Locality
(identifier_objects) identifier_objects
)attribute
(identifier_update_or_create) identifier_update_or_create
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(subscript
(identifier_row) identifier_row
(string_'id') string_'id'
)subscript
)keyword_argument
(keyword_argument
(identifier_defaults) identifier_defaults
(identifier_row) identifier_row
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_created) identifier_created
(block
(expression_statement
(call
(attribute
(identifier_creates) identifier_creates
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_locality) identifier_locality
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_updates) identifier_updates
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_locality) identifier_locality
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)with_statement
)block
)with_statement
(return_statement
(expression_list
(identifier_creates) identifier_creates
(identifier_updates) identifier_updates
)expression_list
)return_statement
)block
)function_definition
)module | Import localities from a CSV file.
:param path: Path to the CSV file containing the localities. |
(module
(function_definition
(function_name_merge_graphs) function_name_merge_graphs
(parameters
(identifier_main_graph) identifier_main_graph
(identifier_addition_graph) identifier_addition_graph
)parameters
(block
(expression_statement
(assignment
(identifier_node_mapping) identifier_node_mapping
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edge_mapping) identifier_edge_mapping
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(call
(attribute
(identifier_addition_graph) identifier_addition_graph
(identifier_get_all_node_objects) identifier_get_all_node_objects
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_node_id) identifier_node_id
(subscript
(identifier_node) identifier_node
(string_'id') string_'id'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_id) identifier_new_id
(call
(attribute
(identifier_main_graph) identifier_main_graph
(identifier_new_node) identifier_new_node
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_node_mapping) identifier_node_mapping
(identifier_node_id) identifier_node_id
)subscript
(identifier_new_id) identifier_new_id
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_edge) identifier_edge
(call
(attribute
(identifier_addition_graph) identifier_addition_graph
(identifier_get_all_edge_objects) identifier_get_all_edge_objects
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_edge_id) identifier_edge_id
(subscript
(identifier_edge) identifier_edge
(string_'id') string_'id'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_old_vertex_a_id) identifier_old_vertex_a_id
(identifier_old_vertex_b_id) identifier_old_vertex_b_id
)pattern_list
(subscript
(identifier_edge) identifier_edge
(string_'vertices') string_'vertices'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_vertex_a_id) identifier_new_vertex_a_id
(subscript
(identifier_node_mapping) identifier_node_mapping
(identifier_old_vertex_a_id) identifier_old_vertex_a_id
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_vertex_b_id) identifier_new_vertex_b_id
(subscript
(identifier_node_mapping) identifier_node_mapping
(identifier_old_vertex_b_id) identifier_old_vertex_b_id
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_edge_id) identifier_new_edge_id
(call
(attribute
(identifier_main_graph) identifier_main_graph
(identifier_new_edge) identifier_new_edge
)attribute
(argument_list
(identifier_new_vertex_a_id) identifier_new_vertex_a_id
(identifier_new_vertex_b_id) identifier_new_vertex_b_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_edge_mapping) identifier_edge_mapping
(identifier_edge_id) identifier_edge_id
)subscript
(identifier_new_edge_id) identifier_new_edge_id
)assignment
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_node_mapping) identifier_node_mapping
(identifier_edge_mapping) identifier_edge_mapping
)expression_list
)return_statement
)block
)function_definition
)module | Merges an ''addition_graph'' into the ''main_graph''.
Returns a tuple of dictionaries, mapping old node ids and edge ids to new ids. |
(module
(function_definition
(function_name_generate_legacy_webfinger) function_name_generate_legacy_webfinger
(parameters
(default_parameter
(identifier_template) identifier_template
(None) None
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_template) identifier_template
(string_"diaspora") string_"diaspora"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_webfinger) identifier_webfinger
(call
(identifier_DiasporaWebFinger) identifier_DiasporaWebFinger
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_webfinger) identifier_webfinger
(call
(identifier_BaseLegacyWebFinger) identifier_BaseLegacyWebFinger
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_webfinger) identifier_webfinger
(identifier_render) identifier_render
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate a legacy webfinger XRD document.
Template specific key-value pairs need to be passed as ``kwargs``, see classes.
:arg template: Ready template to fill with args, for example "diaspora" (optional)
:returns: Rendered XRD document (str) |
(module
(function_definition
(function_name_Acf) function_name_Acf
(parameters
(identifier_poly) identifier_poly
(identifier_dist) identifier_dist
(default_parameter
(identifier_N) identifier_N
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kws) identifier_kws
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_N) identifier_N
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_N) identifier_N
(binary_operator
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_poly) identifier_poly
)argument_list
)call
(integer_2) integer_2
)binary_operator
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_corr) identifier_corr
(call
(identifier_Corr) identifier_Corr
(argument_list
(identifier_poly) identifier_poly
(identifier_dist) identifier_dist
(dictionary_splat
(identifier_kws) identifier_kws
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_empty) identifier_empty
)attribute
(argument_list
(identifier_N) identifier_N
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_n) identifier_n
(call
(identifier_range) identifier_range
(argument_list
(identifier_N) identifier_N
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(identifier_n) identifier_n
)subscript
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_mean) identifier_mean
)attribute
(argument_list
(call
(attribute
(identifier_corr) identifier_corr
(identifier_diagonal) identifier_diagonal
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Auto-correlation function.
Args:
poly (Poly):
Polynomial of interest. Must have ``len(poly) > N``.
dist (Dist):
Defines the space the correlation is taken on.
N (int):
The number of time steps appart included. If omited set to
``len(poly)/2+1``.
Returns:
(numpy.ndarray) :
Auto-correlation of ``poly`` with shape ``(N,)``. Note that by
definition ``Q[0]=1``.
Examples:
>>> poly = chaospy.prange(10)[1:]
>>> Z = chaospy.Uniform()
>>> print(numpy.around(chaospy.Acf(poly, Z, 5), 4))
[1. 0.9915 0.9722 0.9457 0.9127] |
(module
(function_definition
(function_name_new_registry_ont_id_transaction) function_name_new_registry_ont_id_transaction
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_ont_id) identifier_ont_id
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_pub_key) identifier_pub_key
(type
(boolean_operator
(identifier_str) identifier_str
(identifier_bytes) identifier_bytes
)boolean_operator
)type
)typed_parameter
(typed_parameter
(identifier_b58_payer_address) identifier_b58_payer_address
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_gas_limit) identifier_gas_limit
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_gas_price) identifier_gas_price
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(identifier_Transaction) identifier_Transaction
)type
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pub_key) identifier_pub_key
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bytes_ctrl_pub_key) identifier_bytes_ctrl_pub_key
(call
(attribute
(identifier_bytes) identifier_bytes
(identifier_fromhex) identifier_fromhex
)attribute
(argument_list
(identifier_pub_key) identifier_pub_key
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pub_key) identifier_pub_key
(identifier_bytes) identifier_bytes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bytes_ctrl_pub_key) identifier_bytes_ctrl_pub_key
(identifier_pub_key) identifier_pub_key
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_SDKException) identifier_SDKException
(argument_list
(call
(attribute
(identifier_ErrorCode) identifier_ErrorCode
(identifier_param_err) identifier_param_err
)attribute
(argument_list
(string_'a bytes or str type of public key is required.') string_'a bytes or str type of public key is required.'
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_ontid) identifier_ontid
(call
(attribute
(identifier_ont_id) identifier_ont_id
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_ctrl_pk) identifier_ctrl_pk
(identifier_bytes_ctrl_pub_key) identifier_bytes_ctrl_pub_key
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tx) identifier_tx
(call
(attribute
(identifier_self) identifier_self
(identifier___generate_transaction) identifier___generate_transaction
)attribute
(argument_list
(string_'regIDWithPublicKey') string_'regIDWithPublicKey'
(identifier_args) identifier_args
(identifier_b58_payer_address) identifier_b58_payer_address
(identifier_gas_limit) identifier_gas_limit
(identifier_gas_price) identifier_gas_price
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_tx) identifier_tx
)return_statement
)block
)function_definition
)module | This interface is used to generate a Transaction object which is used to register ONT ID.
:param ont_id: OntId.
:param pub_key: the hexadecimal public key in the form of string.
:param b58_payer_address: a base58 encode address which indicate who will pay for the transaction.
:param gas_limit: an int value that indicate the gas limit.
:param gas_price: an int value that indicate the gas price.
:return: a Transaction object which is used to register ONT ID. |
(module
(function_definition
(function_name_scrap) function_name_scrap
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_url) identifier_url
(None) None
)default_parameter
(default_parameter
(identifier_scheme) identifier_scheme
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
(default_parameter
(identifier_html_parser) identifier_html_parser
(None) None
)default_parameter
(default_parameter
(identifier_cache_ext) identifier_cache_ext
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_url) identifier_url
)not_operator
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(attribute
(identifier_self) identifier_self
(identifier_url) identifier_url
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_scheme) identifier_scheme
)not_operator
(block
(expression_statement
(assignment
(identifier_scheme) identifier_scheme
(attribute
(identifier_self) identifier_self
(identifier_scheme) identifier_scheme
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_timeout) identifier_timeout
)not_operator
(block
(expression_statement
(assignment
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_html_parser) identifier_html_parser
)not_operator
(block
(expression_statement
(assignment
(identifier_html_parser) identifier_html_parser
(attribute
(identifier_self) identifier_self
(identifier_html_parser) identifier_html_parser
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_scheme) identifier_scheme
)not_operator
(block
(raise_statement
(call
(identifier_WEBParameterException) identifier_WEBParameterException
(argument_list
(string_"Missing scheme definition") string_"Missing scheme definition"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_url) identifier_url
)not_operator
(block
(raise_statement
(call
(identifier_WEBParameterException) identifier_WEBParameterException
(argument_list
(string_"Missing url definition") string_"Missing url definition"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_timeout) identifier_timeout
(keyword_argument
(identifier_cache_ext) identifier_cache_ext
(identifier_cache_ext) identifier_cache_ext
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_soup) identifier_soup
(call
(identifier_BeautifulSoup) identifier_BeautifulSoup
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_html) identifier_html
)attribute
(identifier_html_parser) identifier_html_parser
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_resp) identifier_resp
(identifier_scraped) identifier_scraped
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_scheme) identifier__parse_scheme
)attribute
(argument_list
(identifier_soup) identifier_soup
(identifier_scheme) identifier_scheme
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_resp) identifier_resp
)return_statement
)block
)function_definition
)module | Scrap a url and parse the content according to scheme
:param url: Url to parse (default: self._url)
:type url: str
:param scheme: Scheme to apply to html (default: self._scheme)
:type scheme: dict
:param timeout: Timeout for http operation (default: self._timout)
:type timeout: float
:param html_parser: What html parser to use (default: self._html_parser)
:type html_parser: str | unicode
:param cache_ext: External cache info
:type cache_ext: floscraper.models.CacheInfo
:return: Response data from url and parsed info
:rtype: floscraper.models.Response
:raises WEBConnectException: HTTP get failed
:raises WEBParameterException: Missing scheme or url |
(module
(function_definition
(function_name_example_generator) function_name_example_generator
(parameters
(identifier_self) identifier_self
(identifier_encoder) identifier_encoder
(identifier_tmp_dir) identifier_tmp_dir
(identifier_task_id) identifier_task_id
)parameters
(block
(expression_statement
(assignment
(identifier_filepaths) identifier_filepaths
(call
(attribute
(identifier_self) identifier_self
(identifier_text_filepaths_for_task) identifier_text_filepaths_for_task
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
(identifier_task_id) identifier_task_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_task_id) identifier_task_id
(attribute
(identifier_self) identifier_self
(identifier_num_train_shards) identifier_num_train_shards
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_max_chars_per_file) identifier_max_chars_per_file
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_max_dev_chars) identifier_max_dev_chars
)attribute
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_num_dev_shards) identifier_num_dev_shards
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_filepaths) identifier_filepaths
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_max_chars_per_file) identifier_max_chars_per_file
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_ftext) identifier_ftext
(call
(attribute
(identifier_self) identifier_self
(identifier_file_generator) identifier_file_generator
)attribute
(argument_list
(identifier_filepaths) identifier_filepaths
(keyword_argument
(identifier_max_chars_per_file) identifier_max_chars_per_file
(identifier_max_chars_per_file) identifier_max_chars_per_file
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_tokens) identifier_tokens
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_encoder) identifier_encoder
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_ftext) identifier_ftext
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(comparison_operator
(binary_operator
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier_sequence_length) identifier_sequence_length
)attribute
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
)comparison_operator
(block
(expression_statement
(yield
(dictionary
(pair
(string_"targets") string_"targets"
(subscript
(identifier_tokens) identifier_tokens
(slice
(identifier_pos) identifier_pos
(colon) colon
(binary_operator
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier_sequence_length) identifier_sequence_length
)attribute
)binary_operator
)slice
)subscript
)pair
)dictionary
)yield
)expression_statement
(expression_statement
(augmented_assignment
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier_sequence_length) identifier_sequence_length
)attribute
)augmented_assignment
)expression_statement
)block
)while_statement
(if_statement
(comparison_operator
(identifier_pos) identifier_pos
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(subscript
(identifier_tokens) identifier_tokens
(slice
(identifier_pos) identifier_pos
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_remainder_policy) identifier_remainder_policy
)attribute
(string_"pad") string_"pad"
)comparison_operator
(block
(if_statement
(identifier_tokens) identifier_tokens
(block
(expression_statement
(assignment
(identifier_targets) identifier_targets
(binary_operator
(identifier_tokens) identifier_tokens
(binary_operator
(list
(integer_0) integer_0
)list
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_sequence_length) identifier_sequence_length
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(yield
(dictionary
(pair
(string_"targets") string_"targets"
(identifier_targets) identifier_targets
)pair
)dictionary
)yield
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(assert_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_remainder_policy) identifier_remainder_policy
)attribute
(string_"drop") string_"drop"
)comparison_operator
)assert_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Generator for examples.
Args:
encoder: a TextEncoder
tmp_dir: a string
task_id: an integer
Yields:
feature dictionaries |
(module
(function_definition
(function_name_setup_data) function_name_setup_data
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_params) identifier_params
)parameters
(block
(expression_statement
(call
(identifier_check_required_aesthetics) identifier_check_required_aesthetics
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_REQUIRED_AES) identifier_REQUIRED_AES
)attribute
(attribute
(identifier_data) identifier_data
(identifier_columns) identifier_columns
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Verify & return data |
(module
(function_definition
(function_name_finalize_env) function_name_finalize_env
(parameters
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(call
(attribute
(identifier__PLATFORM_ENV_KEYS) identifier__PLATFORM_ENV_KEYS
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(list
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'PATH') string_'PATH'
(identifier_keys) identifier_keys
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_keys) identifier_keys
(identifier_append) identifier_append
)attribute
(argument_list
(string_'PATH') string_'PATH'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(dictionary_comprehension
(pair
(identifier_key) identifier_key
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
(string_'') string_''
)argument_list
)call
)pair
(for_in_clause
(identifier_key) identifier_key
(identifier_keys) identifier_keys
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_env) identifier_env
)argument_list
)call
)expression_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Produce a platform specific env for passing into subprocess.Popen
family of external process calling methods, and the supplied env
will be updated on top of it. Returns a new env. |
(module
(function_definition
(function_name_symmetric_difference_update) function_name_symmetric_difference_update
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_other) identifier_other
(call
(attribute
(identifier_self) identifier_self
(identifier__as_multiset) identifier__as_multiset
)attribute
(argument_list
(identifier_other) identifier_other
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_elements) identifier_elements
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_distinct_elements) identifier_distinct_elements
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(identifier_other) identifier_other
(identifier_distinct_elements) identifier_distinct_elements
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_element) identifier_element
(identifier_elements) identifier_elements
(block
(expression_statement
(assignment
(identifier_multiplicity) identifier_multiplicity
(subscript
(identifier_self) identifier_self
(identifier_element) identifier_element
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_other_count) identifier_other_count
(subscript
(identifier_other) identifier_other
(identifier_element) identifier_element
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_self) identifier_self
(identifier_element) identifier_element
)subscript
(parenthesized_expression
(conditional_expression
(binary_operator
(identifier_multiplicity) identifier_multiplicity
(identifier_other_count) identifier_other_count
)binary_operator
(comparison_operator
(identifier_multiplicity) identifier_multiplicity
(identifier_other_count) identifier_other_count
)comparison_operator
(binary_operator
(identifier_other_count) identifier_other_count
(identifier_multiplicity) identifier_multiplicity
)binary_operator
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | r"""Update the multiset to contain only elements in either this multiset or the other but not both.
>>> ms = Multiset('aab')
>>> ms.symmetric_difference_update('abc')
>>> sorted(ms)
['a', 'c']
You can also use the ``^=`` operator for the same effect. However, the operator version
will only accept a set as other operator, not any iterable, to avoid errors.
>>> ms = Multiset('aabbbc')
>>> ms ^= Multiset('abd')
>>> sorted(ms)
['a', 'b', 'b', 'c', 'd']
For a variant of the operation which does not modify the multiset, but returns a new
multiset instead see :meth:`symmetric_difference`.
Args:
other: The other set to take the symmetric difference with. Can also be any :class:`~typing.Iterable`\[~T]
or :class:`~typing.Mapping`\[~T, :class:`int`] which are then converted to :class:`Multiset`\[~T]. |
(module
(function_definition
(function_name_best_precursor) function_name_best_precursor
(parameters
(identifier_clus) identifier_clus
(identifier_loci) identifier_loci
)parameters
(block
(expression_statement
(assignment
(identifier_data_loci) identifier_data_loci
(call
(identifier_sort_precursor) identifier_sort_precursor
(argument_list
(identifier_clus) identifier_clus
(identifier_loci) identifier_loci
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_size) identifier_current_size
(subscript
(subscript
(identifier_data_loci) identifier_data_loci
(integer_0) integer_0
)subscript
(integer_5) integer_5
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_best) identifier_best
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_item) identifier_item
(identifier_locus) identifier_locus
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_data_loci) identifier_data_loci
)argument_list
)call
(block
(if_statement
(comparison_operator
(binary_operator
(subscript
(identifier_locus) identifier_locus
(integer_3) integer_3
)subscript
(subscript
(identifier_locus) identifier_locus
(integer_2) integer_2
)subscript
)binary_operator
(integer_70) integer_70
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(identifier_locus) identifier_locus
(integer_5) integer_5
)subscript
(binary_operator
(identifier_current_size) identifier_current_size
(float_0.8) float_0.8
)binary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_best) identifier_best
(identifier_item) identifier_item
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_best_loci) identifier_best_loci
(subscript
(identifier_data_loci) identifier_data_loci
(identifier_best) identifier_best
)subscript
)assignment
)expression_statement
(delete_statement
(subscript
(identifier_data_loci) identifier_data_loci
(identifier_best) identifier_best
)subscript
)delete_statement
(expression_statement
(call
(attribute
(identifier_data_loci) identifier_data_loci
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(identifier_best_loci) identifier_best_loci
)argument_list
)call
)expression_statement
(return_statement
(identifier_data_loci) identifier_data_loci
)return_statement
)block
)function_definition
)module | Select best precursor asuming size around 100 nt |
(module
(function_definition
(function_name_hgetall) function_name_hgetall
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(function_definition
(function_name_format_response) function_name_format_response
(parameters
(identifier_value) identifier_value
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(subscript
(identifier_value) identifier_value
(slice
(colon) colon
(colon) colon
(integer_2) integer_2
)slice
)subscript
(subscript
(identifier_value) identifier_value
(slice
(integer_1) integer_1
(colon) colon
(colon) colon
(integer_2) integer_2
)slice
)subscript
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__execute) identifier__execute
)attribute
(argument_list
(list
(string_b'HGETALL') string_b'HGETALL'
(identifier_key) identifier_key
)list
(keyword_argument
(identifier_format_callback) identifier_format_callback
(identifier_format_response) identifier_format_response
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns all fields and values of the has stored at `key`.
The underlying redis `HGETALL`_ command returns an array of
pairs. This method converts that to a Python :class:`dict`.
It will return an empty :class:`dict` when the key is not
found.
.. note::
**Time complexity**: ``O(N)`` where ``N`` is the size
of the hash.
:param key: The key of the hash
:type key: :class:`str`, :class:`bytes`
:returns: a :class:`dict` of key to value mappings for all
fields in the hash
.. _HGETALL: http://redis.io/commands/hgetall |
(module
(function_definition
(function_name_set_rule) function_name_set_rule
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_properties) identifier_properties
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__rule_attrs) identifier__rule_attrs
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_properties) identifier_properties
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set a rules as object attribute.
Arguments:
name (string): Rule name to set as attribute name.
properties (dict): Dictionnary of properties. |
(module
(function_definition
(function_name_is_ignored) function_name_is_ignored
(parameters
(identifier_resource) identifier_resource
)parameters
(block
(expression_statement
(assignment
(identifier_ignored_domains) identifier_ignored_domains
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'LINKCHECKING_IGNORE_DOMAINS') string_'LINKCHECKING_IGNORE_DOMAINS'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(attribute
(identifier_resource) identifier_resource
(identifier_url) identifier_url
)attribute
)assignment
)expression_statement
(if_statement
(identifier_url) identifier_url
(block
(expression_statement
(assignment
(identifier_parsed_url) identifier_parsed_url
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_parsed_url) identifier_parsed_url
(identifier_netloc) identifier_netloc
)attribute
(identifier_ignored_domains) identifier_ignored_domains
)comparison_operator
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check of the resource's URL is part of LINKCHECKING_IGNORE_DOMAINS |
(module
(function_definition
(function_name_pre_process_method_headers) function_name_pre_process_method_headers
(parameters
(identifier_method) identifier_method
(identifier_headers) identifier_headers
)parameters
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(call
(attribute
(identifier_method) identifier_method
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__wsgi_headers) identifier__wsgi_headers
(list
(string_"content_length") string_"content_length"
(string_"content_type") string_"content_type"
(string_"query_string") string_"query_string"
(string_"remote_addr") string_"remote_addr"
(string_"remote_host") string_"remote_host"
(string_"remote_user") string_"remote_user"
(string_"request_method") string_"request_method"
(string_"server_name") string_"server_name"
(string_"server_port") string_"server_port"
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__transformed_headers) identifier__transformed_headers
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_header) identifier_header
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_headers) identifier_headers
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(identifier_header) identifier_header
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"-") string_"-"
(string_"_") string_"_"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header) identifier_header
(conditional_expression
(call
(attribute
(string_"http_{header}") string_"http_{header}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_header) identifier_header
(identifier_header) identifier_header
)keyword_argument
)argument_list
)call
(comparison_operator
(call
(attribute
(identifier_header) identifier_header
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier__wsgi_headers) identifier__wsgi_headers
)comparison_operator
(identifier_header) identifier_header
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__transformed_headers) identifier__transformed_headers
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(call
(attribute
(identifier_header) identifier_header
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(identifier_value) identifier_value
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_method) identifier_method
(identifier__transformed_headers) identifier__transformed_headers
)expression_list
)return_statement
)block
)function_definition
)module | Returns the lowered method.
Capitalize headers, prepend HTTP_ and change - to _. |
(module
(function_definition
(function_name_dump_all) function_name_dump_all
(parameters
(identifier_documents) identifier_documents
(default_parameter
(identifier_stream) identifier_stream
(None) None
)default_parameter
(default_parameter
(identifier_Dumper) identifier_Dumper
(identifier_Dumper) identifier_Dumper
)default_parameter
(default_parameter
(identifier_default_style) identifier_default_style
(None) None
)default_parameter
(default_parameter
(identifier_default_flow_style) identifier_default_flow_style
(None) None
)default_parameter
(default_parameter
(identifier_canonical) identifier_canonical
(None) None
)default_parameter
(default_parameter
(identifier_indent) identifier_indent
(None) None
)default_parameter
(default_parameter
(identifier_width) identifier_width
(None) None
)default_parameter
(default_parameter
(identifier_allow_unicode) identifier_allow_unicode
(None) None
)default_parameter
(default_parameter
(identifier_line_break) identifier_line_break
(None) None
)default_parameter
(default_parameter
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)default_parameter
(default_parameter
(identifier_explicit_start) identifier_explicit_start
(None) None
)default_parameter
(default_parameter
(identifier_explicit_end) identifier_explicit_end
(None) None
)default_parameter
(default_parameter
(identifier_version) identifier_version
(None) None
)default_parameter
(default_parameter
(identifier_tags) identifier_tags
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_getvalue) identifier_getvalue
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_stream) identifier_stream
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_encoding) identifier_encoding
(None) None
)comparison_operator
(block
(import_from_statement
(dotted_name
(identifier_StringIO) identifier_StringIO
)dotted_name
(dotted_name
(identifier_StringIO) identifier_StringIO
)dotted_name
)import_from_statement
)block
(else_clause
(block
(import_from_statement
(dotted_name
(identifier_cStringIO) identifier_cStringIO
)dotted_name
(dotted_name
(identifier_StringIO) identifier_StringIO
)dotted_name
)import_from_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_stream) identifier_stream
(call
(identifier_StringIO) identifier_StringIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_getvalue) identifier_getvalue
(attribute
(identifier_stream) identifier_stream
(identifier_getvalue) identifier_getvalue
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dumper) identifier_dumper
(call
(identifier_Dumper) identifier_Dumper
(argument_list
(identifier_stream) identifier_stream
(keyword_argument
(identifier_default_style) identifier_default_style
(identifier_default_style) identifier_default_style
)keyword_argument
(keyword_argument
(identifier_default_flow_style) identifier_default_flow_style
(identifier_default_flow_style) identifier_default_flow_style
)keyword_argument
(keyword_argument
(identifier_canonical) identifier_canonical
(identifier_canonical) identifier_canonical
)keyword_argument
(keyword_argument
(identifier_indent) identifier_indent
(identifier_indent) identifier_indent
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(identifier_width) identifier_width
)keyword_argument
(keyword_argument
(identifier_allow_unicode) identifier_allow_unicode
(identifier_allow_unicode) identifier_allow_unicode
)keyword_argument
(keyword_argument
(identifier_line_break) identifier_line_break
(identifier_line_break) identifier_line_break
)keyword_argument
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier_version) identifier_version
)keyword_argument
(keyword_argument
(identifier_tags) identifier_tags
(identifier_tags) identifier_tags
)keyword_argument
(keyword_argument
(identifier_explicit_start) identifier_explicit_start
(identifier_explicit_start) identifier_explicit_start
)keyword_argument
(keyword_argument
(identifier_explicit_end) identifier_explicit_end
(identifier_explicit_end) identifier_explicit_end
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_dumper) identifier_dumper
(identifier_open) identifier_open
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_data) identifier_data
(identifier_documents) identifier_documents
(block
(expression_statement
(call
(attribute
(identifier_dumper) identifier_dumper
(identifier_represent) identifier_represent
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_dumper) identifier_dumper
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_dumper) identifier_dumper
(identifier_dispose) identifier_dispose
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
(if_statement
(identifier_getvalue) identifier_getvalue
(block
(return_statement
(call
(identifier_getvalue) identifier_getvalue
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Serialize a sequence of Python objects into a YAML stream.
If stream is None, return the produced string instead. |
(module
(function_definition
(function_name_characterSet) function_name_characterSet
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_charset) identifier_charset
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(identifier_charset_node) identifier_charset_node
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__find_charset_node) identifier__find_charset_node
)attribute
(argument_list
)argument_list
)call
(call
(identifier_Meta) identifier_Meta
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(attribute
(identifier_self) identifier_self
(identifier_head) identifier_head
)attribute
)keyword_argument
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_charset_node) identifier_charset_node
(identifier_setAttribute) identifier_setAttribute
)attribute
(argument_list
(string_'charset') string_'charset'
(identifier_charset) identifier_charset
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set character set of this document. |
(module
(function_definition
(function_name_parse_line) function_name_parse_line
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_line) identifier_line
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(if_statement
(call
(attribute
(subscript
(identifier_line) identifier_line
(integer_0) integer_0
)subscript
(identifier_isspace) identifier_isspace
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__last_key) identifier__last_key
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_HTTPInputError) identifier_HTTPInputError
(argument_list
(string_"first header line cannot start with whitespace") string_"first header line cannot start with whitespace"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_new_part) identifier_new_part
(binary_operator
(string_" ") string_" "
(call
(attribute
(identifier_line) identifier_line
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__as_list) identifier__as_list
)attribute
(attribute
(identifier_self) identifier_self
(identifier__last_key) identifier__last_key
)attribute
)subscript
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_new_part) identifier_new_part
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__dict) identifier__dict
)attribute
(attribute
(identifier_self) identifier_self
(identifier__last_key) identifier__last_key
)attribute
)subscript
(identifier_new_part) identifier_new_part
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_HTTPInputError) identifier_HTTPInputError
(argument_list
(string_"no colon in header line") string_"no colon in header line"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_name) identifier_name
(call
(attribute
(identifier_value) identifier_value
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Updates the dictionary with a single header line.
>>> h = HTTPHeaders()
>>> h.parse_line("Content-Type: text/html")
>>> h.get('content-type')
'text/html' |
(module
(function_definition
(function_name_amdf) function_name_amdf
(parameters
(identifier_lag) identifier_lag
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(assignment
(identifier_filt) identifier_filt
(call
(attribute
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(binary_operator
(identifier_z) identifier_z
(unary_operator
(identifier_lag) identifier_lag
)unary_operator
)binary_operator
)binary_operator
)parenthesized_expression
(identifier_linearize) identifier_linearize
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(decorated_definition
(decorator
(identifier_tostream) identifier_tostream
)decorator
(function_definition
(function_name_amdf_filter) function_name_amdf_filter
(parameters
(identifier_sig) identifier_sig
(default_parameter
(identifier_zero) identifier_zero
(float_0.) float_0.
)default_parameter
)parameters
(block
(return_statement
(call
(call
(identifier_maverage) identifier_maverage
(argument_list
(identifier_size) identifier_size
)argument_list
)call
(argument_list
(call
(identifier_abs) identifier_abs
(argument_list
(call
(identifier_filt) identifier_filt
(argument_list
(identifier_sig) identifier_sig
(keyword_argument
(identifier_zero) identifier_zero
(identifier_zero) identifier_zero
)keyword_argument
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_zero) identifier_zero
(identifier_zero) identifier_zero
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_amdf_filter) identifier_amdf_filter
)return_statement
)block
)function_definition
)module | Average Magnitude Difference Function non-linear filter for a given
size and a fixed lag.
Parameters
----------
lag :
Time lag, in samples. See ``freq2lag`` if needs conversion from
frequency values.
size :
Moving average size.
Returns
-------
A callable that accepts two parameters: a signal ``sig`` and the starting
memory element ``zero`` that behaves like the ``LinearFilter.__call__``
arguments. The output from that callable is a Stream instance, and has
no decimation applied.
See Also
--------
freq2lag :
Frequency (in rad/sample) to lag (in samples) converter. |
(module
(function_definition
(function_name_addcommenttocommit) function_name_addcommenttocommit
(parameters
(identifier_self) identifier_self
(identifier_project_id) identifier_project_id
(identifier_author) identifier_author
(identifier_sha) identifier_sha
(identifier_path) identifier_path
(identifier_line) identifier_line
(identifier_note) identifier_note
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'author') string_'author'
(identifier_author) identifier_author
)pair
(pair
(string_'note') string_'note'
(identifier_note) identifier_note
)pair
(pair
(string_'path') string_'path'
(identifier_path) identifier_path
)pair
(pair
(string_'line') string_'line'
(identifier_line) identifier_line
)pair
(pair
(string_'line_type') string_'line_type'
(string_'new') string_'new'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(call
(attribute
(string_'{0}/{1}/repository/commits/{2}/comments') string_'{0}/{1}/repository/commits/{2}/comments'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_projects_url) identifier_projects_url
)attribute
(identifier_project_id) identifier_project_id
(identifier_sha) identifier_sha
)argument_list
)call
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_verify) identifier_verify
(attribute
(identifier_self) identifier_self
(identifier_verify_ssl) identifier_verify_ssl
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_status_code) identifier_status_code
)attribute
(integer_201) integer_201
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Adds an inline comment to a specific commit
:param project_id: project id
:param author: The author info as returned by create mergerequest
:param sha: The name of a repository branch or tag or if not given the default branch
:param path: The file path
:param line: The line number
:param note: Text of comment
:return: True or False |
(module
(function_definition
(function_name__reverse_index) function_name__reverse_index
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_y) identifier_y
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_display) identifier_display
)attribute
(binary_operator
(list
(binary_operator
(string_u" ") string_u" "
(subscript
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
(integer_1) integer_1
)subscript
)binary_operator
)list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_display) identifier_display
)attribute
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_y) identifier_y
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Move the cursor up one row in the same column. If the cursor is at the
first row, create a new row at the top. |
(module
(function_definition
(function_name_tables) function_name_tables
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_conn) identifier_conn
)attribute
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_cur) identifier_cur
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_cur) identifier_cur
(identifier_execute) identifier_execute
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_TABLES_QUERY) identifier_TABLES_QUERY
)attribute
)argument_list
)call
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_cur) identifier_cur
(block
(expression_statement
(yield
(identifier_row) identifier_row
)yield
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Yields table names. |
(module
(function_definition
(function_name_union) function_name_union
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__slideDuration) identifier__slideDuration
)attribute
(attribute
(identifier_other) identifier_other
(identifier__slideDuration) identifier__slideDuration
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"the two DStream should have same slide duration") string_"the two DStream should have same slide duration"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_transformWith) identifier_transformWith
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)lambda_parameters
(call
(attribute
(identifier_a) identifier_a
(identifier_union) identifier_union
)attribute
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)lambda
(identifier_other) identifier_other
(True) True
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a new DStream by unifying data of another DStream with this DStream.
@param other: Another DStream having the same interval (i.e., slideDuration)
as this DStream. |
(module
(function_definition
(function_name_next) function_name_next
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_results) identifier__get_results
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__retrieved) identifier__retrieved
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_StopIteration) identifier_StopIteration
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)return_statement
)block
)function_definition
)module | Provide iteration capabilities
Use a small object cache for performance |
(module
(function_definition
(function_name_manage_request_types_view) function_name_manage_request_types_view
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_request_types) identifier_request_types
(call
(attribute
(attribute
(identifier_RequestType) identifier_RequestType
(identifier_objects) identifier_objects
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_render_to_response) identifier_render_to_response
(argument_list
(string_'manage_request_types.html') string_'manage_request_types.html'
(dictionary
(pair
(string_'page_name') string_'page_name'
(string_"Admin - Manage Request Types") string_"Admin - Manage Request Types"
)pair
(pair
(string_'request_types') string_'request_types'
(identifier_request_types) identifier_request_types
)pair
)dictionary
(keyword_argument
(identifier_context_instance) identifier_context_instance
(call
(identifier_RequestContext) identifier_RequestContext
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Manage requests. Display a list of request types with links to edit them.
Also display a link to add a new request type. Restricted to presidents and superadmins. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(identifier_stop) identifier_stop
)parameters
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Starting a new pipeline on group %s") string_"Starting a new pipeline on group %s"
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(identifier_bridge) identifier_bridge
)attribute
(identifier_incr_active) identifier_incr_active
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_stage) identifier_stage
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__pipe) identifier__pipe
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__execute_stage) identifier__execute_stage
)attribute
(argument_list
(identifier_i) identifier_i
(identifier_stage) identifier_stage
(identifier_stop) identifier_stop
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Finished pipeline on group %s") string_"Finished pipeline on group %s"
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(identifier_bridge) identifier_bridge
)attribute
(identifier_decr_active) identifier_decr_active
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run the pipeline.
:param stop: Stop event |
(module
(function_definition
(function_name_via_scan) function_name_via_scan
(parameters
)parameters
(block
(import_statement
(dotted_name
(identifier_socket) identifier_socket
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_ipaddress) identifier_ipaddress
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_httpfind) identifier_httpfind
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_bridges_from_scan) identifier_bridges_from_scan
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hosts) identifier_hosts
(subscript
(call
(attribute
(identifier_socket) identifier_socket
(identifier_gethostbyname_ex) identifier_gethostbyname_ex
)attribute
(argument_list
(call
(attribute
(identifier_socket) identifier_socket
(identifier_gethostname) identifier_gethostname
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(for_statement
(identifier_host) identifier_host
(identifier_hosts) identifier_hosts
(block
(expression_statement
(augmented_assignment
(identifier_bridges_from_scan) identifier_bridges_from_scan
(call
(attribute
(identifier_httpfind) identifier_httpfind
(identifier_survey) identifier_survey
)attribute
(argument_list
(attribute
(call
(attribute
(identifier_ipaddress) identifier_ipaddress
(identifier_ip_interface) identifier_ip_interface
)attribute
(argument_list
(binary_operator
(identifier_host) identifier_host
(string_'/24') string_'/24'
)binary_operator
)argument_list
)call
(identifier_network) identifier_network
)attribute
(keyword_argument
(identifier_path) identifier_path
(string_'description.xml') string_'description.xml'
)keyword_argument
(keyword_argument
(identifier_pattern) identifier_pattern
(string_'(P|p)hilips') string_'(P|p)hilips'
)keyword_argument
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Scan on %s') string_'Scan on %s'
(identifier_host) identifier_host
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Scan returned %d Hue bridges(s).') string_'Scan returned %d Hue bridges(s).'
(call
(identifier_len) identifier_len
(argument_list
(identifier_bridges_from_scan) identifier_bridges_from_scan
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_found_bridges) identifier_found_bridges
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_bridge) identifier_bridge
(identifier_bridges_from_scan) identifier_bridges_from_scan
(block
(expression_statement
(assignment
(pattern_list
(identifier_serial) identifier_serial
(identifier_bridge_info) identifier_bridge_info
)pattern_list
(call
(identifier_parse_description_xml) identifier_parse_description_xml
(argument_list
(identifier_bridge) identifier_bridge
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_serial) identifier_serial
(block
(expression_statement
(assignment
(subscript
(identifier_found_bridges) identifier_found_bridges
(identifier_serial) identifier_serial
)subscript
(identifier_bridge_info) identifier_bridge_info
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'%s') string_'%s'
(identifier_found_bridges) identifier_found_bridges
)argument_list
)call
)expression_statement
(if_statement
(identifier_found_bridges) identifier_found_bridges
(block
(return_statement
(identifier_found_bridges) identifier_found_bridges
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_DiscoveryError) identifier_DiscoveryError
(argument_list
(string_'Scan returned nothing') string_'Scan returned nothing'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | IP scan - now implemented |
(module
(function_definition
(function_name_freeze) function_name_freeze
(parameters
(identifier_self) identifier_self
(identifier_tmp_dir) identifier_tmp_dir
)parameters
(block
(for_statement
(identifier_sfile) identifier_sfile
(call
(attribute
(identifier_self) identifier_self
(identifier_secrets) identifier_secrets
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_src_file) identifier_src_file
(call
(identifier_hard_path) identifier_hard_path
(argument_list
(identifier_sfile) identifier_sfile
(attribute
(attribute
(identifier_self) identifier_self
(identifier_opt) identifier_opt
)attribute
(identifier_secrets) identifier_secrets
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_src_file) identifier_src_file
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_aomi_excep) identifier_aomi_excep
(identifier_IceFile) identifier_IceFile
)attribute
(argument_list
(binary_operator
(string_"%s secret not found at %s") string_"%s secret not found at %s"
(tuple
(identifier_self) identifier_self
(identifier_src_file) identifier_src_file
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dest_file) identifier_dest_file
(binary_operator
(string_"%s/%s") string_"%s/%s"
(tuple
(identifier_tmp_dir) identifier_tmp_dir
(identifier_sfile) identifier_sfile
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dest_dir) identifier_dest_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_dest_file) identifier_dest_file
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_dest_dir) identifier_dest_dir
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_mkdir) identifier_mkdir
)attribute
(argument_list
(identifier_dest_dir) identifier_dest_dir
(integer_0o700) integer_0o700
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_src_file) identifier_src_file
(identifier_dest_file) identifier_dest_file
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Froze %s %s") string_"Froze %s %s"
(identifier_self) identifier_self
(identifier_sfile) identifier_sfile
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Copies a secret into a particular location |
(module
(function_definition
(function_name__delegate_required) function_name__delegate_required
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_fs) identifier_fs
(call
(attribute
(identifier_self) identifier_self
(identifier__delegate) identifier__delegate
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_fs) identifier_fs
(None) None
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_ResourceNotFound) identifier_ResourceNotFound
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_fs) identifier_fs
)return_statement
)block
)function_definition
)module | Check that there is a filesystem with the given ``path``. |
(module
(function_definition
(function_name_Define_TreeTable) function_name_Define_TreeTable
(parameters
(identifier_self) identifier_self
(identifier_heads) identifier_heads
(default_parameter
(identifier_heads2) identifier_heads2
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_display_heads) identifier_display_heads
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_display_heads) identifier_display_heads
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_tuple) identifier_tuple
(argument_list
(subscript
(identifier_heads) identifier_heads
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tree_table) identifier_tree_table
)attribute
(call
(identifier_TreeTable) identifier_TreeTable
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tree_table) identifier_tree_table
)attribute
(identifier_append_from_list) identifier_append_from_list
)attribute
(argument_list
(identifier_display_heads) identifier_display_heads
(keyword_argument
(identifier_fill_title) identifier_fill_title
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_heads2) identifier_heads2
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_heads2_color) identifier_heads2_color
(subscript
(identifier_heads2) identifier_heads2
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_row_widget) identifier_row_widget
(call
(attribute
(identifier_gui) identifier_gui
(identifier_TableRow) identifier_TableRow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_field) identifier_field
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(subscript
(identifier_heads2) identifier_heads2
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_row_item) identifier_row_item
(call
(attribute
(identifier_gui) identifier_gui
(identifier_TableItem) identifier_TableItem
)attribute
(argument_list
(keyword_argument
(identifier_text) identifier_text
(identifier_field) identifier_field
)keyword_argument
(keyword_argument
(identifier_style) identifier_style
(dictionary
(pair
(string_'background-color') string_'background-color'
(identifier_heads2_color) identifier_heads2_color
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_row_widget) identifier_row_widget
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_row_item) identifier_row_item
(identifier_field) identifier_field
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tree_table) identifier_tree_table
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_row_widget) identifier_row_widget
(subscript
(identifier_heads2) identifier_heads2
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wid) identifier_wid
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_tree_table) identifier_tree_table
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Define a TreeTable with a heading row
and optionally a second heading row. |
(module
(function_definition
(function_name_is_translocated) function_name_is_translocated
(parameters
(typed_parameter
(identifier_graph) identifier_graph
(type
(identifier_BELGraph) identifier_BELGraph
)type
)typed_parameter
(typed_parameter
(identifier_node) identifier_node
(type
(identifier_BaseEntity) identifier_BaseEntity
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(return_statement
(call
(identifier__node_has_modifier) identifier__node_has_modifier
(argument_list
(identifier_graph) identifier_graph
(identifier_node) identifier_node
(identifier_TRANSLOCATION) identifier_TRANSLOCATION
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return true if over any of the node's edges, it is translocated. |
(module
(function_definition
(function_name_DeserializeUnsigned) function_name_DeserializeUnsigned
(parameters
(identifier_self) identifier_self
(identifier_reader) identifier_reader
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Version) identifier_Version
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt32) identifier_ReadUInt32
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_PrevHash) identifier_PrevHash
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt256) identifier_ReadUInt256
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_MerkleRoot) identifier_MerkleRoot
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt256) identifier_ReadUInt256
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Timestamp) identifier_Timestamp
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt32) identifier_ReadUInt32
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Index) identifier_Index
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt32) identifier_ReadUInt32
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ConsensusData) identifier_ConsensusData
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt64) identifier_ReadUInt64
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_NextConsensus) identifier_NextConsensus
)attribute
(call
(attribute
(identifier_reader) identifier_reader
(identifier_ReadUInt160) identifier_ReadUInt160
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Deserialize unsigned data only.
Args:
reader (neo.IO.BinaryReader): |
(module
(function_definition
(function_name__on_github_request) function_name__on_github_request
(parameters
(identifier_self) identifier_self
(identifier_future) identifier_future
(identifier_response) identifier_response
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_escape) identifier_escape
(identifier_json_decode) identifier_json_decode
)attribute
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_body) identifier_body
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_ValueError) identifier_ValueError
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_set_exception) identifier_set_exception
)attribute
(argument_list
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'Github error: %s') string_'Github error: %s'
(attribute
(identifier_response) identifier_response
(identifier_body) identifier_body
)attribute
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(string_'error') string_'error'
(identifier_content) identifier_content
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_set_exception) identifier_set_exception
)attribute
(argument_list
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'Github error: %s') string_'Github error: %s'
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_content) identifier_content
(string_'error') string_'error'
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_set_result) identifier_set_result
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Invoked as a response to the GitHub API request. Will decode the
response and set the result for the future to return the callback or
raise an exception |
(module
(function_definition
(function_name_dry_run) function_name_dry_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_database_current_migration) identifier_database_current_migration
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_printer) identifier_printer
)attribute
(argument_list
(binary_operator
(string_u'~> Woulda initialized: %s\n') string_u'~> Woulda initialized: %s\n'
(call
(attribute
(identifier_self) identifier_self
(identifier_name_for_printing) identifier_name_for_printing
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(string_u'inited') string_u'inited'
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_migrations_to_run) identifier_migrations_to_run
(call
(attribute
(identifier_self) identifier_self
(identifier_migrations_to_run) identifier_migrations_to_run
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_migrations_to_run) identifier_migrations_to_run
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_printer) identifier_printer
)attribute
(argument_list
(binary_operator
(string_u'~> Woulda updated %s:\n') string_u'~> Woulda updated %s:\n'
(call
(attribute
(identifier_self) identifier_self
(identifier_name_for_printing) identifier_name_for_printing
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_migration_number) identifier_migration_number
(identifier_migration_func) identifier_migration_func
)pattern_list
(call
(identifier_migrations_to_run) identifier_migrations_to_run
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_printer) identifier_printer
)attribute
(argument_list
(binary_operator
(string_u' + Would update %s, "%s"\n') string_u' + Would update %s, "%s"\n'
(tuple
(identifier_migration_number) identifier_migration_number
(attribute
(identifier_migration_func) identifier_migration_func
(identifier_func_name) identifier_func_name
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(string_u'migrated') string_u'migrated'
)return_statement
)block
)if_statement
)block
)function_definition
)module | Print out a dry run of what we would have upgraded. |
(module
(function_definition
(function_name__create_worker) function_name__create_worker
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(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_thread) identifier_thread
(call
(identifier_QThread) identifier_QThread
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_worker) identifier_worker
(call
(identifier_ClientWorker) identifier_ClientWorker
(argument_list
(identifier_method) identifier_method
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_worker) identifier_worker
(identifier_moveToThread) identifier_moveToThread
)attribute
(argument_list
(identifier_thread) identifier_thread
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_worker) identifier_worker
(identifier_sig_finished) identifier_sig_finished
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__start) identifier__start
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_worker) identifier_worker
(identifier_sig_finished) identifier_sig_finished
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_thread) identifier_thread
(identifier_quit) identifier_quit
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_thread) identifier_thread
(identifier_started) identifier_started
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_worker) identifier_worker
(identifier_start) identifier_start
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__queue) identifier__queue
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_thread) identifier_thread
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__threads) identifier__threads
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_thread) identifier_thread
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__workers) identifier__workers
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_worker) identifier_worker
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__start) identifier__start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_worker) identifier_worker
)return_statement
)block
)function_definition
)module | Create a worker for this client to be run in a separate thread. |
(module
(function_definition
(function_name_repoExitError) function_name_repoExitError
(parameters
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignment
(identifier_wrapper) identifier_wrapper
(call
(attribute
(identifier_textwrap) identifier_textwrap
(identifier_TextWrapper) identifier_TextWrapper
)attribute
(argument_list
(keyword_argument
(identifier_break_on_hyphens) identifier_break_on_hyphens
(False) False
)keyword_argument
(keyword_argument
(identifier_break_long_words) identifier_break_long_words
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_formatted) identifier_formatted
(call
(attribute
(identifier_wrapper) identifier_wrapper
(identifier_fill) identifier_fill
)attribute
(argument_list
(call
(attribute
(string_"{}: error: {}") string_"{}: error: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(integer_0) integer_0
)subscript
(identifier_message) identifier_message
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(identifier_formatted) identifier_formatted
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Exits the repo manager with error status. |
(module
(function_definition
(function_name_get_instance) function_name_get_instance
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(return_statement
(call
(identifier_FactorInstance) identifier_FactorInstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(identifier_payload) identifier_payload
(keyword_argument
(identifier_service_sid) identifier_service_sid
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_'service_sid') string_'service_sid'
)subscript
)keyword_argument
(keyword_argument
(identifier_identity) identifier_identity
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_'identity') string_'identity'
)subscript
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Build an instance of FactorInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.authy.v1.service.entity.factor.FactorInstance
:rtype: twilio.rest.authy.v1.service.entity.factor.FactorInstance |
(module
(function_definition
(function_name_start_pymol) function_name_start_pymol
(parameters
(default_parameter
(identifier_quiet) identifier_quiet
(False) False
)default_parameter
(default_parameter
(identifier_options) identifier_options
(string_'-p') string_'-p'
)default_parameter
(default_parameter
(identifier_run) identifier_run
(False) False
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_pymol) identifier_pymol
)dotted_name
)import_statement
(expression_statement
(assignment
(attribute
(identifier_pymol) identifier_pymol
(identifier_pymol_argv) identifier_pymol_argv
)attribute
(binary_operator
(list
(string_'pymol') string_'pymol'
(binary_operator
(string_'%s') string_'%s'
(identifier_options) identifier_options
)binary_operator
)list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_run) identifier_run
(block
(expression_statement
(call
(identifier_initialize_pymol) identifier_initialize_pymol
(argument_list
(identifier_options) identifier_options
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_quiet) identifier_quiet
(block
(expression_statement
(call
(attribute
(attribute
(identifier_pymol) identifier_pymol
(identifier_cmd) identifier_cmd
)attribute
(identifier_feedback) identifier_feedback
)attribute
(argument_list
(string_'disable') string_'disable'
(string_'all') string_'all'
(string_'everything') string_'everything'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Starts up PyMOL and sets general options. Quiet mode suppresses all PyMOL output.
Command line options can be passed as the second argument. |
(module
(function_definition
(function_name_to_even_columns) function_name_to_even_columns
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_headers) identifier_headers
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(string_'') string_''
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_col_width) identifier_col_width
(binary_operator
(call
(identifier_max) identifier_max
(generator_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_word) identifier_word
)argument_list
)call
(for_in_clause
(identifier_row) identifier_row
(identifier_data) identifier_data
)for_in_clause
(for_in_clause
(identifier_word) identifier_word
(identifier_row) identifier_row
)for_in_clause
)generator_expression
)call
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_headers) identifier_headers
(block
(expression_statement
(assignment
(identifier_header_width) identifier_header_width
(binary_operator
(call
(identifier_max) identifier_max
(generator_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_word) identifier_word
)argument_list
)call
(for_in_clause
(identifier_row) identifier_row
(identifier_headers) identifier_headers
)for_in_clause
(for_in_clause
(identifier_word) identifier_word
(identifier_row) identifier_row
)for_in_clause
)generator_expression
)call
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_header_width) identifier_header_width
(identifier_col_width) identifier_col_width
)comparison_operator
(block
(expression_statement
(assignment
(identifier_col_width) identifier_col_width
(identifier_header_width) identifier_header_width
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(attribute
(identifier_word) identifier_word
(identifier_ljust) identifier_ljust
)attribute
(argument_list
(identifier_col_width) identifier_col_width
)argument_list
)call
(for_in_clause
(identifier_word) identifier_word
(identifier_headers) identifier_headers
)for_in_clause
)generator_expression
)call
(string_"\n") string_"\n"
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(binary_operator
(binary_operator
(string_'-') string_'-'
(identifier_col_width) identifier_col_width
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_headers) identifier_headers
)argument_list
)call
)binary_operator
(string_"\n") string_"\n"
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_row) identifier_row
(identifier_data) identifier_data
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(attribute
(identifier_word) identifier_word
(identifier_ljust) identifier_ljust
)attribute
(argument_list
(identifier_col_width) identifier_col_width
)argument_list
)call
(for_in_clause
(identifier_word) identifier_word
(identifier_row) identifier_row
)for_in_clause
)generator_expression
)call
(string_"\n") string_"\n"
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Nicely format the 2-dimensional list into evenly spaced columns |
(module
(function_definition
(function_name_has_bitshifts) function_name_has_bitshifts
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name__has_bitshifts) function_name__has_bitshifts
(parameters
(identifier_expr) identifier_expr
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_expr) identifier_expr
(attribute
(attribute
(identifier_pyvex) identifier_pyvex
(identifier_IRExpr) identifier_IRExpr
)attribute
(identifier_Binop) identifier_Binop
)attribute
)argument_list
)call
(block
(return_statement
(boolean_operator
(boolean_operator
(call
(attribute
(attribute
(identifier_expr) identifier_expr
(identifier_op) identifier_op
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"Iop_Shl") string_"Iop_Shl"
)argument_list
)call
(call
(attribute
(attribute
(identifier_expr) identifier_expr
(identifier_op) identifier_op
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"Iop_Shr") string_"Iop_Shr"
)argument_list
)call
)boolean_operator
(line_continuation_\) line_continuation_\
(call
(attribute
(attribute
(identifier_expr) identifier_expr
(identifier_op) identifier_op
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"Iop_Sar") string_"Iop_Sar"
)argument_list
)call
)boolean_operator
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_found_bitops) identifier_found_bitops
(False) False
)assignment
)expression_statement
(for_statement
(identifier_block) identifier_block
(attribute
(attribute
(identifier_self) identifier_self
(identifier__function) identifier__function
)attribute
(identifier_blocks) identifier_blocks
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_block) identifier_block
(identifier_size) identifier_size
)attribute
(integer_0) integer_0
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_stmt) identifier_stmt
(attribute
(attribute
(identifier_block) identifier_block
(identifier_vex) identifier_vex
)attribute
(identifier_statements) identifier_statements
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_stmt) identifier_stmt
(attribute
(attribute
(identifier_pyvex) identifier_pyvex
(identifier_IRStmt) identifier_IRStmt
)attribute
(identifier_Put) identifier_Put
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_found_bitops) identifier_found_bitops
(boolean_operator
(identifier_found_bitops) identifier_found_bitops
(call
(identifier__has_bitshifts) identifier__has_bitshifts
(argument_list
(attribute
(identifier_stmt) identifier_stmt
(identifier_data) identifier_data
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_stmt) identifier_stmt
(attribute
(attribute
(identifier_pyvex) identifier_pyvex
(identifier_IRStmt) identifier_IRStmt
)attribute
(identifier_WrTmp) identifier_WrTmp
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_found_bitops) identifier_found_bitops
(boolean_operator
(identifier_found_bitops) identifier_found_bitops
(call
(identifier__has_bitshifts) identifier__has_bitshifts
(argument_list
(attribute
(identifier_stmt) identifier_stmt
(identifier_data) identifier_data
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(if_statement
(identifier_found_bitops) identifier_found_bitops
(block
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_found_bitops) identifier_found_bitops
(block
(return_statement
(set
(attribute
(identifier_CodeTags) identifier_CodeTags
(identifier_HAS_BITSHIFTS) identifier_HAS_BITSHIFTS
)attribute
)set
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Detects if there is any bitwise operation in the function.
:return: Tags. |
(module
(function_definition
(function_name__get_raw_data) function_name__get_raw_data
(parameters
(identifier_self) identifier_self
(identifier_is_valid_key) identifier_is_valid_key
(identifier_data_key) identifier_data_key
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(None) None
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__read_imu) identifier__read_imu
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__imu) identifier__imu
)attribute
(identifier_getIMUData) identifier_getIMUData
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(subscript
(identifier_data) identifier_data
(identifier_is_valid_key) identifier_is_valid_key
)subscript
(block
(expression_statement
(assignment
(identifier_raw) identifier_raw
(subscript
(identifier_data) identifier_data
(identifier_data_key) identifier_data_key
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionary
(pair
(string_'x') string_'x'
(subscript
(identifier_raw) identifier_raw
(integer_0) integer_0
)subscript
)pair
(pair
(string_'y') string_'y'
(subscript
(identifier_raw) identifier_raw
(integer_1) integer_1
)subscript
)pair
(pair
(string_'z') string_'z'
(subscript
(identifier_raw) identifier_raw
(integer_2) integer_2
)subscript
)pair
)dictionary
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Internal. Returns the specified raw data from the IMU when valid |
(module
(function_definition
(function_name_add_string_as_file) function_name_add_string_as_file
(parameters
(identifier_self) identifier_self
(identifier_content) identifier_content
(identifier_filename) identifier_filename
(default_parameter
(identifier_pred) identifier_pred
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_summary) identifier_summary
(conditional_expression
(subscript
(call
(attribute
(identifier_content) identifier_content
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_content) identifier_content
(string_'') string_''
)conditional_expression
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_summary) identifier_summary
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_summary) identifier_summary
(call
(attribute
(identifier_content) identifier_content
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf8') string_'utf8'
(string_'ignore') string_'ignore'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_test_predicate) identifier_test_predicate
)attribute
(argument_list
(keyword_argument
(identifier_cmd) identifier_cmd
(False) False
)keyword_argument
(keyword_argument
(identifier_pred) identifier_pred
(identifier_pred) identifier_pred
)keyword_argument
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_info) identifier__log_info
)attribute
(argument_list
(binary_operator
(string_"skipped string ...'%s' due to predicate (%s)") string_"skipped string ...'%s' due to predicate (%s)"
(tuple
(identifier_summary) identifier_summary
(call
(attribute
(identifier_self) identifier_self
(identifier_get_predicate) identifier_get_predicate
)attribute
(argument_list
(keyword_argument
(identifier_pred) identifier_pred
(identifier_pred) identifier_pred
)keyword_argument
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_copy_strings) identifier_copy_strings
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_content) identifier_content
(identifier_filename) identifier_filename
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log_debug) identifier__log_debug
)attribute
(argument_list
(binary_operator
(string_"added string ...'%s' as '%s'") string_"added string ...'%s' as '%s'"
(tuple
(identifier_summary) identifier_summary
(identifier_filename) identifier_filename
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add a string to the archive as a file named `filename` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.