sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_uninstall_all_visa_handlers) function_name_uninstall_all_visa_handlers
(parameters
(identifier_self) identifier_self
(identifier_session) identifier_session
)parameters
(block
(if_statement
(comparison_operator
(identifier_session) identifier_session
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___uninstall_all_handlers_helper) identifier___uninstall_all_handlers_helper
)attribute
(argument_list
(identifier_session) identifier_session
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(for_statement
(identifier_session) identifier_session
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_handlers) identifier_handlers
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___uninstall_all_handlers_helper) identifier___uninstall_all_handlers_helper
)attribute
(argument_list
(identifier_session) identifier_session
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Uninstalls all previously installed handlers for a particular session.
:param session: Unique logical identifier to a session. If None, operates on all sessions. |
(module
(function_definition
(function_name_tqdm_hook) function_name_tqdm_hook
(parameters
(identifier_t) identifier_t
)parameters
(block
(expression_statement
(assignment
(identifier_last_b) identifier_last_b
(list
(integer_0) integer_0
)list
)assignment
)expression_statement
(function_definition
(function_name_update_to) function_name_update_to
(parameters
(default_parameter
(identifier_b) identifier_b
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_bsize) identifier_bsize
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_tsize) identifier_tsize
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_tsize) identifier_tsize
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_t) identifier_t
(identifier_total) identifier_total
)attribute
(identifier_tsize) identifier_tsize
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_t) identifier_t
(identifier_update) identifier_update
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_b) identifier_b
(subscript
(identifier_last_b) identifier_last_b
(integer_0) integer_0
)subscript
)binary_operator
)parenthesized_expression
(identifier_bsize) identifier_bsize
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_last_b) identifier_last_b
(integer_0) integer_0
)subscript
(identifier_b) identifier_b
)assignment
)expression_statement
)block
)function_definition
(return_statement
(identifier_update_to) identifier_update_to
)return_statement
)block
)function_definition
)module | Wraps tqdm instance.
Don't forget to close() or __exit__()
the tqdm instance once you're done with it (easiest using `with` syntax).
Example
-------
>>> with tqdm(...) as t:
... reporthook = my_hook(t)
... urllib.urlretrieve(..., reporthook=reporthook) |
(module
(function_definition
(function_name_calc_model) function_name_calc_model
(parameters
(identifier_cortex) identifier_cortex
(identifier_model_argument) identifier_model_argument
(default_parameter
(identifier_model_hemi) identifier_model_hemi
(identifier_Ellipsis) identifier_Ellipsis
)default_parameter
(default_parameter
(identifier_radius) identifier_radius
(binary_operator
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
(integer_3) integer_3
)binary_operator
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_pimms) identifier_pimms
(identifier_is_str) identifier_is_str
)attribute
(argument_list
(identifier_model_argument) identifier_model_argument
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_h) identifier_h
(conditional_expression
(attribute
(identifier_cortex) identifier_cortex
(identifier_chirality) identifier_chirality
)attribute
(comparison_operator
(identifier_model_hemi) identifier_model_hemi
(identifier_Ellipsis) identifier_Ellipsis
)comparison_operator
(line_continuation_\) line_continuation_\
(conditional_expression
(None) None
(comparison_operator
(identifier_model_hemi) identifier_model_hemi
(None) None
)comparison_operator
(line_continuation_\) line_continuation_\
(identifier_model_hemi) identifier_model_hemi
)conditional_expression
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(identifier_retinotopy_model) identifier_retinotopy_model
(argument_list
(identifier_model_argument) identifier_model_argument
(keyword_argument
(identifier_hemi) identifier_hemi
(identifier_h) identifier_h
)keyword_argument
(keyword_argument
(identifier_radius) identifier_radius
(identifier_radius) identifier_radius
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(identifier_model_argument) identifier_model_argument
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_model) identifier_model
(identifier_RegisteredRetinotopyModel) identifier_RegisteredRetinotopyModel
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'model must be a RegisteredRetinotopyModel') string_'model must be a RegisteredRetinotopyModel'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
)function_definition
)module | calc_model loads the appropriate model object given the model argument, which may given the name
of the model or a model object itself.
Required afferent parameters:
@ model_argument Must be either a RegisteredRetinotopyModel object or the name of a model that
can be loaded.
Optional afferent parameters:
@ model_hemi May be used to specify the hemisphere of the model; this is usually only used
when the fsaverage_sym hemisphere is desired, in which case this should be set to None; if
left at the default value (Ellipsis), then it will use the hemisphere of the cortex param.
Provided efferent values:
@ model Will be the RegisteredRetinotopyModel object to which the mesh should be registered. |
(module
(function_definition
(function_name___prepare_args) function_name___prepare_args
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_a) identifier_a
(identifier_args) identifier_args
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_a) identifier_a
(attribute
(identifier_six) identifier_six
(identifier_binary_type) identifier_binary_type
)attribute
)argument_list
)call
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___size_expr) identifier___size_expr
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(list
(identifier_a) identifier_a
)list
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(list
(binary_operator
(binary_operator
(string_b'"') string_b'"'
(identifier_a) identifier_a
)binary_operator
(string_b'"') string_b'"'
)binary_operator
)list
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(list
(call
(identifier_bytes) identifier_bytes
(argument_list
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
)argument_list
)call
)argument_list
)call
)list
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Format command arguments before sending them.
Command arguments of type string must be quoted, the only
exception concerns size indication (of the form {\d\+?}).
:param args: list of arguments
:return: a list for transformed arguments |
(module
(function_definition
(function_name_delete_dcnm_out_part) function_name_delete_dcnm_out_part
(parameters
(identifier_self) identifier_self
(identifier_tenant_id) identifier_tenant_id
(identifier_fw_dict) identifier_fw_dict
(default_parameter
(identifier_is_fw_virt) identifier_is_fw_virt
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(attribute
(identifier_fw_const) identifier_fw_const
(identifier_DCNM_OUT_PART_DEL_SUCCESS) identifier_DCNM_OUT_PART_DEL_SUCCESS
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tenant_name) identifier_tenant_name
(call
(attribute
(identifier_fw_dict) identifier_fw_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'tenant_name') string_'tenant_name'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(True) True
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__delete_partition) identifier__delete_partition
)attribute
(argument_list
(identifier_tenant_id) identifier_tenant_id
(identifier_tenant_name) identifier_tenant_name
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(concatenated_string
(string_"deletion of Out Partition failed for tenant ") string_"deletion of Out Partition failed for tenant "
(string_"%(tenant)s, Exception %(exc)s") string_"%(tenant)s, Exception %(exc)s"
)concatenated_string
(dictionary
(pair
(string_'tenant') string_'tenant'
(identifier_tenant_id) identifier_tenant_id
)pair
(pair
(string_'exc') string_'exc'
(call
(identifier_str) identifier_str
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(attribute
(identifier_fw_const) identifier_fw_const
(identifier_DCNM_OUT_PART_DEL_FAIL) identifier_DCNM_OUT_PART_DEL_FAIL
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_fw_db_result) identifier_update_fw_db_result
)attribute
(argument_list
(identifier_tenant_id) identifier_tenant_id
(keyword_argument
(identifier_dcnm_status) identifier_dcnm_status
(identifier_res) identifier_res
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Out partition deleted") string_"Out partition deleted"
)argument_list
)call
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Delete the DCNM OUT partition and update the result. |
(module
(function_definition
(function_name_login) function_name_login
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_username) identifier_username
(None) None
)default_parameter
(default_parameter
(identifier_password) identifier_password
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_username) identifier_username
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_username) identifier_username
(attribute
(identifier_self) identifier_self
(identifier_username) identifier_username
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_password) identifier_password
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_password) identifier_password
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Logging into server") string_"Logging into server"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sc) identifier_sc
)attribute
(identifier_sessionManager) identifier_sessionManager
)attribute
(identifier_Login) identifier_Login
)attribute
(argument_list
(keyword_argument
(identifier_userName) identifier_userName
(identifier_username) identifier_username
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__logged_in) identifier__logged_in
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Login to a vSphere server.
>>> client.login(username='Administrator', password='strongpass')
:param username: The username to authenticate as.
:type username: str
:param password: The password to authenticate with.
:type password: str |
(module
(function_definition
(function_name_set_data_length) function_name_set_data_length
(parameters
(identifier_self) identifier_self
(identifier_length) identifier_length
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__initialized) identifier__initialized
)attribute
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInternalError) identifier_PyCdlibInternalError
)attribute
(argument_list
(string_'El Torito Entry not initialized') string_'El Torito Entry not initialized'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sector_count) identifier_sector_count
)attribute
(call
(attribute
(identifier_utils) identifier_utils
(identifier_ceiling_div) identifier_ceiling_div
)attribute
(argument_list
(identifier_length) identifier_length
(integer_512) integer_512
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | A method to set the length of data for this El Torito Entry.
Parameters:
length - The new length for the El Torito Entry.
Returns:
Nothing. |
(module
(function_definition
(function_name__record_values_for_fit_summary_and_statsmodels) function_name__record_values_for_fit_summary_and_statsmodels
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_needed_attributes) identifier_needed_attributes
(list
(string_"fitted_probs") string_"fitted_probs"
(string_"params") string_"params"
(string_"log_likelihood") string_"log_likelihood"
(string_"standard_errors") string_"standard_errors"
)list
)assignment
)expression_statement
(try_statement
(block
(assert_statement
(call
(identifier_all) identifier_all
(argument_list
(list_comprehension
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)argument_list
)call
(for_in_clause
(identifier_attr) identifier_attr
(identifier_needed_attributes) identifier_needed_attributes
)for_in_clause
)list_comprehension
)argument_list
)call
)assert_statement
(assert_statement
(call
(identifier_all) identifier_all
(argument_list
(list_comprehension
(comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)argument_list
)call
(None) None
)comparison_operator
(for_in_clause
(identifier_attr) identifier_attr
(identifier_needed_attributes) identifier_needed_attributes
)for_in_clause
)list_comprehension
)argument_list
)call
)assert_statement
)block
(except_clause
(identifier_AssertionError) identifier_AssertionError
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_"Call this function only after setting/calculating all other") string_"Call this function only after setting/calculating all other"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg_2) identifier_msg_2
(string_" estimation results attributes") string_" estimation results attributes"
)assignment
)expression_statement
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(binary_operator
(identifier_msg) identifier_msg
(identifier_msg_2) identifier_msg_2
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_nobs) identifier_nobs
)attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fitted_probs) identifier_fitted_probs
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_df_model) identifier_df_model
)attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_params) identifier_params
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_df_resid) identifier_df_resid
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_nobs) identifier_nobs
)attribute
(attribute
(identifier_self) identifier_self
(identifier_df_model) identifier_df_model
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_llf) identifier_llf
)attribute
(attribute
(identifier_self) identifier_self
(identifier_log_likelihood) identifier_log_likelihood
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_bse) identifier_bse
)attribute
(attribute
(identifier_self) identifier_self
(identifier_standard_errors) identifier_standard_errors
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_aic) identifier_aic
)attribute
(call
(identifier_compute_aic) identifier_compute_aic
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_bic) identifier_bic
)attribute
(call
(identifier_compute_bic) identifier_compute_bic
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Store the various estimation results that are used to describe how well
the estimated model fits the given dataset, and record the values that
are needed for the statsmodels estimation results table. All values are
stored on the model instance.
Returns
-------
None. |
(module
(function_definition
(function_name_codemirror_field_js_bundle) function_name_codemirror_field_js_bundle
(parameters
(identifier_field) identifier_field
)parameters
(block
(expression_statement
(assignment
(identifier_manifesto) identifier_manifesto
(call
(identifier_CodemirrorAssetTagRender) identifier_CodemirrorAssetTagRender
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_manifesto) identifier_manifesto
(identifier_register_from_fields) identifier_register_from_fields
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_bundle_name) identifier_bundle_name
(subscript
(call
(attribute
(identifier_manifesto) identifier_manifesto
(identifier_js_bundle_names) identifier_js_bundle_names
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(parenthesized_expression
(concatenated_string
(string_"Given field with configuration name '{}' does not have a ") string_"Given field with configuration name '{}' does not have a "
(string_"Javascript bundle name") string_"Javascript bundle name"
)concatenated_string
)parenthesized_expression
)assignment
)expression_statement
(raise_statement
(call
(identifier_CodeMirrorFieldBundleError) identifier_CodeMirrorFieldBundleError
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_field) identifier_field
(identifier_config_name) identifier_config_name
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_bundle_name) identifier_bundle_name
)return_statement
)block
)function_definition
)module | Filter to get CodeMirror Javascript bundle name needed for a single field.
Example:
::
{% load djangocodemirror_tags %}
{{ form.myfield|codemirror_field_js_bundle }}
Arguments:
field (django.forms.fields.Field): A form field that contains a widget
:class:`djangocodemirror.widget.CodeMirrorWidget`.
Raises:
CodeMirrorFieldBundleError: If Codemirror configuration form field
does not have a bundle name.
Returns:
string: Bundle name to load with webassets. |
(module
(function_definition
(function_name_set_default_headers) function_name_set_default_headers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_mod_opts) identifier_mod_opts
(attribute
(attribute
(identifier_self) identifier_self
(identifier_application) identifier_application
)attribute
(identifier_mod_opts) identifier_mod_opts
)attribute
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_mod_opts) identifier_mod_opts
(identifier_get) identifier_get
)attribute
(argument_list
(string_'cors_origin') string_'cors_origin'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_origin) identifier_origin
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_headers) identifier_headers
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Origin') string_'Origin'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_allowed_origin) identifier_allowed_origin
(call
(identifier__check_cors_origin) identifier__check_cors_origin
(argument_list
(identifier_origin) identifier_origin
(subscript
(identifier_mod_opts) identifier_mod_opts
(string_'cors_origin') string_'cors_origin'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_allowed_origin) identifier_allowed_origin
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_header) identifier_set_header
)attribute
(argument_list
(string_"Access-Control-Allow-Origin") string_"Access-Control-Allow-Origin"
(identifier_allowed_origin) identifier_allowed_origin
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Set default CORS headers |
(module
(function_definition
(function_name_instruction_path) function_name_instruction_path
(parameters
(identifier_cls) identifier_cls
(identifier_project) identifier_project
(identifier_instruction) identifier_instruction
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_path_template) identifier_path_template
)attribute
(identifier_expand) identifier_expand
)attribute
(argument_list
(string_"projects/{project}/instructions/{instruction}") string_"projects/{project}/instructions/{instruction}"
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_instruction) identifier_instruction
(identifier_instruction) identifier_instruction
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a fully-qualified instruction string. |
(module
(function_definition
(function_name_probe_check) function_name_probe_check
(parameters
(identifier_name) identifier_name
(identifier_status) identifier_status
(identifier_device_type) identifier_device_type
)parameters
(block
(expression_statement
(assignment
(identifier_status_string) identifier_status_string
(call
(attribute
(identifier_PROBE_STATE) identifier_PROBE_STATE
(identifier_get) identifier_get
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_status) identifier_status
)argument_list
)call
(string_"unknown") string_"unknown"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_status_string) identifier_status_string
(string_"ok") string_"ok"
)comparison_operator
(block
(return_statement
(expression_list
(identifier_ok) identifier_ok
(call
(attribute
(string_"{} '{}': {}") string_"{} '{}': {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_device_type) identifier_device_type
(identifier_name) identifier_name
(identifier_status_string) identifier_status_string
)argument_list
)call
)expression_list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_status_string) identifier_status_string
(string_"unknown") string_"unknown"
)comparison_operator
(block
(return_statement
(expression_list
(identifier_unknown) identifier_unknown
(call
(attribute
(string_"{} '{}': {}") string_"{} '{}': {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_device_type) identifier_device_type
(identifier_name) identifier_name
(identifier_status_string) identifier_status_string
)argument_list
)call
)expression_list
)return_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_critical) identifier_critical
(call
(attribute
(string_"{} '{}': {}") string_"{} '{}': {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_device_type) identifier_device_type
(identifier_name) identifier_name
(identifier_status_string) identifier_status_string
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | if the status is "ok" in the PROBE_STATE dict, return ok + string
if the status is not "ok", return critical + string |
(module
(function_definition
(function_name__include_term) function_name__include_term
(parameters
(identifier_self) identifier_self
(identifier_term) identifier_term
)parameters
(block
(expression_statement
(assignment
(identifier_ref_needed) identifier_ref_needed
(False) False
)assignment
)expression_statement
(if_statement
(attribute
(identifier_term) identifier_term
(identifier_relations) identifier_relations
)attribute
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(attribute
(identifier_term) identifier_term
(identifier_relations) identifier_relations
)attribute
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_t) identifier_t
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(block
(try_statement
(block
(if_statement
(comparison_operator
(attribute
(identifier_t) identifier_t
(identifier_id) identifier_id
)attribute
(identifier_self) identifier_self
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__include_term) identifier__include_term
)attribute
(argument_list
(identifier_t) identifier_t
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_v) identifier_v
(identifier_i) identifier_i
)subscript
(attribute
(identifier_t) identifier_t
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_ref_needed) identifier_ref_needed
(True) True
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_terms) identifier_terms
)attribute
(attribute
(identifier_term) identifier_term
(identifier_id) identifier_id
)attribute
)subscript
(identifier_term) identifier_term
)assignment
)expression_statement
(return_statement
(identifier_ref_needed) identifier_ref_needed
)return_statement
)block
)function_definition
)module | Add a single term to the current ontology.
It is needed to dereference any term in the term's relationship
and then to build the reference again to make sure the other
terms referenced in the term's relations are the one contained
in the ontology (to make sure changes to one term in the ontology
will be applied to every other term related to that term). |
(module
(function_definition
(function_name__dilated_conv_layer) function_name__dilated_conv_layer
(parameters
(identifier_self) identifier_self
(identifier_output_channels) identifier_output_channels
(identifier_dilation_rate) identifier_dilation_rate
(identifier_apply_relu) identifier_apply_relu
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_layer_components) identifier_layer_components
(list
(call
(attribute
(identifier_conv) identifier_conv
(identifier_Conv2D) identifier_Conv2D
)attribute
(argument_list
(identifier_output_channels) identifier_output_channels
(list
(integer_3) integer_3
(integer_3) integer_3
)list
(keyword_argument
(identifier_initializers) identifier_initializers
(attribute
(identifier_self) identifier_self
(identifier__initializers) identifier__initializers
)attribute
)keyword_argument
(keyword_argument
(identifier_regularizers) identifier_regularizers
(attribute
(identifier_self) identifier_self
(identifier__regularizers) identifier__regularizers
)attribute
)keyword_argument
(keyword_argument
(identifier_rate) identifier_rate
(identifier_dilation_rate) identifier_dilation_rate
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(binary_operator
(string_"dilated_conv_") string_"dilated_conv_"
(identifier_name) identifier_name
)binary_operator
)keyword_argument
)argument_list
)call
)list
)assignment
)expression_statement
(if_statement
(identifier_apply_relu) identifier_apply_relu
(block
(expression_statement
(call
(attribute
(identifier_layer_components) identifier_layer_components
(identifier_append) identifier_append
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_net) identifier_net
)lambda_parameters
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_nn) identifier_nn
)attribute
(identifier_relu) identifier_relu
)attribute
(argument_list
(identifier_net) identifier_net
(keyword_argument
(identifier_name) identifier_name
(binary_operator
(string_"relu_") string_"relu_"
(identifier_name) identifier_name
)binary_operator
)keyword_argument
)argument_list
)call
)lambda
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_sequential) identifier_sequential
(identifier_Sequential) identifier_Sequential
)attribute
(argument_list
(identifier_layer_components) identifier_layer_components
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a dilated convolution layer.
Args:
output_channels: int. Number of output channels for each pixel.
dilation_rate: int. Represents how many pixels each stride offset will
move. A value of 1 indicates a standard convolution.
apply_relu: bool. If True, a ReLU non-linearlity is added.
name: string. Name for layer.
Returns:
a sonnet Module for a dilated convolution. |
(module
(function_definition
(function_name_mod_watch) function_name_mod_watch
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_restart) identifier_restart
(True) True
)default_parameter
(default_parameter
(identifier_update) identifier_update
(False) False
)default_parameter
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
(default_parameter
(identifier_conf_file) identifier_conf_file
(None) None
)default_parameter
(default_parameter
(identifier_bin_env) identifier_bin_env
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_running) identifier_running
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_restart) identifier_restart
(identifier_restart) identifier_restart
)keyword_argument
(keyword_argument
(identifier_update) identifier_update
(identifier_update) identifier_update
)keyword_argument
(keyword_argument
(identifier_user) identifier_user
(identifier_user) identifier_user
)keyword_argument
(keyword_argument
(identifier_conf_file) identifier_conf_file
(identifier_conf_file) identifier_conf_file
)keyword_argument
(keyword_argument
(identifier_bin_env) identifier_bin_env
(identifier_bin_env) identifier_bin_env
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | The supervisord watcher, called to invoke the watch command.
Always restart on watch
.. note::
This state exists to support special handling of the ``watch``
:ref:`requisite <requisites>`. It should not be called directly.
Parameters for this function should be set by the state being triggered. |
(module
(function_definition
(function_name_raise_from) function_name_raise_from
(parameters
(identifier_exc) identifier_exc
(identifier_cause) identifier_cause
)parameters
(block
(expression_statement
(assignment
(identifier_context_tb) identifier_context_tb
(subscript
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_incorrect_cause) identifier_incorrect_cause
(not_operator
(parenthesized_expression
(boolean_operator
(boolean_operator
(parenthesized_expression
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cause) identifier_cause
(identifier_type) identifier_type
)argument_list
)call
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_cause) identifier_cause
(identifier_Exception) identifier_Exception
)argument_list
)call
)boolean_operator
)parenthesized_expression
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cause) identifier_cause
(identifier_BaseException) identifier_BaseException
)argument_list
)call
)boolean_operator
(comparison_operator
(identifier_cause) identifier_cause
(None) None
)comparison_operator
)boolean_operator
)parenthesized_expression
)not_operator
)assignment
)expression_statement
(if_statement
(identifier_incorrect_cause) identifier_incorrect_cause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"exception causes must derive from BaseException") string_"exception causes must derive from BaseException"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_cause) identifier_cause
(None) None
)comparison_operator
(block
(if_statement
(not_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_cause) identifier_cause
(string_"__pep3134__") string_"__pep3134__"
(False) False
)argument_list
)call
)not_operator
(block
(try_statement
(block
(expression_statement
(call
(identifier_raise_) identifier_raise_
(argument_list
(identifier_cause) identifier_cause
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(assignment
(identifier_cause) identifier_cause
(subscript
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_cause) identifier_cause
(identifier___fixed_traceback__) identifier___fixed_traceback__
)attribute
(identifier_context_tb) identifier_context_tb
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(identifier_raise_) identifier_raise_
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(assignment
(identifier_exc) identifier_exc
(subscript
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_exc) identifier_exc
(identifier___original_exception__) identifier___original_exception__
)attribute
(identifier___suppress_context__) identifier___suppress_context__
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_exc) identifier_exc
(identifier___original_exception__) identifier___original_exception__
)attribute
(identifier___cause__) identifier___cause__
)attribute
(identifier_cause) identifier_cause
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_exc) identifier_exc
(identifier___original_exception__) identifier___original_exception__
)attribute
(identifier___context__) identifier___context__
)attribute
(None) None
)assignment
)expression_statement
(raise_statement
(identifier_exc) identifier_exc
)raise_statement
)block
)function_definition
)module | Does the same as ``raise LALALA from BLABLABLA`` does in Python 3.
But works in Python 2 also!
Please checkout README on https://github.com/9seconds/pep3134
to get an idea about possible pitfals. But short story is: please
be pretty carefull with tracebacks. If it is possible, use sys.exc_info
instead. But in most cases it will work as you expect. |
(module
(function_definition
(function_name_standby) function_name_standby
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_register) identifier_register
(subscript
(attribute
(identifier_self) identifier_self
(identifier_MMA8452Q_Register) identifier_MMA8452Q_Register
)attribute
(string_'CTRL_REG1') string_'CTRL_REG1'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_board) identifier_board
)attribute
(identifier_i2c_read_request) identifier_i2c_read_request
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_address) identifier_address
)attribute
(identifier_register) identifier_register
(integer_1) integer_1
(binary_operator
(attribute
(identifier_Constants) identifier_Constants
(identifier_I2C_READ) identifier_I2C_READ
)attribute
(attribute
(identifier_Constants) identifier_Constants
(identifier_I2C_END_TX_MASK) identifier_I2C_END_TX_MASK
)attribute
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_data_val) identifier_data_val
)attribute
(attribute
(identifier_Constants) identifier_Constants
(identifier_CB_TYPE_DIRECT) identifier_CB_TYPE_DIRECT
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ctrl1) identifier_ctrl1
(call
(attribute
(identifier_self) identifier_self
(identifier_wait_for_read_result) identifier_wait_for_read_result
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ctrl1) identifier_ctrl1
(binary_operator
(parenthesized_expression
(subscript
(identifier_ctrl1) identifier_ctrl1
(attribute
(identifier_self) identifier_self
(identifier_data_start) identifier_data_start
)attribute
)subscript
)parenthesized_expression
(unary_operator
(integer_0x01) integer_0x01
)unary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_callback_data) identifier_callback_data
)attribute
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_board) identifier_board
)attribute
(identifier_i2c_write_request) identifier_i2c_write_request
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_address) identifier_address
)attribute
(list
(identifier_register) identifier_register
(identifier_ctrl1) identifier_ctrl1
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Put the device into standby mode so that the registers can be set.
@return: No return value |
(module
(function_definition
(function_name_drop_columns) function_name_drop_columns
(parameters
(identifier_records) identifier_records
(identifier_slices) identifier_slices
)parameters
(block
(for_statement
(identifier_record) identifier_record
(identifier_records) identifier_records
(block
(expression_statement
(assignment
(identifier_drop) identifier_drop
(call
(identifier_set) identifier_set
(generator_expression
(identifier_i) identifier_i
(for_in_clause
(identifier_slice) identifier_slice
(identifier_slices) identifier_slices
)for_in_clause
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(list_splat
(call
(attribute
(identifier_slice) identifier_slice
(identifier_indices) identifier_indices
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)argument_list
)call
)list_splat
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_keep) identifier_keep
(list_comprehension
(comparison_operator
(identifier_i) identifier_i
(identifier_drop) identifier_drop
)comparison_operator
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_seq) identifier_seq
)attribute
(call
(identifier_Seq) identifier_Seq
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_compress) identifier_compress
)attribute
(argument_list
(attribute
(identifier_record) identifier_record
(identifier_seq) identifier_seq
)attribute
(identifier_keep) identifier_keep
)argument_list
)call
)argument_list
)call
(attribute
(attribute
(identifier_record) identifier_record
(identifier_seq) identifier_seq
)attribute
(identifier_alphabet) identifier_alphabet
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(identifier_record) identifier_record
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Drop all columns present in ``slices`` from records |
(module
(function_definition
(function_name_response) function_name_response
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(default_parameter
(identifier_response_type) identifier_response_type
(string_'ephemeral') string_'ephemeral'
)default_parameter
(default_parameter
(identifier_attachments) identifier_attachments
(None) None
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_flask) identifier_flask
)dotted_name
(dotted_name
(identifier_jsonify) identifier_jsonify
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(identifier_attachments) identifier_attachments
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_attachments) identifier_attachments
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'response_type') string_'response_type'
(identifier_response_type) identifier_response_type
)pair
(pair
(string_'text') string_'text'
(identifier_text) identifier_text
)pair
(pair
(string_'attachments') string_'attachments'
(identifier_attachments) identifier_attachments
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(identifier_jsonify) identifier_jsonify
(argument_list
(dictionary_splat
(identifier_data) identifier_data
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a response with json format
:param text: the text returned to the client
:param response_type: optional. When `in_channel` is assigned,
both the response message and the initial
message typed by the user will be shared
in the channel.
When `ephemeral` is assigned, the response
message will be visible only to the user
that issued the command.
:param attachments: optional. A list of additional messages
for rich response. |
(module
(function_definition
(function_name_reverse_dependencies) function_name_reverse_dependencies
(parameters
(identifier_self) identifier_self
(identifier_ireqs) identifier_ireqs
)parameters
(block
(expression_statement
(assignment
(identifier_ireqs_as_cache_values) identifier_ireqs_as_cache_values
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_as_cache_key) identifier_as_cache_key
)attribute
(argument_list
(identifier_ireq) identifier_ireq
)argument_list
)call
(for_in_clause
(identifier_ireq) identifier_ireq
(identifier_ireqs) identifier_ireqs
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__reverse_dependencies) identifier__reverse_dependencies
)attribute
(argument_list
(identifier_ireqs_as_cache_values) identifier_ireqs_as_cache_values
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a lookup table of reverse dependencies for all the given ireqs.
Since this is all static, it only works if the dependency cache
contains the complete data, otherwise you end up with a partial view.
This is typically no problem if you use this function after the entire
dependency tree is resolved. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(await
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_r) identifier_r
(identifier_table_name) identifier_table_name
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
)attribute
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_run) identifier_run
)attribute
(argument_list
(await
(call
(attribute
(identifier_conn) identifier_conn
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)await
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Deletes the model from the database. |
(module
(function_definition
(function_name_check) function_name_check
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pathfinder) identifier_pathfinder
(call
(identifier_Pathfinder) identifier_Pathfinder
(argument_list
(True) True
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_pathfinder) identifier_pathfinder
(identifier_add_path) identifier_add_path
)attribute
(argument_list
(subscript
(identifier_pathfinder) identifier_pathfinder
(string_'superfamily') string_'superfamily'
)subscript
)argument_list
)call
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"'superfamily' data directory is missing") string_"'superfamily' data directory is missing"
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_tool) identifier_tool
(tuple
(string_'hmmscan') string_'hmmscan'
(string_'phmmer') string_'phmmer'
(string_'mast') string_'mast'
(string_'blastp') string_'blastp'
(string_'ass3.pl') string_'ass3.pl'
(string_'hmmscan.pl') string_'hmmscan.pl'
)tuple
(block
(if_statement
(not_operator
(call
(attribute
(identifier_pathfinder) identifier_pathfinder
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_tool) identifier_tool
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(call
(attribute
(string_'Dependency {} is missing') string_'Dependency {} is missing'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_tool) identifier_tool
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Check if data and third party tools, necessary to run the classification, are available
:raises: RuntimeError |
(module
(function_definition
(function_name_jenkins_last_build_sha) function_name_jenkins_last_build_sha
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_job_url) identifier_job_url
(call
(attribute
(identifier_os) identifier_os
(identifier_getenv) identifier_getenv
)attribute
(argument_list
(string_'JOB_URL') string_'JOB_URL'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_job_json_url) identifier_job_json_url
(call
(attribute
(string_"{0}/api/json") string_"{0}/api/json"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_job_url) identifier_job_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_urlopen) identifier_urlopen
)attribute
(argument_list
(identifier_job_json_url) identifier_job_json_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_job_data) identifier_job_data
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_completed_build_url) identifier_last_completed_build_url
(subscript
(subscript
(identifier_job_data) identifier_job_data
(string_'lastCompletedBuild') string_'lastCompletedBuild'
)subscript
(string_'url') string_'url'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_complete_build_json_url) identifier_last_complete_build_json_url
(call
(attribute
(string_"{0}/api/json") string_"{0}/api/json"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_last_completed_build_url) identifier_last_completed_build_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_urlopen) identifier_urlopen
)attribute
(argument_list
(identifier_last_complete_build_json_url) identifier_last_complete_build_json_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_completed_build) identifier_last_completed_build
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(subscript
(subscript
(identifier_last_completed_build) identifier_last_completed_build
(integer_1) integer_1
)subscript
(string_'lastBuiltRevision') string_'lastBuiltRevision'
)subscript
(string_'SHA1') string_'SHA1'
)subscript
)return_statement
)block
)function_definition
)module | Returns the sha of the last completed jenkins build for this project.
Expects JOB_URL in environment |
(module
(function_definition
(function_name_fmt_cut) function_name_fmt_cut
(parameters
(identifier_cut) identifier_cut
)parameters
(block
(return_statement
(call
(attribute
(string_'Cut {from_nodes} {symbol} {to_nodes}') string_'Cut {from_nodes} {symbol} {to_nodes}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_from_nodes) identifier_from_nodes
(call
(identifier_fmt_mechanism) identifier_fmt_mechanism
(argument_list
(attribute
(identifier_cut) identifier_cut
(identifier_from_nodes) identifier_from_nodes
)attribute
(attribute
(identifier_cut) identifier_cut
(identifier_node_labels) identifier_node_labels
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_symbol) identifier_symbol
(identifier_CUT_SYMBOL) identifier_CUT_SYMBOL
)keyword_argument
(keyword_argument
(identifier_to_nodes) identifier_to_nodes
(call
(identifier_fmt_mechanism) identifier_fmt_mechanism
(argument_list
(attribute
(identifier_cut) identifier_cut
(identifier_to_nodes) identifier_to_nodes
)attribute
(attribute
(identifier_cut) identifier_cut
(identifier_node_labels) identifier_node_labels
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Format a |Cut|. |
(module
(function_definition
(function_name__check_rel) function_name__check_rel
(parameters
(identifier_attrs) identifier_attrs
(identifier_rel_whitelist) identifier_rel_whitelist
(identifier_rel_blacklist) identifier_rel_blacklist
)parameters
(block
(expression_statement
(assignment
(identifier_rels) identifier_rels
(call
(attribute
(identifier_attrs) identifier_attrs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'rel') string_'rel'
(list
(None) None
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_rel_blacklist) identifier_rel_blacklist
(block
(for_statement
(identifier_rel) identifier_rel
(identifier_rels) identifier_rels
(block
(if_statement
(comparison_operator
(identifier_rel) identifier_rel
(identifier_rel_blacklist) identifier_rel_blacklist
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(if_statement
(identifier_rel_whitelist) identifier_rel_whitelist
(block
(for_statement
(identifier_rel) identifier_rel
(identifier_rels) identifier_rels
(block
(if_statement
(comparison_operator
(identifier_rel) identifier_rel
(identifier_rel_whitelist) identifier_rel_whitelist
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check a link's relations against the whitelist or blacklist.
First, this will reject based on blacklist.
Next, if there is a whitelist, there must be at least one rel that matches.
To explicitly allow links without a rel you can add None to the whitelist
(e.g. ['in-reply-to',None]) |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_compress) identifier_compress
(True) True
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_aux) identifier_aux
(identifier_PartiallySafeReplace) identifier_PartiallySafeReplace
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_msr) identifier_msr
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
(string_'name') string_'name'
)subscript
(string_'.proteindb') string_'.proteindb'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filepath) identifier_filepath
(call
(attribute
(identifier_aux) identifier_aux
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_msr) identifier_msr
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filepath) identifier_filepath
(keyword_argument
(identifier_mode) identifier_mode
(string_'w+b') string_'w+b'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_openfile) identifier_openfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__writeContainer) identifier__writeContainer
)attribute
(argument_list
(identifier_openfile) identifier_openfile
(keyword_argument
(identifier_compress) identifier_compress
(identifier_compress) identifier_compress
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)with_statement
)block
)function_definition
)module | Writes the ``.proteins`` and ``.peptides`` entries to the hard disk
as a ``proteindb`` file.
.. note::
If ``.save()`` is called and no ``proteindb`` file is present in the
specified path a new files is generated, otherwise the old file is
replaced.
:param path: filedirectory to which the ``proteindb`` file is written.
The output file name is specified by ``self.info['name']``
:param compress: bool, True to use zip file compression |
(module
(function_definition
(function_name__makeIndentFromWidth) function_name__makeIndentFromWidth
(parameters
(identifier_self) identifier_self
(identifier_width) identifier_width
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__indenter) identifier__indenter
)attribute
(identifier_useTabs) identifier_useTabs
)attribute
(block
(expression_statement
(assignment
(pattern_list
(identifier_tabCount) identifier_tabCount
(identifier_spaceCount) identifier_spaceCount
)pattern_list
(call
(identifier_divmod) identifier_divmod
(argument_list
(identifier_width) identifier_width
(attribute
(attribute
(identifier_self) identifier_self
(identifier__indenter) identifier__indenter
)attribute
(identifier_width) identifier_width
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(string_'\t') string_'\t'
(identifier_tabCount) identifier_tabCount
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(string_' ') string_' '
(identifier_spaceCount) identifier_spaceCount
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_' ') string_' '
(identifier_width) identifier_width
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Make indent text with specified with.
Contains width count of spaces, or tabs and spaces |
(module
(function_definition
(function_name_merge_bed_by_name) function_name_merge_bed_by_name
(parameters
(identifier_bt) identifier_bt
)parameters
(block
(expression_statement
(assignment
(identifier_name_lines) identifier_name_lines
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_r) identifier_r
(identifier_bt) identifier_bt
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(attribute
(identifier_r) identifier_r
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_name_lines) identifier_name_lines
(identifier_name) identifier_name
)subscript
(binary_operator
(call
(attribute
(identifier_name_lines) identifier_name_lines
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
(list
)list
)argument_list
)call
(list
(list
(attribute
(identifier_r) identifier_r
(identifier_chrom) identifier_chrom
)attribute
(attribute
(identifier_r) identifier_r
(identifier_start) identifier_start
)attribute
(attribute
(identifier_r) identifier_r
(identifier_end) identifier_end
)attribute
(attribute
(identifier_r) identifier_r
(identifier_name) identifier_name
)attribute
(attribute
(identifier_r) identifier_r
(identifier_strand) identifier_strand
)attribute
)list
)list
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_new_lines) identifier_new_lines
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(call
(attribute
(identifier_name_lines) identifier_name_lines
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_new_lines) identifier_new_lines
(call
(identifier__merge_interval_list) identifier__merge_interval_list
(argument_list
(subscript
(identifier_name_lines) identifier_name_lines
(identifier_name) identifier_name
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_new_lines) identifier_new_lines
(list_comprehension
(call
(attribute
(string_'\t') string_'\t'
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_str) identifier_str
(identifier_x) identifier_x
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_new_lines) identifier_new_lines
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_pbt) identifier_pbt
(identifier_BedTool) identifier_BedTool
)attribute
(argument_list
(binary_operator
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_new_lines) identifier_new_lines
)argument_list
)call
(string_'\n') string_'\n'
)binary_operator
(keyword_argument
(identifier_from_string) identifier_from_string
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Merge intervals in a bed file when the intervals have the same name.
Intervals with the same name must be adjacent in the bed file. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_target) identifier_target
(default_parameter
(identifier_source_module) identifier_source_module
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_module) identifier_module
(identifier_klass) identifier_klass
(identifier_function) identifier_function
)pattern_list
(call
(identifier__get_module) identifier__get_module
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_module) identifier_module
)not_operator
(identifier_source_module) identifier_source_module
)boolean_operator
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(identifier_source_module) identifier_source_module
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_module) identifier_module
)not_operator
(block
(raise_statement
(call
(identifier_MissingModule) identifier_MissingModule
(argument_list
(string_"No module name supplied or source_module provided.") string_"No module name supplied or source_module provided."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_actual_module) identifier_actual_module
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_modules) identifier_modules
)attribute
(identifier_module) identifier_module
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_klass) identifier_klass
)not_operator
(block
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_actual_module) identifier_actual_module
(identifier_function) identifier_function
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_class_object) identifier_class_object
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_actual_module) identifier_actual_module
(identifier_klass) identifier_klass
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_function) identifier_function
(block
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_class_object) identifier_class_object
(identifier_function) identifier_function
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_class_object) identifier_class_object
)return_statement
)block
)function_definition
)module | Get the actual implementation of the target. |
(module
(function_definition
(function_name_sorted_groupby) function_name_sorted_groupby
(parameters
(identifier_df) identifier_df
(identifier_groupby) identifier_groupby
)parameters
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev) identifier_prev
(subscript
(attribute
(subscript
(identifier_df) identifier_df
(identifier_groupby) identifier_groupby
)subscript
(identifier_iloc) identifier_iloc
)attribute
(identifier_start) identifier_start
)subscript
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_x) identifier_x
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(subscript
(identifier_df) identifier_df
(identifier_groupby) identifier_groupby
)subscript
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_x) identifier_x
(identifier_prev) identifier_prev
)comparison_operator
(block
(expression_statement
(yield
(expression_list
(identifier_prev) identifier_prev
(subscript
(attribute
(identifier_df) identifier_df
(identifier_iloc) identifier_iloc
)attribute
(slice
(identifier_start) identifier_start
(colon) colon
(identifier_i) identifier_i
)slice
)subscript
)expression_list
)yield
)expression_statement
(expression_statement
(assignment
(identifier_prev) identifier_prev
(identifier_x) identifier_x
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(identifier_i) identifier_i
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(yield
(expression_list
(identifier_prev) identifier_prev
(subscript
(attribute
(identifier_df) identifier_df
(identifier_iloc) identifier_iloc
)attribute
(slice
(identifier_start) identifier_start
(colon) colon
)slice
)subscript
)expression_list
)yield
)expression_statement
)block
)function_definition
)module | Perform a groupby on a DataFrame using a specific column
and assuming that that column is sorted.
Parameters
----------
df : pandas.DataFrame
groupby : object
Column name on which to groupby. This column must be sorted.
Returns
-------
generator
Yields pairs of group_name, DataFrame. |
(module
(function_definition
(function_name_redirect) function_name_redirect
(parameters
(default_parameter
(identifier_view) identifier_view
(None) None
)default_parameter
(default_parameter
(identifier_url) identifier_url
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_view) identifier_view
(block
(if_statement
(identifier_url) identifier_url
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_"url") string_"url"
)subscript
(identifier_url) identifier_url
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_flask) identifier_flask
(identifier_url_for) identifier_url_for
)attribute
(argument_list
(identifier_view) identifier_view
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_current_context) identifier_current_context
(identifier_exit) identifier_exit
)attribute
(argument_list
(call
(attribute
(identifier_flask) identifier_flask
(identifier_redirect) identifier_redirect
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Redirects to the specified view or url |
(module
(function_definition
(function_name_pixel_coord) function_name_pixel_coord
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_pixel_coordinates) identifier_get_pixel_coordinates
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reading) identifier_reading
)attribute
(identifier_pix_coord) identifier_pix_coord
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reading) identifier_reading
)attribute
(identifier_get_ccd_num) identifier_get_ccd_num
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the coordinates of the source in the cutout reference frame.
@return: |
(module
(function_definition
(function_name_fullConn) function_name_fullConn
(parameters
(identifier_self) identifier_self
(identifier_preCellsTags) identifier_preCellsTags
(identifier_postCellsTags) identifier_postCellsTags
(identifier_connParam) identifier_connParam
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
)relative_import
(dotted_name
(identifier_sim) identifier_sim
)dotted_name
)import_from_statement
(if_statement
(attribute
(attribute
(identifier_sim) identifier_sim
(identifier_cfg) identifier_cfg
)attribute
(identifier_verbose) identifier_verbose
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'Generating set of all-to-all connections (rule: %s) ...') string_'Generating set of all-to-all connections (rule: %s) ...'
(parenthesized_expression
(subscript
(identifier_connParam) identifier_connParam
(string_'label') string_'label'
)subscript
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_paramsStrFunc) identifier_paramsStrFunc
(list_comprehension
(identifier_param) identifier_param
(for_in_clause
(identifier_param) identifier_param
(list_comprehension
(binary_operator
(identifier_p) identifier_p
(string_'Func') string_'Func'
)binary_operator
(for_in_clause
(identifier_p) identifier_p
(attribute
(identifier_self) identifier_self
(identifier_connStringFuncParams) identifier_connStringFuncParams
)attribute
)for_in_clause
)list_comprehension
)for_in_clause
(if_clause
(comparison_operator
(identifier_param) identifier_param
(identifier_connParam) identifier_connParam
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_paramStrFunc) identifier_paramStrFunc
(identifier_paramsStrFunc) identifier_paramsStrFunc
(block
(expression_statement
(assignment
(subscript
(identifier_connParam) identifier_connParam
(binary_operator
(subscript
(identifier_paramStrFunc) identifier_paramStrFunc
(slice
(colon) colon
(unary_operator
(integer_4) integer_4
)unary_operator
)slice
)subscript
(string_'List') string_'List'
)binary_operator
)subscript
(dictionary_comprehension
(pair
(tuple
(identifier_preGid) identifier_preGid
(identifier_postGid) identifier_postGid
)tuple
(call
(subscript
(identifier_connParam) identifier_connParam
(identifier_paramStrFunc) identifier_paramStrFunc
)subscript
(argument_list
(dictionary_splat
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(conditional_expression
(identifier_v) identifier_v
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_Number) identifier_Number
)argument_list
)call
(call
(identifier_v) identifier_v
(argument_list
(identifier_preCellTags) identifier_preCellTags
(identifier_postCellTags) identifier_postCellTags
)argument_list
)call
)conditional_expression
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(subscript
(identifier_connParam) identifier_connParam
(binary_operator
(identifier_paramStrFunc) identifier_paramStrFunc
(string_'Vars') string_'Vars'
)binary_operator
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)dictionary_splat
)argument_list
)call
)pair
(for_in_clause
(pattern_list
(identifier_preGid) identifier_preGid
(identifier_preCellTags) identifier_preCellTags
)pattern_list
(call
(attribute
(identifier_preCellsTags) identifier_preCellsTags
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(for_in_clause
(pattern_list
(identifier_postGid) identifier_postGid
(identifier_postCellTags) identifier_postCellTags
)pattern_list
(call
(attribute
(identifier_postCellsTags) identifier_postCellsTags
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_postCellGid) identifier_postCellGid
(identifier_postCellsTags) identifier_postCellsTags
(block
(if_statement
(comparison_operator
(identifier_postCellGid) identifier_postCellGid
(attribute
(identifier_self) identifier_self
(identifier_gid2lid) identifier_gid2lid
)attribute
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_preCellGid) identifier_preCellGid
(identifier_preCellTags) identifier_preCellTags
)pattern_list
(call
(attribute
(identifier_preCellsTags) identifier_preCellsTags
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__addCellConn) identifier__addCellConn
)attribute
(argument_list
(identifier_connParam) identifier_connParam
(identifier_preCellGid) identifier_preCellGid
(identifier_postCellGid) identifier_postCellGid
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Generates connections between all pre and post-syn cells |
(module
(function_definition
(function_name_has_neigh) function_name_has_neigh
(parameters
(identifier_tag_name) identifier_tag_name
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_content) identifier_content
(None) None
)default_parameter
(default_parameter
(identifier_left) identifier_left
(True) True
)default_parameter
)parameters
(block
(function_definition
(function_name_has_neigh_closure) function_name_has_neigh_closure
(parameters
(identifier_element) identifier_element
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_element) identifier_element
(identifier_parent) identifier_parent
)attribute
)not_operator
(line_continuation_\) line_continuation_\
(not_operator
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_element) identifier_element
(identifier_isTag) identifier_isTag
)attribute
(argument_list
)argument_list
)call
(not_operator
(call
(attribute
(identifier_element) identifier_element
(identifier_isEndTag) identifier_isEndTag
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
)parenthesized_expression
)not_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_childs) identifier_childs
(attribute
(attribute
(identifier_element) identifier_element
(identifier_parent) identifier_parent
)attribute
(identifier_childs) identifier_childs
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_childs) identifier_childs
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(boolean_operator
(boolean_operator
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_x) identifier_x
(identifier_isTag) identifier_isTag
)attribute
(argument_list
)argument_list
)call
(not_operator
(call
(attribute
(identifier_x) identifier_x
(identifier_isEndTag) identifier_isEndTag
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
)parenthesized_expression
(line_continuation_\) line_continuation_\
(call
(attribute
(call
(attribute
(identifier_x) identifier_x
(identifier_getContent) identifier_getContent
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(comparison_operator
(identifier_x) identifier_x
(identifier_element) identifier_element
)comparison_operator
)boolean_operator
)lambda
(identifier_childs) identifier_childs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_childs) identifier_childs
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ioe) identifier_ioe
(call
(attribute
(identifier_childs) identifier_childs
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_left) identifier_left
(comparison_operator
(identifier_ioe) identifier_ioe
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_is_equal_tag) identifier_is_equal_tag
(argument_list
(subscript
(identifier_childs) identifier_childs
(binary_operator
(identifier_ioe) identifier_ioe
(integer_1) integer_1
)binary_operator
)subscript
(identifier_tag_name) identifier_tag_name
(identifier_params) identifier_params
(identifier_content) identifier_content
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_left) identifier_left
)not_operator
(comparison_operator
(binary_operator
(identifier_ioe) identifier_ioe
(integer_1) integer_1
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_childs) identifier_childs
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_is_equal_tag) identifier_is_equal_tag
(argument_list
(subscript
(identifier_childs) identifier_childs
(binary_operator
(identifier_ioe) identifier_ioe
(integer_1) integer_1
)binary_operator
)subscript
(identifier_tag_name) identifier_tag_name
(identifier_params) identifier_params
(identifier_content) identifier_content
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
(return_statement
(identifier_has_neigh_closure) identifier_has_neigh_closure
)return_statement
)block
)function_definition
)module | This function generates functions, which matches all tags with neighbours
defined by parameters.
Args:
tag_name (str): Tag has to have neighbour with this tagname.
params (dict): Tag has to have neighbour with this parameters.
params (str): Tag has to have neighbour with this content.
left (bool, default True): Tag has to have neigbour on the left, or
right (set to ``False``).
Returns:
bool: True for every matching tag.
Note:
This function can be used as parameter for ``.find()`` method in
HTMLElement. |
(module
(function_definition
(function_name_fix_style) function_name_fix_style
(parameters
(default_parameter
(identifier_style) identifier_style
(string_'basic') string_'basic'
)default_parameter
(default_parameter
(identifier_ax) identifier_ax
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_style) identifier_style
(call
(identifier__read_style) identifier__read_style
(argument_list
(identifier_style) identifier_style
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_s) identifier_s
(identifier_style) identifier_style
(block
(if_statement
(not_operator
(comparison_operator
(identifier_s) identifier_s
(call
(attribute
(identifier_style_params) identifier_style_params
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)not_operator
(block
(expression_statement
(assignment
(identifier_avail) identifier_avail
(list_comprehension
(call
(attribute
(identifier_f) identifier_f
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'.mplstyle') string_'.mplstyle'
(string_'') string_''
)argument_list
)call
(for_in_clause
(identifier_f) identifier_f
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(call
(identifier__get_lib) identifier__get_lib
(argument_list
)argument_list
)call
)argument_list
)call
)for_in_clause
(if_clause
(call
(attribute
(identifier_f) identifier_f
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.mplstyle') string_'.mplstyle'
)argument_list
)call
)if_clause
)list_comprehension
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(binary_operator
(call
(attribute
(string_'{0} is not a valid style. ') string_'{0} is not a valid style. '
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(string_'Please pick a style from the list available in ') string_'Please pick a style from the list available in '
)binary_operator
(call
(attribute
(string_'{0}: {1}') string_'{0}: {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier__get_lib) identifier__get_lib
(argument_list
)argument_list
)call
(identifier_avail) identifier_avail
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(identifier__fix_style) identifier__fix_style
(argument_list
(identifier_style) identifier_style
(identifier_ax) identifier_ax
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add an extra formatting layer to an axe, that couldn't be changed directly
in matplotlib.rcParams or with styles. Apply this function to every axe
you created.
Parameters
----------
ax: a matplotlib axe.
If None, the last axe generated is used
style: string or list of string
['basic', 'article', 'poster', 'B&W','talk','origin']
one of the styles previously defined. It should match the style you
chose in set_style but nothing forces you to.
kwargs: dict
edit any of the style_params keys. ex:
>>> tight_layout=False
Examples
--------
plb.set_style('poster')
plt.plot(a,np.cos(a))
plb.fix_style('poster',**{'draggable_legend':False})
See Also
--------
:func:`~publib.publib.set_style`
:func:`~publib.tools.tools.reset_defaults` |
(module
(function_definition
(function_name_edit_view) function_name_edit_view
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_object_id) identifier_object_id
)parameters
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
(pair
(string_'model_admin') string_'model_admin'
(identifier_self) identifier_self
)pair
(pair
(string_'object_id') string_'object_id'
(identifier_object_id) identifier_object_id
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_view_class) identifier_view_class
(attribute
(identifier_self) identifier_self
(identifier_edit_view_class) identifier_edit_view_class
)attribute
)assignment
)expression_statement
(return_statement
(call
(call
(attribute
(identifier_view_class) identifier_view_class
(identifier_as_view) identifier_as_view
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)return_statement
)block
)function_definition
)module | Instantiates a class-based view to provide 'edit' functionality for the
assigned model, or redirect to Wagtail's edit view if the assigned
model extends 'Page'. The view class used can be overridden by changing
the 'edit_view_class' attribute. |
(module
(function_definition
(function_name_trim) function_name_trim
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
)return_statement
(for_statement
(identifier_l) identifier_l
(subscript
(attribute
(identifier_self) identifier_self
(identifier__levels) identifier__levels
)attribute
(slice
(unary_operator
(integer_2) integer_2
)unary_operator
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(for_statement
(identifier_n) identifier_n
(identifier_l) identifier_l
(block
(if_statement
(attribute
(identifier_n) identifier_n
(identifier_is_leaf) identifier_is_leaf
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_n) identifier_n
(identifier_parent) identifier_parent
)attribute
(identifier_remove_child) identifier_remove_child
)attribute
(argument_list
(attribute
(identifier_n) identifier_n
(identifier_label) identifier_label
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__clear_all_leaves) identifier__clear_all_leaves
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Trims leaves from tree that are not observed at highest-resolution level
This is a bit hacky-- what it does is |
(module
(function_definition
(function_name_update_confirmation) function_name_update_confirmation
(parameters
(identifier_self) identifier_self
(identifier_confirmation_id) identifier_confirmation_id
(identifier_confirmation_dict) identifier_confirmation_dict
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__create_put_request) identifier__create_put_request
)attribute
(argument_list
(keyword_argument
(identifier_resource) identifier_resource
(identifier_CONFIRMATIONS) identifier_CONFIRMATIONS
)keyword_argument
(keyword_argument
(identifier_billomat_id) identifier_billomat_id
(identifier_confirmation_id) identifier_confirmation_id
)keyword_argument
(keyword_argument
(identifier_send_data) identifier_send_data
(identifier_confirmation_dict) identifier_confirmation_dict
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Updates a confirmation
:param confirmation_id: the confirmation id
:param confirmation_dict: dict
:return: dict |
(module
(function_definition
(function_name__cast_to_type) function_name__cast_to_type
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fail) identifier_fail
)attribute
(argument_list
(string_'invalid') string_'invalid'
(keyword_argument
(identifier_value) identifier_value
(identifier_value) identifier_value
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Raise error if the value is not a list |
(module
(function_definition
(function_name_update_os_version) function_name_update_os_version
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_chain) identifier_chain
)attribute
(identifier_connection) identifier_connection
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(string_"Detecting os version") string_"Detecting os version"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_os_version) identifier_os_version
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_driver) identifier_driver
)attribute
(identifier_get_os_version) identifier_get_os_version
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_version_text) identifier_version_text
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_os_version) identifier_os_version
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_chain) identifier_chain
)attribute
(identifier_connection) identifier_connection
)attribute
(identifier_log) identifier_log
)attribute
(argument_list
(call
(attribute
(string_"SW Version: {}") string_"SW Version: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_os_version) identifier_os_version
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_os_version) identifier_os_version
)attribute
(identifier_os_version) identifier_os_version
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Update os_version attribute. |
(module
(function_definition
(function_name_fromHTML) function_name_fromHTML
(parameters
(identifier_html) identifier_html
(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_source) identifier_source
(call
(identifier_BeautifulSoup) identifier_BeautifulSoup
(argument_list
(identifier_html) identifier_html
(string_'html.parser') string_'html.parser'
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_TOC) identifier_TOC
(argument_list
(string_'[document]') string_'[document]'
(keyword_argument
(identifier_source) identifier_source
(identifier_source) identifier_source
)keyword_argument
(keyword_argument
(identifier_descendants) identifier_descendants
(attribute
(identifier_source) identifier_source
(identifier_children) identifier_children
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates abstraction using HTML
:param str html: HTML
:return: TreeOfContents object |
(module
(function_definition
(function_name_plot) function_name_plot
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_bins) identifier_bins
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_facecolor) identifier_facecolor
(string_'0.5') string_'0.5'
)default_parameter
(default_parameter
(identifier_plot_cols) identifier_plot_cols
(None) None
)default_parameter
(default_parameter
(identifier_filename) identifier_filename
(string_"ensemble.pdf") string_"ensemble.pdf"
)default_parameter
(default_parameter
(identifier_func_dict) identifier_func_dict
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(identifier_ensemble_helper) identifier_ensemble_helper
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_bins) identifier_bins
(identifier_bins) identifier_bins
)keyword_argument
(keyword_argument
(identifier_facecolor) identifier_facecolor
(identifier_facecolor) identifier_facecolor
)keyword_argument
(keyword_argument
(identifier_plot_cols) identifier_plot_cols
(identifier_plot_cols) identifier_plot_cols
)keyword_argument
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | plot ensemble histograms to multipage pdf
Parameters
----------
bins : int
number of bins
facecolor : str
color
plot_cols : list of str
subset of ensemble columns to plot. If None, all are plotted.
Default is None
filename : str
pdf filename. Default is "ensemble.pdf"
func_dict : dict
a dict of functions to apply to specific columns (e.g., np.log10)
**kwargs : dict
keyword args to pass to plot_utils.ensemble_helper()
Returns
-------
None |
(module
(function_definition
(function_name_datatable_df) function_name_datatable_df
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__all_datatable_data) identifier__all_datatable_data
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_adf) identifier_adf
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_adf) identifier_adf
(identifier_columns) identifier_columns
)attribute
(attribute
(identifier_self) identifier_self
(identifier_dt_all_cols) identifier_dt_all_cols
)attribute
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__finish_df) identifier__finish_df
)attribute
(argument_list
(identifier_adf) identifier_adf
(string_'ALL') string_'ALL'
)argument_list
)call
)return_statement
)block
)function_definition
)module | returns the dataframe representation of the symbol's final data |
(module
(function_definition
(function_name__cleanup_markers) function_name__cleanup_markers
(parameters
(identifier_context_id) identifier_context_id
(identifier_task_ids) identifier_task_ids
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Cleanup %d markers for Context %s") string_"Cleanup %d markers for Context %s"
(call
(identifier_len) identifier_len
(argument_list
(identifier_task_ids) identifier_task_ids
)argument_list
)call
(identifier_context_id) identifier_context_id
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_delete_entities) identifier_delete_entities
(list_comprehension
(call
(attribute
(identifier_ndb) identifier_ndb
(identifier_Key) identifier_Key
)attribute
(argument_list
(identifier_FuriousAsyncMarker) identifier_FuriousAsyncMarker
(identifier_id) identifier_id
)argument_list
)call
(for_in_clause
(identifier_id) identifier_id
(identifier_task_ids) identifier_task_ids
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_delete_entities) identifier_delete_entities
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_ndb) identifier_ndb
(identifier_Key) identifier_Key
)attribute
(argument_list
(identifier_FuriousCompletionMarker) identifier_FuriousCompletionMarker
(identifier_context_id) identifier_context_id
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ndb) identifier_ndb
(identifier_delete_multi) identifier_delete_multi
)attribute
(argument_list
(identifier_delete_entities) identifier_delete_entities
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Markers cleaned.") string_"Markers cleaned."
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete the FuriousAsyncMarker entities corresponding to ids. |
(module
(function_definition
(function_name_cancel) function_name_cancel
(parameters
(identifier_self) identifier_self
(identifier_job) identifier_job
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_job) identifier_job
(attribute
(identifier_self) identifier_self
(identifier_job_class) identifier_job_class
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_zrem) identifier_zrem
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scheduled_jobs_key) identifier_scheduled_jobs_key
)attribute
(attribute
(identifier_job) identifier_job
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_zrem) identifier_zrem
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scheduled_jobs_key) identifier_scheduled_jobs_key
)attribute
(identifier_job) identifier_job
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Pulls a job from the scheduler queue. This function accepts either a
job_id or a job instance. |
(module
(function_definition
(function_name_include_yaml) function_name_include_yaml
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(identifier_self) identifier_self
(identifier_construct_scalar) identifier_construct_scalar
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)not_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__root) identifier__root
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(concatenated_string
(string_'!include_yaml %s is a relative path, ') string_'!include_yaml %s is a relative path, '
(string_'but stream lacks path') string_'but stream lacks path'
)concatenated_string
(identifier_filename) identifier_filename
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__root) identifier__root
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_construct_scalar) identifier_construct_scalar
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filename) identifier_filename
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_fin) identifier_fin
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_fin) identifier_fin
(identifier_Loader) identifier_Loader
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | load another yaml file from the path specified by node's value |
(module
(function_definition
(function_name_day_interval) function_name_day_interval
(parameters
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
(default_parameter
(identifier_milliseconds) identifier_milliseconds
(False) False
)default_parameter
(default_parameter
(identifier_return_string) identifier_return_string
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_milliseconds) identifier_milliseconds
(block
(expression_statement
(assignment
(identifier_delta) identifier_delta
(call
(identifier_timedelta) identifier_timedelta
(argument_list
(keyword_argument
(identifier_milliseconds) identifier_milliseconds
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_delta) identifier_delta
(call
(identifier_timedelta) identifier_timedelta
(argument_list
(keyword_argument
(identifier_seconds) identifier_seconds
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(identifier_datetime) identifier_datetime
(argument_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(binary_operator
(binary_operator
(call
(identifier_datetime) identifier_datetime
(argument_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
)argument_list
)call
(call
(identifier_timedelta) identifier_timedelta
(argument_list
(keyword_argument
(identifier_days) identifier_days
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)binary_operator
(identifier_delta) identifier_delta
)binary_operator
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_return_string) identifier_return_string
)not_operator
(block
(return_statement
(expression_list
(identifier_start) identifier_start
(identifier_end) identifier_end
)expression_list
)return_statement
)block
(else_clause
(block
(return_statement
(expression_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_start) identifier_start
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(identifier_end) identifier_end
)argument_list
)call
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a start datetime and end datetime of a day.
:param milliseconds: Minimum time resolution.
:param return_string: If you want string instead of datetime, set True
Usage Example::
>>> start, end = rolex.day_interval(2014, 6, 17)
>>> start
datetime(2014, 6, 17, 0, 0, 0)
>>> end
datetime(2014, 6, 17, 23, 59, 59) |
(module
(function_definition
(function_name_token) function_name_token
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_token_address) identifier_token_address
(type
(identifier_Address) identifier_Address
)type
)typed_parameter
)parameters
(type
(identifier_Token) identifier_Token
)type
(block
(if_statement
(not_operator
(call
(identifier_is_binary_address) identifier_is_binary_address
(argument_list
(identifier_token_address) identifier_token_address
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'token_address must be a valid address') string_'token_address must be a valid address'
)argument_list
)call
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__token_creation_lock) identifier__token_creation_lock
)attribute
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(identifier_token_address) identifier_token_address
(attribute
(identifier_self) identifier_self
(identifier_address_to_token) identifier_address_to_token
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_address_to_token) identifier_address_to_token
)attribute
(identifier_token_address) identifier_token_address
)subscript
(call
(identifier_Token) identifier_Token
(argument_list
(keyword_argument
(identifier_jsonrpc_client) identifier_jsonrpc_client
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
)keyword_argument
(keyword_argument
(identifier_token_address) identifier_token_address
(identifier_token_address) identifier_token_address
)keyword_argument
(keyword_argument
(identifier_contract_manager) identifier_contract_manager
(attribute
(identifier_self) identifier_self
(identifier_contract_manager) identifier_contract_manager
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_address_to_token) identifier_address_to_token
)attribute
(identifier_token_address) identifier_token_address
)subscript
)return_statement
)block
)function_definition
)module | Return a proxy to interact with a token. |
(module
(function_definition
(function_name__run_tool) function_name__run_tool
(parameters
(identifier_cmd) identifier_cmd
(default_parameter
(identifier_use_container) identifier_use_container
(True) True
)default_parameter
(default_parameter
(identifier_work_dir) identifier_work_dir
(None) None
)default_parameter
(default_parameter
(identifier_log_file) identifier_log_file
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cmd) identifier_cmd
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_str) identifier_str
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_cmd) identifier_cmd
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(binary_operator
(call
(attribute
(identifier_utils) identifier_utils
(identifier_local_path_export) identifier_local_path_export
)attribute
(argument_list
(keyword_argument
(identifier_at_start) identifier_at_start
(identifier_use_container) identifier_use_container
)keyword_argument
)argument_list
)call
(identifier_cmd) identifier_cmd
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_log_file) identifier_log_file
(block
(expression_statement
(augmented_assignment
(identifier_cmd) identifier_cmd
(binary_operator
(string_" 2>&1 | tee -a %s") string_" 2>&1 | tee -a %s"
(identifier_log_file) identifier_log_file
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"Running: %s") string_"Running: %s"
(identifier_cmd) identifier_cmd
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_shell) identifier_shell
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
(finally_clause
(block
(if_statement
(boolean_operator
(identifier_use_container) identifier_use_container
(identifier_work_dir) identifier_work_dir
)boolean_operator
(block
(expression_statement
(call
(identifier__chown_workdir) identifier__chown_workdir
(argument_list
(identifier_work_dir) identifier_work_dir
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Run with injection of bcbio path.
Place at end for runs without containers to avoid overriding other
bcbio installations. |
(module
(function_definition
(function_name_text) function_name_text
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__text) identifier__text
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_timestamps) identifier_timestamps
)attribute
(identifier_edited) identifier_edited
)attribute
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_touch) identifier_touch
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the text value.
Args:
value (str): Text value. |
(module
(function_definition
(function_name__get_nblock_regions) function_name__get_nblock_regions
(parameters
(identifier_in_file) identifier_in_file
(identifier_min_n_size) identifier_min_n_size
(identifier_ref_regions) identifier_ref_regions
)parameters
(block
(expression_statement
(assignment
(identifier_out_lines) identifier_out_lines
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_called_contigs) identifier_called_contigs
(call
(identifier_set) identifier_set
(argument_list
(list
)list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_utils) identifier_utils
(identifier_open_gzipsafe) identifier_open_gzipsafe
)attribute
(argument_list
(identifier_in_file) identifier_in_file
)argument_list
)call
(as_pattern_target
(identifier_in_handle) identifier_in_handle
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(identifier_in_handle) identifier_in_handle
(block
(expression_statement
(assignment
(pattern_list
(identifier_contig) identifier_contig
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_ctype) identifier_ctype
)pattern_list
(call
(attribute
(call
(attribute
(identifier_line) identifier_line
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_called_contigs) identifier_called_contigs
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_contig) identifier_contig
)argument_list
)call
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_ctype) identifier_ctype
(list
(string_"REF_N") string_"REF_N"
(string_"NO_COVERAGE") string_"NO_COVERAGE"
(string_"EXCESSIVE_COVERAGE") string_"EXCESSIVE_COVERAGE"
(string_"LOW_COVERAGE") string_"LOW_COVERAGE"
)list
)comparison_operator
(comparison_operator
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_end) identifier_end
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(identifier_start) identifier_start
)argument_list
)call
)binary_operator
(identifier_min_n_size) identifier_min_n_size
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_out_lines) identifier_out_lines
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"%s\t%s\t%s\n") string_"%s\t%s\t%s\n"
(tuple
(identifier_contig) identifier_contig
(identifier_start) identifier_start
(identifier_end) identifier_end
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
(for_statement
(identifier_refr) identifier_refr
(identifier_ref_regions) identifier_ref_regions
(block
(if_statement
(comparison_operator
(attribute
(identifier_refr) identifier_refr
(identifier_chrom) identifier_chrom
)attribute
(identifier_called_contigs) identifier_called_contigs
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_out_lines) identifier_out_lines
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"%s\t%s\t%s\n") string_"%s\t%s\t%s\n"
(tuple
(attribute
(identifier_refr) identifier_refr
(identifier_chrom) identifier_chrom
)attribute
(integer_0) integer_0
(attribute
(identifier_refr) identifier_refr
(identifier_stop) identifier_stop
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_pybedtools) identifier_pybedtools
(identifier_BedTool) identifier_BedTool
)attribute
(argument_list
(call
(attribute
(string_"\n") string_"\n"
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_out_lines) identifier_out_lines
)argument_list
)call
(keyword_argument
(identifier_from_string) identifier_from_string
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve coordinates of regions in reference genome with no mapping.
These are potential breakpoints for parallelizing analysis. |
(module
(function_definition
(function_name_estimate_pos_and_err_parabolic) function_name_estimate_pos_and_err_parabolic
(parameters
(identifier_tsvals) identifier_tsvals
)parameters
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(binary_operator
(subscript
(identifier_tsvals) identifier_tsvals
(integer_2) integer_2
)subscript
(subscript
(identifier_tsvals) identifier_tsvals
(integer_0) integer_0
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bc) identifier_bc
(binary_operator
(binary_operator
(binary_operator
(float_2.) float_2.
(subscript
(identifier_tsvals) identifier_tsvals
(integer_1) integer_1
)subscript
)binary_operator
(subscript
(identifier_tsvals) identifier_tsvals
(integer_0) integer_0
)subscript
)binary_operator
(subscript
(identifier_tsvals) identifier_tsvals
(integer_2) integer_2
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(binary_operator
(identifier_a) identifier_a
(parenthesized_expression
(binary_operator
(integer_2) integer_2
(identifier_bc) identifier_bc
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_err) identifier_err
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(integer_2) integer_2
(identifier_bc) identifier_bc
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_s) identifier_s
(identifier_err) identifier_err
)expression_list
)return_statement
)block
)function_definition
)module | Solve for the position and uncertainty of source in one dimension
assuming that you are near the maximum and the errors are parabolic
Parameters
----------
tsvals : `~numpy.ndarray`
The TS values at the maximum TS, and for each pixel on either side
Returns
-------
The position and uncertainty of the source, in pixel units
w.r.t. the center of the maximum pixel |
(module
(function_definition
(function_name_walk) function_name_walk
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_core) identifier_core
)attribute
(identifier_snapshots) identifier_snapshots
)attribute
(None) None
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_snaps) identifier_snaps
)attribute
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_core) identifier_core
)attribute
(identifier_snapshots) identifier_snapshots
)attribute
)subscript
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_core) identifier_core
)attribute
(identifier_timesteps) identifier_timesteps
)attribute
(None) None
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_steps) identifier_steps
)attribute
(attribute
(attribute
(identifier_conf) identifier_conf
(identifier_core) identifier_core
)attribute
(identifier_timesteps) identifier_timesteps
)attribute
)subscript
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_snaps) identifier_snaps
)attribute
(slice
(unary_operator
(integer_1) integer_1
)unary_operator
(colon) colon
)slice
)subscript
)return_statement
)block
)function_definition
)module | Return view on configured steps slice.
Other Parameters:
conf.core.snapshots: the slice of snapshots.
conf.core.timesteps: the slice of timesteps. |
(module
(function_definition
(function_name_reformat_cmd) function_name_reformat_cmd
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'az') string_'az'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_text) identifier_text
(comparison_operator
(subscript
(identifier_SELECT_SYMBOL) identifier_SELECT_SYMBOL
(string_'scope') string_'scope'
)subscript
(subscript
(identifier_text) identifier_text
(slice
(integer_0) integer_0
(colon) colon
(integer_2) integer_2
)slice
)subscript
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_replace) identifier_replace
)attribute
(argument_list
(subscript
(identifier_SELECT_SYMBOL) identifier_SELECT_SYMBOL
(string_'scope') string_'scope'
)subscript
(string_"") string_""
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shell_ctx) identifier_shell_ctx
)attribute
(identifier_default_command) identifier_default_command
)attribute
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(binary_operator
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shell_ctx) identifier_shell_ctx
)attribute
(identifier_default_command) identifier_default_command
)attribute
(string_' ') string_' '
)binary_operator
(identifier_text) identifier_text
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)function_definition
)module | reformat the text to be stripped of noise |
(module
(function_definition
(function_name_peek) function_name_peek
(parameters
(identifier_self) identifier_self
(identifier_fmt) identifier_fmt
)parameters
(block
(expression_statement
(assignment
(identifier_pos_before) identifier_pos_before
(attribute
(identifier_self) identifier_self
(identifier__pos) identifier__pos
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_fmt) identifier_fmt
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__pos) identifier__pos
)attribute
(identifier_pos_before) identifier_pos_before
)assignment
)expression_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Interpret next bits according to format string and return result.
fmt -- Token string describing how to interpret the next bits.
The position in the bitstring is not changed. If not enough bits are
available then all bits to the end of the bitstring will be used.
Raises ReadError if not enough bits are available.
Raises ValueError if the format is not understood.
See the docstring for 'read' for token examples. |
(module
(function_definition
(function_name_read_chunks) function_name_read_chunks
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_reading_chunks) identifier_reading_chunks
)attribute
(attribute
(identifier_self) identifier_self
(identifier_got_chunk) identifier_got_chunk
)attribute
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Fast-Path detected, returning...") string_"Fast-Path detected, returning..."
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(while_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_got_request) identifier_got_request
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_reading_chunks) identifier_reading_chunks
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_got_chunk) identifier_got_chunk
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_httpstream) identifier_httpstream
)attribute
(identifier_read_until) identifier_read_until
)attribute
(argument_list
(string_"\r\n") string_"\r\n"
(attribute
(identifier_self) identifier_self
(identifier__chunk_length) identifier__chunk_length
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_reading_chunks) identifier_reading_chunks
)attribute
(False) False
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_got_chunk) identifier_got_chunk
)attribute
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Fast-Path detected, iterating...") string_"Fast-Path detected, iterating..."
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)while_statement
(return_statement
)return_statement
)block
)function_definition
)module | Read chunks from the HTTP client |
(module
(function_definition
(function_name_info) function_name_info
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ddoc_info) identifier_ddoc_info
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_r_session) identifier_r_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(attribute
(identifier_self) identifier_self
(identifier_document_url) identifier_document_url
)attribute
(string_'_info') string_'_info'
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ddoc_info) identifier_ddoc_info
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_response_to_json_dict) identifier_response_to_json_dict
(argument_list
(identifier_ddoc_info) identifier_ddoc_info
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves the design document view information data, returns dictionary
GET databasename/_design/{ddoc}/_info |
(module
(function_definition
(function_name_path_helper) function_name_path_helper
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_view) identifier_view
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_FlaskRestyPlugin) identifier_FlaskRestyPlugin
(identifier_self) identifier_self
)argument_list
)call
(identifier_path_helper) identifier_path_helper
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
(keyword_argument
(identifier_view) identifier_view
(identifier_view) identifier_view
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_resource) identifier_resource
(subscript
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_state) identifier_get_state
)attribute
(argument_list
)argument_list
)call
(identifier_views) identifier_views
)attribute
(identifier_view) identifier_view
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rule) identifier_rule
(subscript
(attribute
(identifier_self) identifier_self
(identifier__rules) identifier__rules
)attribute
(attribute
(identifier_resource) identifier_resource
(identifier_rule) identifier_rule
)attribute
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_operations) identifier_operations
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_Operation) identifier_Operation
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_view_instance) identifier_view_instance
(call
(identifier_view) identifier_view
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_view_instance) identifier_view_instance
(identifier_spec_declaration) identifier_spec_declaration
)attribute
(argument_list
(identifier_view) identifier_view
(identifier_operations) identifier_operations
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_arg) identifier_arg
(attribute
(identifier_rule) identifier_rule
(identifier_arguments) identifier_arguments
)attribute
(block
(expression_statement
(call
(attribute
(identifier_parameters) identifier_parameters
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'name') string_'name'
(identifier_arg) identifier_arg
)pair
(pair
(string_'in') string_'in'
(string_'path') string_'path'
)pair
(pair
(string_'required') string_'required'
(True) True
)pair
(pair
(string_'type') string_'type'
(string_'string') string_'string'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(identifier_parameters) identifier_parameters
(block
(expression_statement
(assignment
(subscript
(identifier_operations) identifier_operations
(string_'parameters') string_'parameters'
)subscript
(identifier_parameters) identifier_parameters
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_path) identifier_path
(identifier_path) identifier_path
)attribute
(call
(attribute
(identifier_FlaskPlugin) identifier_FlaskPlugin
(identifier_flaskpath2openapi) identifier_flaskpath2openapi
)attribute
(argument_list
(attribute
(identifier_resource) identifier_resource
(identifier_rule) identifier_rule
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_path) identifier_path
(identifier_operations) identifier_operations
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(dictionary_splat
(identifier_operations) identifier_operations
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Path helper for Flask-RESTy views.
:param view: An `ApiView` object. |
(module
(function_definition
(function_name_with_blob) function_name_with_blob
(parameters
(identifier_self) identifier_self
(identifier_blob) identifier_blob
)parameters
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(attribute
(identifier_blob) identifier_blob
(identifier_content) identifier_content
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_partition_id) identifier_partition_id
)attribute
(subscript
(identifier_content) identifier_content
(string_"partition_id") string_"partition_id"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_owner) identifier_owner
)attribute
(subscript
(identifier_content) identifier_content
(string_"owner") string_"owner"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_token) identifier_token
)attribute
(subscript
(identifier_content) identifier_content
(string_"token") string_"token"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_epoch) identifier_epoch
)attribute
(subscript
(identifier_content) identifier_content
(string_"epoch") string_"epoch"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(subscript
(identifier_content) identifier_content
(string_"offset") string_"offset"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sequence_number) identifier_sequence_number
)attribute
(subscript
(identifier_content) identifier_content
(string_"sequence_number") string_"sequence_number"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_event_processor_context) identifier_event_processor_context
)attribute
(call
(attribute
(identifier_content) identifier_content
(identifier_get) identifier_get
)attribute
(argument_list
(string_"event_processor_context") string_"event_processor_context"
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Init Azure Blob Lease with existing blob. |
(module
(function_definition
(function_name_create_exception_by_error_code) function_name_create_exception_by_error_code
(parameters
(identifier_errorCode) identifier_errorCode
(default_parameter
(identifier_detailCode) identifier_detailCode
(string_'0') string_'0'
)default_parameter
(default_parameter
(identifier_description) identifier_description
(string_'') string_''
)default_parameter
(default_parameter
(identifier_traceInformation) identifier_traceInformation
(None) None
)default_parameter
(default_parameter
(identifier_identifier) identifier_identifier
(None) None
)default_parameter
(default_parameter
(identifier_nodeId) identifier_nodeId
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_dataone_exception) identifier_dataone_exception
(subscript
(identifier_ERROR_CODE_TO_EXCEPTION_DICT) identifier_ERROR_CODE_TO_EXCEPTION_DICT
(identifier_errorCode) identifier_errorCode
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_LookupError) identifier_LookupError
(block
(expression_statement
(assignment
(identifier_dataone_exception) identifier_dataone_exception
(identifier_ServiceFailure) identifier_ServiceFailure
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_dataone_exception) identifier_dataone_exception
(argument_list
(identifier_detailCode) identifier_detailCode
(identifier_description) identifier_description
(identifier_traceInformation) identifier_traceInformation
(identifier_identifier) identifier_identifier
(identifier_nodeId) identifier_nodeId
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a DataONE Exception object by errorCode.
See Also: For args, see: ``DataONEException()`` |
(module
(function_definition
(function_name_batch_message) function_name_batch_message
(parameters
(identifier_cls) identifier_cls
(identifier_batch) identifier_batch
(identifier_request_ids) identifier_request_ids
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_batch) identifier_batch
(identifier_Batch) identifier_Batch
)argument_list
)call
)assert_statement
(if_statement
(not_operator
(attribute
(identifier_cls) identifier_cls
(identifier_allow_batches) identifier_allow_batches
)attribute
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_ProtocolError) identifier_ProtocolError
(identifier_invalid_request) identifier_invalid_request
)attribute
(argument_list
(string_'protocol does not permit batches') string_'protocol does not permit batches'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_id_iter) identifier_id_iter
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_request_ids) identifier_request_ids
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rm) identifier_rm
(attribute
(identifier_cls) identifier_cls
(identifier_request_message) identifier_request_message
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nm) identifier_nm
(attribute
(identifier_cls) identifier_cls
(identifier_notification_message) identifier_notification_message
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(generator_expression
(conditional_expression
(call
(identifier_rm) identifier_rm
(argument_list
(identifier_request) identifier_request
(call
(identifier_next) identifier_next
(argument_list
(identifier_id_iter) identifier_id_iter
)argument_list
)call
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_request) identifier_request
(identifier_Request) identifier_Request
)argument_list
)call
(call
(identifier_nm) identifier_nm
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)conditional_expression
(for_in_clause
(identifier_request) identifier_request
(identifier_batch) identifier_batch
)for_in_clause
)generator_expression
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_batch_message_from_parts) identifier_batch_message_from_parts
)attribute
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert a request Batch to a message. |
(module
(function_definition
(function_name__try_assign_utc_time) function_name__try_assign_utc_time
(parameters
(identifier_self) identifier_self
(identifier_raw_time) identifier_raw_time
(identifier_time_base) identifier_time_base
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_raw_time) identifier_raw_time
(attribute
(identifier_IOTileEvent) identifier_IOTileEvent
(identifier_InvalidRawTime) identifier_InvalidRawTime
)attribute
)comparison_operator
(parenthesized_expression
(binary_operator
(identifier_raw_time) identifier_raw_time
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(integer_31) integer_31
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(assignment
(identifier_y2k_offset) identifier_y2k_offset
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_raw_time) identifier_raw_time
)attribute
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(integer_31) integer_31
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__Y2KReference) identifier__Y2KReference
)attribute
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_seconds) identifier_seconds
(identifier_y2k_offset) identifier_y2k_offset
)keyword_argument
)argument_list
)call
)binary_operator
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_time_base) identifier_time_base
(None) None
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_time_base) identifier_time_base
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_seconds) identifier_seconds
(identifier_raw_time) identifier_raw_time
)keyword_argument
)argument_list
)call
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Try to assign a UTC time to this reading. |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_self_copy) identifier_self_copy
(call
(attribute
(identifier_self) identifier_self
(identifier_dup) identifier_dup
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self_copy) identifier_self_copy
(identifier__scopes) identifier__scopes
)attribute
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__scopes) identifier__scopes
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_self_copy) identifier_self_copy
)return_statement
)block
)function_definition
)module | Return a copy of this object. |
(module
(function_definition
(function_name__param_types_to_shape) function_name__param_types_to_shape
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_param_types) identifier_param_types
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Sequence) identifier_Sequence
(type_parameter
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_param_types) identifier_param_types
(conditional_expression
(list
)list
(comparison_operator
(identifier_param_types) identifier_param_types
(None) None
)comparison_operator
(identifier_param_types) identifier_param_types
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_shape) identifier_shape
(call
(identifier_tuple) identifier_tuple
(generator_expression
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_object_table) identifier_object_table
)attribute
(identifier_ptype) identifier_ptype
)subscript
(string_'size') string_'size'
)subscript
(for_in_clause
(identifier_ptype) identifier_ptype
(identifier_param_types) identifier_param_types
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(identifier_shape) identifier_shape
)return_statement
)block
)function_definition
)module | Returns the fluent shape given its `param_types`. |
(module
(function_definition
(function_name_pip) function_name_pip
(parameters
(default_parameter
(identifier_usr_pswd) identifier_usr_pswd
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(call
(identifier_cmd) identifier_cmd
(argument_list
(string_'which pip') string_'which pip'
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(return_statement
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'-[pip]----------') string_'-[pip]----------'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_cmd) identifier_cmd
(argument_list
(string_'pip list --outdated') string_'pip list --outdated'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_p) identifier_p
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pkgs) identifier_pkgs
(call
(identifier_getPackages) identifier_getPackages
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_p) identifier_p
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_pkgs) identifier_pkgs
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_p) identifier_p
(list
(string_'pip') string_'pip'
(string_'setuptools') string_'setuptools'
)list
)comparison_operator
(block
(expression_statement
(call
(identifier_cmd) identifier_cmd
(argument_list
(binary_operator
(string_'pip install -U ') string_'pip install -U '
(identifier_p) identifier_p
)binary_operator
(keyword_argument
(identifier_usr_pwd) identifier_usr_pwd
(identifier_usr_pswd) identifier_usr_pswd
)keyword_argument
(keyword_argument
(identifier_run) identifier_run
(identifier_global_run) identifier_global_run
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_pkgs) identifier_pkgs
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_p) identifier_p
(identifier_pkgs) identifier_pkgs
(block
(expression_statement
(call
(identifier_cmd) identifier_cmd
(argument_list
(binary_operator
(string_'pip install -U ') string_'pip install -U '
(identifier_p) identifier_p
)binary_operator
(keyword_argument
(identifier_usr_pwd) identifier_usr_pwd
(identifier_usr_pswd) identifier_usr_pswd
)keyword_argument
(keyword_argument
(identifier_run) identifier_run
(identifier_global_run) identifier_global_run
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | This updates one package at a time.
Could do all at once:
pip list --outdated | cut -d' ' -f1 | xargs pip install --upgrade |
(module
(function_definition
(function_name_interpolate_single) function_name_interpolate_single
(parameters
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_coefficient) identifier_coefficient
(default_parameter
(identifier_how) identifier_how
(string_'linear') string_'linear'
)default_parameter
)parameters
(block
(return_statement
(call
(subscript
(identifier_INTERP_SINGLE_DICT) identifier_INTERP_SINGLE_DICT
(identifier_how) identifier_how
)subscript
(argument_list
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_coefficient) identifier_coefficient
)argument_list
)call
)return_statement
)block
)function_definition
)module | Interpolate single value between start and end in given number of steps |
(module
(function_definition
(function_name_seek) function_name_seek
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_pos) identifier_pos
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_blocks) identifier_blocks
(identifier_remainder) identifier_remainder
)pattern_list
(call
(identifier_divmod) identifier_divmod
(argument_list
(binary_operator
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_bufsize) identifier_bufsize
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_blocks) identifier_blocks
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_read) identifier_read
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_bufsize) identifier_bufsize
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_remainder) identifier_remainder
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_StreamError) identifier_StreamError
(argument_list
(string_"seeking backwards is not allowed") string_"seeking backwards is not allowed"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
)return_statement
)block
)function_definition
)module | Set the stream's file pointer to pos. Negative seeking
is forbidden. |
(module
(function_definition
(function_name__update_aes) function_name__update_aes
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(subscript
(subscript
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_master) identifier_master
)attribute
(identifier_SMaster) identifier_SMaster
)attribute
(identifier_secrets) identifier_secrets
)attribute
(string_'aes') string_'aes'
)subscript
(string_'secret') string_'secret'
)subscript
(identifier_value) identifier_value
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_crypticle) identifier_crypticle
)attribute
(identifier_key_string) identifier_key_string
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_crypticle) identifier_crypticle
)attribute
(call
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_crypt) identifier_crypt
)attribute
(identifier_Crypticle) identifier_Crypticle
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_opts) identifier_opts
)attribute
(attribute
(subscript
(subscript
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_master) identifier_master
)attribute
(identifier_SMaster) identifier_SMaster
)attribute
(identifier_secrets) identifier_secrets
)attribute
(string_'aes') string_'aes'
)subscript
(string_'secret') string_'secret'
)subscript
(identifier_value) identifier_value
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check to see if a fresh AES key is available and update the components
of the worker |
(module
(function_definition
(function_name_uninstall) function_name_uninstall
(parameters
(identifier_cert_name) identifier_cert_name
(default_parameter
(identifier_keychain) identifier_keychain
(string_"/Library/Keychains/System.keychain") string_"/Library/Keychains/System.keychain"
)default_parameter
(default_parameter
(identifier_keychain_password) identifier_keychain_password
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_keychain_password) identifier_keychain_password
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_unlock_keychain) identifier_unlock_keychain
(argument_list
(identifier_keychain) identifier_keychain
(identifier_keychain_password) identifier_keychain_password
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_'security delete-certificate -c "{0}" {1}') string_'security delete-certificate -c "{0}" {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_cert_name) identifier_cert_name
(identifier_keychain) identifier_keychain
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run') string_'cmd.run'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)return_statement
)block
)function_definition
)module | Uninstall a certificate from a keychain
cert_name
The name of the certificate to remove
keychain
The keychain to install the certificate to, this defaults to
/Library/Keychains/System.keychain
keychain_password
If your keychain is likely to be locked pass the password and it will be unlocked
before running the import
Note: The password given here will show up as plaintext in the returned job
info.
CLI Example:
.. code-block:: bash
salt '*' keychain.install test.p12 test123 |
(module
(function_definition
(function_name_append) function_name_append
(parameters
(identifier_self) identifier_self
(identifier_listname) identifier_listname
(identifier_xy_idx) identifier_xy_idx
(identifier_var_name) identifier_var_name
(identifier_element_name) identifier_element_name
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_resize) identifier_resize
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_string) identifier_string
(string_'{0} {1}') string_'{0} {1}'
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_listname) identifier_listname
(list
(string_'unamex') string_'unamex'
(string_'unamey') string_'unamey'
(string_'fnamex') string_'fnamex'
(string_'fnamey') string_'fnamey'
)list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Wrong list name for varname.') string_'Wrong list name for varname.'
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_listname) identifier_listname
(list
(string_'fnamex') string_'fnamex'
(string_'fnamey') string_'fnamey'
)list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(string_'${0}\\ {1}$') string_'${0}\\ {1}$'
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element_name) identifier_element_name
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_j) identifier_j
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_xy_idx) identifier_xy_idx
(identifier_element_name) identifier_element_name
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_listname) identifier_listname
(string_'fnamex') string_'fnamex'
)comparison_operator
(comparison_operator
(identifier_listname) identifier_listname
(string_'fnamey') string_'fnamey'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_j) identifier_j
(call
(attribute
(identifier_j) identifier_j
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'\\ ') string_'\\ '
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
(identifier_listname) identifier_listname
)subscript
(identifier_i) identifier_i
)subscript
(call
(attribute
(identifier_string) identifier_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_var_name) identifier_var_name
(identifier_j) identifier_j
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_element_name) identifier_element_name
(identifier_int) identifier_int
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
(identifier_listname) identifier_listname
)subscript
(identifier_xy_idx) identifier_xy_idx
)subscript
(call
(attribute
(identifier_string) identifier_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_var_name) identifier_var_name
(identifier_element_name) identifier_element_name
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Unknown element_name type while building varname') string_'Unknown element_name type while building varname'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Append variable names to the name lists |
(module
(function_definition
(function_name_user_pass) function_name_user_pass
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_func) identifier_func
(None) None
)default_parameter
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_rkwargs) identifier_rkwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_view) identifier_view
)parameters
(block
(expression_statement
(assignment
(identifier_view) identifier_view
(call
(identifier_to_coroutine) identifier_to_coroutine
(argument_list
(identifier_view) identifier_view
)argument_list
)call
)assignment
)expression_statement
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_view) identifier_view
)argument_list
)call
)decorator
(function_definition
(function_name_handler) function_name_handler
(parameters
(identifier_request) identifier_request
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_check_user) identifier_check_user
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_func) identifier_func
(identifier_location) identifier_location
(dictionary_splat
(identifier_rkwargs) identifier_rkwargs
)dictionary_splat
)argument_list
)call
)await
)expression_statement
(return_statement
(await
(call
(identifier_view) identifier_view
(argument_list
(identifier_request) identifier_request
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)await
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_handler) identifier_handler
)return_statement
)block
)function_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Decorator ensures that user pass the given func. |
(module
(function_definition
(function_name_before_content) function_name_before_content
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_ChapelObject) identifier_ChapelObject
(identifier_before_content) identifier_before_content
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_names) identifier_names
)attribute
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(identifier_temp_data) identifier_temp_data
)attribute
(string_'chpl:class') string_'chpl:class'
)subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_names) identifier_names
)attribute
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_clsname_set) identifier_clsname_set
)attribute
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Called before parsing content. Push the class name onto the class name
stack. Used to construct the full name for members. |
(module
(function_definition
(function_name_execute) function_name_execute
(parameters
(identifier_self) identifier_self
(identifier_query_string) identifier_query_string
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cr) identifier_cr
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"SQL: %s (%s)") string_"SQL: %s (%s)"
(identifier_query_string) identifier_query_string
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_last_query) identifier_last_query
)attribute
(tuple
(identifier_query_string) identifier_query_string
(identifier_params) identifier_params
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_t0) identifier_t0
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cr) identifier_cr
(identifier_execute) identifier_execute
)attribute
(argument_list
(identifier_query_string) identifier_query_string
(boolean_operator
(identifier_params) identifier_params
(attribute
(attribute
(identifier_self) identifier_self
(identifier_core) identifier_core
)attribute
(identifier_empty_params) identifier_empty_params
)attribute
)boolean_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ms) identifier_ms
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(identifier_t0) identifier_t0
)binary_operator
)parenthesized_expression
(integer_1000) integer_1000
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"RUNTIME: %.2f ms") string_"RUNTIME: %.2f ms"
(identifier_ms) identifier_ms
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__update_cursor_stats) identifier__update_cursor_stats
)attribute
(argument_list
(identifier_cr) identifier_cr
)argument_list
)call
)expression_statement
(return_statement
(identifier_cr) identifier_cr
)return_statement
)block
)function_definition
)module | Executes a query. Returns the resulting cursor.
:query_string: the parameterized query string
:params: can be either a tuple or a dictionary, and must match the parameterization style of the
query
:return: a cursor object |
(module
(function_definition
(function_name_prepare_for_negotiated_authenticate) function_name_prepare_for_negotiated_authenticate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_entityid) identifier_entityid
(None) None
)default_parameter
(default_parameter
(identifier_relay_state) identifier_relay_state
(string_"") string_""
)default_parameter
(default_parameter
(identifier_binding) identifier_binding
(None) None
)default_parameter
(default_parameter
(identifier_vorg) identifier_vorg
(string_"") string_""
)default_parameter
(default_parameter
(identifier_nameid_format) identifier_nameid_format
(None) None
)default_parameter
(default_parameter
(identifier_scoping) identifier_scoping
(None) None
)default_parameter
(default_parameter
(identifier_consent) identifier_consent
(None) None
)default_parameter
(default_parameter
(identifier_extensions) identifier_extensions
(None) None
)default_parameter
(default_parameter
(identifier_sign) identifier_sign
(None) None
)default_parameter
(default_parameter
(identifier_response_binding) identifier_response_binding
(attribute
(identifier_saml2) identifier_saml2
(identifier_BINDING_HTTP_POST) identifier_BINDING_HTTP_POST
)attribute
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_expected_binding) identifier_expected_binding
(identifier_binding) identifier_binding
)assignment
)expression_statement
(for_statement
(identifier_binding) identifier_binding
(list
(identifier_BINDING_HTTP_REDIRECT) identifier_BINDING_HTTP_REDIRECT
(identifier_BINDING_HTTP_POST) identifier_BINDING_HTTP_POST
)list
(block
(if_statement
(boolean_operator
(identifier_expected_binding) identifier_expected_binding
(comparison_operator
(identifier_binding) identifier_binding
(identifier_expected_binding) identifier_expected_binding
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_destination) identifier_destination
(call
(attribute
(identifier_self) identifier_self
(identifier__sso_location) identifier__sso_location
)attribute
(argument_list
(identifier_entityid) identifier_entityid
(identifier_binding) identifier_binding
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"destination to provider: %s") string_"destination to provider: %s"
(identifier_destination) identifier_destination
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_reqid) identifier_reqid
(identifier_request) identifier_request
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_create_authn_request) identifier_create_authn_request
)attribute
(argument_list
(identifier_destination) identifier_destination
(identifier_vorg) identifier_vorg
(identifier_scoping) identifier_scoping
(identifier_response_binding) identifier_response_binding
(identifier_nameid_format) identifier_nameid_format
(keyword_argument
(identifier_consent) identifier_consent
(identifier_consent) identifier_consent
)keyword_argument
(keyword_argument
(identifier_extensions) identifier_extensions
(identifier_extensions) identifier_extensions
)keyword_argument
(keyword_argument
(identifier_sign) identifier_sign
(identifier_sign) identifier_sign
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__req_str) identifier__req_str
(call
(identifier_str) identifier_str
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"AuthNReq: %s") string_"AuthNReq: %s"
(identifier__req_str) identifier__req_str
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(dictionary
(pair
(string_'sigalg') string_'sigalg'
(subscript
(identifier_kwargs) identifier_kwargs
(string_"sigalg") string_"sigalg"
)subscript
)pair
)dictionary
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(dictionary
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_http_info) identifier_http_info
(call
(attribute
(identifier_self) identifier_self
(identifier_apply_binding) identifier_apply_binding
)attribute
(argument_list
(identifier_binding) identifier_binding
(identifier__req_str) identifier__req_str
(identifier_destination) identifier_destination
(identifier_relay_state) identifier_relay_state
(keyword_argument
(identifier_sign) identifier_sign
(identifier_sign) identifier_sign
)keyword_argument
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_reqid) identifier_reqid
(identifier_binding) identifier_binding
(identifier_http_info) identifier_http_info
)expression_list
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_SignOnError) identifier_SignOnError
(argument_list
(string_"No supported bindings available for authentication") string_"No supported bindings available for authentication"
)argument_list
)call
)raise_statement
)block
)else_clause
)for_statement
)block
)function_definition
)module | Makes all necessary preparations for an authentication request
that negotiates which binding to use for authentication.
:param entityid: The entity ID of the IdP to send the request to
:param relay_state: To where the user should be returned after
successfull log in.
:param binding: Which binding to use for sending the request
:param vorg: The entity_id of the virtual organization I'm a member of
:param nameid_format:
:param scoping: For which IdPs this query are aimed.
:param consent: Whether the principal have given her consent
:param extensions: Possible extensions
:param sign: Whether the request should be signed or not.
:param response_binding: Which binding to use for receiving the response
:param kwargs: Extra key word arguments
:return: session id and AuthnRequest info |
(module
(function_definition
(function_name_replace_in_files) function_name_replace_in_files
(parameters
(identifier_dirname) identifier_dirname
(identifier_replace) identifier_replace
)parameters
(block
(expression_statement
(assignment
(identifier_filepath) identifier_filepath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(binary_operator
(identifier_dirname) identifier_dirname
(string_"requirements.in") string_"requirements.in"
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_filepath) identifier_filepath
)argument_list
)call
(call
(identifier_header_footer_exists) identifier_header_footer_exists
(argument_list
(identifier_filepath) identifier_filepath
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_replaced) identifier_replaced
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(attribute
(identifier_Utils) identifier_Utils
(identifier_exp) identifier_exp
)attribute
(identifier_replace) identifier_replace
(call
(identifier_get_file_string) identifier_get_file_string
(argument_list
(identifier_filepath) identifier_filepath
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filepath) identifier_filepath
(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
(identifier_replaced) identifier_replaced
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(identifier_color) identifier_color
(argument_list
(call
(attribute
(string_"Written to file: {}") string_"Written to file: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_filepath) identifier_filepath
)argument_list
)call
(keyword_argument
(identifier_fg) identifier_fg
(string_'magenta') string_'magenta'
)keyword_argument
(keyword_argument
(identifier_style) identifier_style
(string_'bold') string_'bold'
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Replace current version with new version in requirements files. |
(module
(function_definition
(function_name_get_path) function_name_get_path
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_dir) identifier_dir
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_dir) identifier_dir
)not_operator
(block
(expression_statement
(assignment
(identifier_dir) identifier_dir
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fs) identifier_fs
)attribute
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_self) identifier_self
(identifier_dir) identifier_dir
)comparison_operator
(block
(return_statement
(string_'.') string_'.'
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path_elems) identifier_path_elems
(call
(attribute
(identifier_self) identifier_self
(identifier_get_path_elements) identifier_get_path_elements
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pathname) identifier_pathname
(string_'') string_''
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_i) identifier_i
(call
(attribute
(identifier_path_elems) identifier_path_elems
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_dir) identifier_dir
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(for_statement
(identifier_p) identifier_p
(subscript
(identifier_path_elems) identifier_path_elems
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(expression_statement
(augmented_assignment
(identifier_pathname) identifier_pathname
(attribute
(identifier_p) identifier_p
(identifier_dirname) identifier_dirname
)attribute
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)except_clause
(else_clause
(block
(for_statement
(identifier_p) identifier_p
(subscript
(identifier_path_elems) identifier_path_elems
(slice
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(expression_statement
(augmented_assignment
(identifier_pathname) identifier_pathname
(attribute
(identifier_p) identifier_p
(identifier_dirname) identifier_dirname
)attribute
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)else_clause
)try_statement
(return_statement
(binary_operator
(identifier_pathname) identifier_pathname
(attribute
(subscript
(identifier_path_elems) identifier_path_elems
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_name) identifier_name
)attribute
)binary_operator
)return_statement
)block
)function_definition
)module | Return path relative to the current working directory of the
Node.FS.Base object that owns us. |
(module
(function_definition
(function_name_get_stage_events) function_name_get_stage_events
(parameters
(identifier_cls) identifier_cls
(identifier_crawler) identifier_crawler
(identifier_stage_name) identifier_stage_name
(identifier_start) identifier_start
(identifier_end) identifier_end
(default_parameter
(identifier_level) identifier_level
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(identifier_make_key) identifier_make_key
(argument_list
(identifier_crawler) identifier_crawler
(string_"events") string_"events"
(identifier_stage_name) identifier_stage_name
(identifier_level) identifier_level
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_event_list) identifier_event_list
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)return_statement
)block
)function_definition
)module | events from a particular stage |
(module
(function_definition
(function_name__reset_protocol) function_name__reset_protocol
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_exc) identifier_exc
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_protocol) identifier_protocol
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__get_protocol) identifier__get_protocol
)attribute
(argument_list
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_protocol) identifier_protocol
(identifier_shutdown) identifier_shutdown
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__protocol) identifier__protocol
)attribute
(None) None
)assignment
)expression_statement
(for_statement
(identifier_ob_error) identifier_ob_error
(attribute
(identifier_self) identifier_self
(identifier__observations_err_callbacks) identifier__observations_err_callbacks
)attribute
(block
(expression_statement
(call
(identifier_ob_error) identifier_ob_error
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__observations_err_callbacks) identifier__observations_err_callbacks
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reset the protocol if an error occurs. |
(module
(function_definition
(function_name_fire) function_name_fire
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kargs) identifier_kargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__time_secs_old) identifier__time_secs_old
)attribute
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__hlock) identifier__hlock
)attribute
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_handler_list) identifier_handler_list
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__handler_list) identifier__handler_list
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_result_list) identifier_result_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_handler) identifier_handler
(identifier_handler_list) identifier_handler_list
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__sync_mode) identifier__sync_mode
)attribute
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier__execute) identifier__execute
)attribute
(argument_list
(identifier_handler) identifier_handler
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kargs) identifier_kargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_result) identifier_result
(identifier_tuple) identifier_tuple
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(integer_3) integer_3
)comparison_operator
)boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_result) identifier_result
(integer_1) integer_1
)subscript
(identifier_Exception) identifier_Exception
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_one_res_tuple) identifier_one_res_tuple
(tuple
(False) False
(call
(attribute
(identifier_self) identifier_self
(identifier__error) identifier__error
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(identifier_handler) identifier_handler
)tuple
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_one_res_tuple) identifier_one_res_tuple
(tuple
(True) True
(identifier_result) identifier_result
(identifier_handler) identifier_handler
)tuple
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_EventSystem) identifier_EventSystem
(identifier__async_queue) identifier__async_queue
)attribute
(identifier_put) identifier_put
)attribute
(argument_list
(tuple
(identifier_handler) identifier_handler
(identifier_args) identifier_args
(identifier_kargs) identifier_kargs
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_one_res_tuple) identifier_one_res_tuple
(tuple
(None) None
(None) None
(identifier_handler) identifier_handler
)tuple
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_result_list) identifier_result_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_one_res_tuple) identifier_one_res_tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_time_secs_new) identifier_time_secs_new
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_duration_secs) identifier_duration_secs
)attribute
(binary_operator
(identifier_time_secs_new) identifier_time_secs_new
(attribute
(identifier_self) identifier_self
(identifier__time_secs_old) identifier__time_secs_old
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__time_secs_old) identifier__time_secs_old
)attribute
(identifier_time_secs_new) identifier_time_secs_new
)assignment
)expression_statement
(return_statement
(identifier_result_list) identifier_result_list
)return_statement
)block
)function_definition
)module | collects results of all executed handlers |
(module
(function_definition
(function_name_thesauri) function_name_thesauri
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_token) identifier_token
(type
(identifier_dict) identifier_dict
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_prot) identifier_prot
(type
(identifier_str) identifier_str
)type
(string_"https") string_"https"
)typed_default_parameter
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(expression_statement
(assignment
(identifier_thez_url) identifier_thez_url
(call
(attribute
(string_"{}://v1.{}.isogeo.com/thesauri") string_"{}://v1.{}.isogeo.com/thesauri"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_prot) identifier_prot
(attribute
(identifier_self) identifier_self
(identifier_api_url) identifier_api_url
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_thez_req) identifier_thez_req
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_thez_url) identifier_thez_url
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
)keyword_argument
(keyword_argument
(identifier_proxies) identifier_proxies
(attribute
(identifier_self) identifier_self
(identifier_proxies) identifier_proxies
)attribute
)keyword_argument
(keyword_argument
(identifier_verify) identifier_verify
(attribute
(identifier_self) identifier_self
(identifier_ssl) identifier_ssl
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_checker) identifier_checker
(identifier_check_api_response) identifier_check_api_response
)attribute
(argument_list
(identifier_thez_req) identifier_thez_req
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_thez_req) identifier_thez_req
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get list of available thesauri.
:param str token: API auth token
:param str prot: https [DEFAULT] or http
(use it only for dev and tracking needs). |
(module
(function_definition
(function_name_list_parse) function_name_list_parse
(parameters
(identifier_name_list) identifier_name_list
)parameters
(block
(if_statement
(boolean_operator
(identifier_name_list) identifier_name_list
(comparison_operator
(subscript
(identifier_name_list) identifier_name_list
(integer_0) integer_0
)subscript
(string_'@') string_'@'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_name_list) identifier_name_list
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(string_'The file %s does not exist') string_'The file %s does not exist'
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_v) identifier_v
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(call
(attribute
(call
(identifier_open) identifier_open
(argument_list
(identifier_value) identifier_value
(string_'r') string_'r'
)argument_list
)call
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
(except_clause
(as_pattern
(identifier_IOError) identifier_IOError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(string_'reading %s failed: %s; ignoring this file') string_'reading %s failed: %s; ignoring this file'
(tuple
(identifier_value) identifier_value
(identifier_e) identifier_e
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_v) identifier_v
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(call
(attribute
(identifier_name_list) identifier_name_list
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Parse a comma-separated list of values, or a filename (starting with @)
containing a list value on each line. |
(module
(function_definition
(function_name__make_fn_text) function_name__make_fn_text
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__f) identifier__f
)attribute
)not_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(string_"(not loaded)") string_"(not loaded)"
)assignment
)expression_statement
)block
(elif_clause
(attribute
(attribute
(identifier_self) identifier_self
(identifier__f) identifier__f
)attribute
(identifier_filename) identifier_filename
)attribute
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__f) identifier__f
)attribute
(identifier_filename) identifier_filename
)attribute
(string_".") string_"."
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(string_"(filename not set)") string_"(filename not set)"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)function_definition
)module | Makes filename text |
(module
(function_definition
(function_name__convert_args) function_name__convert_args
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_converted) identifier_converted
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_arg) identifier_arg
(identifier_args) identifier_args
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_arg) identifier_arg
(identifier_dict) identifier_dict
)argument_list
)call
(block
(for_statement
(identifier_key) identifier_key
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_arg) identifier_arg
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(string_'__kwarg__') string_'__kwarg__'
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_converted) identifier_converted
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{0}={1}') string_'{0}={1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(subscript
(identifier_arg) identifier_arg
(identifier_key) identifier_key
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_converted) identifier_converted
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_converted) identifier_converted
)return_statement
)block
)function_definition
)module | Take a list of args, and convert any dicts inside the list to keyword
args in the form of `key=value`, ready to be passed to salt-ssh |
(module
(function_definition
(function_name_layers) function_name_layers
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__layers) identifier__layers
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___init) identifier___init
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_lyrs) identifier_lyrs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_lyr) identifier_lyr
(attribute
(identifier_self) identifier_self
(identifier__layers) identifier__layers
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_lyr) identifier_lyr
(string_'object') string_'object'
)subscript
(call
(identifier_GlobeServiceLayer) identifier_GlobeServiceLayer
(argument_list
(keyword_argument
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__url) identifier__url
)attribute
(binary_operator
(string_"/%s") string_"/%s"
(subscript
(identifier_lyr) identifier_lyr
(string_'id') string_'id'
)subscript
)binary_operator
)binary_operator
)keyword_argument
(keyword_argument
(identifier_securityHandler) identifier_securityHandler
(attribute
(identifier_self) identifier_self
(identifier__securityHandler) identifier__securityHandler
)attribute
)keyword_argument
(keyword_argument
(identifier_proxy_port) identifier_proxy_port
(attribute
(identifier_self) identifier_self
(identifier__proxy_port) identifier__proxy_port
)attribute
)keyword_argument
(keyword_argument
(identifier_proxy_url) identifier_proxy_url
(attribute
(identifier_self) identifier_self
(identifier__proxy_url) identifier__proxy_url
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_lyrs) identifier_lyrs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_lyr) identifier_lyr
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_lyrs) identifier_lyrs
)return_statement
)block
)function_definition
)module | gets the globe service layers |
(module
(function_definition
(function_name__update_range) function_name__update_range
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_update_range) identifier_update_range
)attribute
(argument_list
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update range with data
Args:
data (bytes): data. |
(module
(function_definition
(function_name_get_next_tag) function_name_get_next_tag
(parameters
(identifier_cls) identifier_cls
(identifier_el) identifier_el
)parameters
(block
(expression_statement
(assignment
(identifier_sibling) identifier_sibling
(attribute
(identifier_el) identifier_el
(identifier_next_sibling) identifier_next_sibling
)attribute
)assignment
)expression_statement
(while_statement
(boolean_operator
(not_operator
(call
(attribute
(identifier_cls) identifier_cls
(identifier_is_tag) identifier_is_tag
)attribute
(argument_list
(identifier_sibling) identifier_sibling
)argument_list
)call
)not_operator
(comparison_operator
(identifier_sibling) identifier_sibling
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_sibling) identifier_sibling
(attribute
(identifier_sibling) identifier_sibling
(identifier_next_sibling) identifier_next_sibling
)attribute
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_sibling) identifier_sibling
)return_statement
)block
)function_definition
)module | Get next sibling tag. |
(module
(function_definition
(function_name_assemble_flash_code) function_name_assemble_flash_code
(parameters
(identifier_self) identifier_self
(identifier_asm) identifier_asm
)parameters
(block
(expression_statement
(assignment
(identifier_stream) identifier_stream
(call
(identifier_StringIO) identifier_StringIO
(argument_list
(identifier_asm) identifier_asm
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_worker) identifier_worker
(call
(attribute
(identifier_assembler) identifier_assembler
(identifier_Assembler) identifier_Assembler
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_processor) identifier_processor
)attribute
(identifier_stream) identifier_stream
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_worker) identifier_worker
(identifier_assemble) identifier_assemble
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_BaseException) identifier_BaseException
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(return_statement
(expression_list
(identifier_e) identifier_e
(None) None
)expression_list
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_flash) identifier_flash
)attribute
(identifier_program) identifier_program
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(None) None
(identifier_result) identifier_result
)expression_list
)return_statement
)block
)function_definition
)module | assemble the given code and program the Flash |
(module
(function_definition
(function_name_colorize_format) function_name_colorize_format
(parameters
(identifier_self) identifier_self
(identifier_fmt) identifier_fmt
(default_parameter
(identifier_style) identifier_style
(identifier_DEFAULT_FORMAT_STYLE) identifier_DEFAULT_FORMAT_STYLE
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_FormatStringParser) identifier_FormatStringParser
(argument_list
(keyword_argument
(identifier_style) identifier_style
(identifier_style) identifier_style
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_group) identifier_group
(call
(attribute
(identifier_parser) identifier_parser
(identifier_get_grouped_pairs) identifier_get_grouped_pairs
)attribute
(argument_list
(identifier_fmt) identifier_fmt
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_applicable_styles) identifier_applicable_styles
(list_comprehension
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nn) identifier_nn
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_field_styles) identifier_field_styles
)attribute
(attribute
(identifier_token) identifier_token
(identifier_name) identifier_name
)attribute
)argument_list
)call
(for_in_clause
(identifier_token) identifier_token
(identifier_group) identifier_group
)for_in_clause
(if_clause
(attribute
(identifier_token) identifier_token
(identifier_name) identifier_name
)attribute
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_sum) identifier_sum
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_bool) identifier_bool
(identifier_applicable_styles) identifier_applicable_styles
)argument_list
)call
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_ansi_wrap) identifier_ansi_wrap
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(generator_expression
(attribute
(identifier_token) identifier_token
(identifier_text) identifier_text
)attribute
(for_in_clause
(identifier_token) identifier_token
(identifier_group) identifier_group
)for_in_clause
)generator_expression
)call
(dictionary_splat
(call
(identifier_next) identifier_next
(generator_expression
(identifier_s) identifier_s
(for_in_clause
(identifier_s) identifier_s
(identifier_applicable_styles) identifier_applicable_styles
)for_in_clause
(if_clause
(identifier_s) identifier_s
)if_clause
)generator_expression
)call
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(for_statement
(identifier_token) identifier_token
(identifier_group) identifier_group
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(attribute
(identifier_token) identifier_token
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_token) identifier_token
(identifier_name) identifier_name
)attribute
(block
(expression_statement
(assignment
(identifier_field_styles) identifier_field_styles
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nn) identifier_nn
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_field_styles) identifier_field_styles
)attribute
(attribute
(identifier_token) identifier_token
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_field_styles) identifier_field_styles
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(identifier_ansi_wrap) identifier_ansi_wrap
(argument_list
(identifier_text) identifier_text
(dictionary_splat
(identifier_field_styles) identifier_field_styles
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Rewrite a logging format string to inject ANSI escape sequences.
:param fmt: The log format string.
:param style: One of the characters ``%``, ``{`` or ``$`` (defaults to
:data:`DEFAULT_FORMAT_STYLE`).
:returns: The logging format string with ANSI escape sequences.
This method takes a logging format string like the ones you give to
:class:`logging.Formatter` and processes it as follows:
1. First the logging format string is separated into formatting
directives versus surrounding text (according to the given `style`).
2. Then formatting directives and surrounding text are grouped
based on whitespace delimiters (in the surrounding text).
3. For each group styling is selected as follows:
1. If the group contains a single formatting directive that has
a style defined then the whole group is styled accordingly.
2. If the group contains multiple formatting directives that
have styles defined then each formatting directive is styled
individually and surrounding text isn't styled.
As an example consider the default log format (:data:`DEFAULT_LOG_FORMAT`)::
%(asctime)s %(hostname)s %(name)s[%(process)d] %(levelname)s %(message)s
The default field styles (:data:`DEFAULT_FIELD_STYLES`) define a style for the
`name` field but not for the `process` field, however because both fields
are part of the same whitespace delimited token they'll be highlighted
together in the style defined for the `name` field. |
(module
(function_definition
(function_name_backspace) function_name_backspace
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__cx) identifier__cx
)attribute
(attribute
(identifier_self) identifier_self
(identifier__cw) identifier__cw
)attribute
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_erase) identifier_erase
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__cx) identifier__cx
)attribute
(attribute
(identifier_self) identifier_self
(identifier__cw) identifier__cw
)attribute
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Moves the cursor one place to the left, erasing the character at the
current position. Cannot move beyond column zero, nor onto the
previous line. |
(module
(function_definition
(function_name_price_dec) function_name_price_dec
(parameters
(identifier_raw_price) identifier_raw_price
(default_parameter
(identifier_default) identifier_default
(identifier__not_defined) identifier__not_defined
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_price) identifier_price
(call
(identifier_price_str) identifier_price_str
(argument_list
(identifier_raw_price) identifier_raw_price
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_decimal) identifier_decimal
(identifier_Decimal) identifier_Decimal
)attribute
(argument_list
(identifier_price) identifier_price
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_ValueError) identifier_ValueError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(identifier_default) identifier_default
(identifier__not_defined) identifier__not_defined
)comparison_operator
(block
(raise_statement
(identifier_err) identifier_err
)raise_statement
)block
)if_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)function_definition
)module | Price decimal value from raw string.
Extract price value from input raw string and
present as Decimal number.
If raw price does not contain valid price value or contains
more than one price value, then return default value.
If default value not set, then raise ValueError.
:param str raw_price: string that contains price value.
:param default: value that will be returned if raw price not valid.
:return: Decimal price value.
:raise ValueError: error if raw price not valid and default value not set. |
(module
(function_definition
(function_name_mtf_range) function_name_mtf_range
(parameters
(identifier_mesh) identifier_mesh
(identifier_dim) identifier_dim
(identifier_dtype) identifier_dtype
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dim) identifier_dim
(call
(identifier_convert_to_dimension) identifier_convert_to_dimension
(argument_list
(identifier_dim) identifier_dim
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_variable_scope) identifier_variable_scope
)attribute
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_default_name) identifier_default_name
(string_"range") string_"range"
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(identifier_dtype) identifier_dtype
(attribute
(identifier_tf) identifier_tf
(identifier_bfloat16) identifier_bfloat16
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tf_range) identifier_tf_range
(call
(attribute
(identifier_tf) identifier_tf
(identifier_cast) identifier_cast
)attribute
(argument_list
(call
(attribute
(identifier_tf) identifier_tf
(identifier_range) identifier_range
)attribute
(argument_list
(attribute
(identifier_dim) identifier_dim
(identifier_size) identifier_size
)attribute
)argument_list
)call
(attribute
(identifier_tf) identifier_tf
(identifier_bfloat16) identifier_bfloat16
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_tf_range) identifier_tf_range
(call
(attribute
(identifier_tf) identifier_tf
(identifier_range) identifier_range
)attribute
(argument_list
(attribute
(identifier_dim) identifier_dim
(identifier_size) identifier_size
)attribute
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_import_tf_tensor) identifier_import_tf_tensor
(argument_list
(identifier_mesh) identifier_mesh
(identifier_tf_range) identifier_tf_range
(keyword_argument
(identifier_shape) identifier_shape
(call
(identifier_Shape) identifier_Shape
(argument_list
(list
(identifier_dim) identifier_dim
)list
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Create a 1d mesh tensor with a range from [0, dim.size).
Call externally as mtf.range()
Args:
mesh: a Mesh
dim: a Dimension
dtype: a tf.DType
name: an optional string
Returns:
a Tensor |
(module
(function_definition
(function_name__dead_assignment_elimination) function_name__dead_assignment_elimination
(parameters
(identifier_self) identifier_self
(identifier_function) identifier_function
(identifier_data_graph) identifier_data_graph
)parameters
(block
(expression_statement
(assignment
(identifier_register_pvs) identifier_register_pvs
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(call
(attribute
(identifier_data_graph) identifier_data_graph
(identifier_nodes) identifier_nodes
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_variable) identifier_variable
)attribute
(identifier_SimRegisterVariable) identifier_SimRegisterVariable
)argument_list
)call
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(attribute
(identifier_node) identifier_node
(identifier_variable) identifier_variable
)attribute
(identifier_reg) identifier_reg
)attribute
(None) None
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(attribute
(identifier_node) identifier_node
(identifier_variable) identifier_variable
)attribute
(identifier_reg) identifier_reg
)attribute
(integer_40) integer_40
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_register_pvs) identifier_register_pvs
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_reg) identifier_reg
(identifier_register_pvs) identifier_register_pvs
(block
(expression_statement
(assignment
(identifier_out_edges) identifier_out_edges
(call
(attribute
(identifier_data_graph) identifier_data_graph
(identifier_out_edges) identifier_out_edges
)attribute
(argument_list
(identifier_reg) identifier_reg
(keyword_argument
(identifier_data) identifier_data
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_consumers) identifier_consumers
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_killers) identifier_killers
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier_data) identifier_data
)pattern_list
(identifier_out_edges) identifier_out_edges
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'type') string_'type'
(identifier_data) identifier_data
)comparison_operator
(comparison_operator
(subscript
(identifier_data) identifier_data
(string_'type') string_'type'
)subscript
(string_'kill') string_'kill'
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_killers) identifier_killers
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_consumers) identifier_consumers
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(not_operator
(identifier_consumers) identifier_consumers
)not_operator
(identifier_killers) identifier_killers
)boolean_operator
(block
(expression_statement
(assignment
(identifier_da) identifier_da
(call
(identifier_DeadAssignment) identifier_DeadAssignment
(argument_list
(identifier_reg) identifier_reg
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dead_assignments) identifier_dead_assignments
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_da) identifier_da
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Remove assignments to registers that has no consumers, but immediately killed.
BROKEN - DO NOT USE IT
:param angr.knowledge.Function function:
:param networkx.MultiDiGraph data_graph:
:return: None |
(module
(function_definition
(function_name_lock_resource_for_update) function_name_lock_resource_for_update
(parameters
(identifier_cls) identifier_cls
(identifier_resource_id) identifier_resource_id
(identifier_db_session) identifier_db_session
)parameters
(block
(expression_statement
(assignment
(identifier_db_session) identifier_db_session
(call
(identifier_get_db_session) identifier_get_db_session
(argument_list
(identifier_db_session) identifier_db_session
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_db_session) identifier_db_session
(identifier_query) identifier_query
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_model) identifier_model
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_query) identifier_query
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_model) identifier_model
)attribute
(identifier_resource_id) identifier_resource_id
)attribute
(identifier_resource_id) identifier_resource_id
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_query) identifier_query
(identifier_with_for_update) identifier_with_for_update
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Selects resource for update - locking access for other transactions
:param resource_id:
:param db_session:
:return: |
(module
(function_definition
(function_name_load_ui_type) function_name_load_ui_type
(parameters
(identifier_uifile) identifier_uifile
)parameters
(block
(import_statement
(dotted_name
(identifier_pysideuic) identifier_pysideuic
)dotted_name
)import_statement
(import_statement
(aliased_import
(dotted_name
(identifier_xml) identifier_xml
(identifier_etree) identifier_etree
(identifier_ElementTree) identifier_ElementTree
)dotted_name
(identifier_ElementTree) identifier_ElementTree
)aliased_import
)import_statement
(import_from_statement
(dotted_name
(identifier_cStringIO) identifier_cStringIO
)dotted_name
(dotted_name
(identifier_StringIO) identifier_StringIO
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(call
(attribute
(identifier_ElementTree) identifier_ElementTree
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_uifile) identifier_uifile
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_widget_class) identifier_widget_class
(call
(attribute
(call
(attribute
(identifier_parsed) identifier_parsed
(identifier_find) identifier_find
)attribute
(argument_list
(string_'widget') string_'widget'
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'class') string_'class'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_form_class) identifier_form_class
(attribute
(call
(attribute
(identifier_parsed) identifier_parsed
(identifier_find) identifier_find
)attribute
(argument_list
(string_'class') string_'class'
)argument_list
)call
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_uifile) identifier_uifile
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_o) identifier_o
(call
(identifier_StringIO) identifier_StringIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_frame) identifier_frame
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pysideuic) identifier_pysideuic
(identifier_compileUi) identifier_compileUi
)attribute
(argument_list
(identifier_f) identifier_f
(identifier_o) identifier_o
(keyword_argument
(identifier_indent) identifier_indent
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pyc) identifier_pyc
(call
(identifier_compile) identifier_compile
(argument_list
(call
(attribute
(identifier_o) identifier_o
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
(string_'<string>') string_'<string>'
(string_'exec') string_'exec'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(comparison_operator
(call
(identifier_exec) identifier_exec
(argument_list
(identifier_pyc) identifier_pyc
)argument_list
)call
(identifier_frame) identifier_frame
)comparison_operator
)expression_statement
(expression_statement
(assignment
(identifier_form_class) identifier_form_class
(subscript
(identifier_frame) identifier_frame
(binary_operator
(string_'Ui_%s') string_'Ui_%s'
(identifier_form_class) identifier_form_class
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_base_class) identifier_base_class
(call
(identifier_eval) identifier_eval
(argument_list
(binary_operator
(string_'QtWidgets.%s') string_'QtWidgets.%s'
(identifier_widget_class) identifier_widget_class
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(return_statement
(expression_list
(identifier_form_class) identifier_form_class
(identifier_base_class) identifier_base_class
)expression_list
)return_statement
)block
)function_definition
)module | Pyside equivalent for the loadUiType function in PyQt.
From the PyQt4 documentation:
Load a Qt Designer .ui file and return a tuple of the generated form
class and the Qt base class. These can then be used to create any
number of instances of the user interface without having to parse the
.ui file more than once.
Note:
Pyside lacks the "loadUiType" command, so we have to convert the ui
file to py code in-memory first and then execute it in a special frame
to retrieve the form_class.
Args:
uifile (str): Absolute path to .ui file
Returns:
tuple: the generated form class, the Qt base class |
(module
(function_definition
(function_name__handle_continuations) function_name__handle_continuations
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
(identifier_cache_key) identifier_cache_key
)parameters
(block
(expression_statement
(assignment
(identifier_rcontinue) identifier_rcontinue
(call
(attribute
(identifier_response) identifier_response
(identifier_get) identifier_get
)attribute
(argument_list
(string_'continue') string_'continue'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_listen) identifier_listen
(list
(string_'blcontinue') string_'blcontinue'
(string_'cmcontinue') string_'cmcontinue'
(string_'plcontinue') string_'plcontinue'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cparams) identifier_cparams
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_rcontinue) identifier_rcontinue
(block
(for_statement
(identifier_flag) identifier_flag
(identifier_listen) identifier_listen
(block
(if_statement
(call
(attribute
(identifier_rcontinue) identifier_rcontinue
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_flag) identifier_flag
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_cparams) identifier_cparams
(identifier_flag) identifier_flag
)subscript
(call
(attribute
(identifier_rcontinue) identifier_rcontinue
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_flag) identifier_flag
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(if_statement
(identifier_cparams) identifier_cparams
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(string_'continue') string_'continue'
)subscript
(identifier_cparams) identifier_cparams
)assignment
)expression_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_cache_key) identifier_cache_key
)subscript
)delete_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(string_'continue') string_'continue'
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)comparison_operator
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(string_'continue') string_'continue'
)subscript
)delete_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Select continue params and clear cache or last continue params |
(module
(function_definition
(function_name_image_resources) function_name_image_resources
(parameters
(default_parameter
(identifier_package) identifier_package
(None) None
)default_parameter
(default_parameter
(identifier_directory) identifier_directory
(string_'resources') string_'resources'
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_package) identifier_package
)not_operator
(block
(expression_statement
(assignment
(identifier_package) identifier_package
(call
(identifier_calling_package) identifier_calling_package
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_package_dir) identifier_package_dir
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_package) identifier_package
(identifier_directory) identifier_directory
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_images) identifier_images
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_resource_listdir) identifier_resource_listdir
(argument_list
(identifier_package) identifier_package
(identifier_directory) identifier_directory
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(attribute
(identifier_i) identifier_i
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'__') string_'__'
)argument_list
)call
(call
(attribute
(identifier_i) identifier_i
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.egg-info') string_'.egg-info'
)argument_list
)call
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_fname) identifier_fname
(call
(identifier_resource_filename) identifier_resource_filename
(argument_list
(identifier_package_dir) identifier_package_dir
(identifier_i) identifier_i
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_resource_isdir) identifier_resource_isdir
(argument_list
(identifier_package_dir) identifier_package_dir
(identifier_i) identifier_i
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_images) identifier_images
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_image_resources) identifier_image_resources
(argument_list
(identifier_package_dir) identifier_package_dir
(identifier_i) identifier_i
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_what) identifier_what
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_images) identifier_images
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_images) identifier_images
)return_statement
)block
)function_definition
)module | Returns all images under the directory relative to a package path. If no directory or package is specified then the
resources module of the calling package will be used. Images are recursively discovered.
:param package: package name in dotted format.
:param directory: path relative to package path of the resources directory.
:return: a list of images under the specified resources path. |
(module
(function_definition
(function_name_async_save_result) function_name_async_save_result
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_"_async_future") string_"_async_future"
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__async_future) identifier__async_future
)attribute
(identifier_done) identifier_done
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__async_future) identifier__async_future
)attribute
(identifier_result) identifier_result
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieves the result of this subject's asynchronous save.
- Returns `True` if the subject was saved successfully.
- Raises `concurrent.futures.CancelledError` if the save was cancelled.
- If the save failed, raises the relevant exception.
- Returns `False` if the subject hasn't finished saving or if the
subject has not been queued for asynchronous save. |
(module
(function_definition
(function_name_before_sample) function_name_before_sample
(parameters
(identifier_analysis_request) identifier_analysis_request
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_analysis_request) identifier_analysis_request
(identifier_getDateSampled) identifier_getDateSampled
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_analysis_request) identifier_analysis_request
(identifier_setDateSampled) identifier_setDateSampled
)attribute
(argument_list
(call
(identifier_DateTime) identifier_DateTime
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_analysis_request) identifier_analysis_request
(identifier_getSampler) identifier_getSampler
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_analysis_request) identifier_analysis_request
(identifier_setSampler) identifier_setSampler
)attribute
(argument_list
(attribute
(call
(attribute
(identifier_api) identifier_api
(identifier_get_current_user) identifier_get_current_user
)attribute
(argument_list
)argument_list
)call
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Method triggered before "sample" transition for the Analysis Request
passed in is performed |
(module
(function_definition
(function_name__init_from_file) function_name__init_from_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"detx") string_"detx"
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(string_'Only the detx format is supported.') string_'Only the detx format is supported.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__open_file) identifier__open_file
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__extract_comments) identifier__extract_comments
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_header) identifier__parse_header
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_doms) identifier__parse_doms
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__det_file) identifier__det_file
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create detector from detx file. |
(module
(function_definition
(function_name_create_pattern) function_name_create_pattern
(parameters
(identifier_cls) identifier_cls
(identifier_userdata) identifier_userdata
)parameters
(block
(expression_statement
(assignment
(identifier_empty) identifier_empty
(call
(attribute
(identifier_cls) identifier_cls
(identifier_create_empty) identifier_create_empty
)attribute
(argument_list
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_userdata_dict) identifier_userdata_dict
(call
(attribute
(identifier_cls) identifier_cls
(identifier_normalize) identifier_normalize
)attribute
(argument_list
(identifier_empty) identifier_empty
(identifier_userdata) identifier_userdata
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Userdata) identifier_Userdata
(argument_list
(identifier_userdata_dict) identifier_userdata_dict
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a user data instance with all values the same. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.