sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'_connecting_future') string_'_connecting_future'
)argument_list
)call
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connecting_future) identifier__connecting_future
)attribute
(identifier_done) identifier_done
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_future) identifier_future
(attribute
(identifier_self) identifier_self
(identifier__connecting_future) identifier__connecting_future
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'_connecting_future') string_'_connecting_future'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connecting_future) identifier__connecting_future
)attribute
(identifier_exception) identifier_exception
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_future) identifier_future
(call
(attribute
(attribute
(identifier_tornado) identifier_tornado
(identifier_concurrent) identifier_concurrent
)attribute
(identifier_Future) identifier_Future
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connecting_future) identifier__connecting_future
)attribute
(identifier_future) identifier_future
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__connect) identifier__connect
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_callback) identifier_callback
(None) None
)comparison_operator
(block
(function_definition
(function_name_handle_future) function_name_handle_future
(parameters
(identifier_future) identifier_future
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_future) identifier_future
(identifier_result) identifier_result
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_io_loop) identifier_io_loop
)attribute
(identifier_add_callback) identifier_add_callback
)attribute
(argument_list
(identifier_callback) identifier_callback
(identifier_response) identifier_response
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_future) identifier_future
(identifier_add_done_callback) identifier_add_done_callback
)attribute
(argument_list
(identifier_handle_future) identifier_handle_future
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_future) identifier_future
)return_statement
)block
)function_definition
)module | Connect to the IPC socket |
(module
(function_definition
(function_name__prep_sample_cnvs) function_name__prep_sample_cnvs
(parameters
(identifier_cnv_file) identifier_cnv_file
(identifier_data) identifier_data
)parameters
(block
(import_statement
(dotted_name
(identifier_pybedtools) identifier_pybedtools
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_sample_name) identifier_sample_name
(call
(attribute
(identifier_tz) identifier_tz
(identifier_get_in) identifier_get_in
)attribute
(argument_list
(list
(string_"rgnames") string_"rgnames"
(string_"sample") string_"sample"
)list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_make_names) function_name_make_names
(parameters
(identifier_name) identifier_name
)parameters
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_"[^\w.]") string_"[^\w.]"
(string_'.') string_'.'
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
(function_definition
(function_name_matches_sample_name) function_name_matches_sample_name
(parameters
(identifier_feat) identifier_feat
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(comparison_operator
(attribute
(identifier_feat) identifier_feat
(identifier_name) identifier_name
)attribute
(identifier_sample_name) identifier_sample_name
)comparison_operator
(comparison_operator
(attribute
(identifier_feat) identifier_feat
(identifier_name) identifier_name
)attribute
(binary_operator
(string_"X%s") string_"X%s"
(identifier_sample_name) identifier_sample_name
)binary_operator
)comparison_operator
)boolean_operator
(comparison_operator
(attribute
(identifier_feat) identifier_feat
(identifier_name) identifier_name
)attribute
(call
(identifier_make_names) identifier_make_names
(argument_list
(identifier_sample_name) identifier_sample_name
)argument_list
)call
)comparison_operator
)boolean_operator
)parenthesized_expression
)return_statement
)block
)function_definition
(function_definition
(function_name_update_sample_name) function_name_update_sample_name
(parameters
(identifier_feat) identifier_feat
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_feat) identifier_feat
(identifier_name) identifier_name
)attribute
(identifier_sample_name) identifier_sample_name
)assignment
)expression_statement
(return_statement
(identifier_feat) identifier_feat
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_sample_file) identifier_sample_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_cnv_file) identifier_cnv_file
)argument_list
)call
(binary_operator
(string_"%s-cnv.bed") string_"%s-cnv.bed"
(identifier_sample_name) identifier_sample_name
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_utils) identifier_utils
(identifier_file_exists) identifier_file_exists
)attribute
(argument_list
(identifier_sample_file) identifier_sample_file
)argument_list
)call
)not_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_file_transaction) identifier_file_transaction
(argument_list
(identifier_data) identifier_data
(identifier_sample_file) identifier_sample_file
)argument_list
)call
(as_pattern_target
(identifier_tx_out_file) identifier_tx_out_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_shared) identifier_shared
(identifier_bedtools_tmpdir) identifier_bedtools_tmpdir
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_pybedtools) identifier_pybedtools
(identifier_BedTool) identifier_BedTool
)attribute
(argument_list
(identifier_cnv_file) identifier_cnv_file
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(identifier_matches_sample_name) identifier_matches_sample_name
)argument_list
)call
(identifier_each) identifier_each
)attribute
(argument_list
(identifier_update_sample_name) identifier_update_sample_name
)argument_list
)call
(identifier_saveas) identifier_saveas
)attribute
(argument_list
(identifier_tx_out_file) identifier_tx_out_file
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)with_statement
)block
)if_statement
(return_statement
(identifier_sample_file) identifier_sample_file
)return_statement
)block
)function_definition
)module | Convert a multiple sample CNV file into a single BED file for a sample.
Handles matching and fixing names where R converts numerical IDs (1234) into
strings by adding an X (X1234), and converts other characters into '.'s.
http://stat.ethz.ch/R-manual/R-devel/library/base/html/make.names.html |
(module
(function_definition
(function_name_stem) function_name_stem
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(tuple
(identifier_form) identifier_form
(identifier_tag) identifier_tag
)tuple
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier_lemma_cache) identifier_lemma_cache
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_lemma) identifier_lemma
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_stemmer) identifier_stemmer
)attribute
(argument_list
(list_splat
(identifier_key) identifier_key
)list_splat
)argument_list
)call
(identifier_word) identifier_word
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_lemma_cache) identifier_lemma_cache
)attribute
(identifier_key) identifier_key
)subscript
(identifier_lemma) identifier_lemma
)assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_lemma_cache) identifier_lemma_cache
)attribute
(identifier_key) identifier_key
)subscript
)return_statement
)block
)function_definition
)module | Returns the stem of word with specific form and part-of-speech
tag according to the Stanford lemmatizer. Lemmas are cached. |
(module
(function_definition
(function_name__map_purchase_request_to_func) function_name__map_purchase_request_to_func
(parameters
(identifier_self) identifier_self
(identifier_purchase_request_type) identifier_purchase_request_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_purchase_request_type) identifier_purchase_request_type
(attribute
(identifier_self) identifier_self
(identifier__intent_view_funcs) identifier__intent_view_funcs
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_view_func) identifier_view_func
(subscript
(attribute
(identifier_self) identifier_self
(identifier__intent_view_funcs) identifier__intent_view_funcs
)attribute
(identifier_purchase_request_type) identifier_purchase_request_type
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(call
(attribute
(string_'Request type "{}" not found and no default view specified.') string_'Request type "{}" not found and no default view specified.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_purchase_request_type) identifier_purchase_request_type
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_argspec) identifier_argspec
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getargspec) identifier_getargspec
)attribute
(argument_list
(identifier_view_func) identifier_view_func
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_arg_names) identifier_arg_names
(attribute
(identifier_argspec) identifier_argspec
(identifier_args) identifier_args
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_arg_values) identifier_arg_values
(call
(attribute
(identifier_self) identifier_self
(identifier__map_params_to_view_args) identifier__map_params_to_view_args
)attribute
(argument_list
(identifier_purchase_request_type) identifier_purchase_request_type
(identifier_arg_names) identifier_arg_names
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'_map_purchase_request_to_func') string_'_map_purchase_request_to_func'
(identifier_arg_names) identifier_arg_names
(identifier_arg_values) identifier_arg_values
(identifier_view_func) identifier_view_func
(identifier_purchase_request_type) identifier_purchase_request_type
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_partial) identifier_partial
(argument_list
(identifier_view_func) identifier_view_func
(list_splat
(identifier_arg_values) identifier_arg_values
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Provides appropriate parameters to the on_purchase functions. |
(module
(function_definition
(function_name_get_default_vpc) function_name_get_default_vpc
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ec2) identifier_ec2
(call
(identifier_get_ec2_resource) identifier_get_ec2_resource
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_vpc) identifier_vpc
(call
(attribute
(attribute
(identifier_ec2) identifier_ec2
(identifier_vpcs) identifier_vpcs
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(attribute
(identifier_vpc) identifier_vpc
(identifier_is_default) identifier_is_default
)attribute
(block
(return_statement
(identifier_vpc) identifier_vpc
)return_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Return default VPC or none if not present |
(module
(function_definition
(function_name_from_key_bytes) function_name_from_key_bytes
(parameters
(identifier_cls) identifier_cls
(identifier_algorithm) identifier_algorithm
(identifier_key_bytes) identifier_key_bytes
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(keyword_argument
(identifier_algorithm) identifier_algorithm
(identifier_algorithm) identifier_algorithm
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(call
(attribute
(identifier_serialization) identifier_serialization
(identifier_load_der_public_key) identifier_load_der_public_key
)attribute
(argument_list
(keyword_argument
(identifier_data) identifier_data
(identifier_key_bytes) identifier_key_bytes
)keyword_argument
(keyword_argument
(identifier_backend) identifier_backend
(call
(identifier_default_backend) identifier_default_backend
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a `Verifier` object based on the supplied algorithm and raw verification key.
:param algorithm: Algorithm on which to base verifier
:type algorithm: aws_encryption_sdk.identifiers.Algorithm
:param bytes encoded_point: Raw verification key
:returns: Instance of Verifier generated from encoded point
:rtype: aws_encryption_sdk.internal.crypto.Verifier |
(module
(function_definition
(function_name_authenticate) function_name_authenticate
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_authenticators) identifier_authenticators
(attribute
(attribute
(identifier_self) identifier_self
(identifier__meta) identifier__meta
)attribute
(identifier_authenticators) identifier_authenticators
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'OPTIONS') string_'OPTIONS'
)comparison_operator
(identifier_ADREST_ALLOW_OPTIONS) identifier_ADREST_ALLOW_OPTIONS
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
(call
(identifier_AnonimousAuthenticator) identifier_AnonimousAuthenticator
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_error_message) identifier_error_message
(string_"Authorization required.") string_"Authorization required."
)assignment
)expression_statement
(for_statement
(identifier_authenticator) identifier_authenticator
(identifier_authenticators) identifier_authenticators
(block
(expression_statement
(assignment
(identifier_auth) identifier_auth
(call
(identifier_authenticator) identifier_authenticator
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(if_statement
(not_operator
(call
(attribute
(identifier_auth) identifier_auth
(identifier_authenticate) identifier_authenticate
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(identifier_error_message) identifier_error_message
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
(identifier_auth) identifier_auth
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_auth) identifier_auth
(identifier_configure) identifier_configure
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(identifier_AssertionError) identifier_AssertionError
(identifier_e) identifier_e
(block
(expression_statement
(assignment
(identifier_error_message) identifier_error_message
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(raise_statement
(call
(identifier_HttpError) identifier_HttpError
(argument_list
(identifier_error_message) identifier_error_message
(keyword_argument
(identifier_status) identifier_status
(attribute
(identifier_status) identifier_status
(identifier_HTTP_401_UNAUTHORIZED) identifier_HTTP_401_UNAUTHORIZED
)attribute
)keyword_argument
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Attempt to authenticate the request.
:param request: django.http.Request instance
:return bool: True if success else raises HTTP_401 |
(module
(function_definition
(function_name_change_password) function_name_change_password
(parameters
(identifier_username) identifier_username
(identifier_password) identifier_password
(default_parameter
(identifier_uid) identifier_uid
(None) None
)default_parameter
(default_parameter
(identifier_host) identifier_host
(None) None
)default_parameter
(default_parameter
(identifier_admin_username) identifier_admin_username
(None) None
)default_parameter
(default_parameter
(identifier_admin_password) identifier_admin_password
(None) None
)default_parameter
(default_parameter
(identifier_module) identifier_module
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_password) identifier_password
)argument_list
)call
(integer_20) integer_20
)comparison_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(string_'Supplied password should be 20 characters or less') string_'Supplied password should be 20 characters or less'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_uid) identifier_uid
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(identifier_list_users) identifier_list_users
(argument_list
(keyword_argument
(identifier_host) identifier_host
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_admin_username) identifier_admin_username
(identifier_admin_username) identifier_admin_username
)keyword_argument
(keyword_argument
(identifier_admin_password) identifier_admin_password
(identifier_admin_password) identifier_admin_password
)keyword_argument
(keyword_argument
(identifier_module) identifier_module
(identifier_module) identifier_module
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uid) identifier_uid
(subscript
(subscript
(identifier_user) identifier_user
(identifier_username) identifier_username
)subscript
(string_'index') string_'index'
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_uid) identifier_uid
(block
(return_statement
(call
(identifier___execute_cmd) identifier___execute_cmd
(argument_list
(call
(attribute
(concatenated_string
(string_'config -g cfgUserAdmin -o ') string_'config -g cfgUserAdmin -o '
(string_'cfgUserAdminPassword -i {0} {1}') string_'cfgUserAdminPassword -i {0} {1}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_uid) identifier_uid
(identifier_password) identifier_password
)argument_list
)call
(keyword_argument
(identifier_host) identifier_host
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_admin_username) identifier_admin_username
(identifier_admin_username) identifier_admin_username
)keyword_argument
(keyword_argument
(identifier_admin_password) identifier_admin_password
(identifier_admin_password) identifier_admin_password
)keyword_argument
(keyword_argument
(identifier_module) identifier_module
(identifier_module) identifier_module
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'racadm: user \'%s\' does not exist') string_'racadm: user \'%s\' does not exist'
(identifier_username) identifier_username
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Change user's password
CLI Example:
.. code-block:: bash
salt dell dracr.change_password [USERNAME] [PASSWORD] uid=[OPTIONAL]
host=<remote DRAC> admin_username=<DRAC user>
admin_password=<DRAC PW>
salt dell dracr.change_password diana secret
Note that if only a username is specified then this module will look up
details for all 16 possible DRAC users. This is time consuming, but might
be necessary if one is not sure which user slot contains the one you want.
Many late-model Dell chassis have 'root' as UID 1, so if you can depend
on that then setting the password is much quicker.
Raises an error if the supplied password is greater than 20 chars. |
(module
(function_definition
(function_name_seek) function_name_seek
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(default_parameter
(identifier_target) identifier_target
(string_"offset") string_"offset"
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_target) identifier_target
(tuple
(string_u'offset') string_u'offset'
(string_u'id') string_u'id'
)tuple
)comparison_operator
(block
(raise_statement
(call
(identifier_ArgumentError) identifier_ArgumentError
(argument_list
(string_"You must specify target as either offset or id") string_"You must specify target as either offset or id"
(keyword_argument
(identifier_target) identifier_target
(identifier_target) identifier_target
)keyword_argument
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_target) identifier_target
(string_u'offset') string_u'offset'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__verify_offset) identifier__verify_offset
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__find_id) identifier__find_id
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__count) identifier__count
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
(identifier_count_matching) identifier_count_matching
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_selector) identifier_selector
)attribute
(keyword_argument
(identifier_offset) identifier_offset
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_curr) identifier_curr
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_storage_type) identifier_storage_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_matches) identifier_matches
)attribute
(argument_list
(call
(attribute
(identifier_DataStream) identifier_DataStream
(identifier_FromEncoded) identifier_FromEncoded
)attribute
(argument_list
(attribute
(identifier_curr) identifier_curr
(identifier_stream) identifier_stream
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Seek this stream to a specific offset or reading id.
There are two modes of use. You can seek to a specific reading id,
which means the walker will be positioned exactly at the reading
pointed to by the reading ID. If the reading id cannot be found
an exception will be raised. The reading id can be found but corresponds
to a reading that is not selected by this walker, the walker will
be moved to point at the first reading after that reading and False
will be returned.
If target=="offset", the walker will be positioned at the specified
offset in the sensor log. It will also update the count of available
readings based on that new location so that the count remains correct.
The offset does not need to correspond to a reading selected by this
walker. If offset does not point to a selected reading, the effective
behavior will be as if the walker pointed to the next selected reading
after `offset`.
Args:
value (int): The identifier to seek, either an offset or a
reading id.
target (str): The type of thing to seek. Can be offset or id.
If id is given, then a reading with the given ID will be
searched for. If offset is given then the walker will
be positioned at the given offset.
Returns:
bool: True if an exact match was found, False otherwise.
An exact match means that the offset or reading ID existed and
corresponded to a reading selected by this walker.
An inexact match means that the offset or reading ID existed but
corresponded to reading that was not selected by this walker.
If the offset or reading ID could not be found an Exception is
thrown instead.
Raises:
ArgumentError: target is an invalid string, must be offset or
id.
UnresolvedIdentifierError: the desired offset or reading id
could not be found. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(call
(identifier_setup_main_logger) identifier_setup_main_logger
(argument_list
(keyword_argument
(identifier_console) identifier_console
(True) True
)keyword_argument
(keyword_argument
(identifier_file_logging) identifier_file_logging
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentParser) identifier_ArgumentParser
)attribute
(argument_list
(keyword_argument
(identifier_description) identifier_description
(concatenated_string
(string_'Quick usage: python3 -m sockeye.init_embedding ') string_'Quick usage: python3 -m sockeye.init_embedding '
(string_'-w embed-in-src.npy embed-in-tgt.npy ') string_'-w embed-in-src.npy embed-in-tgt.npy '
(string_'-i vocab-in-src.json vocab-in-tgt.json ') string_'-i vocab-in-src.json vocab-in-tgt.json '
(string_'-o vocab-out-src.json vocab-out-tgt.json ') string_'-o vocab-out-src.json vocab-out-tgt.json '
(string_'-n source_embed_weight target_embed_weight ') string_'-n source_embed_weight target_embed_weight '
(string_'-f params.init') string_'-f params.init'
)concatenated_string
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_arguments) identifier_arguments
(identifier_add_init_embedding_args) identifier_add_init_embedding_args
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_params) identifier_params
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_init_embeddings) identifier_init_embeddings
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Commandline interface to initialize Sockeye embedding weights with pretrained word representations. |
(module
(function_definition
(function_name_right_axis_label) function_name_right_axis_label
(parameters
(identifier_self) identifier_self
(identifier_label) identifier_label
(default_parameter
(identifier_position) identifier_position
(None) None
)default_parameter
(default_parameter
(identifier_rotation) identifier_rotation
(unary_operator
(integer_60) integer_60
)unary_operator
)default_parameter
(default_parameter
(identifier_offset) identifier_offset
(float_0.08) float_0.08
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(identifier_position) identifier_position
)not_operator
(block
(expression_statement
(assignment
(identifier_position) identifier_position
(tuple
(binary_operator
(binary_operator
(float_2.) float_2.
(integer_5) integer_5
)binary_operator
(identifier_offset) identifier_offset
)binary_operator
(binary_operator
(float_3.) float_3.
(integer_5) integer_5
)binary_operator
(integer_0) integer_0
)tuple
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__labels) identifier__labels
)attribute
(string_"right") string_"right"
)subscript
(tuple
(identifier_label) identifier_label
(identifier_position) identifier_position
(identifier_rotation) identifier_rotation
(identifier_kwargs) identifier_kwargs
)tuple
)assignment
)expression_statement
)block
)function_definition
)module | Sets the label on the right axis.
Parameters
----------
label: String
The axis label
position: 3-Tuple of floats, None
The position of the text label
rotation: float, -60
The angle of rotation of the label
offset: float,
Used to compute the distance of the label from the axis
kwargs:
Any kwargs to pass through to matplotlib. |
(module
(function_definition
(function_name_ToDebugString) function_name_ToDebugString
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_text_parts) identifier_text_parts
(list
(string_'Path segment index\tWeight') string_'Path segment index\tWeight'
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_path_segment_index) identifier_path_segment_index
(identifier_weight) identifier_weight
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__weight_per_index) identifier__weight_per_index
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_text_parts) identifier_text_parts
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{0:d}\t\t\t{1:d}') string_'{0:d}\t\t\t{1:d}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_path_segment_index) identifier_path_segment_index
(identifier_weight) identifier_weight
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_text_parts) identifier_text_parts
(identifier_append) identifier_append
)attribute
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_text_parts) identifier_text_parts
(identifier_append) identifier_append
)attribute
(argument_list
(string_'Weight\t\t\tPath segment index(es)') string_'Weight\t\t\tPath segment index(es)'
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_weight) identifier_weight
(identifier_path_segment_indexes) identifier_path_segment_indexes
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__indexes_per_weight) identifier__indexes_per_weight
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_text_parts) identifier_text_parts
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{0:d}\t\t\t{1!s}') string_'{0:d}\t\t\t{1!s}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_weight) identifier_weight
(identifier_path_segment_indexes) identifier_path_segment_indexes
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_text_parts) identifier_text_parts
(identifier_append) identifier_append
)attribute
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_text_parts) identifier_text_parts
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts the path segment weights into a debug string. |
(module
(function_definition
(function_name_has_started) function_name_has_started
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_assessment_offered) identifier_assessment_offered
(call
(attribute
(identifier_self) identifier_self
(identifier_get_assessment_offered) identifier_get_assessment_offered
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_assessment_offered) identifier_assessment_offered
(identifier_has_start_time) identifier_has_start_time
)attribute
(argument_list
)argument_list
)call
(block
(return_statement
(comparison_operator
(call
(attribute
(identifier_DateTime) identifier_DateTime
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_assessment_offered) identifier_assessment_offered
(identifier_get_start_time) identifier_get_start_time
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)return_statement
)block
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Tests if this assessment has begun.
return: (boolean) - ``true`` if the assessment has begun,
``false`` otherwise
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_dict_snake_to_camel_case) function_name_dict_snake_to_camel_case
(parameters
(identifier_snake_dict) identifier_snake_dict
(default_parameter
(identifier_convert_keys) identifier_convert_keys
(True) True
)default_parameter
(default_parameter
(identifier_convert_subkeys) identifier_convert_subkeys
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_converted) identifier_converted
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_snake_dict) identifier_snake_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_new_value) identifier_new_value
(call
(identifier_dict_snake_to_camel_case) identifier_dict_snake_to_camel_case
(argument_list
(identifier_value) identifier_value
(keyword_argument
(identifier_convert_keys) identifier_convert_keys
(identifier_convert_subkeys) identifier_convert_subkeys
)keyword_argument
(keyword_argument
(identifier_convert_subkeys) identifier_convert_subkeys
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_new_value) identifier_new_value
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_subvalue) identifier_subvalue
(identifier_value) identifier_value
(block
(expression_statement
(assignment
(identifier_new_subvalue) identifier_new_subvalue
(conditional_expression
(call
(identifier_dict_snake_to_camel_case) identifier_dict_snake_to_camel_case
(argument_list
(identifier_subvalue) identifier_subvalue
(keyword_argument
(identifier_convert_keys) identifier_convert_keys
(identifier_convert_subkeys) identifier_convert_subkeys
)keyword_argument
(keyword_argument
(identifier_convert_subkeys) identifier_convert_subkeys
(True) True
)keyword_argument
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_subvalue) identifier_subvalue
(identifier_dict) identifier_dict
)argument_list
)call
(identifier_subvalue) identifier_subvalue
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_new_value) identifier_new_value
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_subvalue) identifier_new_subvalue
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_new_value) identifier_new_value
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_new_key) identifier_new_key
(conditional_expression
(call
(identifier_to_camel_case) identifier_to_camel_case
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(identifier_convert_keys) identifier_convert_keys
(identifier_key) identifier_key
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_converted) identifier_converted
(identifier_new_key) identifier_new_key
)subscript
(identifier_new_value) identifier_new_value
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_converted) identifier_converted
)return_statement
)block
)function_definition
)module | Recursively convert a snake_cased dict into a camelCased dict
:param snake_dict: Dictionary to convert
:param convert_keys: Whether the key should be converted
:param convert_subkeys: Whether to also convert the subkeys, in case they are named properties of the dict
:return: |
(module
(function_definition
(function_name_handleSync) function_name_handleSync
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_msg) identifier_msg
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(identifier_Any) identifier_Any
)type
(block
(if_statement
(boolean_operator
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_msg) identifier_msg
(identifier_tuple) identifier_tuple
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
(integer_2) integer_2
)comparison_operator
)boolean_operator
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_msg) identifier_msg
(string_'_field_types') string_'_field_types'
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
(call
(call
(attribute
(identifier_self) identifier_self
(identifier_getFunc) identifier_getFunc
)attribute
(argument_list
(subscript
(identifier_msg) identifier_msg
(integer_0) integer_0
)subscript
)argument_list
)call
(argument_list
(list_splat
(identifier_msg) identifier_msg
)list_splat
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(call
(attribute
(identifier_self) identifier_self
(identifier_getFunc) identifier_getFunc
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Pass the message as an argument to the function defined in `routes`.
If the msg is a tuple, pass the values as multiple arguments to the function.
:param msg: tuple of object and callable |
(module
(function_definition
(function_name_home_slug) function_name_home_slug
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(call
(identifier_get_script_prefix) identifier_get_script_prefix
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_slug) identifier_slug
(call
(identifier_reverse) identifier_reverse
(argument_list
(string_"home") string_"home"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_slug) identifier_slug
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_slug) identifier_slug
(binary_operator
(string_'/') string_'/'
(subscript
(identifier_slug) identifier_slug
(slice
(call
(identifier_len) identifier_len
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(return_statement
(subscript
(attribute
(call
(identifier_resolve) identifier_resolve
(argument_list
(identifier_slug) identifier_slug
)argument_list
)call
(identifier_kwargs) identifier_kwargs
)attribute
(string_"slug") string_"slug"
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(identifier_slug) identifier_slug
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the slug arg defined for the ``home`` urlpattern, which
is the definitive source of the ``url`` field defined for an
editable homepage object. |
(module
(function_definition
(function_name_sky_dist) function_name_sky_dist
(parameters
(identifier_src1) identifier_src1
(identifier_src2) identifier_src2
)parameters
(block
(if_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(identifier_src1) identifier_src1
(identifier_src2) identifier_src2
)comparison_operator
)argument_list
)call
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_gcd) identifier_gcd
(argument_list
(attribute
(identifier_src1) identifier_src1
(identifier_ra) identifier_ra
)attribute
(attribute
(identifier_src1) identifier_src1
(identifier_dec) identifier_dec
)attribute
(attribute
(identifier_src2) identifier_src2
(identifier_ra) identifier_ra
)attribute
(attribute
(identifier_src2) identifier_src2
(identifier_dec) identifier_dec
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Great circle distance between two sources.
A check is made to determine if the two sources are the same object, in this case
the distance is zero.
Parameters
----------
src1, src2 : object
Two sources to check. Objects must have parameters (ra,dec) in degrees.
Returns
-------
distance : float
The distance between the two sources.
See Also
--------
:func:`AegeanTools.angle_tools.gcd` |
(module
(function_definition
(function_name_execute) function_name_execute
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_is_conn_available) identifier_is_conn_available
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_connection) identifier_connection
)attribute
(identifier_lowest_server_version) identifier_lowest_server_version
)attribute
(identifier_SYSINFO_MIN_VERSION) identifier_SYSINFO_MIN_VERSION
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_success) identifier_success
(identifier_rows) identifier_rows
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__sys_info) identifier__sys_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_exit_code) identifier_exit_code
)attribute
(boolean_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_exit_code) identifier_exit_code
)attribute
(call
(identifier_int) identifier_int
(argument_list
(not_operator
(identifier_success) identifier_success
)not_operator
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(identifier_success) identifier_success
(block
(for_statement
(identifier_result) identifier_result
(identifier_rows) identifier_rows
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_pprint) identifier_pprint
)attribute
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_rows) identifier_rows
)attribute
(attribute
(identifier_result) identifier_result
(identifier_cols) identifier_cols
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_"For debugging purposes you can send above listed information to support@crate.io") string_"For debugging purposes you can send above listed information to support@crate.io"
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_tmpl) identifier_tmpl
(string_'Crate {version} does not support the cluster "sysinfo" command') string_'Crate {version} does not support the cluster "sysinfo" command'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_logger) identifier_logger
)attribute
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(identifier_tmpl) identifier_tmpl
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_version) identifier_version
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)attribute
(identifier_connection) identifier_connection
)attribute
(identifier_lowest_server_version) identifier_lowest_server_version
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | print system and cluster info |
(module
(function_definition
(function_name__create_worker) function_name__create_worker
(parameters
(identifier_self) identifier_self
(identifier_worker) identifier_worker
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_worker) identifier_worker
(identifier_sig_started) identifier_sig_started
)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_self) identifier_self
(identifier__workers) identifier__workers
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_worker) identifier_worker
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Common worker setup. |
(module
(function_definition
(function_name_get_token) function_name_get_token
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
(default_parameter
(identifier_headers) identifier_headers
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_configuration) identifier__check_configuration
)attribute
(argument_list
(string_"site") string_"site"
(string_"token_url") string_"token_url"
(string_"redirect_uri") string_"redirect_uri"
(string_"client_id") string_"client_id"
(string_"client_secret") string_"client_secret"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_"%s%s") string_"%s%s"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_site) identifier_site
)attribute
(call
(identifier_quote) identifier_quote
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_token_url) identifier_token_url
)attribute
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'redirect_uri') string_'redirect_uri'
(attribute
(identifier_self) identifier_self
(identifier_redirect_uri) identifier_redirect_uri
)attribute
)pair
(pair
(string_'client_id') string_'client_id'
(attribute
(identifier_self) identifier_self
(identifier_client_id) identifier_client_id
)attribute
)pair
(pair
(string_'client_secret') string_'client_secret'
(attribute
(identifier_self) identifier_self
(identifier_client_secret) identifier_client_secret
)attribute
)pair
(pair
(string_'code') string_'code'
(identifier_code) identifier_code
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__make_request) identifier__make_request
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Requests an access token |
(module
(function_definition
(function_name_calculate_row_format) function_name_calculate_row_format
(parameters
(identifier_columns) identifier_columns
(default_parameter
(identifier_keys) identifier_keys
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_row_format) identifier_row_format
(string_'') string_''
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_keys) identifier_keys
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(call
(attribute
(identifier_columns) identifier_columns
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list_comprehension
(identifier_key) identifier_key
(for_in_clause
(identifier_key) identifier_key
(identifier_keys) identifier_keys
)for_in_clause
(if_clause
(comparison_operator
(identifier_key) identifier_key
(identifier_columns) identifier_columns
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_key) identifier_key
(identifier_keys) identifier_keys
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_row_format) identifier_row_format
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_row_format) identifier_row_format
(string_"|") string_"|"
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_row_format) identifier_row_format
(binary_operator
(string_"%%(%s)-%ds") string_"%%(%s)-%ds"
(tuple
(identifier_key) identifier_key
(subscript
(identifier_columns) identifier_columns
(identifier_key) identifier_key
)subscript
)tuple
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(binary_operator
(binary_operator
(string_'|') string_'|'
(identifier_row_format) identifier_row_format
)binary_operator
(string_'|') string_'|'
)binary_operator
)return_statement
)block
)function_definition
)module | Calculate row format.
Args:
columns (dict): the keys are the column name and the value the max length.
keys (list): optional list of keys to order columns as well as to filter for them.
Returns:
str: format for table row |
(module
(function_definition
(function_name_rms) function_name_rms
(parameters
(identifier_x) identifier_x
)parameters
(block
(try_statement
(block
(return_statement
(binary_operator
(call
(attribute
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(integer_2) integer_2
)binary_operator
)parenthesized_expression
(identifier_mean) identifier_mean
)attribute
(argument_list
)argument_list
)call
(float_0.5) float_0.5
)binary_operator
)return_statement
)block
(except_clause
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(call
(identifier_dropna) identifier_dropna
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_invN) identifier_invN
(binary_operator
(float_1.0) float_1.0
(call
(identifier_len) identifier_len
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(parenthesized_expression
(call
(identifier_sum) identifier_sum
(generator_expression
(binary_operator
(identifier_invN) identifier_invN
(parenthesized_expression
(binary_operator
(identifier_x_i) identifier_x_i
(integer_2) integer_2
)binary_operator
)parenthesized_expression
)binary_operator
(for_in_clause
(identifier_x_i) identifier_x_i
(identifier_x) identifier_x
)for_in_clause
)generator_expression
)call
)parenthesized_expression
(float_.5) float_.5
)binary_operator
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Root Mean Square"
Arguments:
x (seq of float): A sequence of numerical values
Returns:
The square root of the average of the squares of the values
math.sqrt(sum(x_i**2 for x_i in x) / len(x))
or
return (np.array(x) ** 2).mean() ** 0.5
>>> rms([0, 2, 4, 4])
3.0 |
(module
(function_definition
(function_name__repr) function_name__repr
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_vals) identifier_vals
(call
(attribute
(string_", ") string_", "
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(attribute
(string_"{}={!r}") string_"{}={!r}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_obj) identifier_obj
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_name) identifier_name
(attribute
(identifier_obj) identifier_obj
(identifier__attribs) identifier__attribs
)attribute
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(identifier_vals) identifier_vals
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(string_"{}(name={}, {})") string_"{}(name={}, {})"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_obj) identifier_obj
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_obj) identifier_obj
(identifier_name) identifier_name
)attribute
(identifier_vals) identifier_vals
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(string_"{}(name={})") string_"{}(name={})"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_obj) identifier_obj
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_obj) identifier_obj
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_t) identifier_t
)return_statement
)block
)function_definition
)module | Show the received object as precise as possible. |
(module
(function_definition
(function_name_updateMesh) function_name_updateMesh
(parameters
(identifier_self) identifier_self
(identifier_polydata) identifier_polydata
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_poly) identifier_poly
)attribute
(identifier_polydata) identifier_polydata
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapper) identifier_mapper
)attribute
(identifier_SetInputData) identifier_SetInputData
)attribute
(argument_list
(identifier_polydata) identifier_polydata
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapper) identifier_mapper
)attribute
(identifier_Modified) identifier_Modified
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Overwrite the polygonal mesh of the actor with a new one. |
(module
(function_definition
(function_name_seek) function_name_seek
(parameters
(identifier_self) identifier_self
(identifier_offset) identifier_offset
(default_parameter
(identifier_whence) identifier_whence
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_mode) identifier_mode
(string_'rw') string_'rw'
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_st) identifier_st
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sndfile) identifier__sndfile
)attribute
(identifier_seek) identifier_seek
)attribute
(argument_list
(identifier_offset) identifier_offset
(identifier_whence) identifier_whence
(identifier_mode) identifier_mode
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(identifier_e) identifier_e
(block
(raise_statement
(call
(identifier_PyaudioIOError) identifier_PyaudioIOError
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_st) identifier_st
)return_statement
)block
)function_definition
)module | similar to python seek function, taking only in account audio data.
:Parameters:
offset : int
the number of frames (eg two samples for stereo files) to move
relatively to position set by whence.
whence : int
only 0 (beginning), 1 (current) and 2 (end of the file) are
valid.
mode : string
If set to 'rw', both read and write pointers are updated. If
'r' is given, only read pointer is updated, if 'w', only the
write one is (this may of course make sense only if you open
the file in a certain mode).
Notes
-----
- one only takes into accound audio data.
- if an invalid seek is given (beyond or before the file), a
PyaudioIOError is launched. |
(module
(function_definition
(function_name_set_acl) function_name_set_acl
(parameters
(identifier_self) identifier_self
(identifier_role) identifier_role
(identifier_users) identifier_users
)parameters
(block
(expression_statement
(assignment
(identifier_acl_updates) identifier_acl_updates
(list_comprehension
(dictionary
(pair
(string_"user") string_"user"
(identifier_user) identifier_user
)pair
(pair
(string_"role") string_"role"
(identifier_role) identifier_role
)pair
)dictionary
(for_in_clause
(identifier_user) identifier_user
(identifier_users) identifier_users
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_fapi) identifier_fapi
(identifier_update_repository_method_acl) identifier_update_repository_method_acl
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_namespace) identifier_namespace
)attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_snapshot_id) identifier_snapshot_id
)attribute
(identifier_acl_updates) identifier_acl_updates
(attribute
(identifier_self) identifier_self
(identifier_api_url) identifier_api_url
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fapi) identifier_fapi
(identifier__check_response_code) identifier__check_response_code
)attribute
(argument_list
(identifier_r) identifier_r
(integer_200) integer_200
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set permissions for this method.
Args:
role (str): Access level
one of {one of "OWNER", "READER", "WRITER", "NO ACCESS"}
users (list(str)): List of users to give role to |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
(identifier_self) identifier_self
(identifier_list_article_candidates) identifier_list_article_candidates
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_article_candidate) identifier_article_candidate
(identifier_list_article_candidates) identifier_list_article_candidates
(block
(expression_statement
(assignment
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_title) identifier_title
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cleaning) identifier_do_cleaning
)attribute
(argument_list
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_title) identifier_title
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_description) identifier_description
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cleaning) identifier_do_cleaning
)attribute
(argument_list
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_description) identifier_description
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_text) identifier_text
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cleaning) identifier_do_cleaning
)attribute
(argument_list
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_topimage) identifier_topimage
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cleaning) identifier_do_cleaning
)attribute
(argument_list
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_topimage) identifier_topimage
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_author) identifier_author
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cleaning) identifier_do_cleaning
)attribute
(argument_list
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_author) identifier_author
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_publish_date) identifier_publish_date
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cleaning) identifier_do_cleaning
)attribute
(argument_list
(attribute
(identifier_article_candidate) identifier_article_candidate
(identifier_publish_date) identifier_publish_date
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_article_candidate) identifier_article_candidate
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Iterates over each article_candidate and cleans every extracted data.
:param list_article_candidates: A list, the list of ArticleCandidate-Objects which have been extracted
:return: A list, the list with the cleaned ArticleCandidate-Objects |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_ctx) identifier_ctx
(identifier_componentname) identifier_componentname
)parameters
(block
(expression_statement
(assignment
(identifier_col) identifier_col
(subscript
(attribute
(identifier_ctx) identifier_ctx
(identifier_obj) identifier_obj
)attribute
(string_'col') string_'col'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_col) identifier_col
(identifier_count) identifier_count
)attribute
(argument_list
(dictionary
(pair
(string_'name') string_'name'
(identifier_componentname) identifier_componentname
)pair
)dictionary
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(identifier_log) identifier_log
(argument_list
(concatenated_string
(string_'More than one component configuration of this name! Try ') string_'More than one component configuration of this name! Try '
(string_'one of the uuids as argument. Get a list with "config ') string_'one of the uuids as argument. Get a list with "config '
(string_'list"') string_'list"'
)concatenated_string
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(identifier_log) identifier_log
(argument_list
(string_'Deleting component configuration') string_'Deleting component configuration'
(identifier_componentname) identifier_componentname
(keyword_argument
(identifier_emitter) identifier_emitter
(string_'MANAGE') string_'MANAGE'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_configuration) identifier_configuration
(call
(attribute
(identifier_col) identifier_col
(identifier_find_one) identifier_find_one
)attribute
(argument_list
(dictionary
(pair
(string_'name') string_'name'
(identifier_componentname) identifier_componentname
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_configuration) identifier_configuration
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_configuration) identifier_configuration
(call
(attribute
(identifier_col) identifier_col
(identifier_find_one) identifier_find_one
)attribute
(argument_list
(dictionary
(pair
(string_'uuid') string_'uuid'
(identifier_componentname) identifier_componentname
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_configuration) identifier_configuration
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_log) identifier_log
(argument_list
(string_'Component configuration not found:') string_'Component configuration not found:'
(identifier_componentname) identifier_componentname
(keyword_argument
(identifier_emitter) identifier_emitter
(string_'MANAGE') string_'MANAGE'
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_configuration) identifier_configuration
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_log) identifier_log
(argument_list
(string_'Done') string_'Done'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete an existing component configuration. This will trigger
the creation of its default configuration upon next restart. |
(module
(function_definition
(function_name_alterar) function_name_alterar
(parameters
(identifier_self) identifier_self
(identifier_id_interface) identifier_id_interface
(identifier_nome) identifier_nome
(identifier_protegida) identifier_protegida
(identifier_descricao) identifier_descricao
(identifier_id_ligacao_front) identifier_id_ligacao_front
(identifier_id_ligacao_back) identifier_id_ligacao_back
(default_parameter
(identifier_tipo) identifier_tipo
(None) None
)default_parameter
(default_parameter
(identifier_vlan) identifier_vlan
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_valid_int_param) identifier_is_valid_int_param
(argument_list
(identifier_id_interface) identifier_id_interface
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_InvalidParameterError) identifier_InvalidParameterError
(argument_list
(string_u'Interface id is invalid or was not informed.') string_u'Interface id is invalid or was not informed.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(string_'interface/') string_'interface/'
(call
(identifier_str) identifier_str
(argument_list
(identifier_id_interface) identifier_id_interface
)argument_list
)call
)binary_operator
(string_'/') string_'/'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_interface_map) identifier_interface_map
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'nome') string_'nome'
)subscript
(identifier_nome) identifier_nome
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'protegida') string_'protegida'
)subscript
(identifier_protegida) identifier_protegida
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'descricao') string_'descricao'
)subscript
(identifier_descricao) identifier_descricao
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'id_ligacao_front') string_'id_ligacao_front'
)subscript
(identifier_id_ligacao_front) identifier_id_ligacao_front
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'id_ligacao_back') string_'id_ligacao_back'
)subscript
(identifier_id_ligacao_back) identifier_id_ligacao_back
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'tipo') string_'tipo'
)subscript
(identifier_tipo) identifier_tipo
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_interface_map) identifier_interface_map
(string_'vlan') string_'vlan'
)subscript
(identifier_vlan) identifier_vlan
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_submit) identifier_submit
)attribute
(argument_list
(dictionary
(pair
(string_'interface') string_'interface'
(identifier_interface_map) identifier_interface_map
)pair
)dictionary
(string_'PUT') string_'PUT'
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(argument_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)argument_list
)call
)return_statement
)block
)function_definition
)module | Edit an interface by its identifier.
Equipment identifier is not changed.
:param nome: Interface name.
:param protegida: Indication of protected ('0' or '1').
:param descricao: Interface description.
:param id_ligacao_front: Front end link interface identifier.
:param id_ligacao_back: Back end link interface identifier.
:param id_interface: Interface identifier.
:return: None
:raise InvalidParameterError: The parameters interface id, nome and protegida are none or invalid.
:raise NomeInterfaceDuplicadoParaEquipamentoError: There is already an interface with this name for this equipment.
:raise InterfaceNaoExisteError: Front link interface and/or back link interface doesn't exist.
:raise DataBaseError: Networkapi failed to access the database.
:raise XMLError: Networkapi failed to generate the XML response. |
(module
(function_definition
(function_name_float) function_name_float
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(default_parameter
(identifier_description) identifier_description
(None) None
)default_parameter
(default_parameter
(identifier_unit) identifier_unit
(string_'') string_''
)default_parameter
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
(default_parameter
(identifier_initial_status) identifier_initial_status
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_FLOAT) identifier_FLOAT
)attribute
(identifier_name) identifier_name
(identifier_description) identifier_description
(identifier_unit) identifier_unit
(identifier_params) identifier_params
(identifier_default) identifier_default
(identifier_initial_status) identifier_initial_status
)argument_list
)call
)return_statement
)block
)function_definition
)module | Instantiate a new float sensor object.
Parameters
----------
name : str
The name of the sensor.
description : str
A short description of the sensor.
units : str
The units of the sensor value. May be the empty string
if there are no applicable units.
params : list
[min, max] -- miniumum and maximum values of the sensor
default : float
An initial value for the sensor. Defaults to 0.0.
initial_status : int enum or None
An initial status for the sensor. If None, defaults to
Sensor.UNKNOWN. `initial_status` must be one of the keys in
Sensor.STATUSES |
(module
(function_definition
(function_name_norm) function_name_norm
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_encoding) identifier_encoding
(string_"latin1") string_"latin1"
)default_parameter
)parameters
(block
(expression_statement
(string_"Convertir acentos codificados en ISO 8859-1 u otro, a ASCII regular") string_"Convertir acentos codificados en ISO 8859-1 u otro, a ASCII regular"
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_basestring) identifier_basestring
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(attribute
(identifier_x) identifier_x
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_encoding) identifier_encoding
(string_'ignore') string_'ignore'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_unicodedata) identifier_unicodedata
(identifier_normalize) identifier_normalize
)attribute
(argument_list
(string_'NFKD') string_'NFKD'
(identifier_x) identifier_x
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ASCII') string_'ASCII'
(string_'ignore') string_'ignore'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convertir acentos codificados en ISO 8859-1 u otro, a ASCII regular |
(module
(function_definition
(function_name_fetchExternalUpdates) function_name_fetchExternalUpdates
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_seeds) identifier_seeds
(call
(attribute
(identifier_seeder) identifier_seeder
(identifier_fetchDynamicProperties) identifier_fetchDynamicProperties
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_buildSpec) identifier_buildSpec
)attribute
(string_'target') string_'target'
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_buildSpec) identifier_buildSpec
)attribute
(string_'encoding') string_'encoding'
)subscript
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_config) identifier_config
(attribute
(identifier_self) identifier_self
(identifier_configs) identifier_configs
)attribute
(block
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_seedUI) identifier_seedUI
)attribute
(argument_list
(identifier_seeds) identifier_seeds
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | !Experimental!
Calls out to the client code requesting seed values to use in the UI
!Experimental! |
(module
(function_definition
(function_name__get_ids_from_hostname) function_name__get_ids_from_hostname
(parameters
(identifier_self) identifier_self
(identifier_hostname) identifier_hostname
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(identifier_self) identifier_self
(identifier_list_instances) identifier_list_instances
)attribute
(argument_list
(keyword_argument
(identifier_hostname) identifier_hostname
(identifier_hostname) identifier_hostname
)keyword_argument
(keyword_argument
(identifier_mask) identifier_mask
(string_"id") string_"id"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(subscript
(identifier_result) identifier_result
(string_'id') string_'id'
)subscript
(for_in_clause
(identifier_result) identifier_result
(identifier_results) identifier_results
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | List VS ids which match the given hostname. |
(module
(function_definition
(function_name_request_args) function_name_request_args
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_match_info) identifier_match_info
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_query) identifier_query
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_kwargs) identifier_kwargs
)return_statement
)block
)function_definition
)module | Returns the arguments passed with the request in a dictionary.
Returns both URL resolved arguments and query string arguments. |
(module
(function_definition
(function_name_iter_pages_builds) function_name_iter_pages_builds
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_number) identifier_number
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_etag) identifier_etag
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__build_url) identifier__build_url
)attribute
(argument_list
(string_'pages') string_'pages'
(string_'builds') string_'builds'
(keyword_argument
(identifier_base_url) identifier_base_url
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__iter) identifier__iter
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_number) identifier_number
)argument_list
)call
(identifier_url) identifier_url
(identifier_PagesBuild) identifier_PagesBuild
(keyword_argument
(identifier_etag) identifier_etag
(identifier_etag) identifier_etag
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Iterate over pages builds of this repository.
:returns: generator of :class:`PagesBuild
<github3.repos.pages.PagesBuild>` |
(module
(function_definition
(function_name_regret) function_name_regret
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(call
(identifier_sum) identifier_sum
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pulls) identifier_pulls
)attribute
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_max) identifier_max
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_nan_to_num) identifier_nan_to_num
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_wins) identifier_wins
)attribute
(attribute
(identifier_self) identifier_self
(identifier_pulls) identifier_pulls
)attribute
)binary_operator
)argument_list
)call
)argument_list
)call
)binary_operator
(call
(identifier_sum) identifier_sum
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_wins) identifier_wins
)attribute
)argument_list
)call
)binary_operator
)parenthesized_expression
(call
(identifier_sum) identifier_sum
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pulls) identifier_pulls
)attribute
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Calculate expected regret, where expected regret is
maximum optimal reward - sum of collected rewards, i.e.
expected regret = T*max_k(mean_k) - sum_(t=1-->T) (reward_t)
Returns
-------
float |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_ui) identifier_ui
(identifier_repo) identifier_repo
(identifier_clname) identifier_clname
(dictionary_splat_pattern
(identifier_opts) identifier_opts
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_codereview_disabled) identifier_codereview_disabled
(block
(raise_statement
(call
(attribute
(identifier_hg_util) identifier_hg_util
(identifier_Abort) identifier_Abort
)attribute
(argument_list
(identifier_codereview_disabled) identifier_codereview_disabled
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_cl) identifier_cl
(identifier_vers) identifier_vers
(identifier_patch) identifier_patch
(identifier_err) identifier_err
)pattern_list
(call
(identifier_DownloadCL) identifier_DownloadCL
(argument_list
(identifier_ui) identifier_ui
(identifier_repo) identifier_repo
(identifier_clname) identifier_clname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_err) identifier_err
(string_"") string_""
)comparison_operator
(block
(return_statement
(identifier_err) identifier_err
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_ui) identifier_ui
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_cl) identifier_cl
(identifier_EditorText) identifier_EditorText
)attribute
(argument_list
)argument_list
)call
(string_"\n") string_"\n"
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ui) identifier_ui
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(identifier_patch) identifier_patch
(string_"\n") string_"\n"
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | download a change from the code review server
Download prints a description of the given change list
followed by its diff, downloaded from the code review server. |
(module
(function_definition
(function_name_respond) function_name_respond
(parameters
(identifier_request) identifier_request
(identifier_code) identifier_code
)parameters
(block
(expression_statement
(assignment
(identifier_redirect) identifier_redirect
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'next') string_'next'
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'next') string_'next'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_redirect) identifier_redirect
(block
(return_statement
(call
(identifier_HttpResponseRedirect) identifier_HttpResponseRedirect
(argument_list
(identifier_redirect) identifier_redirect
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(call
(identifier_type) identifier_type
(argument_list
(binary_operator
(string_'Response%d') string_'Response%d'
(identifier_code) identifier_code
)binary_operator
(tuple
(identifier_HttpResponse) identifier_HttpResponse
)tuple
(dictionary
(pair
(string_'status_code') string_'status_code'
(identifier_code) identifier_code
)pair
)dictionary
)argument_list
)call
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Responds to the request with the given response code.
If ``next`` is in the form, it will redirect instead. |
(module
(function_definition
(function_name_write_csv) function_name_write_csv
(parameters
(identifier_data) identifier_data
(identifier_file_name) identifier_file_name
(default_parameter
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_name_extension) identifier_name_extension
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_root) identifier_root
(identifier_ext) identifier_ext
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_file_name) identifier_file_name
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_sheet) identifier_sheet
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_fname) identifier_fname
(conditional_expression
(identifier_file_name) identifier_file_name
(not_operator
(identifier_name_extension) identifier_name_extension
)not_operator
(binary_operator
(binary_operator
(binary_operator
(identifier_root) identifier_root
(string_"_") string_"_"
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
(identifier_ext) identifier_ext
)binary_operator
)conditional_expression
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_fname) identifier_fname
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_date_file) identifier_date_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_csv_file) identifier_csv_file
(call
(attribute
(identifier_csv) identifier_csv
(identifier_writer) identifier_writer
)attribute
(argument_list
(identifier_date_file) identifier_date_file
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_sheet) identifier_sheet
(block
(expression_statement
(call
(attribute
(identifier_csv_file) identifier_csv_file
(identifier_writerow) identifier_writerow
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)for_statement
)block
)function_definition
)module | Writes out to csv format.
Args:
data: 2D list of tables/worksheets.
file_name: Name of the output file. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_obj_id) identifier_obj_id
(default_parameter
(identifier_is_public) identifier_is_public
(identifier_NotUpdated) identifier_NotUpdated
)default_parameter
(default_parameter
(identifier_is_protected) identifier_is_protected
(identifier_NotUpdated) identifier_NotUpdated
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__copy_if_updated) identifier__copy_if_updated
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_is_public) identifier_is_public
(identifier_is_public) identifier_is_public
)keyword_argument
(keyword_argument
(identifier_is_protected) identifier_is_protected
(identifier_is_protected) identifier_is_protected
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__patch) identifier__patch
)attribute
(argument_list
(binary_operator
(string_'/job-executions/%s') string_'/job-executions/%s'
(identifier_obj_id) identifier_obj_id
)binary_operator
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update a Job Execution. |
(module
(function_definition
(function_name_get_attribute_option) function_name_get_attribute_option
(parameters
(identifier_self) identifier_self
(identifier_attribute) identifier_attribute
(identifier_option_name) identifier_option_name
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___validate_attribute_option_name) identifier___validate_attribute_option_name
)attribute
(argument_list
(identifier_option_name) identifier_option_name
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_attribute_key) identifier_attribute_key
(call
(attribute
(identifier_self) identifier_self
(identifier___make_key) identifier___make_key
)attribute
(argument_list
(identifier_attribute) identifier_attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier___attribute_options) identifier___attribute_options
)attribute
(identifier_attribute_key) identifier_attribute_key
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_option_name) identifier_option_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the value of the given attribute option for the specified
attribute. |
(module
(function_definition
(function_name_write_file) function_name_write_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_distance) identifier_distance
(integer_6) integer_6
)default_parameter
(default_parameter
(identifier_velocity) identifier_velocity
(integer_8) integer_8
)default_parameter
(default_parameter
(identifier_charge) identifier_charge
(integer_3) integer_3
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_"w") string_"w"
)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_get_string) identifier_get_string
)attribute
(argument_list
(keyword_argument
(identifier_distance) identifier_distance
(identifier_distance) identifier_distance
)keyword_argument
(keyword_argument
(identifier_velocity) identifier_velocity
(identifier_velocity) identifier_velocity
)keyword_argument
(keyword_argument
(identifier_charge) identifier_charge
(identifier_charge) identifier_charge
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Writes LammpsData to file.
Args:
filename (str): Filename.
distance (int): No. of significant figures to output for
box settings (bounds and tilt) and atomic coordinates.
Default to 6.
velocity (int): No. of significant figures to output for
velocities. Default to 8.
charge (int): No. of significant figures to output for
charges. Default to 3. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(string_'Uses curses to print in the fanciest way possible.') string_'Uses curses to print in the fanciest way possible.'
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_no_color) identifier_no_color
)attribute
)not_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_self) identifier_self
(identifier_colorize_text) identifier_colorize_text
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_'\<\<[A-Z]*?\>\>') string_'\<\<[A-Z]*?\>\>'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_pattern) identifier_pattern
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'') string_''
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(augmented_assignment
(identifier_text) identifier_text
(string_'\n') string_'\n'
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_buffer) identifier_buffer
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Uses curses to print in the fanciest way possible. |
(module
(function_definition
(function_name__jws_header) function_name__jws_header
(parameters
(identifier_keyid) identifier_keyid
(identifier_algorithm) identifier_algorithm
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'typ') string_'typ'
(string_'JWT') string_'JWT'
)pair
(pair
(string_'alg') string_'alg'
(attribute
(identifier_algorithm) identifier_algorithm
(identifier_name) identifier_name
)attribute
)pair
(pair
(string_'kid') string_'kid'
(identifier_keyid) identifier_keyid
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_datajson) identifier_datajson
(call
(attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_sort_keys) identifier_sort_keys
(True) True
)keyword_argument
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf8') string_'utf8'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_base64url_encode) identifier_base64url_encode
(argument_list
(identifier_datajson) identifier_datajson
)argument_list
)call
)return_statement
)block
)function_definition
)module | Produce a base64-encoded JWS header. |
(module
(function_definition
(function_name__parse_reassign_label) function_name__parse_reassign_label
(parameters
(identifier_cls) identifier_cls
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_argparser) identifier_argparser
(call
(identifier_ArgumentParser) identifier_ArgumentParser
(argument_list
(keyword_argument
(identifier_prog) identifier_prog
(string_"cluster reassign_label") string_"cluster reassign_label"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_argparser) identifier_argparser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"destination_cluster") string_"destination_cluster"
(keyword_argument
(identifier_metavar) identifier_metavar
(string_"destination_cluster_id_label") string_"destination_cluster_id_label"
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_"id/label of the cluster to move the label to") string_"id/label of the cluster to move the label to"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_argparser) identifier_argparser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"label") string_"label"
(keyword_argument
(identifier_help) identifier_help
(string_"label to be moved from the source cluster") string_"label to be moved from the source cluster"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(call
(attribute
(identifier_argparser) identifier_argparser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_arguments) identifier_arguments
)return_statement
)block
)function_definition
)module | Parse command line arguments for reassigning label. |
(module
(function_definition
(function_name_get_summary_page_link) function_name_get_summary_page_link
(parameters
(identifier_ifo) identifier_ifo
(identifier_utc_time) identifier_utc_time
)parameters
(block
(expression_statement
(assignment
(identifier_search_form) identifier_search_form
(identifier_search_form_string) identifier_search_form_string
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'H1') string_'H1'
(identifier_data_h1_string) identifier_data_h1_string
)pair
(pair
(string_'L1') string_'L1'
(identifier_data_l1_string) identifier_data_l1_string
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ifo) identifier_ifo
(identifier_data) identifier_data
)comparison_operator
(block
(return_statement
(identifier_ifo) identifier_ifo
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_alog_utc) identifier_alog_utc
(binary_operator
(string_'%02d-%02d-%4d') string_'%02d-%02d-%4d'
(tuple
(subscript
(identifier_utc_time) identifier_utc_time
(integer_2) integer_2
)subscript
(subscript
(identifier_utc_time) identifier_utc_time
(integer_1) integer_1
)subscript
(subscript
(identifier_utc_time) identifier_utc_time
(integer_0) integer_0
)subscript
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ext) identifier_ext
(binary_operator
(string_'%4d%02d%02d') string_'%4d%02d%02d'
(tuple
(subscript
(identifier_utc_time) identifier_utc_time
(integer_0) integer_0
)subscript
(subscript
(identifier_utc_time) identifier_utc_time
(integer_1) integer_1
)subscript
(subscript
(identifier_utc_time) identifier_utc_time
(integer_2) integer_2
)subscript
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_return_string) identifier_return_string
(binary_operator
(identifier_search_form) identifier_search_form
(tuple
(call
(attribute
(identifier_ifo) identifier_ifo
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_ifo) identifier_ifo
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_alog_utc) identifier_alog_utc
(identifier_alog_utc) identifier_alog_utc
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_return_string) identifier_return_string
(binary_operator
(subscript
(identifier_data) identifier_data
(identifier_ifo) identifier_ifo
)subscript
(identifier_ext) identifier_ext
)binary_operator
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a string that links to the summary page and aLOG for this ifo
Parameters
----------
ifo : string
The detector name
utc_time : sequence
First three elements must be strings giving year, month, day resp.
Returns
-------
return_string : string
String containing HTML for links to summary page and aLOG search |
(module
(function_definition
(function_name_postorder) function_name_postorder
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_skip_seed) identifier_skip_seed
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_node) identifier_node
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tree) identifier__tree
)attribute
(identifier_postorder_node_iter) identifier_postorder_node_iter
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(identifier_skip_seed) identifier_skip_seed
(comparison_operator
(identifier_node) identifier_node
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tree) identifier__tree
)attribute
(identifier_seed_node) identifier_seed_node
)attribute
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(yield
(identifier_node) identifier_node
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Return a generator that yields the nodes of the tree in postorder.
If skip_seed=True then the root node is not included. |
(module
(function_definition
(function_name_inserir) function_name_inserir
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_brand_map) identifier_brand_map
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_brand_map) identifier_brand_map
(string_'name') string_'name'
)subscript
(identifier_name) identifier_name
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_submit) identifier_submit
)attribute
(argument_list
(dictionary
(pair
(string_'brand') string_'brand'
(identifier_brand_map) identifier_brand_map
)pair
)dictionary
(string_'POST') string_'POST'
(string_'brand/') string_'brand/'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(argument_list
(identifier_code) identifier_code
(identifier_xml) identifier_xml
)argument_list
)call
)return_statement
)block
)function_definition
)module | Inserts a new Brand and returns its identifier
:param name: Brand name. String with a minimum 3 and maximum of 100 characters
:return: Dictionary with the following structure:
::
{'marca': {'id': < id_brand >}}
:raise InvalidParameterError: Name is null and invalid.
:raise NomeMarcaDuplicadoError: There is already a registered Brand with the value of name.
:raise DataBaseError: Networkapi failed to access the database.
:raise XMLError: Networkapi failed to generate the XML response. |
(module
(function_definition
(function_name_make_retrigger_request) function_name_make_retrigger_request
(parameters
(identifier_repo_name) identifier_repo_name
(identifier_request_id) identifier_request_id
(identifier_auth) identifier_auth
(default_parameter
(identifier_count) identifier_count
(identifier_DEFAULT_COUNT_NUM) identifier_DEFAULT_COUNT_NUM
)default_parameter
(default_parameter
(identifier_priority) identifier_priority
(identifier_DEFAULT_PRIORITY) identifier_DEFAULT_PRIORITY
)default_parameter
(default_parameter
(identifier_dry_run) identifier_dry_run
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'{}/{}/request') string_'{}/{}/request'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_SELF_SERVE) identifier_SELF_SERVE
(identifier_repo_name) identifier_repo_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'request_id') string_'request_id'
(identifier_request_id) identifier_request_id
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_count) identifier_count
(identifier_DEFAULT_COUNT_NUM) identifier_DEFAULT_COUNT_NUM
)comparison_operator
(comparison_operator
(identifier_priority) identifier_priority
(identifier_DEFAULT_PRIORITY) identifier_DEFAULT_PRIORITY
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_payload) identifier_payload
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'count') string_'count'
(identifier_count) identifier_count
)pair
(pair
(string_'priority') string_'priority'
(identifier_priority) identifier_priority
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_dry_run) identifier_dry_run
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'We would make a POST request to %s with the payload: %s') string_'We would make a POST request to %s with the payload: %s'
(tuple
(identifier_url) identifier_url
(call
(identifier_str) identifier_str
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"We're going to re-trigger an existing completed job with request_id: %s %i time(s).") string_"We're going to re-trigger an existing completed job with request_id: %s %i time(s)."
(tuple
(identifier_request_id) identifier_request_id
(identifier_count) identifier_count
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Accept') string_'Accept'
(string_'application/json') string_'application/json'
)pair
)dictionary
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_payload) identifier_payload
)keyword_argument
(keyword_argument
(identifier_auth) identifier_auth
(identifier_auth) identifier_auth
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_TCP_TIMEOUT) identifier_TCP_TIMEOUT
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_req) identifier_req
)return_statement
)block
)function_definition
)module | Retrigger a request using buildapi self-serve. Returns a request.
Buildapi documentation:
POST /self-serve/{branch}/request
Rebuild `request_id`, which must be passed in as a POST parameter.
`priority` and `count` are also accepted as optional
parameters. `count` defaults to 1, and represents the number
of times this build will be rebuilt. |
(module
(function_definition
(function_name_do_hdr) function_name_do_hdr
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
(identifier_hdrs_usr) identifier_hdrs_usr
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_hdr_ex) identifier_hdr_ex
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init_hdr) identifier__init_hdr
)attribute
(argument_list
(identifier_line) identifier_line
(identifier_hdrs_usr) identifier_hdrs_usr
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_hdr_ex) identifier_hdr_ex
)attribute
(identifier_line) identifier_line
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__init_hdr) identifier__init_hdr
)attribute
(argument_list
(identifier_line) identifier_line
(identifier_hdrs_usr) identifier_hdrs_usr
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Initialize self.h2i. |
(module
(function_definition
(function_name_trim) function_name_trim
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_iteritems) identifier_iteritems
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_counters) identifier_counters
)attribute
)argument_list
)call
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_empty) identifier_empty
)attribute
(argument_list
)argument_list
)call
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_counters) identifier_counters
)attribute
(identifier_key) identifier_key
)subscript
)delete_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Clear not used counters |
(module
(function_definition
(function_name__onClassAttribute) function_name__onClassAttribute
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_line) identifier_line
(identifier_pos) identifier_pos
(identifier_absPosition) identifier_absPosition
(identifier_level) identifier_level
)parameters
(block
(expression_statement
(assignment
(identifier_attributes) identifier_attributes
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_objectsStack) identifier_objectsStack
)attribute
(identifier_level) identifier_level
)subscript
(identifier_classAttributes) identifier_classAttributes
)attribute
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_attributes) identifier_attributes
(block
(if_statement
(comparison_operator
(attribute
(identifier_item) identifier_item
(identifier_name) identifier_name
)attribute
(identifier_name) identifier_name
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_attributes) identifier_attributes
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_ClassAttribute) identifier_ClassAttribute
(argument_list
(identifier_name) identifier_name
(identifier_line) identifier_line
(identifier_pos) identifier_pos
(identifier_absPosition) identifier_absPosition
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Memorizes a class attribute |
(module
(function_definition
(function_name_make_filter) function_name_make_filter
(parameters
(identifier_self) identifier_self
(identifier_fieldname) identifier_fieldname
(identifier_query_func) identifier_query_func
(identifier_expct_value) identifier_expct_value
)parameters
(block
(function_definition
(function_name_actual_filter) function_name_actual_filter
(parameters
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_item) identifier_item
(identifier_fieldname) identifier_fieldname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_query_func) identifier_query_func
(identifier_NULL_AFFECTED_FILTERS) identifier_NULL_AFFECTED_FILTERS
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'eq') string_'eq'
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_expct_value) identifier_expct_value
)comparison_operator
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'ne') string_'ne'
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_expct_value) identifier_expct_value
)comparison_operator
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'lt') string_'lt'
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_expct_value) identifier_expct_value
)comparison_operator
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'lte') string_'lte'
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_expct_value) identifier_expct_value
)comparison_operator
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'gt') string_'gt'
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_expct_value) identifier_expct_value
)comparison_operator
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'gte') string_'gte'
)comparison_operator
(block
(return_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_expct_value) identifier_expct_value
)comparison_operator
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'startswith') string_'startswith'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_expct_value) identifier_expct_value
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_query_func) identifier_query_func
(string_'endswith') string_'endswith'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(identifier_expct_value) identifier_expct_value
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
(expression_statement
(assignment
(attribute
(identifier_actual_filter) identifier_actual_filter
(identifier___doc__) identifier___doc__
)attribute
(call
(attribute
(string_'{} {} {}') string_'{} {} {}'
(identifier_format) identifier_format
)attribute
(argument_list
(string_'val') string_'val'
(identifier_query_func) identifier_query_func
(identifier_expct_value) identifier_expct_value
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_actual_filter) identifier_actual_filter
)return_statement
)block
)function_definition
)module | makes a filter that will be appliead to an object's property based
on query_func |
(module
(function_definition
(function_name_create_assignment_group) function_name_create_assignment_group
(parameters
(identifier_self) identifier_self
(identifier_course_id) identifier_course_id
(default_parameter
(identifier_group_weight) identifier_group_weight
(None) None
)default_parameter
(default_parameter
(identifier_integration_data) identifier_integration_data
(None) None
)default_parameter
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_position) identifier_position
(None) None
)default_parameter
(default_parameter
(identifier_rules) identifier_rules
(None) None
)default_parameter
(default_parameter
(identifier_sis_source_id) identifier_sis_source_id
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_path) identifier_path
(string_"course_id") string_"course_id"
)subscript
(identifier_course_id) identifier_course_id
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"name") string_"name"
)subscript
(identifier_name) identifier_name
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_position) identifier_position
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"position") string_"position"
)subscript
(identifier_position) identifier_position
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_group_weight) identifier_group_weight
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"group_weight") string_"group_weight"
)subscript
(identifier_group_weight) identifier_group_weight
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_sis_source_id) identifier_sis_source_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"sis_source_id") string_"sis_source_id"
)subscript
(identifier_sis_source_id) identifier_sis_source_id
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_integration_data) identifier_integration_data
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"integration_data") string_"integration_data"
)subscript
(identifier_integration_data) identifier_integration_data
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_rules) identifier_rules
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"rules") string_"rules"
)subscript
(identifier_rules) identifier_rules
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"POST /api/v1/courses/{course_id}/assignment_groups with query params: {params} and form data: {data}") string_"POST /api/v1/courses/{course_id}/assignment_groups with query params: {params} and form data: {data}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(dictionary_splat
(identifier_path) identifier_path
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_generic_request) identifier_generic_request
)attribute
(argument_list
(string_"POST") string_"POST"
(call
(attribute
(string_"/api/v1/courses/{course_id}/assignment_groups") string_"/api/v1/courses/{course_id}/assignment_groups"
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_path) identifier_path
)dictionary_splat
)argument_list
)call
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_single_item) identifier_single_item
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create an Assignment Group.
Create a new assignment group for this course. |
(module
(function_definition
(function_name_unpack) function_name_unpack
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_ciphertext) identifier_ciphertext
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
)parameters
(type
(tuple
(identifier_str) identifier_str
(identifier_str) identifier_str
(identifier_str) identifier_str
)tuple
)type
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Wallet.unpack >>> ciphertext: %s') string_'Wallet.unpack >>> ciphertext: %s'
(identifier_ciphertext) identifier_ciphertext
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_ciphertext) identifier_ciphertext
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Wallet.pack <!< No ciphertext to unpack') string_'Wallet.pack <!< No ciphertext to unpack'
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_AbsentMessage) identifier_AbsentMessage
(argument_list
(string_'No ciphertext to unpack') string_'No ciphertext to unpack'
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_unpacked) identifier_unpacked
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(await
(call
(attribute
(identifier_crypto) identifier_crypto
(identifier_unpack_message) identifier_unpack_message
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)attribute
(identifier_ciphertext) identifier_ciphertext
)argument_list
)call
)await
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_IndyError) identifier_IndyError
(as_pattern_target
(identifier_x_indy) identifier_x_indy
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_x_indy) identifier_x_indy
(identifier_error_code) identifier_error_code
)attribute
(attribute
(identifier_ErrorCode) identifier_ErrorCode
(identifier_WalletItemNotFound) identifier_WalletItemNotFound
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Wallet.unpack <!< Wallet %s has no local key to unpack ciphertext') string_'Wallet.unpack <!< Wallet %s has no local key to unpack ciphertext'
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_AbsentRecord) identifier_AbsentRecord
(argument_list
(call
(attribute
(string_'Wallet {} has no local key to unpack ciphertext') string_'Wallet {} has no local key to unpack ciphertext'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Wallet.unpack <!< Wallet %s unpack() raised indy error code {}') string_'Wallet.unpack <!< Wallet %s unpack() raised indy error code {}'
(attribute
(identifier_x_indy) identifier_x_indy
(identifier_error_code) identifier_error_code
)attribute
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_rv) identifier_rv
(tuple
(subscript
(identifier_unpacked) identifier_unpacked
(string_'message') string_'message'
)subscript
(call
(attribute
(identifier_unpacked) identifier_unpacked
(identifier_get) identifier_get
)attribute
(argument_list
(string_'sender_verkey') string_'sender_verkey'
(None) None
)argument_list
)call
(call
(attribute
(identifier_unpacked) identifier_unpacked
(identifier_get) identifier_get
)attribute
(argument_list
(string_'recipient_verkey') string_'recipient_verkey'
(None) None
)argument_list
)call
)tuple
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Wallet.unpack <<< %s') string_'Wallet.unpack <<< %s'
(identifier_rv) identifier_rv
)argument_list
)call
)expression_statement
(return_statement
(identifier_rv) identifier_rv
)return_statement
)block
)function_definition
)module | Unpack a message. Return triple with cleartext, sender verification key, and recipient verification key.
Raise AbsentMessage for missing ciphertext, or WalletState if wallet is closed. Raise AbsentRecord
if wallet has no key to unpack ciphertext.
:param ciphertext: JWE-like formatted message as pack() produces
:return: cleartext, sender verification key, recipient verification key |
(module
(function_definition
(function_name_packet_write) function_name_packet_write
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_bytes_written) identifier_bytes_written
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_sock) identifier_sock
)attribute
(attribute
(identifier_NC) identifier_NC
(identifier_INVALID_SOCKET) identifier_INVALID_SOCKET
)attribute
)comparison_operator
(block
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_NO_CONN) identifier_ERR_NO_CONN
)attribute
(identifier_bytes_written) identifier_bytes_written
)expression_list
)return_statement
)block
)if_statement
(while_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_out_packet) identifier_out_packet
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pkt) identifier_pkt
(subscript
(attribute
(identifier_self) identifier_self
(identifier_out_packet) identifier_out_packet
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_write_length) identifier_write_length
(identifier_status) identifier_status
)pattern_list
(call
(attribute
(identifier_nyamuk_net) identifier_nyamuk_net
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sock) identifier_sock
)attribute
(attribute
(identifier_pkt) identifier_pkt
(identifier_payload) identifier_payload
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_write_length) identifier_write_length
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_pkt) identifier_pkt
(identifier_to_process) identifier_to_process
)attribute
(identifier_write_length) identifier_write_length
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_pkt) identifier_pkt
(identifier_pos) identifier_pos
)attribute
(identifier_write_length) identifier_write_length
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_bytes_written) identifier_bytes_written
(identifier_write_length) identifier_write_length
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_pkt) identifier_pkt
(identifier_to_process) identifier_to_process
)attribute
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_SUCCESS) identifier_ERR_SUCCESS
)attribute
(identifier_bytes_written) identifier_bytes_written
)expression_list
)return_statement
)block
)if_statement
)block
(else_clause
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_status) identifier_status
(attribute
(identifier_errno) identifier_errno
(identifier_EAGAIN) identifier_EAGAIN
)attribute
)comparison_operator
(comparison_operator
(identifier_status) identifier_status
(attribute
(identifier_errno) identifier_errno
(identifier_EWOULDBLOCK) identifier_EWOULDBLOCK
)attribute
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_SUCCESS) identifier_ERR_SUCCESS
)attribute
(identifier_bytes_written) identifier_bytes_written
)expression_list
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_status) identifier_status
(attribute
(identifier_errno) identifier_errno
(identifier_ECONNRESET) identifier_ECONNRESET
)attribute
)comparison_operator
(block
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_CONN_LOST) identifier_ERR_CONN_LOST
)attribute
(identifier_bytes_written) identifier_bytes_written
)expression_list
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_UNKNOWN) identifier_ERR_UNKNOWN
)attribute
(identifier_bytes_written) identifier_bytes_written
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_out_packet) identifier_out_packet
)attribute
(integer_0) integer_0
)subscript
)delete_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_last_msg_out) identifier_last_msg_out
)attribute
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_SUCCESS) identifier_ERR_SUCCESS
)attribute
(identifier_bytes_written) identifier_bytes_written
)expression_list
)return_statement
)block
)function_definition
)module | Write packet to network. |
(module
(function_definition
(function_name_eliminate_sequential_children) function_name_eliminate_sequential_children
(parameters
(identifier_paths) identifier_paths
)parameters
(block
(expression_statement
(string_"helper for infer_columns. removes paths that are direct children of the n-1 or n-2 path") string_"helper for infer_columns. removes paths that are direct children of the n-1 or n-2 path"
)expression_statement
(return_statement
(list_comprehension
(identifier_p) identifier_p
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_p) identifier_p
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_paths) identifier_paths
)argument_list
)call
)for_in_clause
(if_clause
(not_operator
(parenthesized_expression
(boolean_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_i) identifier_i
(integer_0) integer_0
)comparison_operator
(comparison_operator
(subscript
(identifier_paths) identifier_paths
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(subscript
(identifier_p) identifier_p
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)comparison_operator
)boolean_operator
)parenthesized_expression
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_i) identifier_i
(integer_1) integer_1
)comparison_operator
(comparison_operator
(subscript
(identifier_paths) identifier_paths
(binary_operator
(identifier_i) identifier_i
(integer_2) integer_2
)binary_operator
)subscript
(subscript
(identifier_p) identifier_p
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
)not_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | helper for infer_columns. removes paths that are direct children of the n-1 or n-2 path |
(module
(function_definition
(function_name_extract_col_name) function_name_extract_col_name
(parameters
(identifier_string) identifier_string
)parameters
(block
(expression_statement
(assignment
(identifier_prefixes) identifier_prefixes
(list
(string_"presence_pass_") string_"presence_pass_"
(string_"value_pass_") string_"value_pass_"
(string_"type_pass_") string_"type_pass_"
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(call
(attribute
(identifier_string) identifier_string
(identifier_rfind) identifier_rfind
)attribute
(argument_list
(string_"_") string_"_"
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_prefix) identifier_prefix
(identifier_prefixes) identifier_prefixes
(block
(if_statement
(call
(attribute
(identifier_string) identifier_string
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
(block
(return_statement
(expression_list
(subscript
(identifier_prefix) identifier_prefix
(slice
(colon) colon
(unary_operator
(integer_6) integer_6
)unary_operator
)slice
)subscript
(subscript
(identifier_string) identifier_string
(slice
(call
(identifier_len) identifier_len
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
(colon) colon
(identifier_end) identifier_end
)slice
)subscript
)expression_list
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_string) identifier_string
(identifier_string) identifier_string
)expression_list
)return_statement
)block
)function_definition
)module | Take a string and split it.
String will be a format like "presence_pass_azimuth",
where "azimuth" is the MagIC column name and "presence_pass"
is the validation.
Return "presence", "azimuth". |
(module
(function_definition
(function_name_setattr) function_name_setattr
(parameters
(identifier_self) identifier_self
(identifier_req) identifier_req
(identifier_ino) identifier_ino
(identifier_attr) identifier_attr
(identifier_to_set) identifier_to_set
(identifier_fi) identifier_fi
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reply_err) identifier_reply_err
)attribute
(argument_list
(identifier_req) identifier_req
(attribute
(identifier_errno) identifier_errno
(identifier_EROFS) identifier_EROFS
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set file attributes
Valid replies:
reply_attr
reply_err |
(module
(function_definition
(function_name_from_desmond) function_name_from_desmond
(parameters
(identifier_cls) identifier_cls
(identifier_path) identifier_path
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_dms) identifier_dms
(call
(identifier_DesmondDMSFile) identifier_DesmondDMSFile
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'positions') string_'positions'
(call
(attribute
(identifier_dms) identifier_dms
(identifier_getPositions) identifier_getPositions
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(keyword_argument
(identifier_master) identifier_master
(identifier_dms) identifier_dms
)keyword_argument
(keyword_argument
(identifier_topology) identifier_topology
(call
(attribute
(identifier_dms) identifier_dms
(identifier_getTopology) identifier_getTopology
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_positions) identifier_positions
(identifier_pos) identifier_pos
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Loads a topology from a Desmond DMS file located at `path`.
Arguments
---------
path : str
Path to a Desmond DMS file |
(module
(function_definition
(function_name_proc_decorator) function_name_proc_decorator
(parameters
(identifier_req_set) identifier_req_set
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_inner) function_name_inner
(parameters
(identifier_self) identifier_self
(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_proc) identifier_proc
(call
(attribute
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_inner) identifier_inner
(identifier_proc_decorator) identifier_proc_decorator
)attribute
(identifier_kwargs) identifier_kwargs
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"processing proc:{}") string_"processing proc:{}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_req_set) identifier_req_set
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"kwargs type: ") string_"kwargs type: "
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_proc) identifier_proc
(list
(string_'hplogistic') string_'hplogistic'
(string_'hpreg') string_'hpreg'
)list
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'ODSGraphics') string_'ODSGraphics'
)subscript
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'ODSGraphics') string_'ODSGraphics'
(False) False
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_proc) identifier_proc
(string_'hpcluster') string_'hpcluster'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_proc) identifier_proc
(string_'hpclus') string_'hpclus'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_legal_set) identifier_legal_set
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_legal_set) identifier_legal_set
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_SASProcCommons) identifier_SASProcCommons
(identifier__run_proc) identifier__run_proc
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_proc) identifier_proc
(identifier_req_set) identifier_req_set
(identifier_legal_set) identifier_legal_set
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_inner) identifier_inner
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Decorator that provides the wrapped function with an attribute 'actual_kwargs'
containing just those keyword arguments actually passed in to the function. |
(module
(function_definition
(function_name_email_users) function_name_email_users
(parameters
(identifier_users) identifier_users
(identifier_subject) identifier_subject
(identifier_text_body) identifier_text_body
(default_parameter
(identifier_html_body) identifier_html_body
(None) None
)default_parameter
(default_parameter
(identifier_sender) identifier_sender
(None) None
)default_parameter
(default_parameter
(identifier_configuration) identifier_configuration
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(identifier_users) identifier_users
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'No users supplied') string_'No users supplied'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_recipients) identifier_recipients
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_user) identifier_user
(identifier_users) identifier_users
(block
(expression_statement
(call
(attribute
(identifier_recipients) identifier_recipients
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_user) identifier_user
(identifier_data) identifier_data
)attribute
(string_'email') string_'email'
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_configuration) identifier_configuration
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_configuration) identifier_configuration
(attribute
(subscript
(identifier_users) identifier_users
(integer_0) integer_0
)subscript
(identifier_configuration) identifier_configuration
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_configuration) identifier_configuration
(identifier_emailer) identifier_emailer
)attribute
(argument_list
)argument_list
)call
(identifier_send) identifier_send
)attribute
(argument_list
(identifier_recipients) identifier_recipients
(identifier_subject) identifier_subject
(identifier_text_body) identifier_text_body
(keyword_argument
(identifier_html_body) identifier_html_body
(identifier_html_body) identifier_html_body
)keyword_argument
(keyword_argument
(identifier_sender) identifier_sender
(identifier_sender) identifier_sender
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Email a list of users
Args:
users (List[User]): List of users
subject (str): Email subject
text_body (str): Plain text email body
html_body (str): HTML email body
sender (Optional[str]): Email sender. Defaults to SMTP username.
configuration (Optional[Configuration]): HDX configuration. Defaults to configuration of first user in list.
**kwargs: See below
mail_options (List): Mail options (see smtplib documentation)
rcpt_options (List): Recipient options (see smtplib documentation)
Returns:
None |
(module
(function_definition
(function_name_has_ops_before) function_name_has_ops_before
(parameters
(identifier_self) identifier_self
(identifier_ts) identifier_ts
)parameters
(block
(expression_statement
(assignment
(identifier_spec) identifier_spec
(dictionary
(pair
(string_'ts') string_'ts'
(dictionary
(pair
(string_'$lt') string_'$lt'
(identifier_ts) identifier_ts
)pair
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(identifier_bool) identifier_bool
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_coll) identifier_coll
)attribute
(identifier_find_one) identifier_find_one
)attribute
(argument_list
(identifier_spec) identifier_spec
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determine if there are any ops before ts |
(module
(function_definition
(function_name_get_font) function_name_get_font
(parameters
(identifier_self) identifier_self
(identifier_font) identifier_font
)parameters
(block
(expression_statement
(assignment
(identifier_font) identifier_font
(call
(attribute
(dictionary
(pair
(string_'a') string_'a'
(integer_0) integer_0
)pair
(pair
(string_'b') string_'b'
(integer_1) integer_1
)pair
)dictionary
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_font) identifier_font
(identifier_font) identifier_font
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(identifier_font) identifier_font
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_fonts) identifier_fonts
)attribute
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_NotSupported) identifier_NotSupported
(argument_list
(call
(attribute
(string_'"{}" is not a valid font in the current profile') string_'"{}" is not a valid font in the current profile'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_font) identifier_font
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_font) identifier_font
)return_statement
)block
)function_definition
)module | Return the escpos index for `font`. Makes sure that
the requested `font` is valid. |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier__apply_function_in_current_context) identifier__apply_function_in_current_context
(argument_list
(identifier_BigFloat) identifier_BigFloat
(attribute
(identifier_mpfr) identifier_mpfr
(identifier_mpfr_add) identifier_mpfr_add
)attribute
(tuple
(call
(attribute
(identifier_BigFloat) identifier_BigFloat
(identifier__implicit_convert) identifier__implicit_convert
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(call
(attribute
(identifier_BigFloat) identifier_BigFloat
(identifier__implicit_convert) identifier__implicit_convert
)attribute
(argument_list
(identifier_y) identifier_y
)argument_list
)call
)tuple
(identifier_context) identifier_context
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return ``x`` + ``y``. |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(identifier_heads) identifier_heads
(default_parameter
(identifier_console) identifier_console
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__save_junit) identifier__save_junit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__save_html_report) identifier__save_html_report
)attribute
(argument_list
(identifier_heads) identifier_heads
)argument_list
)call
)expression_statement
(if_statement
(identifier_console) identifier_console
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__print_console_summary) identifier__print_console_summary
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Create reports in different formats.
:param heads: html table extra values in title rows
:param console: Boolean, default is True. If set, also print out the console log. |
(module
(function_definition
(function_name_has_value_of_type) function_name_has_value_of_type
(parameters
(identifier_self) identifier_self
(identifier_var_type) identifier_var_type
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_has_value) identifier_has_value
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_has_type) identifier_has_type
)attribute
(argument_list
(identifier_var_type) identifier_var_type
)argument_list
)call
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Does the variable both have the given type and
have a variable value we can use? |
(module
(function_definition
(function_name_call) function_name_call
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(if_statement
(boolean_operator
(identifier_args) identifier_args
(identifier_kw) identifier_kw
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"JSON-RPC method calls allow only either named or positional arguments.") string_"JSON-RPC method calls allow only either named or positional arguments."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_method) identifier_method
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"JSON-RPC method call requires a method name.") string_"JSON-RPC method call requires a method name."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data_serializer) identifier__data_serializer
)attribute
(identifier_assemble_request) identifier_assemble_request
)attribute
(argument_list
(identifier_method) identifier_method
(boolean_operator
(boolean_operator
(identifier_args) identifier_args
(identifier_kw) identifier_kw
)boolean_operator
(None) None
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__in_batch_mode) identifier__in_batch_mode
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__requests) identifier__requests
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_request) identifier_request
(identifier_get) identifier_get
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_request) identifier_request
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | In context of a batch we return the request's ID
else we return the actual json |
(module
(function_definition
(function_name_naive_grouped_rowwise_apply) function_name_naive_grouped_rowwise_apply
(parameters
(identifier_data) identifier_data
(identifier_group_labels) identifier_group_labels
(identifier_func) identifier_func
(default_parameter
(identifier_func_args) identifier_func_args
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_out) identifier_out
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_out) identifier_out
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_np) identifier_np
(identifier_empty_like) identifier_empty_like
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(tuple_pattern
(identifier_row) identifier_row
(identifier_label_row) identifier_label_row
(identifier_out_row) identifier_out_row
)tuple_pattern
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_data) identifier_data
(identifier_group_labels) identifier_group_labels
(identifier_out) identifier_out
)argument_list
)call
(block
(for_statement
(identifier_label) identifier_label
(call
(attribute
(identifier_np) identifier_np
(identifier_unique) identifier_unique
)attribute
(argument_list
(identifier_label_row) identifier_label_row
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_locs) identifier_locs
(parenthesized_expression
(comparison_operator
(identifier_label_row) identifier_label_row
(identifier_label) identifier_label
)comparison_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_out_row) identifier_out_row
(identifier_locs) identifier_locs
)subscript
(call
(identifier_func) identifier_func
(argument_list
(subscript
(identifier_row) identifier_row
(identifier_locs) identifier_locs
)subscript
(list_splat
(identifier_func_args) identifier_func_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Simple implementation of grouped row-wise function application.
Parameters
----------
data : ndarray[ndim=2]
Input array over which to apply a grouped function.
group_labels : ndarray[ndim=2, dtype=int64]
Labels to use to bucket inputs from array.
Should be the same shape as array.
func : function[ndarray[ndim=1]] -> function[ndarray[ndim=1]]
Function to apply to pieces of each row in array.
func_args : tuple
Additional positional arguments to provide to each row in array.
out : ndarray, optional
Array into which to write output. If not supplied, a new array of the
same shape as ``data`` is allocated and returned.
Examples
--------
>>> data = np.array([[1., 2., 3.],
... [2., 3., 4.],
... [5., 6., 7.]])
>>> labels = np.array([[0, 0, 1],
... [0, 1, 0],
... [1, 0, 2]])
>>> naive_grouped_rowwise_apply(data, labels, lambda row: row - row.min())
array([[ 0., 1., 0.],
[ 0., 0., 2.],
[ 0., 0., 0.]])
>>> naive_grouped_rowwise_apply(data, labels, lambda row: row / row.sum())
array([[ 0.33333333, 0.66666667, 1. ],
[ 0.33333333, 1. , 0.66666667],
[ 1. , 1. , 1. ]]) |
(module
(function_definition
(function_name_create_key) function_name_create_key
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_master_secret) identifier_master_secret
(string_b"") string_b""
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_master_secret) identifier_master_secret
(call
(attribute
(identifier_deserialize) identifier_deserialize
(identifier_bytes_str) identifier_bytes_str
)attribute
(argument_list
(identifier_master_secret) identifier_master_secret
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bip32node) identifier_bip32node
(call
(attribute
(identifier_control) identifier_control
(identifier_create_wallet) identifier_create_wallet
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_testnet) identifier_testnet
)attribute
(keyword_argument
(identifier_master_secret) identifier_master_secret
(identifier_master_secret) identifier_master_secret
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_bip32node) identifier_bip32node
(identifier_wif) identifier_wif
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create new private key and return in wif format.
@param: master_secret Create from master secret, otherwise random. |
(module
(function_definition
(function_name_extract_forward_and_reverse_complement) function_name_extract_forward_and_reverse_complement
(parameters
(identifier_self) identifier_self
(identifier_forward_reads_to_extract) identifier_forward_reads_to_extract
(identifier_reverse_reads_to_extract) identifier_reverse_reads_to_extract
(identifier_database_fasta_file) identifier_database_fasta_file
(identifier_output_file) identifier_output_file
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_extract) identifier_extract
)attribute
(argument_list
(identifier_forward_reads_to_extract) identifier_forward_reads_to_extract
(identifier_database_fasta_file) identifier_database_fasta_file
(identifier_output_file) identifier_output_file
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cmd_rev) identifier_cmd_rev
(binary_operator
(string_"fxtract -XH -f /dev/stdin '%s'") string_"fxtract -XH -f /dev/stdin '%s'"
(identifier_database_fasta_file) identifier_database_fasta_file
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_extern) identifier_extern
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_cmd_rev) identifier_cmd_rev
(keyword_argument
(identifier_stdin) identifier_stdin
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_reverse_reads_to_extract) identifier_reverse_reads_to_extract
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_output_file) identifier_output_file
(string_'a') string_'a'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_record) identifier_record
(call
(attribute
(identifier_SeqIO) identifier_SeqIO
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(identifier_StringIO) identifier_StringIO
(argument_list
(identifier_output) identifier_output
)argument_list
)call
(string_'fasta') string_'fasta'
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_seq) identifier_seq
)attribute
(attribute
(call
(attribute
(identifier_record) identifier_record
(identifier_reverse_complement) identifier_reverse_complement
)attribute
(argument_list
)argument_list
)call
(identifier_seq) identifier_seq
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_SeqIO) identifier_SeqIO
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_record) identifier_record
(identifier_f) identifier_f
(string_'fasta') string_'fasta'
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | As per extract except also reverse complement the sequences. |
(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_'name') string_'name'
(identifier__dict) identifier__dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'name') string_'name'
)subscript
(call
(attribute
(identifier__dict) identifier__dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Required property \'name\' not present in ClassifierResult JSON') string_'Required property \'name\' not present in ClassifierResult JSON'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(string_'classifier_id') string_'classifier_id'
(identifier__dict) identifier__dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'classifier_id') string_'classifier_id'
)subscript
(call
(attribute
(identifier__dict) identifier__dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'classifier_id') string_'classifier_id'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Required property \'classifier_id\' not present in ClassifierResult JSON') string_'Required property \'classifier_id\' not present in ClassifierResult JSON'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(string_'classes') string_'classes'
(identifier__dict) identifier__dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'classes') string_'classes'
)subscript
(list_comprehension
(call
(attribute
(identifier_ClassResult) identifier_ClassResult
(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_'classes') string_'classes'
)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 \'classes\' not present in ClassifierResult JSON') string_'Required property \'classes\' not present in ClassifierResult 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 ClassifierResult object from a json dictionary. |
(module
(function_definition
(function_name_conditional_probability_alive) function_name_conditional_probability_alive
(parameters
(identifier_self) identifier_self
(identifier_frequency) identifier_frequency
(identifier_recency) identifier_recency
(identifier_T) identifier_T
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_r) identifier_r
(identifier_alpha) identifier_alpha
(identifier_a) identifier_a
(identifier_b) identifier_b
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__unload_params) identifier__unload_params
)attribute
(argument_list
(string_"r") string_"r"
(string_"alpha") string_"alpha"
(string_"a") string_"a"
(string_"b") string_"b"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_log_div) identifier_log_div
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_r) identifier_r
(identifier_frequency) identifier_frequency
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_alpha) identifier_alpha
(identifier_T) identifier_T
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_alpha) identifier_alpha
(identifier_recency) identifier_recency
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(identifier_a) identifier_a
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_b) identifier_b
(call
(attribute
(identifier_np) identifier_np
(identifier_maximum) identifier_maximum
)attribute
(argument_list
(identifier_frequency) identifier_frequency
(integer_1) integer_1
)argument_list
)call
)binary_operator
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_atleast_1d) identifier_atleast_1d
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(identifier_frequency) identifier_frequency
(integer_0) integer_0
)comparison_operator
(float_1.0) float_1.0
(call
(identifier_expit) identifier_expit
(argument_list
(unary_operator
(identifier_log_div) identifier_log_div
)unary_operator
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute conditional probability alive.
Compute the probability that a customer with history
(frequency, recency, T) is currently alive.
From http://www.brucehardie.com/notes/021/palive_for_BGNBD.pdf
Parameters
----------
frequency: array or scalar
historical frequency of customer.
recency: array or scalar
historical recency of customer.
T: array or scalar
age of the customer.
Returns
-------
array
value representing a probability |
(module
(function_definition
(function_name_get_curl_command_line) function_name_get_curl_command_line
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(identifier_url) identifier_url
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"query") string_"query"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"{}?{}") string_"{}?{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_url) identifier_url
(call
(attribute
(attribute
(identifier_d1_common) identifier_d1_common
(identifier_url) identifier_url
)attribute
(identifier_urlencode) identifier_urlencode
)attribute
(argument_list
(subscript
(identifier_kwargs) identifier_kwargs
(string_"query") string_"query"
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_curl_list) identifier_curl_list
(list
(string_"curl") string_"curl"
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_method) identifier_method
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_"head") string_"head"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_curl_list) identifier_curl_list
(identifier_append) identifier_append
)attribute
(argument_list
(string_"--head") string_"--head"
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_curl_list) identifier_curl_list
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"-X {}") string_"-X {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(subscript
(identifier_kwargs) identifier_kwargs
(string_"headers") string_"headers"
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_curl_list) identifier_curl_list
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'-H "{}: {}"') string_'-H "{}: {}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_curl_list) identifier_curl_list
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"{}") string_"{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_curl_list) identifier_curl_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get request as cURL command line for debugging. |
(module
(function_definition
(function_name_percent_pareto_interactions) function_name_percent_pareto_interactions
(parameters
(identifier_records) identifier_records
(default_parameter
(identifier_percentage) identifier_percentage
(float_0.8) float_0.8
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_records) identifier_records
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_user_count) identifier_user_count
(call
(identifier_Counter) identifier_Counter
(generator_expression
(attribute
(identifier_r) identifier_r
(identifier_correspondent_id) identifier_correspondent_id
)attribute
(for_in_clause
(identifier_r) identifier_r
(identifier_records) identifier_records
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target) identifier_target
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_ceil) identifier_ceil
)attribute
(argument_list
(binary_operator
(call
(identifier_sum) identifier_sum
(argument_list
(call
(attribute
(identifier_user_count) identifier_user_count
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_percentage) identifier_percentage
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_user_sort) identifier_user_sort
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_user_count) identifier_user_count
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_user_count) identifier_user_count
(identifier_x) identifier_x
)subscript
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(while_statement
(boolean_operator
(comparison_operator
(identifier_target) identifier_target
(integer_0) integer_0
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_user_sort) identifier_user_sort
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_user_id) identifier_user_id
(call
(attribute
(identifier_user_sort) identifier_user_sort
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_target) identifier_target
(subscript
(identifier_user_count) identifier_user_count
(identifier_user_id) identifier_user_id
)subscript
)augmented_assignment
)expression_statement
)block
)while_statement
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_user_count) identifier_user_count
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_user_sort) identifier_user_sort
)argument_list
)call
)binary_operator
)parenthesized_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_records) identifier_records
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | The percentage of user's contacts that account for 80% of its interactions. |
(module
(function_definition
(function_name__create_rubber_bands_action) function_name__create_rubber_bands_action
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_icon) identifier_icon
(call
(identifier_resources_path) identifier_resources_path
(argument_list
(string_'img') string_'img'
(string_'icons') string_'icons'
(string_'toggle-rubber-bands.svg') string_'toggle-rubber-bands.svg'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
(call
(identifier_QAction) identifier_QAction
(argument_list
(call
(identifier_QIcon) identifier_QIcon
(argument_list
(identifier_icon) identifier_icon
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_tr) identifier_tr
)attribute
(argument_list
(string_'Toggle Scenario Outlines') string_'Toggle Scenario Outlines'
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_iface) identifier_iface
)attribute
(identifier_mainWindow) identifier_mainWindow
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(identifier_self) identifier_self
(identifier_tr) identifier_tr
)attribute
(argument_list
(string_'Toggle rubber bands showing scenario extents.') string_'Toggle rubber bands showing scenario extents.'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
(identifier_setStatusTip) identifier_setStatusTip
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
(identifier_setWhatsThis) identifier_setWhatsThis
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
(identifier_setCheckable) identifier_setCheckable
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_flag) identifier_flag
(call
(identifier_setting) identifier_setting
(argument_list
(string_'showRubberBands') string_'showRubberBands'
(False) False
(keyword_argument
(identifier_expected_type) identifier_expected_type
(identifier_bool) identifier_bool
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
(identifier_setChecked) identifier_setChecked
)attribute
(argument_list
(identifier_flag) identifier_flag
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
(identifier_triggered) identifier_triggered
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dock_widget) identifier_dock_widget
)attribute
(identifier_toggle_rubber_bands) identifier_toggle_rubber_bands
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_action) identifier_add_action
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_action_toggle_rubberbands) identifier_action_toggle_rubberbands
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create action for toggling rubber bands. |
(module
(function_definition
(function_name_render_value_for_node) function_name_render_value_for_node
(parameters
(identifier_node_id) identifier_node_id
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(call
(attribute
(identifier_db) identifier_db
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(identifier_text) identifier_text
(argument_list
(call
(identifier_fetch_query_string) identifier_fetch_query_string
(argument_list
(string_'select_node_from_id.sql') string_'select_node_from_id.sql'
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_node_id) identifier_node_id
(identifier_node_id) identifier_node_id
)keyword_argument
)argument_list
)call
(identifier_fetchall) identifier_fetchall
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_DatabaseError) identifier_DatabaseError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(string_"DatabaseError: %s") string_"DatabaseError: %s"
(identifier_err) identifier_err
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(identifier_result) identifier_result
(block
(expression_statement
(assignment
(identifier_kw) identifier_kw
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(call
(attribute
(subscript
(identifier_result) identifier_result
(integer_0) integer_0
)subscript
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(subscript
(identifier_result) identifier_result
(integer_0) integer_0
)subscript
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_render_node) identifier_render_node
(argument_list
(identifier_node_id) identifier_node_id
(keyword_argument
(identifier_noderequest) identifier_noderequest
(dictionary
(pair
(string_'_no_template') string_'_no_template'
(True) True
)pair
)dictionary
)keyword_argument
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Wrap render_node for usage in operate scripts. Returns without template
rendered. |
(module
(function_definition
(function_name_hardware_version) function_name_hardware_version
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_rpc) identifier_rpc
)attribute
(argument_list
(integer_0x00) integer_0x00
(integer_0x02) integer_0x02
(keyword_argument
(identifier_result_type) identifier_result_type
(tuple
(integer_0) integer_0
(True) True
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_binary_version) identifier_binary_version
(subscript
(identifier_res) identifier_res
(string_'buffer') string_'buffer'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ver) identifier_ver
(string_"") string_""
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(identifier_binary_version) identifier_binary_version
(block
(if_statement
(comparison_operator
(identifier_x) identifier_x
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_ver) identifier_ver
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_ver) identifier_ver
)return_statement
)block
)function_definition
)module | Return the embedded hardware version string for this tile.
The hardware version is an up to 10 byte user readable string that is
meant to encode any necessary information about the specific hardware
that this tile is running on. For example, if you have multiple
assembly variants of a given tile, you could encode that information
here.
Returns:
str: The hardware version read from the tile. |
(module
(function_definition
(function_name__calcidxs) function_name__calcidxs
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_timegrids) identifier_timegrids
(call
(attribute
(attribute
(identifier_hydpy) identifier_hydpy
(identifier_pub) identifier_pub
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'timegrids') string_'timegrids'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_timegrids) identifier_timegrids
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(concatenated_string
(string_'An Indexer object has been asked for an %s array. Such an ') string_'An Indexer object has been asked for an %s array. Such an '
(string_'array has neither been determined yet nor can it be ') string_'array has neither been determined yet nor can it be '
(string_'determined automatically at the moment. Either define an ') string_'determined automatically at the moment. Either define an '
(string_'%s array manually and pass it to the Indexer object, or make ') string_'%s array manually and pass it to the Indexer object, or make '
(string_'a proper Timegrids object available within the pub module. ') string_'a proper Timegrids object available within the pub module. '
(string_'In usual HydPy applications, the latter is done ') string_'In usual HydPy applications, the latter is done '
(string_'automatically.') string_'automatically.'
)concatenated_string
(tuple
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_idxs) identifier_idxs
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_empty) identifier_empty
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_timegrids) identifier_timegrids
(identifier_init) identifier_init
)attribute
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_int) identifier_int
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_jdx) identifier_jdx
(identifier_date) identifier_date
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(attribute
(attribute
(identifier_hydpy) identifier_hydpy
(identifier_pub) identifier_pub
)attribute
(identifier_timegrids) identifier_timegrids
)attribute
(identifier_init) identifier_init
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_idxs) identifier_idxs
(identifier_jdx) identifier_jdx
)subscript
(call
(identifier_func) identifier_func
(argument_list
(identifier_date) identifier_date
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_idxs) identifier_idxs
)return_statement
)block
)function_definition
)module | Return the required indexes based on the given lambda function
and the |Timegrids| object handled by module |pub|. Raise a
|RuntimeError| if the latter is not available. |
(module
(function_definition
(function_name_verbose) function_name_verbose
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_enabled) identifier_enabled
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_lib) identifier_lib
)attribute
(identifier_iperf_get_verbose) identifier_iperf_get_verbose
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__test) identifier__test
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_enabled) identifier_enabled
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__verbose) identifier__verbose
)attribute
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__verbose) identifier__verbose
)attribute
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__verbose) identifier__verbose
)attribute
)return_statement
)block
)function_definition
)module | Toggles verbose output for the iperf3 instance
:rtype: bool |
(module
(function_definition
(function_name_score_n1) function_name_score_n1
(parameters
(identifier_matrix) identifier_matrix
(identifier_matrix_size) identifier_matrix_size
)parameters
(block
(expression_statement
(assignment
(identifier_score) identifier_score
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_matrix_size) identifier_matrix_size
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_prev_bit_row) identifier_prev_bit_row
(identifier_prev_bit_col) identifier_prev_bit_col
)pattern_list
(expression_list
(unary_operator
(integer_1) integer_1
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_row_counter) identifier_row_counter
(identifier_col_counter) identifier_col_counter
)pattern_list
(expression_list
(integer_0) integer_0
(integer_0) integer_0
)expression_list
)assignment
)expression_statement
(for_statement
(identifier_j) identifier_j
(call
(identifier_range) identifier_range
(argument_list
(identifier_matrix_size) identifier_matrix_size
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bit) identifier_bit
(subscript
(subscript
(identifier_matrix) identifier_matrix
(identifier_i) identifier_i
)subscript
(identifier_j) identifier_j
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_bit) identifier_bit
(identifier_prev_bit_row) identifier_prev_bit_row
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_row_counter) identifier_row_counter
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_row_counter) identifier_row_counter
(integer_5) integer_5
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_score) identifier_score
(binary_operator
(identifier_row_counter) identifier_row_counter
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_row_counter) identifier_row_counter
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev_bit_row) identifier_prev_bit_row
(identifier_bit) identifier_bit
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_bit) identifier_bit
(subscript
(subscript
(identifier_matrix) identifier_matrix
(identifier_j) identifier_j
)subscript
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_bit) identifier_bit
(identifier_prev_bit_col) identifier_prev_bit_col
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_col_counter) identifier_col_counter
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_col_counter) identifier_col_counter
(integer_5) integer_5
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_score) identifier_score
(binary_operator
(identifier_col_counter) identifier_col_counter
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_col_counter) identifier_col_counter
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev_bit_col) identifier_prev_bit_col
(identifier_bit) identifier_bit
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_row_counter) identifier_row_counter
(integer_5) integer_5
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_score) identifier_score
(binary_operator
(identifier_row_counter) identifier_row_counter
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_col_counter) identifier_col_counter
(integer_5) integer_5
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_score) identifier_score
(binary_operator
(identifier_col_counter) identifier_col_counter
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_score) identifier_score
)return_statement
)block
)function_definition
)module | \
Implements the penalty score feature 1.
ISO/IEC 18004:2015(E) -- 7.8.3 Evaluation of data masking results - Table 11 (page 54)
============================================ ======================== ======
Feature Evaluation condition Points
============================================ ======================== ======
Adjacent modules in row/column in same color No. of modules = (5 + i) N1 + i
============================================ ======================== ======
N1 = 3
:param matrix: The matrix to evaluate
:param matrix_size: The width (or height) of the matrix.
:return int: The penalty score (feature 1) of the matrix. |
(module
(function_definition
(function_name__jitter) function_name__jitter
(parameters
(identifier_c) identifier_c
(typed_parameter
(identifier_magnitude) identifier_magnitude
(type
(identifier_uniform) identifier_uniform
)type
)typed_parameter
)parameters
(block
(expression_statement
(string_"Replace pixels by random neighbors at `magnitude`.") string_"Replace pixels by random neighbors at `magnitude`."
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_c) identifier_c
(identifier_flow) identifier_flow
)attribute
(identifier_add_) identifier_add_
)attribute
(argument_list
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_torch) identifier_torch
(identifier_rand_like) identifier_rand_like
)attribute
(argument_list
(attribute
(identifier_c) identifier_c
(identifier_flow) identifier_flow
)attribute
)argument_list
)call
(float_0.5) float_0.5
)binary_operator
)parenthesized_expression
(identifier_magnitude) identifier_magnitude
)binary_operator
(integer_2) integer_2
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_c) identifier_c
)return_statement
)block
)function_definition
)module | Replace pixels by random neighbors at `magnitude`. |
(module
(function_definition
(function_name__create_user) function_name__create_user
(parameters
(identifier_self) identifier_self
(identifier_email) identifier_email
(identifier_password) identifier_password
(identifier_is_superuser) identifier_is_superuser
(dictionary_splat_pattern
(identifier_extra_fields) identifier_extra_fields
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(attribute
(identifier_timezone) identifier_timezone
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_email) identifier_email
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'The given email must be set') string_'The given email must be set'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_email) identifier_email
(call
(attribute
(identifier_self) identifier_self
(identifier_normalize_email) identifier_normalize_email
)attribute
(argument_list
(identifier_email) identifier_email
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(argument_list
(keyword_argument
(identifier_email) identifier_email
(identifier_email) identifier_email
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
(keyword_argument
(identifier_is_active) identifier_is_active
(True) True
)keyword_argument
(keyword_argument
(identifier_is_superuser) identifier_is_superuser
(identifier_is_superuser) identifier_is_superuser
)keyword_argument
(keyword_argument
(identifier_last_login) identifier_last_login
(identifier_now) identifier_now
)keyword_argument
(keyword_argument
(identifier_date_joined) identifier_date_joined
(identifier_now) identifier_now
)keyword_argument
(dictionary_splat
(identifier_extra_fields) identifier_extra_fields
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_user) identifier_user
(identifier_set_password) identifier_set_password
)attribute
(argument_list
(identifier_password) identifier_password
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_user) identifier_user
(identifier_save) identifier_save
)attribute
(argument_list
(keyword_argument
(identifier_using) identifier_using
(attribute
(identifier_self) identifier_self
(identifier__db) identifier__db
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_user) identifier_user
)return_statement
)block
)function_definition
)module | Create new user |
(module
(function_definition
(function_name_get_appliance_event_after_time) function_name_get_appliance_event_after_time
(parameters
(identifier_self) identifier_self
(identifier_location_id) identifier_location_id
(identifier_since) identifier_since
(default_parameter
(identifier_per_page) identifier_per_page
(None) None
)default_parameter
(default_parameter
(identifier_page) identifier_page
(None) None
)default_parameter
(default_parameter
(identifier_min_power) identifier_min_power
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(string_"https://api.neur.io/v1/appliances/events") string_"https://api.neur.io/v1/appliances/events"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(attribute
(identifier_self) identifier_self
(identifier___gen_headers) identifier___gen_headers
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(string_"Content-Type") string_"Content-Type"
)subscript
(string_"application/json") string_"application/json"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"locationId") string_"locationId"
(identifier_location_id) identifier_location_id
)pair
(pair
(string_"since") string_"since"
(identifier_since) identifier_since
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_min_power) identifier_min_power
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"minPower") string_"minPower"
)subscript
(identifier_min_power) identifier_min_power
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_per_page) identifier_per_page
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"perPage") string_"perPage"
)subscript
(identifier_per_page) identifier_per_page
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_page) identifier_page
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"page") string_"page"
)subscript
(identifier_page) identifier_page
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier___append_url_params) identifier___append_url_params
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get appliance events by location Id after defined time.
Args:
location_id (string): hexadecimal id of the sensor to query, e.g.
``0x0013A20040B65FAD``
since (string): ISO 8601 start time for getting the events that are created or updated after it.
Maxiumim value allowed is 1 day from the current time.
min_power (string): The minimum average power (in watts) for filtering.
Only events with an average power above this value will be returned.
(default: 400)
per_page (string, optional): the number of returned results per page
(min 1, max 500) (default: 10)
page (string, optional): the page number to return (min 1, max 100000)
(default: 1)
Returns:
list: dictionary objects containing appliance events meeting specified criteria |
(module
(function_definition
(function_name_get_term) function_name_get_term
(parameters
(identifier_self) identifier_self
(identifier_term_id) identifier_term_id
)parameters
(block
(if_statement
(comparison_operator
(identifier_term_id) identifier_term_id
(attribute
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)attribute
)comparison_operator
(block
(return_statement
(call
(identifier_Cterm) identifier_Cterm
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)attribute
(identifier_term_id) identifier_term_id
)subscript
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the term object for the supplied identifier
@type term_id: string
@param term_id: term identifier |
(module
(function_definition
(function_name_remove_prohibited_element) function_name_remove_prohibited_element
(parameters
(identifier_tag_name) identifier_tag_name
(identifier_document_element) identifier_document_element
)parameters
(block
(expression_statement
(assignment
(identifier_elements) identifier_elements
(call
(attribute
(identifier_document_element) identifier_document_element
(identifier_getElementsByTagName) identifier_getElementsByTagName
)attribute
(argument_list
(identifier_tag_name) identifier_tag_name
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_element) identifier_element
(identifier_elements) identifier_elements
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(attribute
(identifier_element) identifier_element
(identifier_parentNode) identifier_parentNode
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_removeChild) identifier_removeChild
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | To fit the Evernote DTD need, drop this tag name |
(module
(function_definition
(function_name_Process) function_name_Process
(parameters
(identifier_self) identifier_self
(identifier_parser_mediator) identifier_parser_mediator
(default_parameter
(identifier_cache) identifier_cache
(None) None
)default_parameter
(default_parameter
(identifier_database) identifier_database
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_unused_kwargs) identifier_unused_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_cache) identifier_cache
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Missing cache value.') string_'Missing cache value.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_database) identifier_database
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Missing database value.') string_'Missing database value.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_SQLitePlugin) identifier_SQLitePlugin
(identifier_self) identifier_self
)argument_list
)call
(identifier_Process) identifier_Process
)attribute
(argument_list
(identifier_parser_mediator) identifier_parser_mediator
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_query) identifier_query
(identifier_callback_method) identifier_callback_method
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier_QUERIES) identifier_QUERIES
)attribute
(block
(if_statement
(attribute
(identifier_parser_mediator) identifier_parser_mediator
(identifier_abort) identifier_abort
)attribute
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_callback) identifier_callback
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_callback_method) identifier_callback_method
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_callback) identifier_callback
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_'[{0:s}] missing callback method: {1:s} for query: {2:s}') string_'[{0:s}] missing callback method: {1:s} for query: {2:s}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_NAME) identifier_NAME
)attribute
(identifier_callback_method) identifier_callback_method
(identifier_query) identifier_query
)argument_list
)call
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ParseQuery) identifier__ParseQuery
)attribute
(argument_list
(identifier_parser_mediator) identifier_parser_mediator
(identifier_database) identifier_database
(identifier_query) identifier_query
(identifier_callback) identifier_callback
(identifier_cache) identifier_cache
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Determine if this is the right plugin for this database.
This function takes a SQLiteDatabase object and compares the list
of required tables against the available tables in the database.
If all the tables defined in REQUIRED_TABLES are present in the
database then this plugin is considered to be the correct plugin
and the function will return back a generator that yields event
objects.
Args:
parser_mediator (ParserMediator): parser mediator.
cache (Optional[SQLiteCache]): cache.
database (Optional[SQLiteDatabase]): database.
Raises:
ValueError: If the database or cache value are missing. |
(module
(function_definition
(function_name_initialize_from_bucket) function_name_initialize_from_bucket
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_tmp_dir) identifier_tmp_dir
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_mkdtemp) identifier_mkdtemp
)attribute
(argument_list
(string_"tfds") string_"tfds"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_files) identifier_data_files
(call
(attribute
(identifier_gcs_utils) identifier_gcs_utils
(identifier_gcs_dataset_info_files) identifier_gcs_dataset_info_files
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_data_files) identifier_data_files
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Loading info from GCS for %s") string_"Loading info from GCS for %s"
(attribute
(identifier_self) identifier_self
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
(for_statement
(identifier_fname) identifier_fname
(identifier_data_files) identifier_data_files
(block
(expression_statement
(assignment
(identifier_out_fname) identifier_out_fname
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_gcs_utils) identifier_gcs_utils
(identifier_download_gcs_file) identifier_download_gcs_file
)attribute
(argument_list
(identifier_fname) identifier_fname
(identifier_out_fname) identifier_out_fname
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_read_from_directory) identifier_read_from_directory
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initialize DatasetInfo from GCS bucket info files. |
(module
(function_definition
(function_name__handle_response) function_name__handle_response
(parameters
(identifier_response) identifier_response
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
)argument_list
)call
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'2') string_'2'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_KucoinAPIException) identifier_KucoinAPIException
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'code') string_'code'
(identifier_res) identifier_res
)comparison_operator
(comparison_operator
(subscript
(identifier_res) identifier_res
(string_'code') string_'code'
)subscript
(string_"200000") string_"200000"
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_KucoinAPIException) identifier_KucoinAPIException
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'success') string_'success'
(identifier_res) identifier_res
)comparison_operator
(not_operator
(subscript
(identifier_res) identifier_res
(string_'success') string_'success'
)subscript
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_KucoinAPIException) identifier_KucoinAPIException
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'data') string_'data'
(identifier_res) identifier_res
)comparison_operator
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(subscript
(identifier_res) identifier_res
(string_'data') string_'data'
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_KucoinRequestException) identifier_KucoinRequestException
(argument_list
(binary_operator
(string_'Invalid Response: %s') string_'Invalid Response: %s'
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Internal helper for handling API responses from the Quoine server.
Raises the appropriate exceptions when necessary; otherwise, returns the
response. |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_indchar) identifier_indchar
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_comments) identifier_comments
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_refs) identifier_refs
)attribute
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_skips) identifier_set_skips
)attribute
(argument_list
(list
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_docstring) identifier_docstring
)attribute
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ichain_count) identifier_ichain_count
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tre_store_count) identifier_tre_store_count
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_case_check_count) identifier_case_check_count
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_stmt_lambdas) identifier_stmt_lambdas
)attribute
(list
)list
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_strict) identifier_strict
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_unused_imports) identifier_unused_imports
)attribute
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bind) identifier_bind
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Resets references. |
(module
(function_definition
(function_name_heptad_register) function_name_heptad_register
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_base_reg) identifier_base_reg
(string_'abcdefg') string_'abcdefg'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exp_base) identifier_exp_base
(binary_operator
(identifier_base_reg) identifier_base_reg
(parenthesized_expression
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_cc_len) identifier_cc_len
)attribute
(integer_7) integer_7
)binary_operator
(integer_2) integer_2
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ave_ca_layers) identifier_ave_ca_layers
(subscript
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_calc_average_parameters) identifier_calc_average_parameters
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ca_layers) identifier_ca_layers
)attribute
)argument_list
)call
(integer_0) integer_0
)subscript
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reg_fit) identifier_reg_fit
(call
(identifier_fit_heptad_register) identifier_fit_heptad_register
(argument_list
(identifier_ave_ca_layers) identifier_ave_ca_layers
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hep_pos) identifier_hep_pos
(subscript
(subscript
(identifier_reg_fit) identifier_reg_fit
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(expression_list
(subscript
(identifier_exp_base) identifier_exp_base
(slice
(identifier_hep_pos) identifier_hep_pos
(colon) colon
(binary_operator
(identifier_hep_pos) identifier_hep_pos
(attribute
(identifier_self) identifier_self
(identifier_cc_len) identifier_cc_len
)attribute
)binary_operator
)slice
)subscript
(subscript
(subscript
(identifier_reg_fit) identifier_reg_fit
(integer_0) integer_0
)subscript
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)expression_list
)return_statement
)block
)function_definition
)module | Returns the calculated register of the coiled coil and the fit quality. |
(module
(function_definition
(function_name_set_exception) function_name_set_exception
(parameters
(identifier_self) identifier_self
(identifier_exception) identifier_exception
)parameters
(block
(expression_statement
(assignment
(identifier_was_handled) identifier_was_handled
(call
(attribute
(identifier_self) identifier_self
(identifier__finish) identifier__finish
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_errbacks) identifier_errbacks
)attribute
(identifier_exception) identifier_exception
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_was_handled) identifier_was_handled
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_print_exception) identifier_print_exception
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
(identifier_exception) identifier_exception
(attribute
(identifier_exception) identifier_exception
(identifier___traceback__) identifier___traceback__
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Signal unsuccessful completion. |
(module
(function_definition
(function_name_save_veto_definer) function_name_save_veto_definer
(parameters
(identifier_cp) identifier_cp
(identifier_out_dir) identifier_out_dir
(default_parameter
(identifier_tags) identifier_tags
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_tags) identifier_tags
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_make_analysis_dir) identifier_make_analysis_dir
(argument_list
(identifier_out_dir) identifier_out_dir
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_veto_def_url) identifier_veto_def_url
(call
(attribute
(identifier_cp) identifier_cp
(identifier_get_opt_tags) identifier_get_opt_tags
)attribute
(argument_list
(string_"workflow-segments") string_"workflow-segments"
(string_"segments-veto-definer-url") string_"segments-veto-definer-url"
(identifier_tags) identifier_tags
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_veto_def_base_name) identifier_veto_def_base_name
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_veto_def_url) identifier_veto_def_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_veto_def_new_path) identifier_veto_def_new_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_out_dir) identifier_out_dir
(identifier_veto_def_base_name) identifier_veto_def_base_name
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_resolve_url) identifier_resolve_url
(argument_list
(identifier_veto_def_url) identifier_veto_def_url
(identifier_out_dir) identifier_out_dir
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cp) identifier_cp
(identifier_set) identifier_set
)attribute
(argument_list
(string_"workflow-segments") string_"workflow-segments"
(string_"segments-veto-definer-file") string_"segments-veto-definer-file"
(identifier_veto_def_new_path) identifier_veto_def_new_path
)argument_list
)call
)expression_statement
(return_statement
(identifier_veto_def_new_path) identifier_veto_def_new_path
)return_statement
)block
)function_definition
)module | Retrieve the veto definer file and save it locally
Parameters
-----------
cp : ConfigParser instance
out_dir : path
tags : list of strings
Used to retrieve subsections of the ini file for
configuration options. |
(module
(function_definition
(function_name_print_label) function_name_print_label
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_package_num) identifier_package_num
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_package_num) identifier_package_num
(block
(expression_statement
(assignment
(identifier_packages) identifier_packages
(list
(subscript
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shipment) identifier_shipment
)attribute
(identifier_response) identifier_response
)attribute
(identifier_CompletedShipmentDetail) identifier_CompletedShipmentDetail
)attribute
(identifier_CompletedPackageDetails) identifier_CompletedPackageDetails
)attribute
(identifier_package_num) identifier_package_num
)subscript
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_packages) identifier_packages
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shipment) identifier_shipment
)attribute
(identifier_response) identifier_response
)attribute
(identifier_CompletedShipmentDetail) identifier_CompletedShipmentDetail
)attribute
(identifier_CompletedPackageDetails) identifier_CompletedPackageDetails
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_package) identifier_package
(identifier_packages) identifier_packages
(block
(expression_statement
(assignment
(identifier_label_binary) identifier_label_binary
(call
(attribute
(identifier_binascii) identifier_binascii
(identifier_a2b_base64) identifier_a2b_base64
)attribute
(argument_list
(attribute
(subscript
(attribute
(attribute
(identifier_package) identifier_package
(identifier_Label) identifier_Label
)attribute
(identifier_Parts) identifier_Parts
)attribute
(integer_0) integer_0
)subscript
(identifier_Image) identifier_Image
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__print_base64) identifier__print_base64
)attribute
(argument_list
(identifier_label_binary) identifier_label_binary
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Prints all of a shipment's labels, or optionally just one.
@type package_num: L{int}
@param package_num: 0-based index of the package to print. This is
only useful for shipments with more than one package. |
(module
(function_definition
(function_name_execute_cross_join) function_name_execute_cross_join
(parameters
(identifier_op) identifier_op
(identifier_left) identifier_left
(identifier_right) identifier_right
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(string_"cross_join_{}") string_"cross_join_{}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_ibis) identifier_ibis
(identifier_util) identifier_util
)attribute
(identifier_guid) identifier_guid
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_join_key) identifier_join_key
(dictionary
(pair
(identifier_key) identifier_key
(True) True
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_left) identifier_new_left
(call
(attribute
(identifier_left) identifier_left
(identifier_assign) identifier_assign
)attribute
(argument_list
(dictionary_splat
(identifier_join_key) identifier_join_key
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_right) identifier_new_right
(call
(attribute
(identifier_right) identifier_right
(identifier_assign) identifier_assign
)attribute
(argument_list
(dictionary_splat
(identifier_join_key) identifier_join_key
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_pd) identifier_pd
(identifier_merge) identifier_merge
)attribute
(argument_list
(identifier_new_left) identifier_new_left
(identifier_new_right) identifier_new_right
(keyword_argument
(identifier_how) identifier_how
(string_'inner') string_'inner'
)keyword_argument
(keyword_argument
(identifier_on) identifier_on
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_copy) identifier_copy
(False) False
)keyword_argument
(keyword_argument
(identifier_suffixes) identifier_suffixes
(attribute
(identifier_constants) identifier_constants
(identifier_JOIN_SUFFIXES) identifier_JOIN_SUFFIXES
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(delete_statement
(subscript
(identifier_result) identifier_result
(identifier_key) identifier_key
)subscript
)delete_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Execute a cross join in pandas.
Notes
-----
We create a dummy column of all :data:`True` instances and use that as the
join key. This results in the desired Cartesian product behavior guaranteed
by cross join. |
(module
(function_definition
(function_name_charge_transfer_to_string) function_name_charge_transfer_to_string
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ch) identifier_ch
(attribute
(identifier_self) identifier_self
(identifier_charge_transfer) identifier_charge_transfer
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chts) identifier_chts
(list
(string_'\nCharge Transfer\n\nabsorbing atom') string_'\nCharge Transfer\n\nabsorbing atom'
)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_ch) identifier_ch
)argument_list
)call
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_atom) identifier_atom
(identifier_v2) identifier_v2
)pattern_list
(call
(attribute
(subscript
(identifier_ch) identifier_ch
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(list
(string_'\n') string_'\n'
(identifier_atom) identifier_atom
(string_'\n') string_'\n'
(string_'s ') string_'s '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_v2) identifier_v2
(string_'s') string_'s'
)subscript
)argument_list
)call
(string_'\n') string_'\n'
(string_'p ') string_'p '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_v2) identifier_v2
(string_'p') string_'p'
)subscript
)argument_list
)call
(string_'\n') string_'\n'
(string_'d ') string_'d '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_v2) identifier_v2
(string_'d') string_'d'
)subscript
)argument_list
)call
(string_'\n') string_'\n'
(string_'f ') string_'f '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_v2) identifier_v2
(string_'f') string_'f'
)subscript
)argument_list
)call
(string_'\n') string_'\n'
(string_'tot ') string_'tot '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_v2) identifier_v2
(string_'tot') string_'tot'
)subscript
)argument_list
)call
(string_'\n') string_'\n'
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_chts) identifier_chts
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_chts) identifier_chts
)argument_list
)call
)return_statement
)block
)function_definition
)module | returns shrage transfer as string |
(module
(function_definition
(function_name__groupby_and_aggregate) function_name__groupby_and_aggregate
(parameters
(identifier_self) identifier_self
(identifier_how) identifier_how
(default_parameter
(identifier_grouper) identifier_grouper
(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_grouper) identifier_grouper
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set_binner) identifier__set_binner
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_grouper) identifier_grouper
(attribute
(identifier_self) identifier_self
(identifier_grouper) identifier_grouper
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(attribute
(identifier_self) identifier_self
(identifier__selected_obj) identifier__selected_obj
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_grouped) identifier_grouped
(call
(identifier_groupby) identifier_groupby
(argument_list
(identifier_obj) identifier_obj
(keyword_argument
(identifier_by) identifier_by
(None) None
)keyword_argument
(keyword_argument
(identifier_grouper) identifier_grouper
(identifier_grouper) identifier_grouper
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(attribute
(identifier_self) identifier_self
(identifier_axis) identifier_axis
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(identifier_ABCDataFrame) identifier_ABCDataFrame
)argument_list
)call
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_how) identifier_how
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_grouped) identifier_grouped
(identifier__aggregate_item_by_item) identifier__aggregate_item_by_item
)attribute
(argument_list
(identifier_how) identifier_how
(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_result) identifier_result
(call
(attribute
(identifier_grouped) identifier_grouped
(identifier_aggregate) identifier_aggregate
)attribute
(argument_list
(identifier_how) identifier_how
(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
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_grouped) identifier_grouped
(identifier_apply) identifier_apply
)attribute
(argument_list
(identifier_how) identifier_how
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier__apply_loffset) identifier__apply_loffset
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__wrap_result) identifier__wrap_result
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Re-evaluate the obj with a groupby aggregation. |
(module
(function_definition
(function_name_prog) function_name_prog
(parameters
(identifier_text) identifier_text
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_adaptor) identifier_adaptor
(call
(attribute
(identifier_ScriptAdaptor) identifier_ScriptAdaptor
(identifier__get_adaptor) identifier__get_adaptor
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_adaptor) identifier_adaptor
(identifier_prog) identifier_prog
)attribute
(identifier_text) identifier_text
)assignment
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Decorator used to specify the program name for the console script
help message.
:param text: The text to use for the program name. |
(module
(function_definition
(function_name_get_relationships_for_idents) function_name_get_relationships_for_idents
(parameters
(identifier_self) identifier_self
(identifier_cid) identifier_cid
(identifier_idents) identifier_idents
)parameters
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list_comprehension
(tuple
(identifier_cid) identifier_cid
(identifier_ident) identifier_ident
)tuple
(for_in_clause
(identifier_ident) identifier_ident
(identifier_idents) identifier_idents
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key_ranges) identifier_key_ranges
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_keys) identifier_keys
(identifier_keys) identifier_keys
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mapping) identifier_mapping
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kvl) identifier_kvl
)attribute
(identifier_scan) identifier_scan
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_TABLE) identifier_TABLE
)attribute
(list_splat
(identifier_key_ranges) identifier_key_ranges
)list_splat
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_label) identifier_label
(call
(attribute
(identifier_self) identifier_self
(identifier__label_from_kvlayer) identifier__label_from_kvlayer
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ident) identifier_ident
(call
(attribute
(identifier_label) identifier_label
(identifier_other) identifier_other
)attribute
(argument_list
(identifier_cid) identifier_cid
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rel_strength) identifier_rel_strength
(attribute
(identifier_label) identifier_label
(identifier_rel_strength) identifier_rel_strength
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_mapping) identifier_mapping
(identifier_ident) identifier_ident
)subscript
(attribute
(identifier_label) identifier_label
(identifier_rel_strength) identifier_rel_strength
)attribute
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_mapping) identifier_mapping
)return_statement
)block
)function_definition
)module | Get relationships between ``idents`` and a ``cid``.
Returns a dictionary mapping the identifiers in ``idents``
to either None, if no relationship label is found between
the identifier and ``cid``, or a RelationshipType classifying
the strength of the relationship between the identifier and
``cid``. |
(module
(function_definition
(function_name_compose_item_handle) function_name_compose_item_handle
(parameters
(identifier_tokens) identifier_tokens
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_CoconutInternalException) identifier_CoconutInternalException
(argument_list
(string_"invalid function composition tokens") string_"invalid function composition tokens"
(identifier_tokens) identifier_tokens
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(subscript
(identifier_tokens) identifier_tokens
(integer_0) integer_0
)subscript
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(binary_operator
(binary_operator
(string_"_coconut_forward_compose(") string_"_coconut_forward_compose("
(call
(attribute
(string_", ") string_", "
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
)argument_list
)call
)binary_operator
(string_")") string_")"
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Process function composition. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.