sequence
stringlengths 557
12.7k
| docstring
stringlengths 4
15.2k
|
|---|---|
(module
(function_definition
(function_name__copy_new_parent) function_name__copy_new_parent
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(string_"undefined") string_"undefined"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_param) identifier_param
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_param) identifier_param
(identifier_parent) identifier_parent
)attribute
(attribute
(identifier_parent) identifier_parent
(identifier_uid) identifier_uid
)attribute
)assignment
)expression_statement
(return_statement
(identifier_param) identifier_param
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Cannot copy from non-dummy parent %s.") string_"Cannot copy from non-dummy parent %s."
(identifier_parent) identifier_parent
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Copy the current param to a new parent, must be a dummy param.
|
(module
(function_definition
(function_name__format_char) function_name__format_char
(parameters
(identifier_char) identifier_char
)parameters
(block
(if_statement
(comparison_operator
(identifier_char) identifier_char
(None) None
)comparison_operator
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_char) identifier_char
(identifier__STRTYPES) identifier__STRTYPES
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_char) identifier_char
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_ord) identifier_ord
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)return_statement
)block
)if_statement
(try_statement
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)return_statement
)block
(except_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_'char single character string, integer, or None\nReceived: ') string_'char single character string, integer, or None\nReceived: '
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Prepares a single character for passing to ctypes calls, needs to return
an integer but can also pass None which will keep the current character
instead of overwriting it.
This is called often and needs to be optimized whenever possible.
|
(module
(function_definition
(function_name__contigs_dict_to_file) function_name__contigs_dict_to_file
(parameters
(identifier_self) identifier_self
(identifier_contigs) identifier_contigs
(identifier_fname) identifier_fname
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(attribute
(attribute
(identifier_pyfastaq) identifier_pyfastaq
(identifier_utils) identifier_utils
)attribute
(identifier_open_file_write) identifier_open_file_write
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_contig) identifier_contig
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_contigs) identifier_contigs
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_contigs) identifier_contigs
(identifier_x) identifier_x
)subscript
)argument_list
)call
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(subscript
(identifier_contigs) identifier_contigs
(identifier_contig) identifier_contig
)subscript
(keyword_argument
(identifier_file) identifier_file
(identifier_f) identifier_f
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_pyfastaq) identifier_pyfastaq
(identifier_utils) identifier_utils
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Writes dictionary of contigs to file
|
(module
(function_definition
(function_name_patch) function_name_patch
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_from_statement
(dotted_name
(identifier_caliendo) identifier_caliendo
(identifier_patch) identifier_patch
)dotted_name
(aliased_import
(dotted_name
(identifier_patch) identifier_patch
)dotted_name
(identifier_p) identifier_p
)aliased_import
)import_from_statement
(return_statement
(call
(identifier_p) identifier_p
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Deprecated. Patch should now be imported from caliendo.patch.patch
|
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_transform) identifier_transform
(default_parameter
(identifier_desc) identifier_desc
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_desc) identifier_desc
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_desc) identifier_desc
(call
(attribute
(string_u'transform({})') string_u'transform({})'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_transform) identifier_transform
(string_'__name__') string_'__name__'
(string_'') string_''
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_replace) identifier_replace
)attribute
(argument_list
(keyword_argument
(identifier_transforms) identifier_transforms
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_transforms) identifier_transforms
)attribute
(list
(identifier_transform) identifier_transform
)list
)binary_operator
)keyword_argument
(keyword_argument
(identifier_desc_stack) identifier_desc_stack
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_desc_stack) identifier_desc_stack
)attribute
(list
(identifier_desc) identifier_desc
)list
)binary_operator
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Create a copy of this query, transformed by `transform`.
Args:
transform (callable): Callable that takes an iterable of values and
returns an iterable of transformed values.
Keyword Args:
desc (str): A description of the transform, to use in log messages.
Defaults to the name of the `transform` function.
Returns:
Query
|
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
(default_parameter
(identifier_y) identifier_y
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_insuffix) identifier_insuffix
(attribute
(identifier_X) identifier_X
(identifier__libsuffix) identifier__libsuffix
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cast_fn) identifier_cast_fn
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_lib_fn) identifier_get_lib_fn
)attribute
(argument_list
(binary_operator
(string_'locallyBlurAntsImage%s') string_'locallyBlurAntsImage%s'
(parenthesized_expression
(identifier_insuffix) identifier_insuffix
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_casted_ptr) identifier_casted_ptr
(call
(identifier_cast_fn) identifier_cast_fn
(argument_list
(attribute
(identifier_X) identifier_X
(identifier_pointer) identifier_pointer
)attribute
(attribute
(identifier_self) identifier_self
(identifier_iters) identifier_iters
)attribute
(attribute
(identifier_self) identifier_self
(identifier_conductance) identifier_conductance
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_iio) identifier_iio
(identifier_ANTsImage) identifier_ANTsImage
)attribute
(argument_list
(keyword_argument
(identifier_pixeltype) identifier_pixeltype
(attribute
(identifier_X) identifier_X
(identifier_pixeltype) identifier_pixeltype
)attribute
)keyword_argument
(keyword_argument
(identifier_dimension) identifier_dimension
(attribute
(identifier_X) identifier_X
(identifier_dimension) identifier_dimension
)attribute
)keyword_argument
(keyword_argument
(identifier_components) identifier_components
(attribute
(identifier_X) identifier_X
(identifier_components) identifier_components
)attribute
)keyword_argument
(keyword_argument
(identifier_pointer) identifier_pointer
(identifier_casted_ptr) identifier_casted_ptr
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Locally blur an image by applying a gradient anisotropic diffusion filter.
Arguments
---------
X : ANTsImage
image to transform
y : ANTsImage (optional)
another image to transform.
Example
-------
>>> import ants
>>> blur = ants.contrib.LocallyBlurIntensity(1,5)
>>> img2d = ants.image_read(ants.get_data('r16'))
>>> img2d_b = blur.transform(img2d)
>>> ants.plot(img2d)
>>> ants.plot(img2d_b)
>>> img3d = ants.image_read(ants.get_data('mni'))
>>> img3d_b = blur.transform(img3d)
>>> ants.plot(img3d)
>>> ants.plot(img3d_b)
|
(module
(function_definition
(function_name_has_roles) function_name_has_roles
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_requirements) identifier_requirements
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_user_manager) identifier_user_manager
(attribute
(identifier_current_app) identifier_current_app
(identifier_user_manager) identifier_user_manager
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_role_names) identifier_role_names
(call
(attribute
(attribute
(identifier_user_manager) identifier_user_manager
(identifier_db_manager) identifier_db_manager
)attribute
(identifier_get_user_roles) identifier_get_user_roles
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_requirement) identifier_requirement
(identifier_requirements) identifier_requirements
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_requirement) identifier_requirement
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tuple_of_role_names) identifier_tuple_of_role_names
(identifier_requirement) identifier_requirement
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_authorized) identifier_authorized
(False) False
)assignment
)expression_statement
(for_statement
(identifier_role_name) identifier_role_name
(identifier_tuple_of_role_names) identifier_tuple_of_role_names
(block
(if_statement
(comparison_operator
(identifier_role_name) identifier_role_name
(identifier_role_names) identifier_role_names
)comparison_operator
(block
(expression_statement
(assignment
(identifier_authorized) identifier_authorized
(True) True
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_authorized) identifier_authorized
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_role_name) identifier_role_name
(identifier_requirement) identifier_requirement
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(identifier_role_name) identifier_role_name
(identifier_role_names) identifier_role_names
)comparison_operator
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module
|
Return True if the user has all of the specified roles. Return False otherwise.
has_roles() accepts a list of requirements:
has_role(requirement1, requirement2, requirement3).
Each requirement is either a role_name, or a tuple_of_role_names.
role_name example: 'manager'
tuple_of_role_names: ('funny', 'witty', 'hilarious')
A role_name-requirement is accepted when the user has this role.
A tuple_of_role_names-requirement is accepted when the user has ONE of these roles.
has_roles() returns true if ALL of the requirements have been accepted.
For example:
has_roles('a', ('b', 'c'), d)
Translates to:
User has role 'a' AND (role 'b' OR role 'c') AND role 'd
|
(module
(function_definition
(function_name_value) function_name_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_filter_) identifier_filter_
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'field') string_'field'
)argument_list
)call
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_filter_) identifier_filter_
)attribute
(string_'field') string_'field'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_InvalidFilters) identifier_InvalidFilters
(argument_list
(call
(attribute
(string_"{} has no attribute {}") string_"{} has no attribute {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier___name__) identifier___name__
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_filter_) identifier_filter_
)attribute
(string_'field') string_'field'
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
(else_clause
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)else_clause
)try_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(string_'val') string_'val'
(attribute
(identifier_self) identifier_self
(identifier_filter_) identifier_filter_
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidFilters) identifier_InvalidFilters
(argument_list
(string_"Can't find value or field in a filter") string_"Can't find value or field in a filter"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_filter_) identifier_filter_
)attribute
(string_'val') string_'val'
)subscript
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Get the value to filter on
:return: the value to filter on
|
(module
(function_definition
(function_name_results) function_name_results
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_report) identifier_report
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_experimentalResults) identifier_experimentalResults
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Return a complete results dict. Only really makes sense for
recently-executed experimental runs.
:returns: the results dict
|
(module
(function_definition
(function_name_setupMovie) function_name_setupMovie
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(attribute
(identifier_self) identifier_self
(identifier_INIT) identifier_INIT
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_sendRtspRequest) identifier_sendRtspRequest
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_SETUP) identifier_SETUP
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Setup button handler.
|
(module
(function_definition
(function_name_transform_dot) function_name_transform_dot
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_results) identifier_results
)parameters
(block
(expression_statement
(assignment
(identifier_module_dot) identifier_module_dot
(call
(attribute
(identifier_results) identifier_results
(identifier_get) identifier_get
)attribute
(argument_list
(string_"bare_with_attr") string_"bare_with_attr"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_member) identifier_member
(call
(attribute
(identifier_results) identifier_results
(identifier_get) identifier_get
)attribute
(argument_list
(string_"member") string_"member"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_name) identifier_new_name
(None) None
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_member) identifier_member
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_member) identifier_member
(subscript
(identifier_member) identifier_member
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_change) identifier_change
(subscript
(identifier_MAPPING) identifier_MAPPING
(attribute
(identifier_module_dot) identifier_module_dot
(identifier_value) identifier_value
)attribute
)subscript
(block
(if_statement
(comparison_operator
(attribute
(identifier_member) identifier_member
(identifier_value) identifier_value
)attribute
(subscript
(identifier_change) identifier_change
(integer_1) integer_1
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_name) identifier_new_name
(subscript
(identifier_change) identifier_change
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_new_name) identifier_new_name
(block
(expression_statement
(call
(attribute
(identifier_module_dot) identifier_module_dot
(identifier_replace) identifier_replace
)attribute
(argument_list
(call
(identifier_Name) identifier_Name
(argument_list
(identifier_new_name) identifier_new_name
(keyword_argument
(identifier_prefix) identifier_prefix
(attribute
(identifier_module_dot) identifier_module_dot
(identifier_prefix) identifier_prefix
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_cannot_convert) identifier_cannot_convert
)attribute
(argument_list
(identifier_node) identifier_node
(string_"This is an invalid module element") string_"This is an invalid module element"
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Transform for calls to module members in code.
|
(module
(function_definition
(function_name_release_value_set) function_name_release_value_set
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__remotelib) identifier__remotelib
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__remotelib) identifier__remotelib
)attribute
(identifier_run_keyword) identifier_run_keyword
)attribute
(argument_list
(string_'release_value_set') string_'release_value_set'
(list
(attribute
(identifier_self) identifier_self
(identifier__my_id) identifier__my_id
)attribute
)list
(dictionary
)dictionary
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier__PabotLib) identifier__PabotLib
(identifier_release_value_set) identifier_release_value_set
)attribute
(argument_list
(identifier_self) identifier_self
(attribute
(identifier_self) identifier_self
(identifier__my_id) identifier__my_id
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Release a reserved value set so that other executions can use it also.
|
(module
(function_definition
(function_name_connect_discussion_signals) function_name_connect_discussion_signals
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_post_save) identifier_post_save
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_count_discussions_handler) identifier_count_discussions_handler
(keyword_argument
(identifier_sender) identifier_sender
(identifier_comment_model) identifier_comment_model
)keyword_argument
(keyword_argument
(identifier_dispatch_uid) identifier_dispatch_uid
(identifier_COMMENT_PS_COUNT_DISCUSSIONS) identifier_COMMENT_PS_COUNT_DISCUSSIONS
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_post_delete) identifier_post_delete
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_count_discussions_handler) identifier_count_discussions_handler
(keyword_argument
(identifier_sender) identifier_sender
(identifier_comment_model) identifier_comment_model
)keyword_argument
(keyword_argument
(identifier_dispatch_uid) identifier_dispatch_uid
(identifier_COMMENT_PD_COUNT_DISCUSSIONS) identifier_COMMENT_PD_COUNT_DISCUSSIONS
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_comment_was_flagged) identifier_comment_was_flagged
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_count_discussions_handler) identifier_count_discussions_handler
(keyword_argument
(identifier_sender) identifier_sender
(identifier_comment_model) identifier_comment_model
)keyword_argument
(keyword_argument
(identifier_dispatch_uid) identifier_dispatch_uid
(identifier_COMMENT_WF_COUNT_DISCUSSIONS) identifier_COMMENT_WF_COUNT_DISCUSSIONS
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_comment_was_posted) identifier_comment_was_posted
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_count_comments_handler) identifier_count_comments_handler
(keyword_argument
(identifier_sender) identifier_sender
(identifier_comment_model) identifier_comment_model
)keyword_argument
(keyword_argument
(identifier_dispatch_uid) identifier_dispatch_uid
(identifier_COMMENT_WP_COUNT_COMMENTS) identifier_COMMENT_WP_COUNT_COMMENTS
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_pingback_was_posted) identifier_pingback_was_posted
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_count_pingbacks_handler) identifier_count_pingbacks_handler
(keyword_argument
(identifier_sender) identifier_sender
(identifier_comment_model) identifier_comment_model
)keyword_argument
(keyword_argument
(identifier_dispatch_uid) identifier_dispatch_uid
(identifier_PINGBACK_WF_COUNT_PINGBACKS) identifier_PINGBACK_WF_COUNT_PINGBACKS
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_trackback_was_posted) identifier_trackback_was_posted
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_count_trackbacks_handler) identifier_count_trackbacks_handler
(keyword_argument
(identifier_sender) identifier_sender
(identifier_comment_model) identifier_comment_model
)keyword_argument
(keyword_argument
(identifier_dispatch_uid) identifier_dispatch_uid
(identifier_TRACKBACK_WF_COUNT_TRACKBACKS) identifier_TRACKBACK_WF_COUNT_TRACKBACKS
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Connect all the signals on the Comment model to
maintains a valid discussion count on each entries
when an action is done with the comments.
|
(module
(function_definition
(function_name_pop_context) function_name_pop_context
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_processor) identifier_processor
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(string_'processor') string_'processor'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_processor) identifier_processor
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pop_context) identifier_pop_context
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_processor) identifier_processor
(string_'pop_context') string_'pop_context'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pop_context) identifier_pop_context
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pop_context) identifier_pop_context
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_processor) identifier_processor
(string_'pop') string_'pop'
(None) None
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_pop_context) identifier_pop_context
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_pop_context) identifier_pop_context
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__pop_next) identifier__pop_next
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__pop_next) identifier__pop_next
)attribute
(False) False
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Pops the last set of keyword arguments provided to the processor.
|
(module
(function_definition
(function_name_add_title) function_name_add_title
(parameters
(identifier_self) identifier_self
(identifier_title) identifier_title
(default_parameter
(identifier_subtitle) identifier_subtitle
(None) None
)default_parameter
(default_parameter
(identifier_source) identifier_source
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_title_entry) identifier_title_entry
(call
(attribute
(identifier_self) identifier_self
(identifier__sourced_dict) identifier__sourced_dict
)attribute
(argument_list
(identifier_source) identifier_source
(keyword_argument
(identifier_title) identifier_title
(identifier_title) identifier_title
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_subtitle) identifier_subtitle
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_title_entry) identifier_title_entry
(string_'subtitle') string_'subtitle'
)subscript
(identifier_subtitle) identifier_subtitle
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__append_to) identifier__append_to
)attribute
(argument_list
(string_'titles') string_'titles'
(identifier_title_entry) identifier_title_entry
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Add title.
:param title: title for the current document
:type title: string
:param subtitle: subtitle for the current document
:type subtitle: string
:param source: source for the given title
:type source: string
|
(module
(function_definition
(function_name_get_cardinality) function_name_get_cardinality
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_node) identifier_node
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_node) identifier_node
(block
(for_statement
(identifier_factor) identifier_factor
(attribute
(identifier_self) identifier_self
(identifier_factors) identifier_factors
)attribute
(block
(for_statement
(pattern_list
(identifier_variable) identifier_variable
(identifier_cardinality) identifier_cardinality
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(call
(attribute
(identifier_factor) identifier_factor
(identifier_scope) identifier_scope
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_factor) identifier_factor
(identifier_cardinality) identifier_cardinality
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_node) identifier_node
(identifier_variable) identifier_variable
)comparison_operator
(block
(return_statement
(identifier_cardinality) identifier_cardinality
)return_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_cardinalities) identifier_cardinalities
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_int) identifier_int
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_factor) identifier_factor
(attribute
(identifier_self) identifier_self
(identifier_factors) identifier_factors
)attribute
(block
(for_statement
(pattern_list
(identifier_variable) identifier_variable
(identifier_cardinality) identifier_cardinality
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(call
(attribute
(identifier_factor) identifier_factor
(identifier_scope) identifier_scope
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_factor) identifier_factor
(identifier_cardinality) identifier_cardinality
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_cardinalities) identifier_cardinalities
(identifier_variable) identifier_variable
)subscript
(identifier_cardinality) identifier_cardinality
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_cardinalities) identifier_cardinalities
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Returns the cardinality of the node
Parameters
----------
node: any hashable python object (optional)
The node whose cardinality we want. If node is not specified returns a
dictionary with the given variable as keys and their respective cardinality
as values.
Returns
-------
int or dict : If node is specified returns the cardinality of the node.
If node is not specified returns a dictionary with the given
variable as keys and their respective cardinality as values.
Examples
--------
>>> from pgmpy.models import ClusterGraph
>>> from pgmpy.factors.discrete import DiscreteFactor
>>> student = ClusterGraph()
>>> factor = DiscreteFactor(['Alice', 'Bob'], cardinality=[2, 2],
... values=np.random.rand(4))
>>> student.add_node(('Alice', 'Bob'))
>>> student.add_factors(factor)
>>> student.get_cardinality()
defaultdict(<class 'int'>, {'Bob': 2, 'Alice': 2})
>>> student.get_cardinality(node='Alice')
2
|
(module
(function_definition
(function_name__channel_exists_and_not_settled) function_name__channel_exists_and_not_settled
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_participant1) identifier_participant1
(type
(identifier_Address) identifier_Address
)type
)typed_parameter
(typed_parameter
(identifier_participant2) identifier_participant2
(type
(identifier_Address) identifier_Address
)type
)typed_parameter
(typed_parameter
(identifier_block_identifier) identifier_block_identifier
(type
(identifier_BlockSpecification) identifier_BlockSpecification
)type
)typed_parameter
(typed_default_parameter
(identifier_channel_identifier) identifier_channel_identifier
(type
(identifier_ChannelID) identifier_ChannelID
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_channel_state) identifier_channel_state
(call
(attribute
(identifier_self) identifier_self
(identifier__get_channel_state) identifier__get_channel_state
)attribute
(argument_list
(keyword_argument
(identifier_participant1) identifier_participant1
(identifier_participant1) identifier_participant1
)keyword_argument
(keyword_argument
(identifier_participant2) identifier_participant2
(identifier_participant2) identifier_participant2
)keyword_argument
(keyword_argument
(identifier_block_identifier) identifier_block_identifier
(identifier_block_identifier) identifier_block_identifier
)keyword_argument
(keyword_argument
(identifier_channel_identifier) identifier_channel_identifier
(identifier_channel_identifier) identifier_channel_identifier
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_RaidenRecoverableError) identifier_RaidenRecoverableError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_exists_and_not_settled) identifier_exists_and_not_settled
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_channel_state) identifier_channel_state
(attribute
(identifier_ChannelState) identifier_ChannelState
(identifier_NONEXISTENT) identifier_NONEXISTENT
)attribute
)comparison_operator
(comparison_operator
(identifier_channel_state) identifier_channel_state
(attribute
(identifier_ChannelState) identifier_ChannelState
(identifier_SETTLED) identifier_SETTLED
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(identifier_exists_and_not_settled) identifier_exists_and_not_settled
)return_statement
)block
)function_definition
)module
|
Returns if the channel exists and is in a non-settled state
|
(module
(function_definition
(function_name_tableiswritable) function_name_tableiswritable
(parameters
(identifier_tablename) identifier_tablename
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(True) True
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(identifier_table) identifier_table
(argument_list
(identifier_tablename) identifier_tablename
(keyword_argument
(identifier_readonly) identifier_readonly
(False) False
)keyword_argument
(keyword_argument
(identifier_ack) identifier_ack
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_t) identifier_t
(identifier_iswritable) identifier_iswritable
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module
|
Test if a table is writable.
|
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_writer) identifier_writer
(call
(attribute
(identifier_csv) identifier_csv
(identifier_writer) identifier_writer
)attribute
(argument_list
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_'w') string_'w'
(keyword_argument
(identifier_newline) identifier_newline
(string_'') string_''
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_delimiter) identifier_delimiter
(string_' ') string_' '
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rows) identifier_rows
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_x) identifier_x
(integer_0) integer_0
)subscript
)lambda
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_writer) identifier_writer
(identifier_writerows) identifier_writerows
)attribute
(argument_list
(identifier_rows) identifier_rows
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Saves this catalogue's data to `path`.
:param path: file path to save catalogue data to
:type path: `str`
|
(module
(function_definition
(function_name_verify_firebase_token) function_name_verify_firebase_token
(parameters
(identifier_id_token) identifier_id_token
(identifier_request) identifier_request
(default_parameter
(identifier_audience) identifier_audience
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_verify_token) identifier_verify_token
(argument_list
(identifier_id_token) identifier_id_token
(identifier_request) identifier_request
(keyword_argument
(identifier_audience) identifier_audience
(identifier_audience) identifier_audience
)keyword_argument
(keyword_argument
(identifier_certs_url) identifier_certs_url
(identifier__GOOGLE_APIS_CERTS_URL) identifier__GOOGLE_APIS_CERTS_URL
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Verifies an ID Token issued by Firebase Authentication.
Args:
id_token (Union[str, bytes]): The encoded token.
request (google.auth.transport.Request): The object used to make
HTTP requests.
audience (str): The audience that this token is intended for. This is
typically your Firebase application ID. If None then the audience
is not verified.
Returns:
Mapping[str, Any]: The decoded token.
|
(module
(function_definition
(function_name__get_serv) function_name__get_serv
(parameters
(default_parameter
(identifier_ret) identifier_ret
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier__options) identifier__options
(call
(identifier__get_options) identifier__get_options
(argument_list
(identifier_ret) identifier_ret
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_host) identifier_host
(call
(attribute
(identifier__options) identifier__options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'host') string_'host'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_port) identifier_port
(call
(attribute
(identifier__options) identifier__options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'port') string_'port'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_database) identifier_database
(call
(attribute
(identifier__options) identifier__options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'db') string_'db'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(identifier__options) identifier__options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'user') string_'user'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_password) identifier_password
(call
(attribute
(identifier__options) identifier__options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'password') string_'password'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(identifier__get_version) identifier__get_version
(argument_list
(identifier_host) identifier_host
(identifier_port) identifier_port
(identifier_user) identifier_user
(identifier_password) identifier_password
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_version) identifier_version
(comparison_operator
(string_"v0.8") string_"v0.8"
(identifier_version) identifier_version
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_influxdb) identifier_influxdb
(identifier_influxdb08) identifier_influxdb08
)attribute
(identifier_InfluxDBClient) identifier_InfluxDBClient
)attribute
(argument_list
(keyword_argument
(identifier_host) identifier_host
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_port) identifier_port
(identifier_port) identifier_port
)keyword_argument
(keyword_argument
(identifier_username) identifier_username
(identifier_user) identifier_user
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
(keyword_argument
(identifier_database) identifier_database
(identifier_database) identifier_database
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_influxdb) identifier_influxdb
(identifier_InfluxDBClient) identifier_InfluxDBClient
)attribute
(argument_list
(keyword_argument
(identifier_host) identifier_host
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_port) identifier_port
(identifier_port) identifier_port
)keyword_argument
(keyword_argument
(identifier_username) identifier_username
(identifier_user) identifier_user
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
(keyword_argument
(identifier_database) identifier_database
(identifier_database) identifier_database
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Return an influxdb client object
|
(module
(function_definition
(function_name_authentication) function_name_authentication
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_password) identifier_password
)parameters
(block
(expression_statement
(assignment
(identifier__auth_text) identifier__auth_text
(call
(attribute
(string_'{}:{}') string_'{}:{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_username) identifier_username
(identifier_password) identifier_password
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version) identifier_version
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier__auth_bin) identifier__auth_bin
(call
(attribute
(identifier_base64) identifier_base64
(identifier_encodebytes) identifier_encodebytes
)attribute
(argument_list
(call
(attribute
(identifier__auth_text) identifier__auth_text
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__auth) identifier__auth
(call
(attribute
(identifier__auth_bin) identifier__auth_bin
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__auth) identifier__auth
(call
(attribute
(identifier__auth) identifier__auth
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'\n') string_'\n'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__auth) identifier__auth
)attribute
(identifier__auth) identifier__auth
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier__auth) identifier__auth
(call
(attribute
(identifier_base64) identifier_base64
(identifier_encodestring) identifier_encodestring
)attribute
(argument_list
(identifier__auth_text) identifier__auth_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__auth) identifier__auth
)attribute
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier__auth) identifier__auth
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'\n') string_'\n'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Autentication string is: {}:***') string_'Autentication string is: {}:***'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_username) identifier_username
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Configures the user authentication for eAPI
This method configures the username and password combination to use
for authenticating to eAPI.
Args:
username (str): The username to use to authenticate the eAPI
connection with
password (str): The password in clear text to use to authenticate
the eAPI connection with
|
(module
(function_definition
(function_name__cfactory) function_name__cfactory
(parameters
(identifier_attr) identifier_attr
(identifier_func) identifier_func
(identifier_argtypes) identifier_argtypes
(identifier_restype) identifier_restype
(default_parameter
(identifier_errcheck) identifier_errcheck
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_meth) identifier_meth
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_attr) identifier_attr
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_meth) identifier_meth
(identifier_argtypes) identifier_argtypes
)attribute
(identifier_argtypes) identifier_argtypes
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_meth) identifier_meth
(identifier_restype) identifier_restype
)attribute
(identifier_restype) identifier_restype
)assignment
)expression_statement
(if_statement
(identifier_errcheck) identifier_errcheck
(block
(expression_statement
(assignment
(attribute
(identifier_meth) identifier_meth
(identifier_errcheck) identifier_errcheck
)attribute
(identifier_errcheck) identifier_errcheck
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Factory to create a ctypes function and automatically manage errors.
|
(module
(function_definition
(function_name_unlink) function_name_unlink
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(list_splat_pattern
(identifier_keys) identifier_keys
)list_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_wait_convert) identifier_wait_convert
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_b'UNLINK') string_b'UNLINK'
(identifier_key) identifier_key
(list_splat
(identifier_keys) identifier_keys
)list_splat
)argument_list
)call
(identifier_int) identifier_int
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Delete a key asynchronously in another thread.
|
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_process) identifier_process
)attribute
(identifier_appendproctitle) identifier_appendproctitle
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_daemons) identifier_daemons
)attribute
(identifier_masterapi) identifier_masterapi
)attribute
(identifier_clean_fsbackend) identifier_clean_fsbackend
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_opts) identifier_opts
)attribute
)argument_list
)call
)expression_statement
(for_statement
(identifier_interval) identifier_interval
(attribute
(identifier_self) identifier_self
(identifier_buckets) identifier_buckets
)attribute
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_update_threads) identifier_update_threads
)attribute
(identifier_interval) identifier_interval
)subscript
(call
(attribute
(identifier_threading) identifier_threading
(identifier_Thread) identifier_Thread
)attribute
(argument_list
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_self) identifier_self
(identifier_update_fileserver) identifier_update_fileserver
)attribute
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(tuple
(identifier_interval) identifier_interval
(subscript
(attribute
(identifier_self) identifier_self
(identifier_buckets) identifier_buckets
)attribute
(identifier_interval) identifier_interval
)subscript
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_update_threads) identifier_update_threads
)attribute
(identifier_interval) identifier_interval
)subscript
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(while_statement
(True) True
(block
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_60) integer_60
)argument_list
)call
)expression_statement
)block
)while_statement
)block
)function_definition
)module
|
Start the update threads
|
(module
(function_definition
(function_name_day_publications_card) function_name_day_publications_card
(parameters
(identifier_date) identifier_date
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_date) identifier_date
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(attribute
(identifier_app_settings) identifier_app_settings
(identifier_DATE_FORMAT) identifier_DATE_FORMAT
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_card_title) identifier_card_title
(call
(attribute
(string_'Reading on {}') string_'Reading on {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'card_title') string_'card_title'
(identifier_card_title) identifier_card_title
)pair
(pair
(string_'publication_list') string_'publication_list'
(call
(identifier_day_publications) identifier_day_publications
(argument_list
(keyword_argument
(identifier_date) identifier_date
(identifier_date) identifier_date
)keyword_argument
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module
|
Displays Publications that were being read on `date`.
`date` is a date tobject.
|
(module
(function_definition
(function_name_clone) function_name_clone
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_clone) identifier_clone
(call
(identifier_copy) identifier_copy
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_clone) identifier_clone
(identifier_variables) identifier_variables
)attribute
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(call
(attribute
(identifier_v) identifier_v
(identifier_clone) identifier_clone
)attribute
(argument_list
)argument_list
)call
)pair
(for_in_clause
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_variables) identifier_variables
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(return_statement
(identifier_clone) identifier_clone
)return_statement
)block
)function_definition
)module
|
Returns a shallow copy of the current instance, except that all
variables are deep-cloned.
|
(module
(function_definition
(function_name_single_node_env) function_name_single_node_env
(parameters
(identifier_args) identifier_args
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_args) identifier_args
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(identifier_args) identifier_args
)assignment
)expression_statement
)block
(elif_clause
(attribute
(identifier_args) identifier_args
(identifier_argv) identifier_argv
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(attribute
(identifier_args) identifier_args
(identifier_argv) identifier_argv
)attribute
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_num_gpus) identifier_num_gpus
(conditional_expression
(attribute
(identifier_args) identifier_args
(identifier_num_gpus) identifier_num_gpus
)attribute
(comparison_operator
(string_'num_gpus') string_'num_gpus'
(identifier_args) identifier_args
)comparison_operator
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_util) identifier_util
(identifier_single_node_env) identifier_single_node_env
)attribute
(argument_list
(identifier_num_gpus) identifier_num_gpus
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Sets up environment for a single-node TF session.
Args:
:args: command line arguments as either argparse args or argv list
|
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_reg) identifier_reg
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'__version__ = [\'"]([^\'"]*)[\'"]') string_r'__version__ = [\'"]([^\'"]*)[\'"]'
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(string_'requests_kerberos/__init__.py') string_'requests_kerberos/__init__.py'
)argument_list
)call
(as_pattern_target
(identifier_fd) identifier_fd
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(identifier_x) identifier_x
)lambda
(call
(identifier_map) identifier_map
(argument_list
(attribute
(identifier_reg) identifier_reg
(identifier_match) identifier_match
)attribute
(identifier_fd) identifier_fd
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(if_statement
(not_operator
(identifier_matches) identifier_matches
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_'Could not find the version information for requests_kerberos') string_'Could not find the version information for requests_kerberos'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(subscript
(identifier_matches) identifier_matches
(integer_0) integer_0
)subscript
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Simple function to extract the current version using regular expressions.
|
(module
(function_definition
(function_name_swo_start) function_name_swo_start
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_swo_speed) identifier_swo_speed
(integer_9600) integer_9600
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_swo_enabled) identifier_swo_enabled
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_swo_stop) identifier_swo_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_structs) identifier_structs
(identifier_JLinkSWOStartInfo) identifier_JLinkSWOStartInfo
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_info) identifier_info
(identifier_Speed) identifier_Speed
)attribute
(identifier_swo_speed) identifier_swo_speed
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dll) identifier__dll
)attribute
(identifier_JLINKARM_SWO_Control) identifier_JLINKARM_SWO_Control
)attribute
(argument_list
(attribute
(attribute
(identifier_enums) identifier_enums
(identifier_JLinkSWOCommands) identifier_JLinkSWOCommands
)attribute
(identifier_START) identifier_START
)attribute
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_JLinkException) identifier_JLinkException
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__swo_enabled) identifier__swo_enabled
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module
|
Starts collecting SWO data.
Note:
If SWO is already enabled, it will first stop SWO before enabling it
again.
Args:
self (JLink): the ``JLink`` instance
swo_speed (int): the frequency in Hz used by the target to communicate
Returns:
``None``
Raises:
JLinkException: on error
|
(module
(function_definition
(function_name__parse_tag) function_name__parse_tag
(parameters
(identifier_self) identifier_self
(identifier_el) identifier_el
)parameters
(block
(expression_statement
(assignment
(identifier_ns) identifier_ns
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tag) identifier_tag
(attribute
(identifier_el) identifier_el
(identifier_tag) identifier_tag
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_tag) identifier_tag
(integer_0) integer_0
)subscript
(string_'{') string_'{'
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_ns) identifier_ns
(identifier_tag) identifier_tag
)pattern_list
(call
(attribute
(subscript
(identifier_tag) identifier_tag
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_'}') string_'}'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_ns_map) identifier_ns_map
)attribute
(comparison_operator
(identifier_ns) identifier_ns
(attribute
(identifier_self) identifier_self
(identifier_ns_map) identifier_ns_map
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_ns) identifier_ns
(subscript
(attribute
(identifier_self) identifier_self
(identifier_ns_map) identifier_ns_map
)attribute
(identifier_ns) identifier_ns
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_ns) identifier_ns
(identifier_tag) identifier_tag
)expression_list
)return_statement
)block
)function_definition
)module
|
Extract the namespace and tag from an element.
|
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
(identifier_file_name) identifier_file_name
(default_parameter
(identifier_save_as) identifier_save_as
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_session) identifier__check_session
)attribute
(argument_list
)argument_list
)call
)expression_statement
(try_statement
(block
(if_statement
(identifier_save_as) identifier_save_as
(block
(expression_statement
(assignment
(identifier_save_as) identifier_save_as
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_normpath) identifier_normpath
)attribute
(argument_list
(identifier_save_as) identifier_save_as
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_save_dir) identifier_save_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_save_as) identifier_save_as
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_save_dir) identifier_save_dir
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_save_dir) identifier_save_dir
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_save_dir) identifier_save_dir
)argument_list
)call
)expression_statement
)block
(elif_clause
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_save_dir) identifier_save_dir
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(identifier_save_dir) identifier_save_dir
(string_" is not a directory") string_" is not a directory"
)binary_operator
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_status) identifier_status
(identifier_save_path) identifier_save_path
(identifier_bytes) identifier_bytes
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__rest) identifier__rest
)attribute
(identifier_download_file) identifier_download_file
)attribute
(argument_list
(string_'files') string_'files'
(identifier_file_name) identifier_file_name
(identifier_save_as) identifier_save_as
(string_'application/octet-stream') string_'application/octet-stream'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_resthttp) identifier_resthttp
(identifier_RestHttpError) identifier_RestHttpError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_'failed to download "%s": %s') string_'failed to download "%s": %s'
(tuple
(identifier_file_name) identifier_file_name
(identifier_e) identifier_e
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(identifier_save_path) identifier_save_path
(identifier_bytes) identifier_bytes
)expression_list
)return_statement
)block
)function_definition
)module
|
Download the specified file from the server.
Arguments:
file_name -- Name of file resource to save.
save_as -- Optional path name to write file to. If not specified,
then file named by the last part of the resource path is
downloaded to current directory.
Return: (save_path, bytes)
save_path -- Path where downloaded file was saved.
bytes -- Bytes downloaded.
|
(module
(function_definition
(function_name__peek) function_name__peek
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_chars) identifier_chars
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__socket) identifier__socket
)attribute
(identifier_recv) identifier_recv
)attribute
(argument_list
(identifier_chars) identifier_chars
(attribute
(identifier_socket) identifier_socket
(identifier_MSG_PEEK) identifier_MSG_PEEK
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'Server sent (peek): ') string_'Server sent (peek): '
(call
(attribute
(identifier_line) identifier_line
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_line) identifier_line
)return_statement
)block
)function_definition
)module
|
Peek at the data in the server response.
Peeking should only be done when the response can be predicted.
Make sure that the socket will not block by requesting too
much data from it while peeking.
Args:
chars -- the number of characters to peek.
|
(module
(function_definition
(function_name_good_port_ranges) function_name_good_port_ranges
(parameters
(default_parameter
(identifier_ports) identifier_ports
(None) None
)default_parameter
(default_parameter
(identifier_min_range_len) identifier_min_range_len
(integer_20) integer_20
)default_parameter
(default_parameter
(identifier_border) identifier_border
(integer_3) integer_3
)default_parameter
)parameters
(block
(expression_statement
(augmented_assignment
(identifier_min_range_len) identifier_min_range_len
(binary_operator
(identifier_border) identifier_border
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ports) identifier_ports
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ports) identifier_ports
(call
(identifier_available_ports) identifier_available_ports
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ranges) identifier_ranges
(call
(attribute
(identifier_utils) identifier_utils
(identifier_to_ranges) identifier_to_ranges
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_ports) identifier_ports
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lenghts) identifier_lenghts
(call
(identifier_sorted) identifier_sorted
(argument_list
(list_comprehension
(tuple
(binary_operator
(subscript
(identifier_r) identifier_r
(integer_1) integer_1
)subscript
(subscript
(identifier_r) identifier_r
(integer_0) integer_0
)subscript
)binary_operator
(identifier_r) identifier_r
)tuple
(for_in_clause
(identifier_r) identifier_r
(identifier_ranges) identifier_ranges
)for_in_clause
)list_comprehension
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_long_ranges) identifier_long_ranges
(list_comprehension
(subscript
(identifier_l) identifier_l
(integer_1) integer_1
)subscript
(for_in_clause
(identifier_l) identifier_l
(identifier_lenghts) identifier_lenghts
)for_in_clause
(if_clause
(comparison_operator
(subscript
(identifier_l) identifier_l
(integer_0) integer_0
)subscript
(identifier_min_range_len) identifier_min_range_len
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_without_borders) identifier_without_borders
(list_comprehension
(tuple
(binary_operator
(identifier_low) identifier_low
(identifier_border) identifier_border
)binary_operator
(binary_operator
(identifier_high) identifier_high
(identifier_border) identifier_border
)binary_operator
)tuple
(for_in_clause
(pattern_list
(identifier_low) identifier_low
(identifier_high) identifier_high
)pattern_list
(identifier_long_ranges) identifier_long_ranges
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_without_borders) identifier_without_borders
)return_statement
)block
)function_definition
)module
|
Returns a list of 'good' port ranges.
Such ranges are large and don't contain ephemeral or well-known ports.
Ranges borders are also excluded.
|
(module
(function_definition
(function_name_locate) function_name_locate
(parameters
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_top_matches) identifier_top_matches
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_top) identifier_top
)attribute
(identifier_locate) identifier_locate
)attribute
(argument_list
(identifier_pattern) identifier_pattern
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bottom_matches) identifier_bottom_matches
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bottom) identifier_bottom
)attribute
(identifier_locate) identifier_locate
)attribute
(argument_list
(identifier_pattern) identifier_pattern
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list
(identifier_top_matches) identifier_top_matches
(identifier_bottom_matches) identifier_bottom_matches
)list
)return_statement
)block
)function_definition
)module
|
Find sequences matching a pattern. For a circular sequence, the
search extends over the origin.
:param pattern: str or NucleicAcidSequence for which to find matches.
:type pattern: str or coral.DNA
:returns: A list of top and bottom strand indices of matches.
:rtype: list of lists of indices (ints)
:raises: ValueError if the pattern is longer than either the input
sequence (for linear DNA) or twice as long as the input
sequence (for circular DNA).
|
(module
(function_definition
(function_name_get_multiple_devices) function_name_get_multiple_devices
(parameters
(identifier_self) identifier_self
(identifier_rids) identifier_rids
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'User-Agent') string_'User-Agent'
(call
(attribute
(identifier_self) identifier_self
(identifier_user_agent) identifier_user_agent
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'Content-Type') string_'Content-Type'
(call
(attribute
(identifier_self) identifier_self
(identifier_content_type) identifier_content_type
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_headers) identifier_headers
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_portals_url) identifier_portals_url
)attribute
(argument_list
)argument_list
)call
(string_'/users/_this/devices/') string_'/users/_this/devices/'
)binary_operator
(call
(attribute
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_rids) identifier_rids
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"'") string_"'"
(string_"") string_""
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'') string_''
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_auth) identifier_auth
(call
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_HTTP_STATUS) identifier_HTTP_STATUS
(identifier_OK) identifier_OK
)attribute
(attribute
(identifier_r) identifier_r
(identifier_status_code) identifier_status_code
)attribute
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"get_multiple_devices: Something went wrong: <{0}>: {1}") string_"get_multiple_devices: Something went wrong: <{0}>: {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_r) identifier_r
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_r) identifier_r
(identifier_reason) identifier_reason
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Implements the 'Get Multiple Devices' API.
Param rids: a python list object of device rids.
http://docs.exosite.com/portals/#get-multiple-devices
|
(module
(function_definition
(function_name__update_record_with_id) function_name__update_record_with_id
(parameters
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
(identifier_rtype) identifier_rtype
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_record) identifier_record
(call
(attribute
(identifier_self) identifier_self
(identifier__create_request_record) identifier__create_request_record
)attribute
(argument_list
(identifier_identifier) identifier_identifier
(identifier_rtype) identifier_rtype
(None) None
(identifier_content) identifier_content
(call
(attribute
(identifier_self) identifier_self
(identifier__get_lexicon_option) identifier__get_lexicon_option
)attribute
(argument_list
(string_'ttl') string_'ttl'
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier__get_lexicon_option) identifier__get_lexicon_option
)attribute
(argument_list
(string_'priority') string_'priority'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__request_modify_dns_record) identifier__request_modify_dns_record
)attribute
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Updates existing record with no sub-domain name changes
|
(module
(function_definition
(function_name_is1d) function_name_is1d
(parameters
(typed_parameter
(identifier_a) identifier_a
(type
(identifier_Collection) identifier_Collection
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(string_"Return `True` if `a` is one-dimensional") string_"Return `True` if `a` is one-dimensional"
)expression_statement
(return_statement
(conditional_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_a) identifier_a
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_a) identifier_a
(string_'shape') string_'shape'
)argument_list
)call
(True) True
)conditional_expression
)return_statement
)block
)function_definition
)module
|
Return `True` if `a` is one-dimensional
|
(module
(function_definition
(function_name_get_ips_from_string) function_name_get_ips_from_string
(parameters
(identifier_ip_str) identifier_ip_str
)parameters
(block
(expression_statement
(assignment
(identifier_ip_list) identifier_ip_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_ip) identifier_ip
(call
(attribute
(identifier_ip_str) identifier_ip_str
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_clean_ip) identifier_clean_ip
(call
(attribute
(call
(attribute
(identifier_ip) identifier_ip
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_clean_ip) identifier_clean_ip
(block
(expression_statement
(call
(attribute
(identifier_ip_list) identifier_ip_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_clean_ip) identifier_clean_ip
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_ip_count) identifier_ip_count
(call
(identifier_len) identifier_len
(argument_list
(identifier_ip_list) identifier_ip_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ip_count) identifier_ip_count
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(boolean_operator
(call
(identifier_is_valid_ip) identifier_is_valid_ip
(argument_list
(subscript
(identifier_ip_list) identifier_ip_list
(integer_0) integer_0
)subscript
)argument_list
)call
(call
(identifier_is_valid_ip) identifier_is_valid_ip
(argument_list
(subscript
(identifier_ip_list) identifier_ip_list
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)argument_list
)call
)boolean_operator
(block
(return_statement
(expression_list
(identifier_ip_list) identifier_ip_list
(identifier_ip_count) identifier_ip_count
)expression_list
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(expression_list
(list
)list
(integer_0) integer_0
)expression_list
)return_statement
)block
)function_definition
)module
|
Given a string, it returns a list of one or more valid IP addresses
|
(module
(function_definition
(function_name_content_status) function_name_content_status
(parameters
(identifier_self) identifier_self
(identifier_content_status) identifier_content_status
)parameters
(block
(if_statement
(comparison_operator
(identifier_content_status) identifier_content_status
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Invalid value for `content_status`, must not be `None`") string_"Invalid value for `content_status`, must not be `None`"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_allowed_values) identifier_allowed_values
(list
(string_"INVALID") string_"INVALID"
(string_"NOT_LOADED") string_"NOT_LOADED"
(string_"HIDDEN") string_"HIDDEN"
(string_"VISIBLE") string_"VISIBLE"
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_content_status) identifier_content_status
(identifier_allowed_values) identifier_allowed_values
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Invalid value for `content_status` ({0}), must be one of {1}") string_"Invalid value for `content_status` ({0}), must be one of {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_content_status) identifier_content_status
(identifier_allowed_values) identifier_allowed_values
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__content_status) identifier__content_status
)attribute
(identifier_content_status) identifier_content_status
)assignment
)expression_statement
)block
)function_definition
)module
|
Sets the content_status of this IntegrationStatus.
Status of integration content, e.g. dashboards # noqa: E501
:param content_status: The content_status of this IntegrationStatus. # noqa: E501
:type: str
|
(module
(function_definition
(function_name_sanitize) function_name_sanitize
(parameters
(identifier_s) identifier_s
(default_parameter
(identifier_strict) identifier_strict
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_allowed) identifier_allowed
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list
(string_'ABCDEFGHIJKLMNOPQRSTUVWXYZ') string_'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
(string_'abcdefghijklmnopqrstuvwxyz') string_'abcdefghijklmnopqrstuvwxyz'
(string_'0123456789') string_'0123456789'
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_strict) identifier_strict
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_allowed) identifier_allowed
(string_'-_.') string_'-_.'
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'_') string_'_'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(identifier_s) identifier_s
)for_in_clause
(if_clause
(comparison_operator
(identifier_i) identifier_i
(identifier_allowed) identifier_allowed
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Sanitize a string.
Spaces are converted to underscore; if strict=True they are then removed.
Parameters
----------
s : str
String to sanitize
strict : bool
If True, only alphanumeric characters are allowed. If False, a limited
set of additional characters (-._) will be allowed.
|
(module
(function_definition
(function_name_get_tag) function_name_get_tag
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_get_request) identifier_get_request
)attribute
(argument_list
(binary_operator
(string_'/tag/') string_'/tag/'
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Tag) identifier_Tag
(argument_list
(keyword_argument
(identifier_cloud_manager) identifier_cloud_manager
(identifier_self) identifier_self
)keyword_argument
(dictionary_splat
(subscript
(identifier_res) identifier_res
(string_'tag') string_'tag'
)subscript
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Return the tag as Tag object.
|
(module
(function_definition
(function_name_profile_list) function_name_profile_list
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ctx) identifier_ctx
(call
(identifier_Context) identifier_Context
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_execute_action) identifier_execute_action
)attribute
(argument_list
(string_'profile:list') string_'profile:list'
(dictionary_splat
(dictionary
(pair
(string_'storage') string_'storage'
(call
(attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_repo) identifier_repo
)attribute
(identifier_create_secure_service) identifier_create_secure_service
)attribute
(argument_list
(string_'storage') string_'storage'
)argument_list
)call
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Show uploaded profiles.
|
(module
(function_definition
(function_name__select_in_voltage_range) function_name__select_in_voltage_range
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_min_voltage) identifier_min_voltage
(None) None
)default_parameter
(default_parameter
(identifier_max_voltage) identifier_max_voltage
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_min_voltage) identifier_min_voltage
(conditional_expression
(identifier_min_voltage) identifier_min_voltage
(comparison_operator
(identifier_min_voltage) identifier_min_voltage
(None) None
)comparison_operator
(line_continuation_\) line_continuation_\
(attribute
(identifier_self) identifier_self
(identifier_min_voltage) identifier_min_voltage
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_max_voltage) identifier_max_voltage
(conditional_expression
(identifier_max_voltage) identifier_max_voltage
(comparison_operator
(identifier_max_voltage) identifier_max_voltage
(None) None
)comparison_operator
(line_continuation_\) line_continuation_\
(attribute
(identifier_self) identifier_self
(identifier_max_voltage) identifier_max_voltage
)attribute
)conditional_expression
)assignment
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_p) identifier_p
)lambda_parameters
(comparison_operator
(identifier_min_voltage) identifier_min_voltage
(attribute
(identifier_p) identifier_p
(identifier_voltage) identifier_voltage
)attribute
(identifier_max_voltage) identifier_max_voltage
)comparison_operator
)lambda
(attribute
(identifier_self) identifier_self
(identifier_voltage_pairs) identifier_voltage_pairs
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Selects VoltagePairs within a certain voltage range.
Args:
min_voltage (float): The minimum allowable voltage for a given
step.
max_voltage (float): The maximum allowable voltage allowable for a
given step.
Returns:
A list of VoltagePair objects
|
(module
(function_definition
(function_name_runSharedFeatures) function_name_runSharedFeatures
(parameters
(default_parameter
(identifier_noiseLevel) identifier_noiseLevel
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_exp) identifier_exp
(call
(identifier_L4L2Experiment) identifier_L4L2Experiment
(argument_list
(string_"shared_features") string_"shared_features"
(keyword_argument
(identifier_enableLateralSP) identifier_enableLateralSP
(True) True
)keyword_argument
(keyword_argument
(identifier_enableFeedForwardSP) identifier_enableFeedForwardSP
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pairs) identifier_pairs
(call
(identifier_createThreeObjects) identifier_createThreeObjects
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_objects) identifier_objects
(call
(identifier_createObjectMachine) identifier_createObjectMachine
(argument_list
(keyword_argument
(identifier_machineType) identifier_machineType
(string_"simple") string_"simple"
)keyword_argument
(keyword_argument
(identifier_numInputBits) identifier_numInputBits
(integer_20) integer_20
)keyword_argument
(keyword_argument
(identifier_sensorInputSize) identifier_sensorInputSize
(integer_1024) integer_1024
)keyword_argument
(keyword_argument
(identifier_externalInputSize) identifier_externalInputSize
(integer_1024) integer_1024
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_object) identifier_object
(identifier_pairs) identifier_pairs
(block
(expression_statement
(call
(attribute
(identifier_objects) identifier_objects
(identifier_addObject) identifier_addObject
)attribute
(argument_list
(identifier_object) identifier_object
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_exp) identifier_exp
(identifier_learnObjects) identifier_learnObjects
)attribute
(argument_list
(call
(attribute
(identifier_objects) identifier_objects
(identifier_provideObjectsToLearn) identifier_provideObjectsToLearn
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(identifier_profile) identifier_profile
(block
(expression_statement
(call
(attribute
(identifier_exp) identifier_exp
(identifier_printProfile) identifier_printProfile
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_inferConfig) identifier_inferConfig
(dictionary
(pair
(string_"numSteps") string_"numSteps"
(integer_10) integer_10
)pair
(pair
(string_"noiseLevel") string_"noiseLevel"
(identifier_noiseLevel) identifier_noiseLevel
)pair
(pair
(string_"pairs") string_"pairs"
(dictionary
(pair
(integer_0) integer_0
(call
(identifier_zip) identifier_zip
(argument_list
(call
(identifier_range) identifier_range
(argument_list
(integer_10) integer_10
)argument_list
)call
(call
(identifier_range) identifier_range
(argument_list
(integer_10) integer_10
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_exp) identifier_exp
(identifier_infer) identifier_infer
)attribute
(argument_list
(call
(attribute
(identifier_objects) identifier_objects
(identifier_provideObjectToInfer) identifier_provideObjectToInfer
)attribute
(argument_list
(identifier_inferConfig) identifier_inferConfig
)argument_list
)call
(keyword_argument
(identifier_objectName) identifier_objectName
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(identifier_profile) identifier_profile
(block
(expression_statement
(call
(attribute
(identifier_exp) identifier_exp
(identifier_printProfile) identifier_printProfile
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_exp) identifier_exp
(identifier_plotInferenceStats) identifier_plotInferenceStats
)attribute
(argument_list
(keyword_argument
(identifier_fields) identifier_fields
(list
(string_"L2 Representation") string_"L2 Representation"
(string_"Overlap L2 with object") string_"Overlap L2 with object"
(string_"L4 Representation") string_"L4 Representation"
)list
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Runs a simple experiment where three objects share a number of location,
feature pairs.
Parameters:
----------------------------
@param noiseLevel (float)
Noise level to add to the locations and features during inference
@param profile (bool)
If True, the network will be profiled after learning and inference
|
(module
(function_definition
(function_name_search_user) function_name_search_user
(parameters
(identifier_self) identifier_self
(identifier_user_name) identifier_user_name
(default_parameter
(identifier_quiet) identifier_quiet
(False) False
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(integer_9) integer_9
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_user_name) identifier_user_name
(keyword_argument
(identifier_search_type) identifier_search_type
(integer_1002) integer_1002
)keyword_argument
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(subscript
(identifier_result) identifier_result
(string_'result') string_'result'
)subscript
(string_'userprofileCount') string_'userprofileCount'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'User %s not existed!') string_'User %s not existed!'
(identifier_user_name) identifier_user_name
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_SearchNotFound) identifier_SearchNotFound
(argument_list
(call
(attribute
(string_'user {} not existed') string_'user {} not existed'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_user_name) identifier_user_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_users) identifier_users
(subscript
(subscript
(identifier_result) identifier_result
(string_'result') string_'result'
)subscript
(string_'userprofiles') string_'userprofiles'
)subscript
)assignment
)expression_statement
(if_statement
(identifier_quiet) identifier_quiet
(block
(expression_statement
(assignment
(pattern_list
(identifier_user_id) identifier_user_id
(identifier_user_name) identifier_user_name
)pattern_list
(expression_list
(subscript
(subscript
(identifier_users) identifier_users
(integer_0) integer_0
)subscript
(string_'userId') string_'userId'
)subscript
(subscript
(subscript
(identifier_users) identifier_users
(integer_0) integer_0
)subscript
(string_'nickname') string_'nickname'
)subscript
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(identifier_User) identifier_User
(argument_list
(identifier_user_id) identifier_user_id
(identifier_user_name) identifier_user_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_user) identifier_user
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_display) identifier_display
)attribute
(identifier_select_one_user) identifier_select_one_user
)attribute
(argument_list
(identifier_users) identifier_users
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Search user by user name.
:params user_name: user name.
:params quiet: automatically select the best one.
:params limit: user count returned by weapi.
:return: a User object.
|
(module
(function_definition
(function_name_controlled) function_name_controlled
(parameters
(identifier_self) identifier_self
(identifier_control_qubit) identifier_control_qubit
)parameters
(block
(expression_statement
(assignment
(identifier_control_qubit) identifier_control_qubit
(call
(identifier_unpack_qubit) identifier_unpack_qubit
(argument_list
(identifier_control_qubit) identifier_control_qubit
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_modifiers) identifier_modifiers
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(string_"CONTROLLED") string_"CONTROLLED"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_qubits) identifier_qubits
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(identifier_control_qubit) identifier_control_qubit
)argument_list
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module
|
Add the CONTROLLED modifier to the gate with the given control qubit.
|
(module
(function_definition
(function_name_get_group_usage_link) function_name_get_group_usage_link
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_first_element) identifier_first_element
(subscript
(attribute
(identifier_self) identifier_self
(identifier_group_list) identifier_group_list
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_usage_link) identifier_usage_link
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_first_element) identifier_first_element
(identifier_form) identifier_form
)attribute
(string_'usage_link') string_'usage_link'
(None) None
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_usage_link) identifier_usage_link
)return_statement
)block
)function_definition
)module
|
Get the usage link for the group element.
|
(module
(function_definition
(function_name_rename) function_name_rename
(parameters
(identifier_self) identifier_self
(identifier_src_basename) identifier_src_basename
(identifier_dest_basename) identifier_dest_basename
(default_parameter
(identifier_datadir) identifier_datadir
(string_"outdir") string_"outdir"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_directory) identifier_directory
(subscript
(dictionary
(pair
(string_"indir") string_"indir"
(attribute
(identifier_self) identifier_self
(identifier_indir) identifier_indir
)attribute
)pair
(pair
(string_"outdir") string_"outdir"
(attribute
(identifier_self) identifier_self
(identifier_outdir) identifier_outdir
)attribute
)pair
(pair
(string_"tmpdir") string_"tmpdir"
(attribute
(identifier_self) identifier_self
(identifier_tmpdir) identifier_tmpdir
)attribute
)pair
)dictionary
(identifier_datadir) identifier_datadir
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_src) identifier_src
(call
(attribute
(identifier_directory) identifier_directory
(identifier_path_in) identifier_path_in
)attribute
(argument_list
(identifier_src_basename) identifier_src_basename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dest) identifier_dest
(call
(attribute
(identifier_directory) identifier_directory
(identifier_path_in) identifier_path_in
)attribute
(argument_list
(identifier_dest_basename) identifier_dest_basename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_rename) identifier_rename
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_dest) identifier_dest
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Rename a file located in datadir.
src_basename and dest_basename are the basename of the source file
and of the destination file, respectively.
|
(module
(function_definition
(function_name_parse_number) function_name_parse_number
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current_token) identifier_current_token
)attribute
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_suffix) identifier_suffix
(call
(attribute
(subscript
(identifier_value) identifier_value
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(if_statement
(comparison_operator
(identifier_suffix) identifier_suffix
(identifier_NUMBER_SUFFIXES) identifier_NUMBER_SUFFIXES
)comparison_operator
(block
(return_statement
(call
(subscript
(identifier_NUMBER_SUFFIXES) identifier_NUMBER_SUFFIXES
(identifier_suffix) identifier_suffix
)subscript
(argument_list
(subscript
(identifier_value) identifier_value
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(conditional_expression
(call
(identifier_Double) identifier_Double
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(comparison_operator
(string_'.') string_'.'
(identifier_value) identifier_value
)comparison_operator
(call
(identifier_Int) identifier_Int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)conditional_expression
)return_statement
)block
(except_clause
(tuple
(identifier_OutOfRange) identifier_OutOfRange
(identifier_ValueError) identifier_ValueError
)tuple
(block
(return_statement
(call
(identifier_String) identifier_String
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Parse a number from the token stream.
|
(module
(function_definition
(function_name_recalculate) function_name_recalculate
(parameters
(identifier_self) identifier_self
(identifier_amount) identifier_amount
(identifier_billing_info) identifier_billing_info
)parameters
(block
(expression_statement
(assignment
(identifier_order) identifier_order
(call
(identifier_Order) identifier_Order
(argument_list
(keyword_argument
(identifier_pk) identifier_pk
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_order) identifier_order
(identifier_amount) identifier_amount
)attribute
(identifier_amount) identifier_amount
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_order) identifier_order
(identifier_currency) identifier_currency
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_currency) identifier_get_currency
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_country) identifier_country
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_billing_info) identifier_billing_info
(string_'country') string_'country'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(identifier_country) identifier_country
(None) None
)comparison_operator
)not_operator
(block
(expression_statement
(assignment
(identifier_country) identifier_country
(attribute
(identifier_country) identifier_country
(identifier_code) identifier_code
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tax_number) identifier_tax_number
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_billing_info) identifier_billing_info
(string_'tax_number') string_'tax_number'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tax_session_key) identifier_tax_session_key
(binary_operator
(string_"tax_%s_%s") string_"tax_%s_%s"
(tuple
(identifier_tax_number) identifier_tax_number
(identifier_country) identifier_country
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tax) identifier_tax
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_session) identifier_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_tax_session_key) identifier_tax_session_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tax) identifier_tax
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_taxation_policy) identifier_taxation_policy
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_settings) identifier_settings
(string_'PLANS_TAXATION_POLICY') string_'PLANS_TAXATION_POLICY'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_taxation_policy) identifier_taxation_policy
)not_operator
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(string_'PLANS_TAXATION_POLICY is not set') string_'PLANS_TAXATION_POLICY is not set'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_taxation_policy) identifier_taxation_policy
(call
(identifier_import_name) identifier_import_name
(argument_list
(identifier_taxation_policy) identifier_taxation_policy
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tax) identifier_tax
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_taxation_policy) identifier_taxation_policy
(identifier_get_tax_rate) identifier_get_tax_rate
)attribute
(argument_list
(identifier_tax_number) identifier_tax_number
(identifier_country) identifier_country
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_session) identifier_session
)attribute
(identifier_tax_session_key) identifier_tax_session_key
)subscript
(identifier_tax) identifier_tax
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_order) identifier_order
(identifier_tax) identifier_tax
)attribute
(conditional_expression
(call
(identifier_Decimal) identifier_Decimal
(argument_list
(identifier_tax) identifier_tax
)argument_list
)call
(comparison_operator
(identifier_tax) identifier_tax
(string_'None') string_'None'
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(return_statement
(identifier_order) identifier_order
)return_statement
)block
)function_definition
)module
|
Calculates and return pre-filled Order
|
(module
(function_definition
(function_name_remove_entry) function_name_remove_entry
(parameters
(identifier_data) identifier_data
(identifier_entry) identifier_entry
)parameters
(block
(expression_statement
(assignment
(identifier_file_field) identifier_file_field
(call
(attribute
(subscript
(identifier_entry) identifier_entry
(string_'fields') string_'fields'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(string_'file') string_'file'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_file_field) identifier_file_field
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_file_field) identifier_file_field
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_'This entry\'s file was missing') string_'This entry\'s file was missing'
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Remove an entry in place.
|
(module
(function_definition
(function_name_cast2theano_var) function_name_cast2theano_var
(parameters
(identifier_self) identifier_self
(identifier_array_like) identifier_array_like
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_array) identifier_array
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_array_like) identifier_array_like
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(tuple
(identifier_name) identifier_name
(attribute
(identifier_array) identifier_array
(identifier_dtype) identifier_dtype
)attribute
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ndim) identifier_ndim
(attribute
(identifier_array) identifier_array
(identifier_ndim) identifier_ndim
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ndim) identifier_ndim
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_T) identifier_T
(identifier_scalar) identifier_scalar
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_ndim) identifier_ndim
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_T) identifier_T
(identifier_vector) identifier_vector
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_ndim) identifier_ndim
(integer_2) integer_2
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_T) identifier_T
(identifier_matrix) identifier_matrix
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_ndim) identifier_ndim
(integer_3) integer_3
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_T) identifier_T
(identifier_tensor3) identifier_tensor3
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_ndim) identifier_ndim
(integer_4) integer_4
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_T) identifier_T
(identifier_tensor4) identifier_tensor4
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'extheano.jit.Compiler: Unsupported type or shape') string_'extheano.jit.Compiler: Unsupported type or shape'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Cast `numpy.ndarray` into `theano.tensor` keeping `dtype` and `ndim`
compatible
|
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_extra) identifier_extra
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_extra) identifier_extra
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_extra) identifier_extra
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_newTVS) identifier_newTVS
(call
(attribute
(identifier_Params) identifier_Params
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_extra) identifier_extra
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_isSet) identifier_isSet
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_estimator) identifier_estimator
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_newTVS) identifier_newTVS
(identifier_setEstimator) identifier_setEstimator
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_getEstimator) identifier_getEstimator
)attribute
(argument_list
)argument_list
)call
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_extra) identifier_extra
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_isSet) identifier_isSet
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_evaluator) identifier_evaluator
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_newTVS) identifier_newTVS
(identifier_setEvaluator) identifier_setEvaluator
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_getEvaluator) identifier_getEvaluator
)attribute
(argument_list
)argument_list
)call
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_extra) identifier_extra
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_newTVS) identifier_newTVS
)return_statement
)block
)function_definition
)module
|
Creates a copy of this instance with a randomly generated uid
and some extra params. This copies creates a deep copy of
the embedded paramMap, and copies the embedded and extra parameters over.
:param extra: Extra parameters to copy to the new instance
:return: Copy of this instance
|
(module
(function_definition
(function_name_estimate) function_name_estimate
(parameters
(identifier_phenotype) identifier_phenotype
(default_parameter
(identifier_G) identifier_G
(None) None
)default_parameter
(default_parameter
(identifier_K) identifier_K
(None) None
)default_parameter
(default_parameter
(identifier_covariates) identifier_covariates
(None) None
)default_parameter
(default_parameter
(identifier_overdispersion) identifier_overdispersion
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_logger) identifier_logger
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(identifier___name__) identifier___name__
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Heritability estimation has started.') string_'Heritability estimation has started.'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_G) identifier_G
(identifier_K) identifier_K
)pattern_list
(call
(identifier__background_standardize) identifier__background_standardize
(argument_list
(identifier_G) identifier_G
(identifier_K) identifier_K
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_G) identifier_G
(None) None
)comparison_operator
(comparison_operator
(identifier_K) identifier_K
(None) None
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'G and K cannot be all None.') string_'G and K cannot be all None.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_Q0) identifier_Q0
(identifier_Q1) identifier_Q1
(identifier_S0) identifier_S0
)pattern_list
(call
(identifier__background_decomposition) identifier__background_decomposition
(argument_list
(identifier_G) identifier_G
(identifier_K) identifier_K
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_covariates) identifier_covariates
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Inserting offset covariate.') string_'Inserting offset covariate.'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_covariates) identifier_covariates
(call
(identifier_ones) identifier_ones
(argument_list
(tuple
(attribute
(identifier_phenotype) identifier_phenotype
(identifier_sample_size) identifier_sample_size
)attribute
(integer_1) integer_1
)tuple
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Constructing EP.') string_'Constructing EP.'
)argument_list
)call
)expression_statement
(import_from_statement
(dotted_name
(identifier_limix_inference) identifier_limix_inference
(identifier_glmm) identifier_glmm
)dotted_name
(dotted_name
(identifier_ExpFamEP) identifier_ExpFamEP
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_ep) identifier_ep
(call
(identifier_ExpFamEP) identifier_ExpFamEP
(argument_list
(call
(attribute
(identifier_phenotype) identifier_phenotype
(identifier_to_likelihood) identifier_to_likelihood
)attribute
(argument_list
)argument_list
)call
(identifier_covariates) identifier_covariates
(identifier_Q0) identifier_Q0
(identifier_Q1) identifier_Q1
(identifier_S0) identifier_S0
(identifier_overdispersion) identifier_overdispersion
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'EP optimization.') string_'EP optimization.'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ep) identifier_ep
(identifier_learn) identifier_learn
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_h2) identifier_h2
(attribute
(identifier_ep) identifier_ep
(identifier_heritability) identifier_heritability
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Found heritability before correction: %.5f.') string_'Found heritability before correction: %.5f.'
(identifier_h2) identifier_h2
)argument_list
)call
)expression_statement
(return_statement
(identifier_h2) identifier_h2
)return_statement
)block
)function_definition
)module
|
Estimate the so-called narrow-sense heritability.
It supports Bernoulli and Binomial phenotypes (see `outcome_type`).
The user must specifiy only one of the parameters G, K, and QS for
defining the genetic background.
Let :math:`N` be the sample size, :math:`S` the number of covariates, and
:math:`P_b` the number of genetic markers used for Kinship estimation.
:param numpy.ndarray y: Phenotype. The domain has be the non-negative
integers. Dimension (:math:`N\\times 0`).
:param numpy.ndarray G: Genetic markers matrix used internally for kinship
estimation. Dimension (:math:`N\\times P_b`).
:param numpy.ndarray K: Kinship matrix. Dimension (:math:`N\\times N`).
:param tuple QS: Economic eigen decomposition of the Kinship matrix.
:param numpy.ndarray covariate: Covariates. Default is an offset.
Dimension (:math:`N\\times S`).
:param object oucome_type: Either :class:`limix_qep.Bernoulli` (default)
or a :class:`limix_qep.Binomial` instance.
:param float prevalence: Population rate of cases for dichotomous
phenotypes. Typically useful for case-control
studies.
:return: a tuple containing the estimated heritability and additional
information, respectively.
|
(module
(function_definition
(function_name_checkout_deploy_branch) function_name_checkout_deploy_branch
(parameters
(identifier_deploy_branch) identifier_deploy_branch
(default_parameter
(identifier_canpush) identifier_canpush
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_create_deploy_branch) identifier_create_deploy_branch
(argument_list
(identifier_deploy_branch) identifier_deploy_branch
(keyword_argument
(identifier_push) identifier_push
(identifier_canpush) identifier_canpush
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_remote_branch) identifier_remote_branch
(call
(attribute
(string_"doctr_remote/{}") string_"doctr_remote/{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_deploy_branch) identifier_deploy_branch
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Checking out doctr working branch tracking") string_"Checking out doctr working branch tracking"
(identifier_remote_branch) identifier_remote_branch
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_clear_working_branch) identifier_clear_working_branch
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_run) identifier_run
(argument_list
(list
(string_'git') string_'git'
(string_'rev-parse') string_'rev-parse'
(string_'--verify') string_'--verify'
(identifier_remote_branch) identifier_remote_branch
)list
(keyword_argument
(identifier_exit) identifier_exit
(False) False
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_extra_args) identifier_extra_args
(list
(string_'--track') string_'--track'
(identifier_remote_branch) identifier_remote_branch
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_extra_args) identifier_extra_args
(list
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(binary_operator
(list
(string_'git') string_'git'
(string_'checkout') string_'checkout'
(string_'-b') string_'-b'
(identifier_DOCTR_WORKING_BRANCH) identifier_DOCTR_WORKING_BRANCH
)list
(identifier_extra_args) identifier_extra_args
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Done") string_"Done"
)argument_list
)call
)expression_statement
(return_statement
(identifier_canpush) identifier_canpush
)return_statement
)block
)function_definition
)module
|
Checkout the deploy branch, creating it if it doesn't exist.
|
(module
(function_definition
(function_name_get_hour_dirs) function_name_get_hour_dirs
(parameters
(default_parameter
(identifier_root) identifier_root
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(boolean_operator
(identifier_root) identifier_root
(call
(identifier_selfplay_dir) identifier_selfplay_dir
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_s) identifier_s
)lambda_parameters
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_r"\d{4}-\d{2}-\d{2}-\d{2}") string_r"\d{4}-\d{2}-\d{2}-\d{2}"
(identifier_s) identifier_s
)argument_list
)call
)lambda
(call
(attribute
(identifier_gfile) identifier_gfile
(identifier_ListDirectory) identifier_ListDirectory
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Gets the directories under selfplay_dir that match YYYY-MM-DD-HH.
|
(module
(function_definition
(function_name__find) function_name__find
(parameters
(identifier_self) identifier_self
(identifier_id_) identifier_id_
)parameters
(block
(expression_statement
(assignment
(identifier_cur) identifier_cur
(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_cur) identifier_cur
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'SELECT fileNumber, offset FROM sequences WHERE id = ?') string_'SELECT fileNumber, offset FROM sequences WHERE id = ?'
(tuple
(identifier_id_) identifier_id_
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_row) identifier_row
(call
(attribute
(identifier_cur) identifier_cur
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_row) identifier_row
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
(else_clause
(block
(return_statement
(expression_list
(call
(attribute
(identifier_self) identifier_self
(identifier__getFilename) identifier__getFilename
)attribute
(argument_list
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
)argument_list
)call
(subscript
(identifier_row) identifier_row
(integer_1) integer_1
)subscript
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Find the filename and offset of a sequence, given its id.
@param id_: A C{str} sequence id.
@return: A 2-tuple, containing the C{str} file name and C{int} offset
within that file of the sequence.
|
(module
(function_definition
(function_name_cast_scalar_to_array) function_name_cast_scalar_to_array
(parameters
(identifier_shape) identifier_shape
(identifier_value) identifier_value
(default_parameter
(identifier_dtype) identifier_dtype
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_dtype) identifier_dtype
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_dtype) identifier_dtype
(identifier_fill_value) identifier_fill_value
)pattern_list
(call
(identifier_infer_dtype_from_scalar) identifier_infer_dtype_from_scalar
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_fill_value) identifier_fill_value
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(identifier_shape) identifier_shape
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_values) identifier_values
(identifier_fill) identifier_fill
)attribute
(argument_list
(identifier_fill_value) identifier_fill_value
)argument_list
)call
)expression_statement
(return_statement
(identifier_values) identifier_values
)return_statement
)block
)function_definition
)module
|
create np.ndarray of specified shape and dtype, filled with values
Parameters
----------
shape : tuple
value : scalar value
dtype : np.dtype, optional
dtype to coerce
Returns
-------
ndarray of shape, filled with value, of specified / inferred dtype
|
(module
(function_definition
(function_name_get_dict_from_response) function_name_get_dict_from_response
(parameters
(identifier_response) identifier_response
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_response) identifier_response
(string_'_resp') string_'_resp'
)argument_list
)call
(comparison_operator
(attribute
(attribute
(identifier_response) identifier_response
(identifier__resp) identifier__resp
)attribute
(identifier_code) identifier_code
)attribute
(integer_400) integer_400
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_OAuthResponseError) identifier_OAuthResponseError
(argument_list
(string_'Application mis-configuration in Globus') string_'Application mis-configuration in Globus'
(None) None
(identifier_response) identifier_response
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(attribute
(identifier_response) identifier_response
(identifier_data) identifier_data
)attribute
)return_statement
)block
)function_definition
)module
|
Check for errors in the response and return the resulting JSON.
|
(module
(function_definition
(function_name_request_finished) function_name_request_finished
(parameters
(identifier_key) identifier_key
)parameters
(block
(with_statement
(with_clause
(with_item
(identifier_event_lock) identifier_event_lock
)with_item
)with_clause
(block
(expression_statement
(assignment
(subscript
(identifier_threads) identifier_threads
(identifier_key) identifier_key
)subscript
(subscript
(subscript
(identifier_threads) identifier_threads
(identifier_key) identifier_key
)subscript
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(subscript
(identifier_threads) identifier_threads
(identifier_key) identifier_key
)subscript
(block
(expression_statement
(call
(attribute
(subscript
(subscript
(identifier_threads) identifier_threads
(identifier_key) identifier_key
)subscript
(integer_0) integer_0
)subscript
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)with_statement
)block
)function_definition
)module
|
Remove finished Thread from queue.
:param key: data source key
|
(module
(function_definition
(function_name__safemembers) function_name__safemembers
(parameters
(identifier_members) identifier_members
)parameters
(block
(expression_statement
(assignment
(identifier_base) identifier_base
(call
(identifier__resolved) identifier__resolved
(argument_list
(string_".") string_"."
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_finfo) identifier_finfo
(identifier_members) identifier_members
(block
(if_statement
(call
(identifier__badpath) identifier__badpath
(argument_list
(attribute
(identifier_finfo) identifier_finfo
(identifier_name) identifier_name
)attribute
(identifier_base) identifier_base
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(attribute
(identifier_finfo) identifier_finfo
(identifier_name) identifier_name
)attribute
(string_"is blocked (illegal path)") string_"is blocked (illegal path)"
)argument_list
)call
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(attribute
(identifier_finfo) identifier_finfo
(identifier_issym) identifier_issym
)attribute
(argument_list
)argument_list
)call
(call
(identifier__badlink) identifier__badlink
(argument_list
(identifier_finfo) identifier_finfo
(identifier_base) identifier_base
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(attribute
(identifier_finfo) identifier_finfo
(identifier_name) identifier_name
)attribute
(string_"is blocked: Hard link to") string_"is blocked: Hard link to"
(attribute
(identifier_finfo) identifier_finfo
(identifier_linkname) identifier_linkname
)attribute
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(call
(attribute
(identifier_finfo) identifier_finfo
(identifier_islnk) identifier_islnk
)attribute
(argument_list
)argument_list
)call
(call
(identifier__badlink) identifier__badlink
(argument_list
(identifier_finfo) identifier_finfo
(identifier_base) identifier_base
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(attribute
(identifier_finfo) identifier_finfo
(identifier_name) identifier_name
)attribute
(string_"is blocked: Symlink to") string_"is blocked: Symlink to"
(attribute
(identifier_finfo) identifier_finfo
(identifier_linkname) identifier_linkname
)attribute
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(yield
(identifier_finfo) identifier_finfo
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
Check members of a tar archive for safety.
Ensure that they do not contain paths or links outside of where we
need them - this would only happen if the archive wasn't made by
eqcorrscan.
:type members: :class:`tarfile.TarFile`
:param members: an open tarfile.
|
(module
(function_definition
(function_name_get_pdos) function_name_get_pdos
(parameters
(identifier_dos) identifier_dos
(default_parameter
(identifier_lm_orbitals) identifier_lm_orbitals
(None) None
)default_parameter
(default_parameter
(identifier_atoms) identifier_atoms
(None) None
)default_parameter
(default_parameter
(identifier_elements) identifier_elements
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_elements) identifier_elements
)not_operator
(block
(expression_statement
(assignment
(identifier_symbols) identifier_symbols
(attribute
(attribute
(identifier_dos) identifier_dos
(identifier_structure) identifier_structure
)attribute
(identifier_symbol_set) identifier_symbol_set
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_elements) identifier_elements
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_symbols) identifier_symbols
(binary_operator
(list
(None) None
)list
(call
(identifier_len) identifier_len
(argument_list
(identifier_symbols) identifier_symbols
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pdos) identifier_pdos
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_el) identifier_el
(identifier_elements) identifier_elements
(block
(if_statement
(boolean_operator
(identifier_atoms) identifier_atoms
(comparison_operator
(identifier_el) identifier_el
(identifier_atoms) identifier_atoms
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_element_sites) identifier_element_sites
(list_comprehension
(identifier_site) identifier_site
(for_in_clause
(identifier_site) identifier_site
(attribute
(attribute
(identifier_dos) identifier_dos
(identifier_structure) identifier_structure
)attribute
(identifier_sites) identifier_sites
)attribute
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_site) identifier_site
(identifier_specie) identifier_specie
)attribute
(call
(identifier_get_el_sp) identifier_get_el_sp
(argument_list
(identifier_el) identifier_el
)argument_list
)call
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sites) identifier_sites
(list_comprehension
(identifier_site) identifier_site
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_site) identifier_site
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_element_sites) identifier_element_sites
)argument_list
)call
)for_in_clause
(if_clause
(boolean_operator
(not_operator
(identifier_atoms) identifier_atoms
)not_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_el) identifier_el
(identifier_atoms) identifier_atoms
)comparison_operator
(comparison_operator
(identifier_i) identifier_i
(subscript
(identifier_atoms) identifier_atoms
(identifier_el) identifier_el
)subscript
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lm) identifier_lm
(conditional_expression
(subscript
(identifier_lm_orbitals) identifier_lm_orbitals
(identifier_el) identifier_el
)subscript
(parenthesized_expression
(boolean_operator
(identifier_lm_orbitals) identifier_lm_orbitals
(comparison_operator
(identifier_el) identifier_el
(identifier_lm_orbitals) identifier_lm_orbitals
)comparison_operator
)boolean_operator
)parenthesized_expression
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_orbitals) identifier_orbitals
(conditional_expression
(subscript
(identifier_elements) identifier_elements
(identifier_el) identifier_el
)subscript
(boolean_operator
(identifier_elements) identifier_elements
(comparison_operator
(identifier_el) identifier_el
(identifier_elements) identifier_elements
)comparison_operator
)boolean_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_pdos) identifier_pdos
(identifier_el) identifier_el
)subscript
(call
(identifier_get_element_pdos) identifier_get_element_pdos
(argument_list
(identifier_dos) identifier_dos
(identifier_el) identifier_el
(identifier_sites) identifier_sites
(identifier_lm) identifier_lm
(identifier_orbitals) identifier_orbitals
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_pdos) identifier_pdos
)return_statement
)block
)function_definition
)module
|
Extract the projected density of states from a CompleteDos object.
Args:
dos (:obj:`~pymatgen.electronic_structure.dos.CompleteDos`): The
density of states.
elements (:obj:`dict`, optional): The elements and orbitals to extract
from the projected density of states. Should be provided as a
:obj:`dict` with the keys as the element names and corresponding
values as a :obj:`tuple` of orbitals. For example, the following
would extract the Bi s, px, py and d orbitals::
{'Bi': ('s', 'px', 'py', 'd')}
If an element is included with an empty :obj:`tuple`, all orbitals
for that species will be extracted. If ``elements`` is not set or
set to ``None``, all elements for all species will be extracted.
lm_orbitals (:obj:`dict`, optional): The orbitals to decompose into
their lm contributions (e.g. p -> px, py, pz). Should be provided
as a :obj:`dict`, with the elements names as keys and a
:obj:`tuple` of orbitals as the corresponding values. For example,
the following would be used to decompose the oxygen p and d
orbitals::
{'O': ('p', 'd')}
atoms (:obj:`dict`, optional): Which atomic sites to use when
calculating the projected density of states. Should be provided as
a :obj:`dict`, with the element names as keys and a :obj:`tuple` of
:obj:`int` specifying the atomic indices as the corresponding
values. The elemental projected density of states will be summed
only over the atom indices specified. If an element is included
with an empty :obj:`tuple`, then all sites for that element will
be included. The indices are 0 based for each element specified in
the POSCAR. For example, the following will calculate the density
of states for the first 4 Sn atoms and all O atoms in the
structure::
{'Sn': (1, 2, 3, 4), 'O': (, )}
If ``atoms`` is not set or set to ``None`` then all atomic sites
for all elements will be considered.
Returns:
dict: The projected density of states. Formatted as a :obj:`dict` of
:obj:`dict` mapping the elements and their orbitals to
:obj:`~pymatgen.electronic_structure.dos.Dos` objects. For example::
{
'Bi': {'s': Dos, 'p': Dos ... },
'S': {'s': Dos}
}
|
(module
(function_definition
(function_name__convert_dict_inputs) function_name__convert_dict_inputs
(parameters
(identifier_inputs) identifier_inputs
(identifier_tensor_info_map) identifier_tensor_info_map
)parameters
(block
(expression_statement
(assignment
(identifier_dict_inputs) identifier_dict_inputs
(call
(identifier__prepare_dict_inputs) identifier__prepare_dict_inputs
(argument_list
(identifier_inputs) identifier_inputs
(identifier_tensor_info_map) identifier_tensor_info_map
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_tensor_info) identifier_tensor_info
(identifier_convert_dict_to_compatible_tensor) identifier_convert_dict_to_compatible_tensor
)attribute
(argument_list
(identifier_dict_inputs) identifier_dict_inputs
(identifier_tensor_info_map) identifier_tensor_info_map
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Converts from inputs into dict of input tensors.
This handles:
- putting inputs into a dict, per _prepare_dict_inputs(),
- converting all input values into tensors compatible with the
expected input tensor (dtype, shape).
- check sparse/non-sparse tensor types.
Args:
inputs: inputs fed to Module.__call__().
tensor_info_map: A map from string to `tensor_info.ParsedTensorInfo`
describing the signature inputs.
Returns:
A dict of tensors to feed to the signature instantiation.
Raises:
TypeError: If it fails to convert the input values into a dict of tensors
to feed to the signature instantiation.
|
(module
(function_definition
(function_name_run_type) function_name_run_type
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_METAGGA_TYPES) identifier_METAGGA_TYPES
(set
(string_"TPSS") string_"TPSS"
(string_"RTPSS") string_"RTPSS"
(string_"M06L") string_"M06L"
(string_"MBJL") string_"MBJL"
(string_"SCAN") string_"SCAN"
(string_"MS0") string_"MS0"
(string_"MS1") string_"MS1"
(string_"MS2") string_"MS2"
)set
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"LHFCALC") string_"LHFCALC"
(False) False
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_rt) identifier_rt
(string_"HF") string_"HF"
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"METAGGA") string_"METAGGA"
(string_"") string_""
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(identifier_METAGGA_TYPES) identifier_METAGGA_TYPES
)comparison_operator
(block
(expression_statement
(assignment
(identifier_rt) identifier_rt
(call
(attribute
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(string_"METAGGA") string_"METAGGA"
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"LUSE_VDW") string_"LUSE_VDW"
(False) False
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_vdw_gga) identifier_vdw_gga
(dictionary
(pair
(string_"RE") string_"RE"
(string_"DF") string_"DF"
)pair
(pair
(string_"OR") string_"OR"
(string_"optPBE") string_"optPBE"
)pair
(pair
(string_"BO") string_"BO"
(string_"optB88") string_"optB88"
)pair
(pair
(string_"MK") string_"MK"
(string_"optB86b") string_"optB86b"
)pair
(pair
(string_"ML") string_"ML"
(string_"DF2") string_"DF2"
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_gga) identifier_gga
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"GGA") string_"GGA"
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rt) identifier_rt
(binary_operator
(string_"vdW-") string_"vdW-"
(subscript
(identifier_vdw_gga) identifier_vdw_gga
(identifier_gga) identifier_gga
)subscript
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_potcar_symbols) identifier_potcar_symbols
)attribute
(integer_0) integer_0
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
(string_'PAW') string_'PAW'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_rt) identifier_rt
(string_"LDA") string_"LDA"
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_rt) identifier_rt
(string_"GGA") string_"GGA"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_is_hubbard) identifier_is_hubbard
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_rt) identifier_rt
(string_"+U") string_"+U"
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_rt) identifier_rt
)return_statement
)block
)function_definition
)module
|
Returns the run type. Currently supports LDA, GGA, vdW-DF and HF calcs.
TODO: Fix for other functional types like PW91, other vdW types, etc.
|
(module
(function_definition
(function_name__process_input_wcs_single) function_name__process_input_wcs_single
(parameters
(identifier_fname) identifier_fname
(identifier_wcskey) identifier_wcskey
(identifier_updatewcs) identifier_updatewcs
)parameters
(block
(if_statement
(comparison_operator
(identifier_wcskey) identifier_wcskey
(list
(string_'') string_''
(string_' ') string_' '
(string_'INDEF') string_'INDEF'
(None) None
)list
)comparison_operator
(block
(if_statement
(identifier_updatewcs) identifier_updatewcs
(block
(expression_statement
(call
(attribute
(identifier_uw) identifier_uw
(identifier_updatewcs) identifier_updatewcs
)attribute
(argument_list
(identifier_fname) identifier_fname
(keyword_argument
(identifier_checkfiles) identifier_checkfiles
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_numext) identifier_numext
(call
(attribute
(identifier_fileutil) identifier_fileutil
(identifier_countExtn) identifier_countExtn
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extlist) identifier_extlist
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_extn) identifier_extn
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(identifier_numext) identifier_numext
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_extlist) identifier_extlist
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'SCI') string_'SCI'
(identifier_extn) identifier_extn
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_wcskey) identifier_wcskey
(attribute
(identifier_string) identifier_string
(identifier_ascii_uppercase) identifier_ascii_uppercase
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_wkey) identifier_wkey
(identifier_wcskey) identifier_wcskey
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wname) identifier_wname
(string_' ') string_' '
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_wname) identifier_wname
(identifier_wcskey) identifier_wcskey
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wkey) identifier_wkey
(string_' ') string_' '
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_altwcs) identifier_altwcs
(identifier_restoreWCS) identifier_restoreWCS
)attribute
(argument_list
(identifier_fname) identifier_fname
(identifier_extlist) identifier_extlist
(keyword_argument
(identifier_wcskey) identifier_wcskey
(identifier_wkey) identifier_wkey
)keyword_argument
(keyword_argument
(identifier_wcsname) identifier_wcsname
(identifier_wname) identifier_wname
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_wcskey) identifier_wcskey
(list
(string_'') string_''
(string_' ') string_' '
(string_'INDEF') string_'INDEF'
(None) None
)list
)comparison_operator
(identifier_updatewcs) identifier_updatewcs
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_wcscorr) identifier_wcscorr
(identifier_init_wcscorr) identifier_init_wcscorr
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
See docs for _process_input_wcs.
This is separated to be spawned in parallel.
|
(module
(function_definition
(function_name_run_once) function_name_run_once
(parameters
(identifier_function) identifier_function
(default_parameter
(identifier_state) identifier_state
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_errors) identifier_errors
(dictionary
)dictionary
)default_parameter
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_six) identifier_six
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)decorator
(function_definition
(function_name__wrapper) function_name__wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_function) identifier_function
(identifier_errors) identifier_errors
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_reraise) identifier_reraise
)attribute
(argument_list
(list_splat
(subscript
(identifier_errors) identifier_errors
(identifier_function) identifier_function
)subscript
)list_splat
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(return_statement
(subscript
(identifier_state) identifier_state
(identifier_function) identifier_function
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_state) identifier_state
(identifier_function) identifier_function
)subscript
(assignment
(identifier_result) identifier_result
(call
(identifier_function) identifier_function
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(subscript
(identifier_errors) identifier_errors
(identifier_function) identifier_function
)subscript
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier__wrapper) identifier__wrapper
)return_statement
)block
)function_definition
)module
|
A memoization decorator, whose purpose is to cache calls.
|
(module
(function_definition
(function_name_preview) function_name_preview
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__preview) identifier__preview
)attribute
(None) None
)comparison_operator
(block
(import_from_statement
(dotted_name
(identifier_twilio) identifier_twilio
(identifier_rest) identifier_rest
(identifier_preview) identifier_preview
)dotted_name
(dotted_name
(identifier_Preview) identifier_Preview
)dotted_name
)import_from_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__preview) identifier__preview
)attribute
(call
(identifier_Preview) identifier_Preview
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__preview) identifier__preview
)attribute
)return_statement
)block
)function_definition
)module
|
Access the Preview Twilio Domain
:returns: Preview Twilio Domain
:rtype: twilio.rest.preview.Preview
|
(module
(function_definition
(function_name__create_local_agent_channel) function_name__create_local_agent_channel
(parameters
(identifier_self) identifier_self
(identifier_io_loop) identifier_io_loop
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Initializing Jaeger Tracer with UDP reporter') string_'Initializing Jaeger Tracer with UDP reporter'
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_LocalAgentSender) identifier_LocalAgentSender
(argument_list
(keyword_argument
(identifier_host) identifier_host
(attribute
(identifier_self) identifier_self
(identifier_local_agent_reporting_host) identifier_local_agent_reporting_host
)attribute
)keyword_argument
(keyword_argument
(identifier_sampling_port) identifier_sampling_port
(attribute
(identifier_self) identifier_self
(identifier_local_agent_sampling_port) identifier_local_agent_sampling_port
)attribute
)keyword_argument
(keyword_argument
(identifier_reporting_port) identifier_reporting_port
(attribute
(identifier_self) identifier_self
(identifier_local_agent_reporting_port) identifier_local_agent_reporting_port
)attribute
)keyword_argument
(keyword_argument
(identifier_throttling_port) identifier_throttling_port
(attribute
(identifier_self) identifier_self
(identifier_throttler_port) identifier_throttler_port
)attribute
)keyword_argument
(keyword_argument
(identifier_io_loop) identifier_io_loop
(identifier_io_loop) identifier_io_loop
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Create an out-of-process channel communicating to local jaeger-agent.
Spans are submitted as SOCK_DGRAM Thrift, sampling strategy is polled
via JSON HTTP.
:param self: instance of Config
|
(module
(function_definition
(function_name__time_request) function_name__time_request
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(identifier_method) identifier_method
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_start_time) identifier_start_time
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_resp) identifier_resp
(identifier_body) identifier_body
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_uri) identifier_uri
(identifier_method) identifier_method
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_times) identifier_times
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(binary_operator
(string_"%s %s") string_"%s %s"
(tuple
(identifier_method) identifier_method
(identifier_uri) identifier_uri
)tuple
)binary_operator
(identifier_start_time) identifier_start_time
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_resp) identifier_resp
(identifier_body) identifier_body
)expression_list
)return_statement
)block
)function_definition
)module
|
Wraps the request call and records the elapsed time.
|
(module
(function_definition
(function_name_get_lon_variable) function_name_get_lon_variable
(parameters
(identifier_nc) identifier_nc
)parameters
(block
(if_statement
(comparison_operator
(string_'longitude') string_'longitude'
(attribute
(identifier_nc) identifier_nc
(identifier_variables) identifier_variables
)attribute
)comparison_operator
(block
(return_statement
(string_'longitude') string_'longitude'
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_longitudes) identifier_longitudes
(call
(attribute
(identifier_nc) identifier_nc
(identifier_get_variables_by_attributes) identifier_get_variables_by_attributes
)attribute
(argument_list
(keyword_argument
(identifier_standard_name) identifier_standard_name
(string_"longitude") string_"longitude"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_longitudes) identifier_longitudes
(block
(return_statement
(attribute
(subscript
(identifier_longitudes) identifier_longitudes
(integer_0) integer_0
)subscript
(identifier_name) identifier_name
)attribute
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module
|
Returns the variable for longitude
:param netCDF4.Dataset nc: netCDF dataset
|
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(default_parameter
(identifier_default_response) identifier_default_response
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_api_url) identifier_api_url
)attribute
(identifier_uri) identifier_uri
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)keyword_argument
(keyword_argument
(identifier_verify) identifier_verify
(attribute
(identifier_self) identifier_self
(identifier_verify_ssl) identifier_verify_ssl
)attribute
)keyword_argument
(keyword_argument
(identifier_auth) identifier_auth
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_success_or_raise) identifier_success_or_raise
)attribute
(argument_list
(identifier_response) identifier_response
(keyword_argument
(identifier_default_response) identifier_default_response
(identifier_default_response) identifier_default_response
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Call DELETE on the Gitlab server
>>> gitlab = Gitlab(host='http://localhost:10080', verify_ssl=False)
>>> gitlab.login(user='root', password='5iveL!fe')
>>> gitlab.delete('/users/5')
:param uri: String with the URI you wish to delete
:param default_response: Return value if JSONDecodeError
:return: Dictionary containing response data
:raise: HttpError: If invalid response returned
|
(module
(function_definition
(function_name_authorized) function_name_authorized
(parameters
(default_parameter
(identifier_remote_app) identifier_remote_app
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_remote_app) identifier_remote_app
(attribute
(identifier_current_oauthclient) identifier_current_oauthclient
(identifier_handlers) identifier_handlers
)attribute
)comparison_operator
(block
(return_statement
(call
(identifier_abort) identifier_abort
(argument_list
(integer_404) integer_404
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_state_token) identifier_state_token
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_args) identifier_args
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'state') string_'state'
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(assert_statement
(identifier_state_token) identifier_state_token
)assert_statement
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(attribute
(identifier_serializer) identifier_serializer
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_state_token) identifier_state_token
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(subscript
(identifier_state) identifier_state
(string_'sid') string_'sid'
)subscript
(call
(identifier__create_identifier) identifier__create_identifier
(argument_list
)argument_list
)call
)comparison_operator
)assert_statement
(assert_statement
(comparison_operator
(subscript
(identifier_state) identifier_state
(string_'app') string_'app'
)subscript
(identifier_remote_app) identifier_remote_app
)comparison_operator
)assert_statement
(expression_statement
(call
(identifier_set_session_next_url) identifier_set_session_next_url
(argument_list
(identifier_remote_app) identifier_remote_app
(subscript
(identifier_state) identifier_state
(string_'next') string_'next'
)subscript
)argument_list
)call
)expression_statement
)block
(except_clause
(tuple
(identifier_AssertionError) identifier_AssertionError
(identifier_BadData) identifier_BadData
)tuple
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'OAUTHCLIENT_STATE_ENABLED') string_'OAUTHCLIENT_STATE_ENABLED'
(True) True
)argument_list
)call
(parenthesized_expression
(not_operator
(parenthesized_expression
(boolean_operator
(attribute
(identifier_current_app) identifier_current_app
(identifier_debug) identifier_debug
)attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_testing) identifier_testing
)attribute
)boolean_operator
)parenthesized_expression
)not_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(call
(identifier_abort) identifier_abort
(argument_list
(integer_403) integer_403
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(call
(subscript
(attribute
(identifier_current_oauthclient) identifier_current_oauthclient
(identifier_handlers) identifier_handlers
)attribute
(identifier_remote_app) identifier_remote_app
)subscript
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_OAuthException) identifier_OAuthException
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_type) identifier_type
)attribute
(string_'invalid_response') string_'invalid_response'
)comparison_operator
(block
(expression_statement
(call
(identifier_abort) identifier_abort
(argument_list
(integer_500) integer_500
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(raise_statement
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_handler) identifier_handler
)return_statement
)block
)function_definition
)module
|
Authorized handler callback.
|
(module
(function_definition
(function_name_process_associations) function_name_process_associations
(parameters
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)parameters
(block
(expression_statement
(assignment
(identifier_myfile) identifier_myfile
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_rawdir) identifier_rawdir
)attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_files) identifier_files
)attribute
(string_'data') string_'data'
)subscript
(string_'file') string_'file'
)subscript
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(attribute
(identifier_gzip) identifier_gzip
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_myfile) identifier_myfile
(string_'rb') string_'rb'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filereader) identifier_filereader
(call
(attribute
(identifier_io) identifier_io
(identifier_TextIOWrapper) identifier_TextIOWrapper
)attribute
(argument_list
(identifier_f) identifier_f
(keyword_argument
(identifier_newline) identifier_newline
(string_"") string_""
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_filereader) identifier_filereader
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_event) identifier_event
(identifier_elem) identifier_elem
)pattern_list
(call
(attribute
(identifier_ET) identifier_ET
(identifier_iterparse) identifier_iterparse
)attribute
(argument_list
(identifier_filereader) identifier_filereader
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_xml_table) identifier_process_xml_table
)attribute
(argument_list
(identifier_elem) identifier_elem
(string_'Article_Breed') string_'Article_Breed'
(attribute
(identifier_self) identifier_self
(identifier__process_article_breed_row) identifier__process_article_breed_row
)attribute
(identifier_limit) identifier_limit
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_xml_table) identifier_process_xml_table
)attribute
(argument_list
(identifier_elem) identifier_elem
(string_'Article_Phene') string_'Article_Phene'
(attribute
(identifier_self) identifier_self
(identifier__process_article_phene_row) identifier__process_article_phene_row
)attribute
(identifier_limit) identifier_limit
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_xml_table) identifier_process_xml_table
)attribute
(argument_list
(identifier_elem) identifier_elem
(string_'Breed_Phene') string_'Breed_Phene'
(attribute
(identifier_self) identifier_self
(identifier__process_breed_phene_row) identifier__process_breed_phene_row
)attribute
(identifier_limit) identifier_limit
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_xml_table) identifier_process_xml_table
)attribute
(argument_list
(identifier_elem) identifier_elem
(string_'Lida_Links') string_'Lida_Links'
(attribute
(identifier_self) identifier_self
(identifier__process_lida_links_row) identifier__process_lida_links_row
)attribute
(identifier_limit) identifier_limit
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_xml_table) identifier_process_xml_table
)attribute
(argument_list
(identifier_elem) identifier_elem
(string_'Phene_Gene') string_'Phene_Gene'
(attribute
(identifier_self) identifier_self
(identifier__process_phene_gene_row) identifier__process_phene_gene_row
)attribute
(identifier_limit) identifier_limit
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_process_xml_table) identifier_process_xml_table
)attribute
(argument_list
(identifier_elem) identifier_elem
(string_'Group_MPO') string_'Group_MPO'
(attribute
(identifier_self) identifier_self
(identifier__process_group_mpo_row) identifier__process_group_mpo_row
)attribute
(identifier_limit) identifier_limit
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module
|
Loop through the xml file and process the article-breed, article-phene,
breed-phene, phene-gene associations, and the external links to LIDA.
:param limit:
:return:
|
(module
(function_definition
(function_name_upgrade) function_name_upgrade
(parameters
(identifier_self) identifier_self
(identifier_package) identifier_package
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_install) identifier_install
)attribute
(argument_list
(identifier_package) identifier_package
(keyword_argument
(identifier_upgrade) identifier_upgrade
(True) True
)keyword_argument
(keyword_argument
(identifier_force) identifier_force
(identifier_force) identifier_force
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Shortcut method to upgrade a package. If `force` is set to True,
the package and all of its dependencies will be reinstalled, otherwise
if the package is up to date, this command is a no-op.
|
(module
(function_definition
(function_name_offset) function_name_offset
(parameters
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)parameters
(block
(expression_statement
(assignment
(identifier_span) identifier_span
(identifier_self) identifier_self
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_offset) identifier_offset
(integer_0) integer_0
)comparison_operator
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_iter_range) identifier_iter_range
(argument_list
(identifier_offset) identifier_offset
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_span) identifier_span
(call
(attribute
(identifier_span) identifier_span
(identifier_next_period) identifier_next_period
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
(elif_clause
(comparison_operator
(identifier_offset) identifier_offset
(integer_0) integer_0
)comparison_operator
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_iter_range) identifier_iter_range
(argument_list
(unary_operator
(identifier_offset) identifier_offset
)unary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_span) identifier_span
(call
(attribute
(identifier_span) identifier_span
(identifier_prev_period) identifier_prev_period
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_span) identifier_span
)return_statement
)block
)function_definition
)module
|
Offset the date range by the given amount of periods.
This differs from :meth:`~spans.types.OffsetableRangeMixin.offset` on
:class:`spans.types.daterange` by not accepting a ``timedelta`` object.
Instead it expects an integer to adjust the typed date range by. The
given value may be negative as well.
:param offset: Number of periods to offset this range by. A period is
either a day, week, american week, month, quarter or
year, depending on this range's period type.
:return: New offset :class:`~spans.types.PeriodRange`
|
(module
(function_definition
(function_name_state_size) function_name_state_size
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Sequence) identifier_Sequence
(type_parameter
(type
(identifier_Shape) identifier_Shape
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__sizes) identifier__sizes
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__compiler) identifier__compiler
)attribute
(identifier_rddl) identifier_rddl
)attribute
(identifier_state_size) identifier_state_size
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns the MDP state size.
|
(module
(function_definition
(function_name_fill_n) function_name_fill_n
(parameters
(identifier_self) identifier_self
(identifier_values) identifier_values
(default_parameter
(identifier_weights) identifier_weights
(None) None
)default_parameter
(typed_default_parameter
(identifier_dropna) identifier_dropna
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_dropna) identifier_dropna
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(subscript
(identifier_values) identifier_values
(unary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)unary_operator
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__binning) identifier__binning
)attribute
(identifier_is_adaptive) identifier_is_adaptive
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_map) identifier_map
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__binning) identifier__binning
)attribute
(identifier_force_bin_existence) identifier_force_bin_existence
)attribute
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__reshape_data) identifier__reshape_data
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__binning) identifier__binning
)attribute
(identifier_bin_count) identifier_bin_count
)attribute
(identifier_map) identifier_map
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_weights) identifier_weights
(block
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_weights) identifier_weights
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__coerce_dtype) identifier__coerce_dtype
)attribute
(argument_list
(attribute
(identifier_weights) identifier_weights
(identifier_dtype) identifier_dtype
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_frequencies) identifier_frequencies
(identifier_errors2) identifier_errors2
(identifier_underflow) identifier_underflow
(identifier_overflow) identifier_overflow
(identifier_stats) identifier_stats
)tuple_pattern
(line_continuation_\) line_continuation_\
(call
(identifier_calculate_frequencies) identifier_calculate_frequencies
(argument_list
(identifier_values) identifier_values
(attribute
(identifier_self) identifier_self
(identifier__binning) identifier__binning
)attribute
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_self) identifier_self
(identifier_dtype) identifier_dtype
)attribute
)keyword_argument
(keyword_argument
(identifier_weights) identifier_weights
(identifier_weights) identifier_weights
)keyword_argument
(keyword_argument
(identifier_validate_bins) identifier_validate_bins
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__frequencies) identifier__frequencies
)attribute
(identifier_frequencies) identifier_frequencies
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__errors2) identifier__errors2
)attribute
(identifier_errors2) identifier_errors2
)augmented_assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_keep_missed) identifier_keep_missed
)attribute
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_underflow) identifier_underflow
)attribute
(identifier_underflow) identifier_underflow
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_overflow) identifier_overflow
)attribute
(identifier_overflow) identifier_overflow
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__stats) identifier__stats
)attribute
(block
(for_statement
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier__stats) identifier__stats
)attribute
(block
(expression_statement
(augmented_assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__stats) identifier__stats
)attribute
(identifier_key) identifier_key
)subscript
(call
(attribute
(identifier_stats) identifier_stats
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
(float_0.0) float_0.0
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module
|
Update histograms with a set of values.
Parameters
----------
values: array_like
weights: Optional[array_like]
drop_na: Optional[bool]
If true (default), all nan's are skipped.
|
(module
(function_definition
(function_name_get_queue_acl) function_name_get_queue_acl
(parameters
(identifier_self) identifier_self
(identifier_queue_name) identifier_queue_name
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier__validate_not_none) identifier__validate_not_none
(argument_list
(string_'queue_name') string_'queue_name'
(identifier_queue_name) identifier_queue_name
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier_HTTPRequest) identifier_HTTPRequest
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'GET') string_'GET'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_host) identifier_host
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_host) identifier__get_host
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_path) identifier_path
)attribute
(call
(identifier__get_path) identifier__get_path
(argument_list
(identifier_queue_name) identifier_queue_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_query) identifier_query
)attribute
(list
(tuple
(string_'comp') string_'comp'
(string_'acl') string_'acl'
)tuple
(tuple
(string_'timeout') string_'timeout'
(call
(identifier__int_to_str) identifier__int_to_str
(argument_list
(identifier_timeout) identifier_timeout
)argument_list
)call
)tuple
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__perform_request) identifier__perform_request
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__convert_xml_to_signed_identifiers) identifier__convert_xml_to_signed_identifiers
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_body) identifier_body
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns details about any stored access policies specified on the
queue that may be used with Shared Access Signatures.
:param str queue_name:
The name of an existing queue.
:param int timeout:
The server timeout, expressed in seconds.
:return: A dictionary of access policies associated with the queue.
:rtype: dict of str to :class:`~azure.storage.models.AccessPolicy`
|
(module
(function_definition
(function_name_wait_until_element_has_focus) function_name_wait_until_element_has_focus
(parameters
(identifier_self) identifier_self
(identifier_locator) identifier_locator
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__info) identifier__info
)attribute
(argument_list
(binary_operator
(string_"Waiting for focus on '%s'") string_"Waiting for focus on '%s'"
(parenthesized_expression
(identifier_locator) identifier_locator
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__wait_until_no_error) identifier__wait_until_no_error
)attribute
(argument_list
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier__check_element_focus_exp) identifier__check_element_focus_exp
)attribute
(True) True
(identifier_locator) identifier_locator
(identifier_timeout) identifier_timeout
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Waits until the element identified by `locator` has focus.
You might rather want to use `Element Focus Should Be Set`
| *Argument* | *Description* | *Example* |
| locator | Selenium 2 element locator | id=my_id |
| timeout | maximum time to wait before the function throws an element not found error (default=None) | 5s |
|
(module
(function_definition
(function_name_distinct) function_name_distinct
(parameters
(identifier_iterable) identifier_iterable
(default_parameter
(identifier_keyfunc) identifier_keyfunc
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_seen) identifier_seen
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_iterable) identifier_iterable
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(conditional_expression
(identifier_item) identifier_item
(comparison_operator
(identifier_keyfunc) identifier_keyfunc
(None) None
)comparison_operator
(call
(identifier_keyfunc) identifier_keyfunc
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(identifier_seen) identifier_seen
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_seen) identifier_seen
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)expression_statement
(expression_statement
(yield
(identifier_item) identifier_item
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
Yields distinct items from `iterable` in the order that they appear.
|
(module
(function_definition
(function_name_get_resources) function_name_get_resources
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_json_resources) identifier_json_resources
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rest_client) identifier_rest_client
)attribute
(identifier_make_request) identifier_make_request
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_resource_url) identifier_resource_url
)attribute
)argument_list
)call
(string_'resources') string_'resources'
)subscript
)assignment
)expression_statement
(return_statement
(list_comprehension
(call
(identifier_RestResource) identifier_RestResource
(argument_list
(identifier_resource) identifier_resource
(attribute
(identifier_self) identifier_self
(identifier_rest_client) identifier_rest_client
)attribute
)argument_list
)call
(for_in_clause
(identifier_resource) identifier_resource
(identifier_json_resources) identifier_json_resources
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module
|
Retrieves a list of all known Streams high-level REST resources.
Returns:
:py:obj:`list` of :py:class:`~.rest_primitives.RestResource`: List of all Streams high-level REST resources.
|
(module
(function_definition
(function_name_to_pascal_case) function_name_to_pascal_case
(parameters
(identifier_s) identifier_s
)parameters
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'(?!^)_([a-zA-Z])') string_r'(?!^)_([a-zA-Z])'
(lambda
(lambda_parameters
(identifier_m) identifier_m
)lambda_parameters
(call
(attribute
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)lambda
(call
(attribute
(identifier_s) identifier_s
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Transform underscore separated string to pascal case
|
(module
(function_definition
(function_name_argset) function_name_argset
(parameters
(identifier_name) identifier_name
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name__arg) function_name__arg
(parameters
(identifier_f) identifier_f
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_f) identifier_f
(string_'_subcommand_argsets') string_'_subcommand_argsets'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_f) identifier_f
(identifier__subcommand_argsets) identifier__subcommand_argsets
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_f) identifier_f
(identifier__subcommand_argsets) identifier__subcommand_argsets
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_name) identifier_name
(list
)list
)argument_list
)call
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)tuple
)argument_list
)call
)expression_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
(return_statement
(identifier__arg) identifier__arg
)return_statement
)block
)function_definition
)module
|
Decorator to add sets of required mutually exclusive args to subcommands.
|
(module
(function_definition
(function_name_read_features_and_groups) function_name_read_features_and_groups
(parameters
(identifier_features_path) identifier_features_path
(identifier_groups_path) identifier_groups_path
)parameters
(block
(expression_statement
(string_"Reader for data and groups") string_"Reader for data and groups"
)expression_statement
(try_statement
(block
(if_statement
(not_operator
(call
(identifier_pexists) identifier_pexists
(argument_list
(identifier_features_path) identifier_features_path
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'non-existent features file') string_'non-existent features file'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_pexists) identifier_pexists
(argument_list
(identifier_groups_path) identifier_groups_path
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'non-existent groups file') string_'non-existent groups file'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_features_path) identifier_features_path
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_features) identifier_features
(call
(attribute
(identifier_np) identifier_np
(identifier_genfromtxt) identifier_genfromtxt
)attribute
(argument_list
(identifier_features_path) identifier_features_path
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_float) identifier_float
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'features input must be a file path ') string_'features input must be a file path '
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_groups_path) identifier_groups_path
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_groups) identifier_groups
(call
(attribute
(identifier_np) identifier_np
(identifier_genfromtxt) identifier_genfromtxt
)attribute
(argument_list
(identifier_groups_path) identifier_groups_path
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_str) identifier_str
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'groups input must be a file path ') string_'groups input must be a file path '
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
(except_clause
(block
(raise_statement
(call
(identifier_IOError) identifier_IOError
(argument_list
(string_'error reading the specified features and/or groups.') string_'error reading the specified features and/or groups.'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_features) identifier_features
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_groups) identifier_groups
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"lengths of features and groups do not match!") string_"lengths of features and groups do not match!"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_features) identifier_features
(identifier_groups) identifier_groups
)expression_list
)return_statement
)block
)function_definition
)module
|
Reader for data and groups
|
(module
(function_definition
(function_name_get_method_name) function_name_get_method_name
(parameters
(identifier_method) identifier_method
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(identifier_get_object_name) identifier_get_object_name
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"__") string_"__"
)argument_list
)call
(not_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"__") string_"__"
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(string_"_{0}{1}") string_"_{0}{1}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_get_object_name) identifier_get_object_name
(argument_list
(attribute
(identifier_method) identifier_method
(identifier_im_class) identifier_im_class
)attribute
)argument_list
)call
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)function_definition
)module
|
Returns given method name.
:param method: Method to retrieve the name.
:type method: object
:return: Method name.
:rtype: unicode
|
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(identifier_addr) identifier_addr
(identifier_user) identifier_user
(identifier_remote_path) identifier_remote_path
(default_parameter
(identifier_local_key) identifier_local_key
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_port) identifier_port
(call
(identifier_find_port) identifier_find_port
(argument_list
(identifier_addr) identifier_addr
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_port) identifier_port
)not_operator
(not_operator
(call
(identifier_is_alive) identifier_is_alive
(argument_list
(identifier_addr) identifier_addr
(identifier_user) identifier_user
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_port) identifier_port
(call
(identifier_new_port) identifier_new_port
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_scp) identifier_scp
(argument_list
(identifier_addr) identifier_addr
(identifier_user) identifier_user
(identifier___file__) identifier___file__
(string_'~/unixpipe') string_'~/unixpipe'
(identifier_local_key) identifier_local_key
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ssh_call) identifier_ssh_call
(list
(string_'ssh') string_'ssh'
(binary_operator
(string_'-fL%d:127.0.0.1:12042') string_'-fL%d:127.0.0.1:12042'
(identifier_port) identifier_port
)binary_operator
(string_'-o') string_'-o'
(string_'ExitOnForwardFailure=yes') string_'ExitOnForwardFailure=yes'
(string_'-o') string_'-o'
(binary_operator
(string_'ControlPath=~/.ssh/unixpipe_%%r@%%h_%d') string_'ControlPath=~/.ssh/unixpipe_%%r@%%h_%d'
(identifier_port) identifier_port
)binary_operator
(string_'-o') string_'-o'
(string_'ControlMaster=auto') string_'ControlMaster=auto'
(binary_operator
(string_'%s@%s') string_'%s@%s'
(tuple
(identifier_user) identifier_user
(identifier_addr) identifier_addr
)tuple
)binary_operator
(string_'python') string_'python'
(string_'~/unixpipe') string_'~/unixpipe'
(string_'server') string_'server'
(identifier_remote_path) identifier_remote_path
)list
)assignment
)expression_statement
(if_statement
(identifier_local_key) identifier_local_key
(block
(expression_statement
(call
(attribute
(identifier_ssh_call) identifier_ssh_call
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(identifier_local_key) identifier_local_key
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ssh_call) identifier_ssh_call
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(string_'-i') string_'-i'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_call) identifier_call
)attribute
(argument_list
(identifier_ssh_call) identifier_ssh_call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_port) identifier_port
)return_statement
)block
)function_definition
)module
|
Setup the tunnel
|
(module
(function_definition
(function_name_stamp_allowing_unusual_version_table) function_name_stamp_allowing_unusual_version_table
(parameters
(typed_parameter
(identifier_config) identifier_config
(type
(identifier_Config) identifier_Config
)type
)typed_parameter
(typed_parameter
(identifier_revision) identifier_revision
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_sql) identifier_sql
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_tag) identifier_tag
(type
(identifier_str) identifier_str
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_version_table) identifier_version_table
(type
(identifier_str) identifier_str
)type
(identifier_DEFAULT_ALEMBIC_VERSION_TABLE) identifier_DEFAULT_ALEMBIC_VERSION_TABLE
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(identifier_script) identifier_script
(call
(attribute
(identifier_ScriptDirectory) identifier_ScriptDirectory
(identifier_from_config) identifier_from_config
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_starting_rev) identifier_starting_rev
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_":") string_":"
(identifier_revision) identifier_revision
)comparison_operator
(block
(if_statement
(not_operator
(identifier_sql) identifier_sql
)not_operator
(block
(raise_statement
(call
(identifier_CommandError) identifier_CommandError
(argument_list
(string_"Range revision not allowed") string_"Range revision not allowed"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_starting_rev) identifier_starting_rev
(identifier_revision) identifier_revision
)pattern_list
(call
(attribute
(identifier_revision) identifier_revision
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(function_definition
(function_name_do_stamp) function_name_do_stamp
(parameters
(typed_parameter
(identifier_rev) identifier_rev
(type
(identifier_str) identifier_str
)type
)typed_parameter
(identifier_context) identifier_context
)parameters
(block
(return_statement
(call
(attribute
(identifier_script) identifier_script
(identifier__stamp_revs) identifier__stamp_revs
)attribute
(argument_list
(identifier_revision) identifier_revision
(identifier_rev) identifier_rev
)argument_list
)call
)return_statement
)block
)function_definition
(with_statement
(with_clause
(with_item
(call
(identifier_EnvironmentContext) identifier_EnvironmentContext
(argument_list
(identifier_config) identifier_config
(identifier_script) identifier_script
(keyword_argument
(identifier_fn) identifier_fn
(identifier_do_stamp) identifier_do_stamp
)keyword_argument
(keyword_argument
(identifier_as_sql) identifier_as_sql
(identifier_sql) identifier_sql
)keyword_argument
(keyword_argument
(identifier_destination_rev) identifier_destination_rev
(identifier_revision) identifier_revision
)keyword_argument
(keyword_argument
(identifier_starting_rev) identifier_starting_rev
(identifier_starting_rev) identifier_starting_rev
)keyword_argument
(keyword_argument
(identifier_tag) identifier_tag
(identifier_tag) identifier_tag
)keyword_argument
(keyword_argument
(identifier_version_table) identifier_version_table
(identifier_version_table) identifier_version_table
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_script) identifier_script
(identifier_run_env) identifier_run_env
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module
|
Stamps the Alembic version table with the given revision; don't run any
migrations.
This function is a clone of ``alembic.command.stamp()``, but allowing
``version_table`` to change. See
http://alembic.zzzcomputing.com/en/latest/api/commands.html#alembic.command.stamp
|
(module
(function_definition
(function_name_from_file) function_name_from_file
(parameters
(identifier_cls) identifier_cls
(identifier_path) identifier_path
(default_parameter
(identifier_format) identifier_format
(string_'infer') string_'infer'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_format) identifier_format
(call
(identifier__infer_format) identifier__infer_format
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_format) identifier_format
(identifier_format) identifier_format
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_origin) identifier_origin
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_path) identifier_path
)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_path) identifier_path
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(if_statement
(comparison_operator
(identifier_format) identifier_format
(string_'json') string_'json'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_safe_load) identifier_safe_load
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_from_dict) identifier_from_dict
)attribute
(argument_list
(identifier_obj) identifier_obj
(keyword_argument
(identifier__origin) identifier__origin
(identifier_origin) identifier_origin
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Create an instance from a json or yaml file.
Parameters
----------
path : str
The path to the file to load.
format : {'infer', 'json', 'yaml'}, optional
The file format. By default the format is inferred from the file
extension.
|
(module
(function_definition
(function_name__register_bounds_validator_if_needed) function_name__register_bounds_validator_if_needed
(parameters
(identifier_parser) identifier_parser
(identifier_name) identifier_name
(identifier_flag_values) identifier_flag_values
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_parser) identifier_parser
(identifier_lower_bound) identifier_lower_bound
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_parser) identifier_parser
(identifier_upper_bound) identifier_upper_bound
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(function_definition
(function_name_checker) function_name_checker
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(call
(attribute
(identifier_parser) identifier_parser
(identifier_is_outside_bounds) identifier_is_outside_bounds
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(binary_operator
(string_'%s is not %s') string_'%s is not %s'
(tuple
(identifier_value) identifier_value
(attribute
(identifier_parser) identifier_parser
(identifier_syntactic_help) identifier_syntactic_help
)attribute
)tuple
)binary_operator
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier__exceptions) identifier__exceptions
(identifier_ValidationError) identifier_ValidationError
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier__validators) identifier__validators
(identifier_register_validator) identifier_register_validator
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_checker) identifier_checker
(keyword_argument
(identifier_flag_values) identifier_flag_values
(identifier_flag_values) identifier_flag_values
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Enforces lower and upper bounds for numeric flags.
Args:
parser: NumericParser (either FloatParser or IntegerParser), provides lower
and upper bounds, and help text to display.
name: str, name of the flag
flag_values: FlagValues.
|
(module
(function_definition
(function_name__set_int) function_name__set_int
(parameters
(identifier_self) identifier_self
(identifier_commands) identifier_commands
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_commands) identifier_commands
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_commands) identifier_commands
(identifier_name) identifier_name
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)function_definition
)module
|
set integer value from commands
|
(module
(function_definition
(function_name_list_source_code) function_name_list_source_code
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_context) identifier_context
(type
(identifier_int) identifier_int
)type
(integer_5) integer_5
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__verify_entrypoint_selected) identifier__verify_entrypoint_selected
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_current_trace_frame) identifier_current_trace_frame
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_trace_tuples) identifier_trace_tuples
)attribute
(attribute
(identifier_self) identifier_self
(identifier_current_trace_frame_index) identifier_current_trace_frame_index
)attribute
)subscript
(identifier_trace_frame) identifier_trace_frame
)attribute
)assignment
)expression_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_repository_directory) identifier_repository_directory
)attribute
(attribute
(identifier_current_trace_frame) identifier_current_trace_frame
(identifier_filename) identifier_filename
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_file_lines) identifier_file_lines
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(list
)list
)assignment
)expression_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_"r") string_"r"
)argument_list
)call
(as_pattern_target
(identifier_file) identifier_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_file_lines) identifier_file_lines
(call
(attribute
(identifier_file) identifier_file
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
(except_clause
(identifier_FileNotFoundError) identifier_FileNotFoundError
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_f"Couldn't open {filename}.") string_f"Couldn't open {filename}."
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__output_file_lines) identifier__output_file_lines
)attribute
(argument_list
(identifier_current_trace_frame) identifier_current_trace_frame
(identifier_file_lines) identifier_file_lines
(identifier_context) identifier_context
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Show source code around the current trace frame location.
Parameters:
context: int number of lines to show above and below trace location
(default: 5)
|
(module
(function_definition
(function_name_complete_server) function_name_complete_server
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(identifier_line) identifier_line
(identifier_begidx) identifier_begidx
(identifier_endidx) identifier_endidx
)parameters
(block
(return_statement
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(attribute
(identifier_PsiturkShell) identifier_PsiturkShell
(identifier_server_commands) identifier_server_commands
)attribute
)for_in_clause
(if_clause
(call
(attribute
(identifier_i) identifier_i
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module
|
Tab-complete server command
|
(module
(function_definition
(function_name_contexts) function_name_contexts
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_"_contexts") string_"_contexts"
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_cs) identifier_cs
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_cr) identifier_cr
(subscript
(attribute
(identifier_self) identifier_self
(identifier_doc) identifier_doc
)attribute
(string_"contexts") string_"contexts"
)subscript
(block
(expression_statement
(assignment
(subscript
(identifier_cs) identifier_cs
(subscript
(identifier_cr) identifier_cr
(string_"name") string_"name"
)subscript
)subscript
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(subscript
(identifier_cr) identifier_cr
(string_"context") string_"context"
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__contexts) identifier__contexts
)attribute
(identifier_cs) identifier_cs
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__contexts) identifier__contexts
)attribute
)return_statement
)block
)function_definition
)module
|
Returns known contexts by exposing as a read-only property.
|
(module
(function_definition
(function_name_valid_hash_value) function_name_valid_hash_value
(parameters
(identifier_hashname) identifier_hashname
)parameters
(block
(expression_statement
(assignment
(identifier_custom_hash_prefix_re) identifier_custom_hash_prefix_re
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r"^x_") string_r"^x_"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_hashname) identifier_hashname
(attribute
(identifier_enums) identifier_enums
(identifier_HASH_ALGO_OV) identifier_HASH_ALGO_OV
)attribute
)comparison_operator
(call
(attribute
(identifier_custom_hash_prefix_re) identifier_custom_hash_prefix_re
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_hashname) identifier_hashname
)argument_list
)call
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Return true if given value is a valid, recommended hash name according
to the STIX 2 specification.
|
(module
(function_definition
(function_name_number_of_statements) function_name_number_of_statements
(parameters
(identifier_self) identifier_self
(identifier_n) identifier_n
)parameters
(block
(expression_statement
(assignment
(identifier_stmt_type) identifier_stmt_type
(attribute
(identifier_n) identifier_n
(identifier_type) identifier_type
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_stmt_type) identifier_stmt_type
(attribute
(identifier_syms) identifier_syms
(identifier_compound_stmt) identifier_compound_stmt
)attribute
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_stmt_type) identifier_stmt_type
(attribute
(identifier_syms) identifier_syms
(identifier_stmt) identifier_stmt
)attribute
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_number_of_statements) identifier_number_of_statements
)attribute
(argument_list
(subscript
(attribute
(identifier_n) identifier_n
(identifier_children) identifier_children
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_stmt_type) identifier_stmt_type
(attribute
(identifier_syms) identifier_syms
(identifier_simple_stmt) identifier_simple_stmt
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_n) identifier_n
(identifier_children) identifier_children
)attribute
)argument_list
)call
(integer_2) integer_2
)binary_operator
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(string_"non-statement node") string_"non-statement node"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Compute the number of AST statements contained in a node.
|
(module
(function_definition
(function_name_describe_processors) function_name_describe_processors
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(for_statement
(identifier_processor) identifier_processor
(call
(attribute
(identifier_cls) identifier_cls
(identifier_post_processors) identifier_post_processors
)attribute
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
(block
(expression_statement
(yield
(dictionary
(pair
(string_'name') string_'name'
(attribute
(identifier_processor) identifier_processor
(identifier___name__) identifier___name__
)attribute
)pair
(pair
(string_'description') string_'description'
(attribute
(identifier_processor) identifier_processor
(identifier___doc__) identifier___doc__
)attribute
)pair
(pair
(string_'processor') string_'processor'
(identifier_processor) identifier_processor
)pair
)dictionary
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module
|
List all postprocessors and their description
|
(module
(function_definition
(function_name_inspect) function_name_inspect
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_timeout_manager) identifier_timeout_manager
(call
(identifier_future_timeout_manager) identifier_future_timeout_manager
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sync_timeout) identifier_sync_timeout
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sensor_index_before) identifier_sensor_index_before
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__sensors_index) identifier__sensors_index
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request_index_before) identifier_request_index_before
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__requests_index) identifier__requests_index
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_request_changes) identifier_request_changes
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_inspect_requests) identifier_inspect_requests
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(call
(attribute
(identifier_timeout_manager) identifier_timeout_manager
(identifier_remaining) identifier_remaining
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)yield
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sensor_changes) identifier_sensor_changes
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_inspect_sensors) identifier_inspect_sensors
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(call
(attribute
(identifier_timeout_manager) identifier_timeout_manager
(identifier_remaining) identifier_remaining
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)yield
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__sensors_index) identifier__sensors_index
)attribute
(identifier_sensor_index_before) identifier_sensor_index_before
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__requests_index) identifier__requests_index
)attribute
(identifier_request_index_before) identifier_request_index_before
)assignment
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_model_changes) identifier_model_changes
(call
(identifier_AttrDict) identifier_AttrDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_request_changes) identifier_request_changes
(block
(expression_statement
(assignment
(attribute
(identifier_model_changes) identifier_model_changes
(identifier_requests) identifier_requests
)attribute
(identifier_request_changes) identifier_request_changes
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_sensor_changes) identifier_sensor_changes
(block
(expression_statement
(assignment
(attribute
(identifier_model_changes) identifier_model_changes
(identifier_sensors) identifier_sensors
)attribute
(identifier_sensor_changes) identifier_sensor_changes
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_model_changes) identifier_model_changes
(block
(raise_statement
(call
(identifier_Return) identifier_Return
(argument_list
(identifier_model_changes) identifier_model_changes
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module
|
Inspect device requests and sensors, update model
Returns
-------
Tornado future that resolves with:
model_changes : Nested AttrDict or None
Contains sets of added/removed request/sensor names
Example structure:
{'requests': {
'added': set(['req1', 'req2']),
'removed': set(['req10', 'req20'])}
'sensors': {
'added': set(['sens1', 'sens2']),
'removed': set(['sens10', 'sens20'])}
}
If there are no changes keys may be omitted. If an item is in both
the 'added' and 'removed' sets that means that it changed.
If neither request not sensor changes are present, None is returned
instead of a nested structure.
|
(module
(function_definition
(function_name_make_certificate_authority) function_name_make_certificate_authority
(parameters
(dictionary_splat_pattern
(identifier_name) identifier_name
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(identifier_make_pkey) identifier_make_pkey
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_csr) identifier_csr
(call
(identifier_make_certificate_signing_request) identifier_make_certificate_signing_request
(argument_list
(identifier_key) identifier_key
(dictionary_splat
(identifier_name) identifier_name
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_crt) identifier_crt
(call
(identifier_make_certificate) identifier_make_certificate
(argument_list
(identifier_csr) identifier_csr
(identifier_key) identifier_key
(identifier_csr) identifier_csr
(call
(identifier_make_serial) identifier_make_serial
(argument_list
)argument_list
)call
(integer_0) integer_0
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(integer_10) integer_10
(integer_365) integer_365
)binary_operator
(integer_24) integer_24
)binary_operator
(integer_60) integer_60
)binary_operator
(integer_60) integer_60
)binary_operator
(keyword_argument
(identifier_exts) identifier_exts
(list
(call
(attribute
(identifier_crypto) identifier_crypto
(identifier_X509Extension) identifier_X509Extension
)attribute
(argument_list
(string_b'basicConstraints') string_b'basicConstraints'
(True) True
(string_b'CA:TRUE') string_b'CA:TRUE'
)argument_list
)call
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_key) identifier_key
(identifier_crt) identifier_crt
)expression_list
)return_statement
)block
)function_definition
)module
|
Make a certificate authority.
A certificate authority can sign certificates. For clients to be able to
validate certificates signed by your certificate authorithy, they must trust
the certificate returned by this function.
:param name: Key word arguments containing subject name parts: C, ST, L, O,
OU, CN.
:return: A root self-signed certificate to act as an authority.
:rtype: :class:`OpenSSL.crypto.X509`
|
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_label) identifier_label
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(binary_operator
(string_'%s') string_'%s'
(identifier_key) identifier_key
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bitbucket) identifier_bitbucket
)attribute
(identifier_url) identifier_url
)attribute
(argument_list
(string_'SET_SSH_KEY') string_'SET_SSH_KEY'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bitbucket) identifier_bitbucket
)attribute
(identifier_dispatch) identifier_dispatch
)attribute
(argument_list
(string_'POST') string_'POST'
(identifier_url) identifier_url
(keyword_argument
(identifier_auth) identifier_auth
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bitbucket) identifier_bitbucket
)attribute
(identifier_auth) identifier_auth
)attribute
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_label) identifier_label
(identifier_label) identifier_label
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Associate an ssh key with your account and return it.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.