sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_authorize_security_group) function_name_authorize_security_group
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_group_name) identifier_group_name
(None) None
)default_parameter
(default_parameter
(identifier_src_security_group_name) identifier_src_security_group_name
(None) None
)default_parameter
(default_parameter
(identifier_src_security_group_owner_id) identifier_src_security_group_owner_id
(None) None
)default_parameter
(default_parameter
(identifier_ip_protocol) identifier_ip_protocol
(None) None
)default_parameter
(default_parameter
(identifier_from_port) identifier_from_port
(None) None
)default_parameter
(default_parameter
(identifier_to_port) identifier_to_port
(None) None
)default_parameter
(default_parameter
(identifier_cidr_ip) identifier_cidr_ip
(None) None
)default_parameter
(default_parameter
(identifier_group_id) identifier_group_id
(None) None
)default_parameter
(default_parameter
(identifier_src_security_group_group_id) identifier_src_security_group_group_id
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_src_security_group_name) identifier_src_security_group_name
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_from_port) identifier_from_port
(None) None
)comparison_operator
(comparison_operator
(identifier_to_port) identifier_to_port
(None) None
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_ip_protocol) identifier_ip_protocol
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_authorize_security_group_deprecated) identifier_authorize_security_group_deprecated
)attribute
(argument_list
(identifier_group_name) identifier_group_name
(identifier_src_security_group_name) identifier_src_security_group_name
(identifier_src_security_group_owner_id) identifier_src_security_group_owner_id
)argument_list
)call
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_group_name) identifier_group_name
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'GroupName') string_'GroupName'
)subscript
(identifier_group_name) identifier_group_name
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_group_id) identifier_group_id
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'GroupId') string_'GroupId'
)subscript
(identifier_group_id) identifier_group_id
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_src_security_group_name) identifier_src_security_group_name
(block
(expression_statement
(assignment
(identifier_param_name) identifier_param_name
(string_'IpPermissions.1.Groups.1.GroupName') string_'IpPermissions.1.Groups.1.GroupName'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(identifier_param_name) identifier_param_name
)subscript
(identifier_src_security_group_name) identifier_src_security_group_name
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_src_security_group_owner_id) identifier_src_security_group_owner_id
(block
(expression_statement
(assignment
(identifier_param_name) identifier_param_name
(string_'IpPermissions.1.Groups.1.UserId') string_'IpPermissions.1.Groups.1.UserId'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(identifier_param_name) identifier_param_name
)subscript
(identifier_src_security_group_owner_id) identifier_src_security_group_owner_id
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_src_security_group_group_id) identifier_src_security_group_group_id
(block
(expression_statement
(assignment
(identifier_param_name) identifier_param_name
(string_'IpPermissions.1.Groups.1.GroupId') string_'IpPermissions.1.Groups.1.GroupId'
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(identifier_param_name) identifier_param_name
)subscript
(identifier_src_security_group_group_id) identifier_src_security_group_group_id
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_ip_protocol) identifier_ip_protocol
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'IpPermissions.1.IpProtocol') string_'IpPermissions.1.IpProtocol'
)subscript
(identifier_ip_protocol) identifier_ip_protocol
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_from_port) identifier_from_port
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'IpPermissions.1.FromPort') string_'IpPermissions.1.FromPort'
)subscript
(identifier_from_port) identifier_from_port
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_to_port) identifier_to_port
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'IpPermissions.1.ToPort') string_'IpPermissions.1.ToPort'
)subscript
(identifier_to_port) identifier_to_port
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_cidr_ip) identifier_cidr_ip
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'IpPermissions.1.IpRanges.1.CidrIp') string_'IpPermissions.1.IpRanges.1.CidrIp'
)subscript
(identifier_cidr_ip) identifier_cidr_ip
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_status) identifier_get_status
)attribute
(argument_list
(string_'AuthorizeSecurityGroupIngress') string_'AuthorizeSecurityGroupIngress'
(identifier_params) identifier_params
(keyword_argument
(identifier_verb) identifier_verb
(string_'POST') string_'POST'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add a new rule to an existing security group.
You need to pass in either src_security_group_name and
src_security_group_owner_id OR ip_protocol, from_port, to_port,
and cidr_ip. In other words, either you are authorizing another
group or you are authorizing some ip-based rule.
:type group_name: string
:param group_name: The name of the security group you are adding
the rule to.
:type src_security_group_name: string
:param src_security_group_name: The name of the security group you are
granting access to.
:type src_security_group_owner_id: string
:param src_security_group_owner_id: The ID of the owner of the security
group you are granting access to.
:type ip_protocol: string
:param ip_protocol: Either tcp | udp | icmp
:type from_port: int
:param from_port: The beginning port number you are enabling
:type to_port: int
:param to_port: The ending port number you are enabling
:type cidr_ip: string
:param cidr_ip: The CIDR block you are providing access to.
See http://goo.gl/Yj5QC
:type group_id: string
:param group_id: ID of the EC2 or VPC security group to modify.
This is required for VPC security groups and
can be used instead of group_name for EC2
security groups.
:type group_id: string
:param group_id: ID of the EC2 or VPC source security group.
This is required for VPC security groups and
can be used instead of group_name for EC2
security groups.
:rtype: bool
:return: True if successful. |
(module
(function_definition
(function_name_expression) function_name_expression
(parameters
(identifier_callable) identifier_callable
(identifier_rule_name) identifier_rule_name
(identifier_grammar) identifier_grammar
)parameters
(block
(expression_statement
(assignment
(identifier_num_args) identifier_num_args
(call
(identifier_len) identifier_len
(argument_list
(attribute
(call
(identifier_getargspec) identifier_getargspec
(argument_list
(identifier_callable) identifier_callable
)argument_list
)call
(identifier_args) identifier_args
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_num_args) identifier_num_args
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_is_simple) identifier_is_simple
(True) True
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_num_args) identifier_num_args
(integer_5) integer_5
)comparison_operator
(block
(expression_statement
(assignment
(identifier_is_simple) identifier_is_simple
(False) False
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(concatenated_string
(string_"Custom rule functions must take either 2 or 5 ") string_"Custom rule functions must take either 2 or 5 "
(string_"arguments, not %s.") string_"arguments, not %s."
)concatenated_string
(identifier_num_args) identifier_num_args
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(class_definition
(identifier_AdHocExpression) identifier_AdHocExpression
(argument_list
(identifier_Expression) identifier_Expression
)argument_list
(block
(function_definition
(function_name__uncached_match) function_name__uncached_match
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(identifier_pos) identifier_pos
(identifier_cache) identifier_cache
(identifier_error) identifier_error
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(parenthesized_expression
(conditional_expression
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_text) identifier_text
(identifier_pos) identifier_pos
)argument_list
)call
(identifier_is_simple) identifier_is_simple
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_text) identifier_text
(identifier_pos) identifier_pos
(identifier_cache) identifier_cache
(identifier_error) identifier_error
(identifier_grammar) identifier_grammar
)argument_list
)call
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_result) identifier_result
(identifier_integer_types) identifier_integer_types
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_end) identifier_end
(identifier_children) identifier_children
)pattern_list
(expression_list
(identifier_result) identifier_result
(None) None
)expression_list
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_result) identifier_result
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_end) identifier_end
(identifier_children) identifier_children
)pattern_list
(identifier_result) identifier_result
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_Node) identifier_Node
(argument_list
(identifier_self) identifier_self
(identifier_text) identifier_text
(identifier_pos) identifier_pos
(identifier_end) identifier_end
(keyword_argument
(identifier_children) identifier_children
(identifier_children) identifier_children
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
(function_definition
(function_name__as_rhs) function_name__as_rhs
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(binary_operator
(string_'{custom function "%s"}') string_'{custom function "%s"}'
(attribute
(identifier_callable) identifier_callable
(identifier___name__) identifier___name__
)attribute
)binary_operator
)return_statement
)block
)function_definition
)block
)class_definition
(return_statement
(call
(identifier_AdHocExpression) identifier_AdHocExpression
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_rule_name) identifier_rule_name
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Turn a plain callable into an Expression.
The callable can be of this simple form::
def foo(text, pos):
'''If this custom expression matches starting at text[pos], return
the index where it stops matching. Otherwise, return None.'''
if the expression matched:
return end_pos
If there child nodes to return, return a tuple::
return end_pos, children
If the expression doesn't match at the given ``pos`` at all... ::
return None
If your callable needs to make sub-calls to other rules in the grammar or
do error reporting, it can take this form, gaining additional arguments::
def foo(text, pos, cache, error, grammar):
# Call out to other rules:
node = grammar['another_rule'].match_core(text, pos, cache, error)
...
# Return values as above.
The return value of the callable, if an int or a tuple, will be
automatically transmuted into a :class:`~parsimonious.Node`. If it returns
a Node-like class directly, it will be passed through unchanged.
:arg rule_name: The rule name to attach to the resulting
:class:`~parsimonious.Expression`
:arg grammar: The :class:`~parsimonious.Grammar` this expression will be a
part of, to make delegating to other rules possible |
(module
(function_definition
(function_name_get_options) function_name_get_options
(parameters
(identifier_server) identifier_server
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_options) identifier_options
)attribute
(argument_list
(identifier_server) identifier_server
(keyword_argument
(identifier_allow_redirects) identifier_allow_redirects
(False) False
)keyword_argument
(keyword_argument
(identifier_verify) identifier_verify
(False) False
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_5) integer_5
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(attribute
(attribute
(identifier_requests) identifier_requests
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_ConnectionError) identifier_ConnectionError
)attribute
(attribute
(attribute
(identifier_requests) identifier_requests
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_MissingSchema) identifier_MissingSchema
)attribute
)tuple
(block
(return_statement
(call
(attribute
(string_"Server {} is not available!") string_"Server {} is not available!"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_server) identifier_server
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
(try_statement
(block
(return_statement
(dictionary
(pair
(string_'allowed') string_'allowed'
(subscript
(attribute
(identifier_response) identifier_response
(identifier_headers) identifier_headers
)attribute
(string_'Allow') string_'Allow'
)subscript
)pair
)dictionary
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(string_"Unable to get HTTP methods") string_"Unable to get HTTP methods"
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Retrieve the available HTTP verbs |
(module
(function_definition
(function_name__recv_ack) function_name__recv_ack
(parameters
(identifier_self) identifier_self
(identifier_method_frame) identifier_method_frame
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__ack_listener) identifier__ack_listener
)attribute
(block
(expression_statement
(assignment
(identifier_delivery_tag) identifier_delivery_tag
(call
(attribute
(attribute
(identifier_method_frame) identifier_method_frame
(identifier_args) identifier_args
)attribute
(identifier_read_longlong) identifier_read_longlong
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_multiple) identifier_multiple
(call
(attribute
(attribute
(identifier_method_frame) identifier_method_frame
(identifier_args) identifier_args
)attribute
(identifier_read_bit) identifier_read_bit
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_multiple) identifier_multiple
(block
(while_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__last_ack_id) identifier__last_ack_id
)attribute
(identifier_delivery_tag) identifier_delivery_tag
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__last_ack_id) identifier__last_ack_id
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ack_listener) identifier__ack_listener
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__last_ack_id) identifier__last_ack_id
)attribute
)argument_list
)call
)expression_statement
)block
)while_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__last_ack_id) identifier__last_ack_id
)attribute
(identifier_delivery_tag) identifier_delivery_tag
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__ack_listener) identifier__ack_listener
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__last_ack_id) identifier__last_ack_id
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Receive an ack from the broker. |
(module
(function_definition
(function_name_get_scc_from_tuples) function_name_get_scc_from_tuples
(parameters
(identifier_constraints) identifier_constraints
)parameters
(block
(expression_statement
(assignment
(identifier_classes) identifier_classes
(call
(attribute
(identifier_unionfind) identifier_unionfind
(identifier_classes) identifier_classes
)attribute
(argument_list
(identifier_constraints) identifier_constraints
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(identifier_x) identifier_x
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)tuple
(for_in_clause
(pattern_list
(identifier_x) identifier_x
(identifier_c) identifier_c
)pattern_list
(call
(attribute
(identifier_classes) identifier_classes
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Given set of equivalences, return map of transitive equivalence classes.
>> constraints = [(1,2), (2,3)]
>> get_scc_from_tuples(constraints)
{
1: (1, 2, 3),
2: (1, 2, 3),
3: (1, 2, 3),
} |
(module
(function_definition
(function_name_overlap_slices) function_name_overlap_slices
(parameters
(identifier_large_array_shape) identifier_large_array_shape
(identifier_small_array_shape) identifier_small_array_shape
(identifier_position) identifier_position
)parameters
(block
(expression_statement
(assignment
(identifier_edges_min) identifier_edges_min
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_pos) identifier_pos
(binary_operator
(identifier_small_shape) identifier_small_shape
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
(for_in_clause
(tuple_pattern
(identifier_pos) identifier_pos
(identifier_small_shape) identifier_small_shape
)tuple_pattern
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_position) identifier_position
(identifier_small_array_shape) identifier_small_array_shape
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edges_max) identifier_edges_max
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_pos) identifier_pos
(parenthesized_expression
(binary_operator
(identifier_small_shape) identifier_small_shape
(binary_operator
(identifier_small_shape) identifier_small_shape
(integer_2) integer_2
)binary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
(for_in_clause
(tuple_pattern
(identifier_pos) identifier_pos
(identifier_small_shape) identifier_small_shape
)tuple_pattern
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_position) identifier_position
(identifier_small_array_shape) identifier_small_array_shape
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_slices_large) identifier_slices_large
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_slice) identifier_slice
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(integer_0) integer_0
(identifier_edge_min) identifier_edge_min
)argument_list
)call
(call
(identifier_min) identifier_min
(argument_list
(identifier_large_shape) identifier_large_shape
(identifier_edge_max) identifier_edge_max
)argument_list
)call
)argument_list
)call
(for_in_clause
(tuple_pattern
(identifier_edge_min) identifier_edge_min
(identifier_edge_max) identifier_edge_max
(identifier_large_shape) identifier_large_shape
)tuple_pattern
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_edges_min) identifier_edges_min
(identifier_edges_max) identifier_edges_max
(identifier_large_array_shape) identifier_large_array_shape
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_slices_small) identifier_slices_small
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_slice) identifier_slice
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(integer_0) integer_0
(unary_operator
(identifier_edge_min) identifier_edge_min
)unary_operator
)argument_list
)call
(call
(identifier_min) identifier_min
(argument_list
(binary_operator
(identifier_large_shape) identifier_large_shape
(identifier_edge_min) identifier_edge_min
)binary_operator
(binary_operator
(identifier_edge_max) identifier_edge_max
(identifier_edge_min) identifier_edge_min
)binary_operator
)argument_list
)call
)argument_list
)call
(for_in_clause
(tuple_pattern
(identifier_edge_min) identifier_edge_min
(identifier_edge_max) identifier_edge_max
(identifier_large_shape) identifier_large_shape
)tuple_pattern
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_edges_min) identifier_edges_min
(identifier_edges_max) identifier_edges_max
(identifier_large_array_shape) identifier_large_array_shape
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_slices_large) identifier_slices_large
(identifier_slices_small) identifier_slices_small
)expression_list
)return_statement
)block
)function_definition
)module | Modified version of `~astropy.nddata.utils.overlap_slices`.
Get slices for the overlapping part of a small and a large array.
Given a certain position of the center of the small array, with
respect to the large array, tuples of slices are returned which can be
used to extract, add or subtract the small array at the given
position. This function takes care of the correct behavior at the
boundaries, where the small array is cut of appropriately.
Parameters
----------
large_array_shape : tuple
Shape of the large array.
small_array_shape : tuple
Shape of the small array.
position : tuple
Position of the small array's center, with respect to the large array.
Coordinates should be in the same order as the array shape.
Returns
-------
slices_large : tuple of slices
Slices in all directions for the large array, such that
``large_array[slices_large]`` extracts the region of the large array
that overlaps with the small array.
slices_small : slice
Slices in all directions for the small array, such that
``small_array[slices_small]`` extracts the region that is inside the
large array. |
(module
(function_definition
(function_name_synthesize) function_name_synthesize
(parameters
(identifier_self) identifier_self
(identifier_modules) identifier_modules
(identifier_use_string) identifier_use_string
(identifier_x64) identifier_x64
(identifier_native) identifier_native
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_hash_func) identifier_hash_func
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_groups) identifier_groups
(call
(identifier_group_by) identifier_group_by
(argument_list
(identifier_modules) identifier_modules
(identifier_ends_with_punctuation) identifier_ends_with_punctuation
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sources) identifier_sources
(call
(attribute
(identifier_self) identifier_self
(identifier_make_source) identifier_make_source
)attribute
(argument_list
(identifier_groups) identifier_groups
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_sources) identifier_sources
(block
(return_statement
(call
(identifier_stylify_files) identifier_stylify_files
(argument_list
(dictionary
(pair
(string_'defs.h') string_'defs.h'
(subscript
(identifier_sources) identifier_sources
(integer_0) integer_0
)subscript
)pair
(pair
(string_'init.c') string_'init.c'
(subscript
(identifier_sources) identifier_sources
(integer_1) integer_1
)subscript
)pair
)dictionary
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(string_'') string_''
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Transform sources. |
(module
(function_definition
(function_name_punsubscribe) function_name_punsubscribe
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(identifier_args) identifier_args
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_list_or_args) identifier_list_or_args
(argument_list
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
(subscript
(identifier_args) identifier_args
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_'PUNSUBSCRIBE') string_'PUNSUBSCRIBE'
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Unsubscribe from the supplied patterns. If empy, unsubscribe from
all patterns. |
(module
(function_definition
(function_name_cli) function_name_cli
(parameters
(identifier_env) identifier_env
(identifier_identifier) identifier_identifier
(identifier_body) identifier_body
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) identifier_mgr
(call
(attribute
(identifier_SoftLayer) identifier_SoftLayer
(identifier_TicketManager) identifier_TicketManager
)attribute
(argument_list
(attribute
(identifier_env) identifier_env
(identifier_client) identifier_client
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ticket_id) identifier_ticket_id
(call
(attribute
(identifier_helpers) identifier_helpers
(identifier_resolve_id) identifier_resolve_id
)attribute
(argument_list
(attribute
(identifier_mgr) identifier_mgr
(identifier_resolve_ids) identifier_resolve_ids
)attribute
(identifier_identifier) identifier_identifier
(string_'ticket') string_'ticket'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_body) identifier_body
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(identifier_click) identifier_click
(identifier_edit) identifier_edit
)attribute
(argument_list
(binary_operator
(string_'\n\n') string_'\n\n'
(attribute
(identifier_ticket) identifier_ticket
(identifier_TEMPLATE_MSG) identifier_TEMPLATE_MSG
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_mgr) identifier_mgr
(identifier_update_ticket) identifier_update_ticket
)attribute
(argument_list
(keyword_argument
(identifier_ticket_id) identifier_ticket_id
(identifier_ticket_id) identifier_ticket_id
)keyword_argument
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier_fout) identifier_fout
)attribute
(argument_list
(string_"Ticket Updated!") string_"Ticket Updated!"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds an update to an existing ticket. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_size) identifier_size
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"reading with size: %d") string_"reading with size: %d"
(identifier_size) identifier_size
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(None) None
)comparison_operator
(block
(return_statement
(string_b'') string_b''
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_size) identifier_size
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(string_b'') string_b''
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(identifier_size) identifier_size
(integer_0) integer_0
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__read_buffer) identifier__read_buffer
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_retval) identifier_retval
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(identifier_raw) identifier_raw
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_size) identifier_size
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_retval) identifier_retval
(binary_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__read_buffer) identifier__read_buffer
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(identifier_raw) identifier_raw
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(while_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__read_buffer) identifier__read_buffer
)attribute
)argument_list
)call
(identifier_size) identifier_size
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"http reading more content at current_pos: %d with size: %d") string_"http reading more content at current_pos: %d with size: %d"
(attribute
(identifier_self) identifier_self
(identifier__current_pos) identifier__current_pos
)attribute
(identifier_size) identifier_size
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_bytes_read) identifier_bytes_read
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__read_buffer) identifier__read_buffer
)attribute
(identifier_fill) identifier_fill
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__read_iter) identifier__read_iter
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_bytes_read) identifier_bytes_read
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_retval) identifier_retval
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__read_buffer) identifier__read_buffer
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__current_pos) identifier__current_pos
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_retval) identifier_retval
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(identifier_retval) identifier_retval
)return_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_retval) identifier_retval
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__read_buffer) identifier__read_buffer
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_size) identifier_size
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__current_pos) identifier__current_pos
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_retval) identifier_retval
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(identifier_retval) identifier_retval
)return_statement
)block
)function_definition
)module | Mimics the read call to a filehandle object. |
(module
(function_definition
(function_name_get_source_handler) function_name_get_source_handler
(parameters
(identifier_self) identifier_self
(identifier_model) identifier_model
(identifier_source) identifier_source
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_source) identifier_source
(identifier_Column) identifier_Column
)argument_list
)call
(block
(return_statement
(identifier_source) identifier_source
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_modelfield) identifier_modelfield
(call
(identifier_resolve_orm_path) identifier_resolve_orm_path
(argument_list
(identifier_model) identifier_model
(identifier_source) identifier_source
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_column_class) identifier_column_class
(call
(identifier_get_column_for_modelfield) identifier_get_column_for_modelfield
(argument_list
(identifier_modelfield) identifier_modelfield
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_column_class) identifier_column_class
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Allow the nested Column source to be its own handler. |
(module
(function_definition
(function_name_confusion_matrix) function_name_confusion_matrix
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_plot) identifier_plot
(identifier_confusion_matrix) identifier_confusion_matrix
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_y_true) identifier_y_true
)attribute
(attribute
(identifier_self) identifier_self
(identifier_y_pred) identifier_y_pred
)attribute
(attribute
(identifier_self) identifier_self
(identifier_target_names) identifier_target_names
)attribute
(keyword_argument
(identifier_ax) identifier_ax
(call
(identifier__gen_ax) identifier__gen_ax
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Confusion matrix plot |
(module
(function_definition
(function_name_to_api_repr) function_name_to_api_repr
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__properties) identifier__properties
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_to_api_repr) identifier_to_api_repr
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_r) identifier_r
(dictionary
)dictionary
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_config) identifier_config
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier__RESOURCE_NAME) identifier__RESOURCE_NAME
)attribute
)subscript
(identifier_r) identifier_r
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_config) identifier_config
)return_statement
)block
)function_definition
)module | Build an API representation of this object.
Returns:
Dict[str, Any]:
A dictionary in the format used by the BigQuery API. |
(module
(function_definition
(function_name_xiphias_get_users_by_alias) function_name_xiphias_get_users_by_alias
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_alias_jids) identifier_alias_jids
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_xmpp_element) identifier__send_xmpp_element
)attribute
(argument_list
(call
(attribute
(identifier_xiphias) identifier_xiphias
(identifier_UsersByAliasRequest) identifier_UsersByAliasRequest
)attribute
(argument_list
(identifier_alias_jids) identifier_alias_jids
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Like xiphias_get_users, but for aliases instead of jids.
:param alias_jids: one jid, or a list of jids |
(module
(function_definition
(function_name__create_url) function_name__create_url
(parameters
(identifier_self) identifier_self
(identifier_date) identifier_date
)parameters
(block
(return_statement
(binary_operator
(identifier_BOXSCORES_URL) identifier_BOXSCORES_URL
(tuple
(attribute
(identifier_date) identifier_date
(identifier_year) identifier_year
)attribute
(attribute
(identifier_date) identifier_date
(identifier_month) identifier_month
)attribute
(attribute
(identifier_date) identifier_date
(identifier_day) identifier_day
)attribute
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Build the URL based on the passed datetime object.
In order to get the proper boxscore page, the URL needs to include the
requested month, day, and year.
Parameters
----------
date : datetime object
The date to search for any matches. The month, day, and year are
required for the search, but time is not factored into the search.
Returns
-------
string
Returns a ``string`` of the boxscore URL including the requested
date. |
(module
(function_definition
(function_name_get_section_by_name) function_name_get_section_by_name
(parameters
(identifier_self) identifier_self
(identifier_section_name) identifier_section_name
)parameters
(block
(expression_statement
(assignment
(identifier_sections) identifier_sections
(call
(attribute
(identifier_self) identifier_self
(identifier_unravel_sections) identifier_unravel_sections
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_sections) identifier_get_sections
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_section) identifier_section
(identifier_sections) identifier_sections
(block
(if_statement
(comparison_operator
(subscript
(identifier_section) identifier_section
(string_'name') string_'name'
)subscript
(identifier_section_name) identifier_section_name
)comparison_operator
(block
(return_statement
(expression_list
(subscript
(identifier_section) identifier_section
(string_'groupId') string_'groupId'
)subscript
(identifier_section) identifier_section
)expression_list
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(expression_list
(None) None
(None) None
)expression_list
)return_statement
)block
)function_definition
)module | Get a section by its name.
Get a list of sections for a given gradebook,
specified by a gradebookid.
Args:
section_name (str): The section's name.
Raises:
requests.RequestException: Exception connection error
ValueError: Unable to decode response content
Returns:
tuple: tuple of group id, and section dictionary
An example return value is:
.. code-block:: python
(
1327565,
{
u'editable': True,
u'groupId': 1327565,
u'groupingScheme': u'Recitation',
u'members': None,
u'name': u'r01',
u'shortName': u'r01',
u'staffs': None
}
) |
(module
(function_definition
(function_name_GetName) function_name_GetName
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_AssetType) identifier_AssetType
)attribute
(attribute
(identifier_AssetType) identifier_AssetType
(identifier_GoverningToken) identifier_GoverningToken
)attribute
)comparison_operator
(block
(return_statement
(string_"NEO") string_"NEO"
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_AssetType) identifier_AssetType
)attribute
(attribute
(identifier_AssetType) identifier_AssetType
(identifier_UtilityToken) identifier_UtilityToken
)attribute
)comparison_operator
(block
(return_statement
(string_"NEOGas") string_"NEOGas"
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_Name) identifier_Name
)attribute
)argument_list
)call
(identifier_bytes) identifier_bytes
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Name) identifier_Name
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_Name) identifier_Name
)attribute
)return_statement
)block
)function_definition
)module | Get the asset name based on its type.
Returns:
str: 'NEO' or 'NEOGas' |
(module
(function_definition
(function_name__parse) function_name__parse
(parameters
(identifier_string) identifier_string
)parameters
(block
(if_statement
(identifier_string) identifier_string
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_suds) identifier_suds
(identifier_sax) identifier_sax
)attribute
(identifier_parser) identifier_parser
)attribute
(identifier_Parser) identifier_Parser
)attribute
(argument_list
)argument_list
)call
(identifier_parse) identifier_parse
)attribute
(argument_list
(keyword_argument
(identifier_string) identifier_string
(identifier_string) identifier_string
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Parses given XML document content.
Returns the resulting root XML element node or None if the given XML
content is empty.
@param string: XML document content to parse.
@type string: I{bytes}
@return: Resulting root XML element node or None.
@rtype: L{Element}|I{None} |
(module
(function_definition
(function_name_provision) function_name_provision
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_tool) identifier_tool
(type
(identifier_Tool) identifier_Tool
)type
)typed_parameter
)parameters
(type
(attribute
(attribute
(attribute
(identifier_docker) identifier_docker
(identifier_models) identifier_models
)attribute
(identifier_containers) identifier_containers
)attribute
(identifier_Container) identifier_Container
)attribute
)type
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_installed) identifier_is_installed
)attribute
(argument_list
(identifier_tool) identifier_tool
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_"tool is not installed: {}") string_"tool is not installed: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_tool) identifier_tool
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_client) identifier_client
(attribute
(attribute
(identifier_self) identifier_self
(identifier___installation) identifier___installation
)attribute
(identifier_docker) identifier_docker
)attribute
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_client) identifier_client
(identifier_containers) identifier_containers
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(attribute
(identifier_tool) identifier_tool
(identifier_image) identifier_image
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Provisions a mountable Docker container for a given tool. |
(module
(function_definition
(function_name_get_audits) function_name_get_audits
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_audits) identifier_audits
(list
(call
(identifier_TemplatedFile) identifier_TemplatedFile
(argument_list
(string_'/etc/login.defs') string_'/etc/login.defs'
(call
(identifier_LoginContext) identifier_LoginContext
(argument_list
)argument_list
)call
(keyword_argument
(identifier_template_dir) identifier_template_dir
(identifier_TEMPLATES_DIR) identifier_TEMPLATES_DIR
)keyword_argument
(keyword_argument
(identifier_user) identifier_user
(string_'root') string_'root'
)keyword_argument
(keyword_argument
(identifier_group) identifier_group
(string_'root') string_'root'
)keyword_argument
(keyword_argument
(identifier_mode) identifier_mode
(integer_0o0444) integer_0o0444
)keyword_argument
)argument_list
)call
)list
)assignment
)expression_statement
(return_statement
(identifier_audits) identifier_audits
)return_statement
)block
)function_definition
)module | Get OS hardening login.defs audits.
:returns: dictionary of audits |
(module
(function_definition
(function_name_to_python_) function_name_to_python_
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_table_name) identifier_table_name
(type
(identifier_str) identifier_str
)type
(string_"data") string_"data"
)typed_default_parameter
)parameters
(type
(identifier_list) identifier_list
)type
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_renderer) identifier_renderer
(attribute
(identifier_pytablewriter) identifier_pytablewriter
(identifier_PythonCodeTableWriter) identifier_PythonCodeTableWriter
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__build_export) identifier__build_export
)attribute
(argument_list
(identifier_renderer) identifier_renderer
(identifier_table_name) identifier_table_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_err) identifier_err
)attribute
(argument_list
(identifier_e) identifier_e
(string_"Can not convert data to python list") string_"Can not convert data to python list"
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Convert the main dataframe to python a python list
:param table_name: python variable name, defaults to "data"
:param table_name: str, optional
:return: a python list of lists with the data
:rtype: str
:example: ``ds.to_python_("myvar")`` |
(module
(function_definition
(function_name_is_valid) function_name_is_valid
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_primitive) identifier_is_primitive
)attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)boolean_operator
)parenthesized_expression
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_complex) identifier_is_complex
)attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)boolean_operator
)parenthesized_expression
)boolean_operator
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_list) identifier_is_list
)attribute
(attribute
(identifier_self) identifier_self
(identifier_nested) identifier_nested
)attribute
)boolean_operator
)parenthesized_expression
)boolean_operator
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_map) identifier_is_map
)attribute
(attribute
(identifier_self) identifier_self
(identifier_nested) identifier_nested
)attribute
)boolean_operator
)parenthesized_expression
)boolean_operator
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_model) identifier_is_model
)attribute
(attribute
(identifier_self) identifier_self
(identifier_nested) identifier_nested
)attribute
)boolean_operator
)parenthesized_expression
)boolean_operator
)return_statement
)block
)function_definition
)module | checks if type is a valid type |
(module
(function_definition
(function_name__request) function_name__request
(parameters
(identifier_self) identifier_self
(identifier_function) identifier_function
(identifier_params) identifier_params
(default_parameter
(identifier_method) identifier_method
(string_'POST') string_'POST'
)default_parameter
(default_parameter
(identifier_headers) identifier_headers
(dictionary
)dictionary
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_method) identifier_method
(string_'POST') string_'POST'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(attribute
(identifier_urllib) identifier_urllib
(identifier_parse) identifier_parse
)attribute
(identifier_urlencode) identifier_urlencode
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_"Content-type") string_"Content-type"
(string_"application/x-www-form-urlencoded") string_"application/x-www-form-urlencoded"
)pair
(pair
(string_"Accept") string_"Accept"
(string_"text/plain") string_"text/plain"
)pair
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(binary_operator
(string_'/%s/%s') string_'/%s/%s'
(tuple
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(identifier_function) identifier_function
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_path) identifier_path
(identifier_params) identifier_params
(identifier_headers) identifier_headers
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(identifier_getresponse) identifier_getresponse
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Builds a request object. |
(module
(function_definition
(function_name_from_inline) function_name_from_inline
(parameters
(typed_parameter
(identifier_cls) identifier_cls
(type
(generic_type
(identifier_Type) identifier_Type
(type_parameter
(type
(identifier_RevocationType) identifier_RevocationType
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_version) identifier_version
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_currency) identifier_currency
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_inline) identifier_inline
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_RevocationType) identifier_RevocationType
)type
(block
(expression_statement
(assignment
(identifier_cert_data) identifier_cert_data
(call
(attribute
(attribute
(identifier_Revocation) identifier_Revocation
(identifier_re_inline) identifier_re_inline
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_inline) identifier_inline
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cert_data) identifier_cert_data
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_MalformedDocumentError) identifier_MalformedDocumentError
(argument_list
(string_"Revokation") string_"Revokation"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pubkey) identifier_pubkey
(call
(attribute
(identifier_cert_data) identifier_cert_data
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_signature) identifier_signature
(call
(attribute
(identifier_cert_data) identifier_cert_data
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_version) identifier_version
(identifier_currency) identifier_currency
(identifier_pubkey) identifier_pubkey
(identifier_signature) identifier_signature
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return Revocation document instance from inline string
Only self.pubkey is populated.
You must populate self.identity with an Identity instance to use raw/sign/signed_raw methods
:param version: Version number
:param currency: Name of the currency
:param inline: Inline document
:return: |
(module
(function_definition
(function_name__prepare_env) function_name__prepare_env
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_document) identifier_document
)attribute
(identifier_settings) identifier_settings
)attribute
(identifier_env) identifier_env
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_env) identifier_env
(attribute
(identifier_self) identifier_self
(identifier_directive_name) identifier_directive_name
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(identifier_DirectiveState) identifier_DirectiveState
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_env) identifier_env
(attribute
(identifier_self) identifier_self
(identifier_directive_name) identifier_directive_name
)attribute
(identifier_state) identifier_state
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_env) identifier_env
(attribute
(identifier_self) identifier_self
(identifier_directive_name) identifier_directive_name
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_env) identifier_env
(identifier_state) identifier_state
)expression_list
)return_statement
)block
)function_definition
)module | Setup the document's environment, if necessary. |
(module
(function_definition
(function_name_multiply) function_name_multiply
(parameters
(identifier_self) identifier_self
(identifier_x1) identifier_x1
(identifier_x2) identifier_x2
(default_parameter
(identifier_out) identifier_out
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_out) identifier_out
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(identifier_self) identifier_self
(identifier_element) identifier_element
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_out) identifier_out
(identifier_self) identifier_self
)comparison_operator
(block
(raise_statement
(call
(identifier_LinearSpaceTypeError) identifier_LinearSpaceTypeError
(argument_list
(call
(attribute
(concatenated_string
(string_'`out` {!r} is not an element of ') string_'`out` {!r} is not an element of '
(string_'{!r}') string_'{!r}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_out) identifier_out
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_x1) identifier_x1
(identifier_self) identifier_self
)comparison_operator
(block
(raise_statement
(call
(identifier_LinearSpaceTypeError) identifier_LinearSpaceTypeError
(argument_list
(call
(attribute
(concatenated_string
(string_'`x1` {!r} is not an element of ') string_'`x1` {!r} is not an element of '
(string_'{!r}') string_'{!r}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_x1) identifier_x1
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_x2) identifier_x2
(identifier_self) identifier_self
)comparison_operator
(block
(raise_statement
(call
(identifier_LinearSpaceTypeError) identifier_LinearSpaceTypeError
(argument_list
(call
(attribute
(concatenated_string
(string_'`x2` {!r} is not an element of ') string_'`x2` {!r} is not an element of '
(string_'{!r}') string_'{!r}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_x2) identifier_x2
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__multiply) identifier__multiply
)attribute
(argument_list
(identifier_x1) identifier_x1
(identifier_x2) identifier_x2
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Return the pointwise product of ``x1`` and ``x2``.
Parameters
----------
x1, x2 : `LinearSpaceElement`
Multiplicands in the product.
out : `LinearSpaceElement`, optional
Element to which the result is written.
Returns
-------
out : `LinearSpaceElement`
Product of the elements. If ``out`` was provided, the
returned object is a reference to it. |
(module
(function_definition
(function_name_entropy_of_antennas) function_name_entropy_of_antennas
(parameters
(identifier_positions) identifier_positions
(default_parameter
(identifier_normalize) identifier_normalize
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_counter) identifier_counter
(call
(identifier_Counter) identifier_Counter
(generator_expression
(identifier_p) identifier_p
(for_in_clause
(identifier_p) identifier_p
(identifier_positions) identifier_positions
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_raw_entropy) identifier_raw_entropy
(call
(identifier_entropy) identifier_entropy
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_counter) identifier_counter
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_len) identifier_len
(argument_list
(identifier_counter) identifier_counter
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_normalize) identifier_normalize
(comparison_operator
(identifier_n) identifier_n
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(return_statement
(binary_operator
(identifier_raw_entropy) identifier_raw_entropy
(call
(attribute
(identifier_math) identifier_math
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_raw_entropy) identifier_raw_entropy
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | The entropy of visited antennas.
Parameters
----------
normalize: boolean, default is False
Returns a normalized entropy between 0 and 1. |
(module
(function_definition
(function_name_running_jobs) function_name_running_jobs
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_exit_on_error) identifier_exit_on_error
(True) True
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier_handling_exceptions) identifier_handling_exceptions
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_using_jobs) identifier_using_jobs
)attribute
(block
(import_from_statement
(dotted_name
(identifier_concurrent) identifier_concurrent
(identifier_futures) identifier_futures
)dotted_name
(dotted_name
(identifier_ProcessPoolExecutor) identifier_ProcessPoolExecutor
)dotted_name
)import_from_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_ProcessPoolExecutor) identifier_ProcessPoolExecutor
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_jobs) identifier_jobs
)attribute
)argument_list
)call
(as_pattern_target
(attribute
(identifier_self) identifier_self
(identifier_executor) identifier_executor
)attribute
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(yield
)yield
)expression_statement
)block
)with_statement
)block
(finally_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_executor) identifier_executor
)attribute
(None) None
)assignment
)expression_statement
)block
)finally_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(yield
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)with_statement
(if_statement
(identifier_exit_on_error) identifier_exit_on_error
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_exit_on_error) identifier_exit_on_error
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Initialize multiprocessing. |
(module
(function_definition
(function_name_format_item) function_name_format_item
(parameters
(identifier_self) identifier_self
(identifier_action) identifier_action
(default_parameter
(identifier_item_type) identifier_item_type
(string_'actor') string_'actor'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_action) identifier_action
(identifier_item_type) identifier_item_type
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'id') string_'id'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_uri) identifier_get_uri
)attribute
(argument_list
(identifier_action) identifier_action
(identifier_obj) identifier_obj
)argument_list
)call
)pair
(pair
(string_'url') string_'url'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_url) identifier_get_url
)attribute
(argument_list
(identifier_action) identifier_action
(identifier_obj) identifier_obj
)argument_list
)call
)pair
(pair
(string_'objectType') string_'objectType'
(attribute
(call
(attribute
(attribute
(identifier_ContentType) identifier_ContentType
(identifier_objects) identifier_objects
)attribute
(identifier_get_for_model) identifier_get_for_model
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
(identifier_name) identifier_name
)attribute
)pair
(pair
(string_'displayName') string_'displayName'
(call
(identifier_text_type) identifier_text_type
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Returns a formatted dictionary for an individual item based on the action and item_type. |
(module
(function_definition
(function_name_load_table) function_name_load_table
(parameters
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
)parameters
(block
(expression_statement
(assignment
(identifier_table_name) identifier_table_name
(call
(identifier_normalize_table_name) identifier_normalize_table_name
(argument_list
(identifier_table_name) identifier_table_name
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier_lock) identifier_lock
)attribute
)with_item
)with_clause
(block
(if_statement
(comparison_operator
(identifier_table_name) identifier_table_name
(attribute
(identifier_self) identifier_self
(identifier__tables) identifier__tables
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__tables) identifier__tables
)attribute
(identifier_table_name) identifier_table_name
)subscript
(call
(identifier_Table) identifier_Table
(argument_list
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tables) identifier__tables
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_table_name) identifier_table_name
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Load a table.
This will fail if the tables does not already exist in the database. If
the table exists, its columns will be reflected and are available on
the :py:class:`Table <dataset.Table>` object.
Returns a :py:class:`Table <dataset.Table>` instance.
::
table = db.load_table('population') |
(module
(function_definition
(function_name_macro2blackbox_outputs) function_name_macro2blackbox_outputs
(parameters
(identifier_self) identifier_self
(identifier_macro_indices) identifier_macro_indices
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_blackbox) identifier_blackbox
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'System is not blackboxed') string_'System is not blackboxed'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_macro2micro) identifier_macro2micro
)attribute
(argument_list
(identifier_macro_indices) identifier_macro_indices
)argument_list
)call
)argument_list
)call
(identifier_intersection) identifier_intersection
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_blackbox) identifier_blackbox
)attribute
(identifier_output_indices) identifier_output_indices
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given a set of macro elements, return the blackbox output elements
which compose these elements. |
(module
(function_definition
(function_name_perform_smooth) function_name_perform_smooth
(parameters
(identifier_x_values) identifier_x_values
(identifier_y_values) identifier_y_values
(default_parameter
(identifier_span) identifier_span
(None) None
)default_parameter
(default_parameter
(identifier_smoother_cls) identifier_smoother_cls
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_smoother_cls) identifier_smoother_cls
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_smoother_cls) identifier_smoother_cls
(identifier_DEFAULT_BASIC_SMOOTHER) identifier_DEFAULT_BASIC_SMOOTHER
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_smoother) identifier_smoother
(call
(identifier_smoother_cls) identifier_smoother_cls
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_smoother) identifier_smoother
(identifier_specify_data_set) identifier_specify_data_set
)attribute
(argument_list
(identifier_x_values) identifier_x_values
(identifier_y_values) identifier_y_values
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_smoother) identifier_smoother
(identifier_set_span) identifier_set_span
)attribute
(argument_list
(identifier_span) identifier_span
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_smoother) identifier_smoother
(identifier_compute) identifier_compute
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_smoother) identifier_smoother
)return_statement
)block
)function_definition
)module | Convenience function to run the basic smoother.
Parameters
----------
x_values : iterable
List of x value observations
y_ values : iterable
list of y value observations
span : float, optional
Fraction of data to use as the window
smoother_cls : Class
The class of smoother to use to smooth the data
Returns
-------
smoother : object
The smoother object with results stored on it. |
(module
(function_definition
(function_name__do_pnp) function_name__do_pnp
(parameters
(identifier_self) identifier_self
(identifier_pnp) identifier_pnp
(default_parameter
(identifier_anchor) identifier_anchor
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_anchor) identifier_anchor
(boolean_operator
(identifier_pnp) identifier_pnp
(call
(attribute
(identifier_pnp) identifier_pnp
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"PNP") string_"PNP"
)argument_list
)call
)boolean_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_anchor) identifier_anchor
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(identifier_find) identifier_find
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(attribute
(identifier_x) identifier_x
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"P") string_"P"
)argument_list
)call
)lambda
(identifier_anchor) identifier_anchor
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_pnp) identifier_pnp
)attribute
(line_continuation_\) line_continuation_\
(identifier_pnp) identifier_pnp
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_pnp) identifier_pnp
(identifier_OUTSIDE) identifier_OUTSIDE
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(attribute
(identifier_pnp) identifier_pnp
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"B-") string_"B-"
)argument_list
)call
(False) False
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_words) identifier_words
)attribute
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
(identifier_pnp) identifier_pnp
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pnp) identifier_pnp
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_words) identifier_words
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)argument_list
)call
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(identifier_m) identifier_m
(None) None
)comparison_operator
(comparison_operator
(identifier_m) identifier_m
(attribute
(identifier_self) identifier_self
(identifier__attachment) identifier__attachment
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pnp) identifier_pnp
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_words) identifier_words
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_ch) identifier_ch
(call
(identifier_PNPChunk) identifier_PNPChunk
(argument_list
(identifier_self) identifier_self
(list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_words) identifier_words
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)list
(keyword_argument
(identifier_type) identifier_type
(string_"PNP") string_"PNP"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pnp) identifier_pnp
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_ch) identifier_ch
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__attachment) identifier__attachment
)attribute
(identifier_m) identifier_m
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Attaches prepositional noun phrases.
Identifies PNP's from either the PNP tag or the P-attachment tag.
This does not determine the PP-anchor, it only groups words in a PNP chunk. |
(module
(function_definition
(function_name__general_multithread) function_name__general_multithread
(parameters
(identifier_func) identifier_func
)parameters
(block
(function_definition
(function_name_multithread) function_name_multithread
(parameters
(identifier_templates) identifier_templates
(identifier_stream) identifier_stream
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_pool_boy) identifier_pool_boy
(argument_list
(identifier_ThreadPool) identifier_ThreadPool
(call
(identifier_len) identifier_len
(argument_list
(identifier_stream) identifier_stream
)argument_list
)call
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(as_pattern_target
(identifier_pool) identifier_pool
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(identifier__pool_normxcorr) identifier__pool_normxcorr
(argument_list
(identifier_templates) identifier_templates
(identifier_stream) identifier_stream
(keyword_argument
(identifier_pool) identifier_pool
(identifier_pool) identifier_pool
)keyword_argument
(keyword_argument
(identifier_func) identifier_func
(identifier_func) identifier_func
)keyword_argument
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
(return_statement
(identifier_multithread) identifier_multithread
)return_statement
)block
)function_definition
)module | return the general multithreading function using func |
(module
(function_definition
(function_name_prepare_for_sending) function_name_prepare_for_sending
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(list_comprehension
(identifier_arbiter_link) identifier_arbiter_link
(for_in_clause
(identifier_arbiter_link) identifier_arbiter_link
(attribute
(identifier_self) identifier_self
(identifier_arbiters) identifier_arbiters
)attribute
)for_in_clause
(if_clause
(attribute
(identifier_arbiter_link) identifier_arbiter_link
(identifier_spare) identifier_spare
)attribute
)if_clause
)list_comprehension
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Serializing the configuration for my spare arbiter...') string_'Serializing the configuration for my spare arbiter...'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_spare_arbiter_conf) identifier_spare_arbiter_conf
)attribute
(call
(identifier_serialize) identifier_serialize
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | The configuration needs to be serialized before being sent to a spare arbiter
:return: None |
(module
(function_definition
(function_name_generate_antisense_sequence) function_name_generate_antisense_sequence
(parameters
(identifier_sequence) identifier_sequence
)parameters
(block
(expression_statement
(assignment
(identifier_dna_antisense) identifier_dna_antisense
(dictionary
(pair
(string_'A') string_'A'
(string_'T') string_'T'
)pair
(pair
(string_'T') string_'T'
(string_'A') string_'A'
)pair
(pair
(string_'C') string_'C'
(string_'G') string_'G'
)pair
(pair
(string_'G') string_'G'
(string_'C') string_'C'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_antisense) identifier_antisense
(list_comprehension
(subscript
(identifier_dna_antisense) identifier_dna_antisense
(identifier_x) identifier_x
)subscript
(for_in_clause
(identifier_x) identifier_x
(subscript
(identifier_sequence) identifier_sequence
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_antisense) identifier_antisense
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates the antisense sequence of a DNA strand. |
(module
(function_definition
(function_name_failover_limitation) function_name_failover_limitation
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_reachable) identifier_reachable
)attribute
)not_operator
(block
(return_statement
(string_'not reachable') string_'not reachable'
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tags) identifier_tags
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'nofailover') string_'nofailover'
(False) False
)argument_list
)call
(block
(return_statement
(string_'not allowed to promote') string_'not allowed to promote'
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_watchdog_failed) identifier_watchdog_failed
)attribute
(block
(return_statement
(string_'not watchdog capable') string_'not watchdog capable'
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Returns reason why this node can't promote or None if everything is ok. |
(module
(function_definition
(function_name_page_has_tag) function_name_page_has_tag
(parameters
(identifier_page) identifier_page
(identifier_tag) identifier_tag
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_models) identifier_models
)dotted_name
)relative_import
(dotted_name
(identifier_PageTags) identifier_PageTags
)dotted_name
)import_from_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_tag) identifier_tag
(string_'slug') string_'slug'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_slug) identifier_slug
(attribute
(identifier_tag) identifier_tag
(identifier_slug) identifier_slug
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_slug) identifier_slug
(identifier_tag) identifier_tag
)assignment
)expression_statement
)block
)else_clause
)if_statement
(try_statement
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_page) identifier_page
(identifier_pagetags) identifier_pagetags
)attribute
(identifier_tags) identifier_tags
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_slug) identifier_slug
(identifier_slug) identifier_slug
)keyword_argument
)argument_list
)call
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(attribute
(identifier_PageTags) identifier_PageTags
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check if a Page object is associated with the given tag.
:param page: a Page instance
:param tag: a Tag instance or a slug string.
:return: whether the Page instance has the given tag attached (False if no Page or no
attached PageTags exists)
:type: Boolean |
(module
(function_definition
(function_name_start_trial) function_name_start_trial
(parameters
(identifier_self) identifier_self
(identifier_trial) identifier_trial
(default_parameter
(identifier_checkpoint) identifier_checkpoint
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__commit_resources) identifier__commit_resources
)attribute
(argument_list
(attribute
(identifier_trial) identifier_trial
(identifier_resources) identifier_resources
)attribute
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__start_trial) identifier__start_trial
)attribute
(argument_list
(identifier_trial) identifier_trial
(identifier_checkpoint) identifier_checkpoint
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_"Error starting runner for Trial %s") string_"Error starting runner for Trial %s"
(call
(identifier_str) identifier_str
(argument_list
(identifier_trial) identifier_trial
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_error_msg) identifier_error_msg
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_format_exc) identifier_format_exc
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__stop_trial) identifier__stop_trial
)attribute
(argument_list
(identifier_trial) identifier_trial
(keyword_argument
(identifier_error) identifier_error
(True) True
)keyword_argument
(keyword_argument
(identifier_error_msg) identifier_error_msg
(identifier_error_msg) identifier_error_msg
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_e) identifier_e
(identifier_AbortTrialExecution) identifier_AbortTrialExecution
)argument_list
)call
(block
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_trial) identifier_trial
(identifier_clear_checkpoint) identifier_clear_checkpoint
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Trying to start runner for Trial %s without checkpoint.") string_"Trying to start runner for Trial %s without checkpoint."
(call
(identifier_str) identifier_str
(argument_list
(identifier_trial) identifier_trial
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__start_trial) identifier__start_trial
)attribute
(argument_list
(identifier_trial) identifier_trial
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_"Error starting runner for Trial %s, aborting!") string_"Error starting runner for Trial %s, aborting!"
(call
(identifier_str) identifier_str
(argument_list
(identifier_trial) identifier_trial
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_error_msg) identifier_error_msg
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_format_exc) identifier_format_exc
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__stop_trial) identifier__stop_trial
)attribute
(argument_list
(identifier_trial) identifier_trial
(keyword_argument
(identifier_error) identifier_error
(True) True
)keyword_argument
(keyword_argument
(identifier_error_msg) identifier_error_msg
(identifier_error_msg) identifier_error_msg
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Starts the trial.
Will not return resources if trial repeatedly fails on start.
Args:
trial (Trial): Trial to be started.
checkpoint (Checkpoint): A Python object or path storing the state
of trial. |
(module
(function_definition
(function_name_get_zones) function_name_get_zones
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_q) identifier_q
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(string_"/v1/zones") string_"/v1/zones"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(identifier_build_params) identifier_build_params
(argument_list
(identifier_q) identifier_q
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rest_api_connection) identifier_rest_api_connection
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_uri) identifier_uri
(identifier_params) identifier_params
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a list of zones across all of the user's accounts.
Keyword Arguments:
q -- The search parameters, in a dict. Valid keys are:
name - substring match of the zone name
zone_type - one of:
PRIMARY
SECONDARY
ALIAS
sort -- The sort column used to order the list. Valid values for the sort field are:
NAME
ACCOUNT_NAME
RECORD_COUNT
ZONE_TYPE
reverse -- Whether the list is ascending(False) or descending(True)
offset -- The position in the list for the first returned element(0 based)
limit -- The maximum number of rows to be returned. |
(module
(function_definition
(function_name_apply_widget_css_class) function_name_apply_widget_css_class
(parameters
(identifier_self) identifier_self
(identifier_field_name) identifier_field_name
)parameters
(block
(expression_statement
(assignment
(identifier_field) identifier_field
(subscript
(attribute
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)attribute
(identifier_field_name) identifier_field_name
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_class_name) identifier_class_name
(call
(attribute
(identifier_self) identifier_self
(identifier_get_widget_css_class) identifier_get_widget_css_class
)attribute
(argument_list
(identifier_field_name) identifier_field_name
(identifier_field) identifier_field
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_class_name) identifier_class_name
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_field) identifier_field
(identifier_widget) identifier_widget
)attribute
(identifier_attrs) identifier_attrs
)attribute
(string_'class') string_'class'
)subscript
(call
(identifier_join_css_class) identifier_join_css_class
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_field) identifier_field
(identifier_widget) identifier_widget
)attribute
(identifier_attrs) identifier_attrs
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'class') string_'class'
(None) None
)argument_list
)call
(identifier_class_name) identifier_class_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Applies CSS classes to widgets if available.
The method uses the `get_widget_css_class` method to determine if the widget
CSS class should be changed. If a CSS class is returned, it is appended to
the current value of the class property of the widget instance.
:param field_name: A field name of the form. |
(module
(function_definition
(function_name_update_mute) function_name_update_mute
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__group) identifier__group
)attribute
(string_'muted') string_'muted'
)subscript
(subscript
(identifier_data) identifier_data
(string_'mute') string_'mute'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_'updated mute on %s') string_'updated mute on %s'
(attribute
(identifier_self) identifier_self
(identifier_friendly_name) identifier_friendly_name
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update mute. |
(module
(function_definition
(function_name__get_max_sigma) function_name__get_max_sigma
(parameters
(identifier_self) identifier_self
(identifier_R) identifier_R
)parameters
(block
(expression_statement
(assignment
(identifier_max_sigma) identifier_max_sigma
(binary_operator
(float_2.0) float_2.0
(call
(attribute
(identifier_math) identifier_math
(identifier_pow) identifier_pow
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_nanmax) identifier_nanmax
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_std) identifier_std
)attribute
(argument_list
(identifier_R) identifier_R
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)argument_list
)call
(integer_2) integer_2
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_max_sigma) identifier_max_sigma
)return_statement
)block
)function_definition
)module | Calculate maximum sigma of scanner RAS coordinates
Parameters
----------
R : 2D array, with shape [n_voxel, n_dim]
The coordinate matrix of fMRI data from one subject
Returns
-------
max_sigma : float
The maximum sigma of scanner coordinates. |
(module
(function_definition
(function_name_rownumbers) function_name_rownumbers
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_table) identifier_table
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_table) identifier_table
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__rownumbers) identifier__rownumbers
)attribute
(argument_list
(call
(identifier_Table) identifier_Table
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__rownumbers) identifier__rownumbers
)attribute
(argument_list
(identifier_table) identifier_table
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a list containing the row numbers of this table.
This method can be useful after a selection or a sort.
It returns the row numbers of the rows in this table with respect
to the given table. If no table is given, the original table is used.
For example::
t = table('W53.MS')
t1 = t.selectrows([1,3,5,7,9]) # select a few rows
t1.rownumbers(t)
# [1 3 5 7 9]
t2 = t1.selectrows([2,5]) # select rows from the selection
t2.rownumbers(t1)
# [2 5] # rownrs of t2 in table t1
t2.rownumbers(t)
# [3 9] # rownrs of t2 in t
t2.rownumbers()
# [3 9]
The last statements show that the method returns the row numbers
referring to the given table. Table t2 contains rows 2 and 5 in
table t1, which are rows 3 and 9 in table t. |
(module
(function_definition
(function_name_zero_pad) function_name_zero_pad
(parameters
(identifier_ts) identifier_ts
(identifier_n_zeros) identifier_n_zeros
)parameters
(block
(expression_statement
(assignment
(identifier_zeros_shape) identifier_zeros_shape
(binary_operator
(subscript
(attribute
(identifier_ts) identifier_ts
(identifier_shape) identifier_shape
)attribute
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(tuple
(identifier_n_zeros) identifier_n_zeros
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zzs) identifier_zzs
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_zeros_shape) identifier_zeros_shape
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_data) identifier_new_data
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(tuple
(identifier_zzs) identifier_zzs
(attribute
(identifier_ts) identifier_ts
(identifier_data) identifier_data
)attribute
(identifier_zzs) identifier_zzs
)tuple
(keyword_argument
(identifier_axis) identifier_axis
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_nts) identifier_nts
(identifier_TimeSeries) identifier_TimeSeries
)attribute
(argument_list
(identifier_new_data) identifier_new_data
(keyword_argument
(identifier_sampling_rate) identifier_sampling_rate
(attribute
(identifier_ts) identifier_ts
(identifier_sampling_rate) identifier_sampling_rate
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Pad a nitime.TimeSeries class instance with n_zeros before and after the
data
Parameters
----------
ts : a nitime.TimeSeries class instance |
(module
(function_definition
(function_name_version) function_name_version
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dll) identifier__dll
)attribute
(identifier_JLINKARM_GetDLLVersion) identifier_JLINKARM_GetDLLVersion
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_major) identifier_major
(binary_operator
(identifier_version) identifier_version
(integer_10000) integer_10000
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_minor) identifier_minor
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_version) identifier_version
(integer_100) integer_100
)binary_operator
)parenthesized_expression
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rev) identifier_rev
(binary_operator
(identifier_version) identifier_version
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rev) identifier_rev
(conditional_expression
(string_'') string_''
(comparison_operator
(identifier_rev) identifier_rev
(integer_0) integer_0
)comparison_operator
(call
(identifier_chr) identifier_chr
(argument_list
(binary_operator
(binary_operator
(identifier_rev) identifier_rev
(call
(identifier_ord) identifier_ord
(argument_list
(string_'a') string_'a'
)argument_list
)call
)binary_operator
(integer_1) integer_1
)binary_operator
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(return_statement
(binary_operator
(string_'%d.%02d%s') string_'%d.%02d%s'
(tuple
(identifier_major) identifier_major
(identifier_minor) identifier_minor
(identifier_rev) identifier_rev
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Returns the device's version.
The device's version is returned as a string of the format: M.mr where
``M`` is major number, ``m`` is minor number, and ``r`` is revision
character.
Args:
self (JLink): the ``JLink`` instance
Returns:
Device version string. |
(module
(function_definition
(function_name_error_handler) function_name_error_handler
(parameters
(identifier_self) identifier_self
(identifier_handler) identifier_handler
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_opened) identifier_opened
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(boolean_operator
(identifier_handler) identifier_handler
(attribute
(identifier_util) identifier_util
(identifier_noop) identifier_noop
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__error_handler) identifier__error_handler
)attribute
(call
(attribute
(attribute
(identifier_enums) identifier_enums
(identifier_JLinkFunctions) identifier_JLinkFunctions
)attribute
(identifier_LOG_PROTOTYPE) identifier_LOG_PROTOTYPE
)attribute
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dll) identifier__dll
)attribute
(identifier_JLINKARM_SetErrorOutHandler) identifier_JLINKARM_SetErrorOutHandler
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__error_handler) identifier__error_handler
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Setter for the error handler function.
If the DLL is open, this function is a no-op, so it should be called
prior to calling ``open()``.
Args:
self (JLink): the ``JLink`` instance
handler (function): function to call on error messages
Returns:
``None`` |
(module
(function_definition
(function_name_single_row_or_col_df_to_series) function_name_single_row_or_col_df_to_series
(parameters
(typed_parameter
(identifier_desired_type) identifier_desired_type
(type
(generic_type
(identifier_Type) identifier_Type
(type_parameter
(type
(identifier_T) identifier_T
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_single_rowcol_df) identifier_single_rowcol_df
(type
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_logger) identifier_logger
(type
(identifier_Logger) identifier_Logger
)type
)typed_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(line_continuation_\) line_continuation_\
(type
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
)type
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(subscript
(call
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_transpose) identifier_transpose
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(subscript
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
(integer_2) integer_2
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_index) identifier_index
)attribute
(attribute
(identifier_pd) identifier_pd
(identifier_RangeIndex) identifier_RangeIndex
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_set_index) identifier_set_index
)attribute
(argument_list
(subscript
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_columns) identifier_columns
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_d) identifier_d
(subscript
(attribute
(identifier_d) identifier_d
(identifier_columns) identifier_columns
)attribute
(integer_0) integer_0
)subscript
)subscript
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(identifier_single_rowcol_df) identifier_single_rowcol_df
)assignment
)expression_statement
(return_statement
(subscript
(identifier_d) identifier_d
(subscript
(attribute
(identifier_d) identifier_d
(identifier_columns) identifier_columns
)attribute
(integer_0) integer_0
)subscript
)subscript
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(binary_operator
(concatenated_string
(string_'Unable to convert provided dataframe to a series : ') string_'Unable to convert provided dataframe to a series : '
(string_'expected exactly 1 row or 1 column, found : ') string_'expected exactly 1 row or 1 column, found : '
)concatenated_string
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_single_rowcol_df) identifier_single_rowcol_df
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
)binary_operator
(string_'') string_''
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Helper method to convert a dataframe with one row or one or two columns into a Series
:param desired_type:
:param single_col_df:
:param logger:
:param kwargs:
:return: |
(module
(function_definition
(function_name_create_service) function_name_create_service
(parameters
(identifier_self) identifier_self
(identifier_service_type) identifier_service_type
(identifier_plan_name) identifier_plan_name
(identifier_service_name) identifier_service_name
(identifier_params) identifier_params
(default_parameter
(identifier_async) identifier_async
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_space) identifier_space
)attribute
(identifier_has_service_with_name) identifier_has_service_with_name
)attribute
(argument_list
(identifier_service_name) identifier_service_name
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Service already exists with that name.") string_"Service already exists with that name."
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_instance) identifier_get_instance
)attribute
(argument_list
(identifier_service_name) identifier_service_name
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_space) identifier_space
)attribute
(identifier_has_service_of_type) identifier_has_service_of_type
)attribute
(argument_list
(identifier_service_type) identifier_service_type
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Service type already exists.") string_"Service type already exists."
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_guid) identifier_guid
(call
(attribute
(identifier_self) identifier_self
(identifier_get_service_plan_guid) identifier_get_service_plan_guid
)attribute
(argument_list
(identifier_service_type) identifier_service_type
(identifier_plan_name) identifier_plan_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_guid) identifier_guid
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"No service plan named: %s") string_"No service plan named: %s"
(parenthesized_expression
(identifier_plan_name) identifier_plan_name
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(dictionary
(pair
(string_'name') string_'name'
(identifier_service_name) identifier_service_name
)pair
(pair
(string_'space_guid') string_'space_guid'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_space) identifier_space
)attribute
(identifier_guid) identifier_guid
)attribute
)pair
(pair
(string_'service_plan_guid') string_'service_plan_guid'
(identifier_guid) identifier_guid
)pair
(pair
(string_'parameters') string_'parameters'
(identifier_params) identifier_params
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uri) identifier_uri
(string_'/v2/service_instances?accepts_incomplete=true') string_'/v2/service_instances?accepts_incomplete=true'
)assignment
)expression_statement
(if_statement
(identifier_async) identifier_async
(block
(expression_statement
(augmented_assignment
(identifier_uri) identifier_uri
(string_'&async=true') string_'&async=true'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_api) identifier_api
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_uri) identifier_uri
(identifier_body) identifier_body
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a service instance. |
(module
(function_definition
(function_name_get_parent_banks) function_name_get_parent_banks
(parameters
(identifier_self) identifier_self
(identifier_bank_id) identifier_bank_id
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(identifier_get_parent_catalogs) identifier_get_parent_catalogs
)attribute
(argument_list
(keyword_argument
(identifier_catalog_id) identifier_catalog_id
(identifier_bank_id) identifier_bank_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier_BankLookupSession) identifier_BankLookupSession
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__proxy) identifier__proxy
)attribute
(attribute
(identifier_self) identifier_self
(identifier__runtime) identifier__runtime
)attribute
)argument_list
)call
(identifier_get_banks_by_ids) identifier_get_banks_by_ids
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_parent_bank_ids) identifier_get_parent_bank_ids
)attribute
(argument_list
(identifier_bank_id) identifier_bank_id
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the parents of the given bank.
arg: bank_id (osid.id.Id): a bank ``Id``
return: (osid.assessment.BankList) - the parents of the bank
raise: NotFound - ``bank_id`` is not found
raise: NullArgument - ``bank_id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure occurred
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_data_received) function_name_data_received
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Starting: data_received") string_"Starting: data_received"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Received %d bytes from PLM: %s') string_'Received %d bytes from PLM: %s'
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(call
(attribute
(identifier_binascii) identifier_binascii
(identifier_hexlify) identifier_hexlify
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__buffer) identifier__buffer
)attribute
(identifier_put_nowait) identifier_put_nowait
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_ensure_future) identifier_ensure_future
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__peel_messages_from_buffer) identifier__peel_messages_from_buffer
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Finishing: data_received") string_"Finishing: data_received"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Receive data from the protocol.
Called when asyncio.Protocol detects received data from network. |
(module
(function_definition
(function_name_getbulk_by_oid) function_name_getbulk_by_oid
(parameters
(identifier_self) identifier_self
(identifier_non_repeaters) identifier_non_repeaters
(identifier_max_repetitions) identifier_max_repetitions
(list_splat_pattern
(identifier_oid) identifier_oid
)list_splat_pattern
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'3') string_'3'
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_errorIndication) identifier_errorIndication
(identifier_errorStatus) identifier_errorStatus
(identifier_errorIndex) identifier_errorIndex
(identifier_varBinds) identifier_varBinds
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmdGen) identifier_cmdGen
)attribute
(identifier_getCmd) identifier_getCmd
)attribute
(argument_list
(call
(attribute
(identifier_cmdgen) identifier_cmdgen
(identifier_UsmUserData) identifier_UsmUserData
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
)argument_list
)call
(call
(attribute
(identifier_cmdgen) identifier_cmdgen
(identifier_UdpTransportTarget) identifier_UdpTransportTarget
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)tuple
)argument_list
)call
(identifier_non_repeaters) identifier_non_repeaters
(identifier_max_repetitions) identifier_max_repetitions
(list_splat
(identifier_oid) identifier_oid
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'2') string_'2'
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_errorIndication) identifier_errorIndication
(identifier_errorStatus) identifier_errorStatus
(identifier_errorIndex) identifier_errorIndex
(identifier_varBindTable) identifier_varBindTable
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cmdGen) identifier_cmdGen
)attribute
(identifier_bulkCmd) identifier_bulkCmd
)attribute
(argument_list
(call
(attribute
(identifier_cmdgen) identifier_cmdgen
(identifier_CommunityData) identifier_CommunityData
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_community) identifier_community
)attribute
)argument_list
)call
(call
(attribute
(identifier_cmdgen) identifier_cmdgen
(identifier_UdpTransportTarget) identifier_UdpTransportTarget
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)tuple
)argument_list
)call
(identifier_non_repeaters) identifier_non_repeaters
(identifier_max_repetitions) identifier_max_repetitions
(list_splat
(identifier_oid) identifier_oid
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(return_statement
(list
)list
)return_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___bulk_result__) identifier___bulk_result__
)attribute
(argument_list
(identifier_errorIndication) identifier_errorIndication
(identifier_errorStatus) identifier_errorStatus
(identifier_errorIndex) identifier_errorIndex
(identifier_varBindTable) identifier_varBindTable
)argument_list
)call
)return_statement
)block
)function_definition
)module | SNMP getbulk request.
In contrast to snmpwalk, this information will typically be gathered in
a single transaction with the agent, rather than one transaction per
variable found.
* non_repeaters: This specifies the number of supplied variables that
should not be iterated over.
* max_repetitions: This specifies the maximum number of iterations over
the repeating variables.
* oid: oid list
> Return a list of dicts |
(module
(function_definition
(function_name_factory) function_name_factory
(parameters
(identifier_data) identifier_data
)parameters
(block
(if_statement
(comparison_operator
(string_'object') string_'object'
(identifier_data) identifier_data
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_UnknownAPIResource) identifier_UnknownAPIResource
)attribute
(argument_list
(string_'Missing `object` key in resource.') string_'Missing `object` key in resource.'
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_reconstituable_api_resource_type) identifier_reconstituable_api_resource_type
(call
(attribute
(identifier_ReconstituableAPIResource) identifier_ReconstituableAPIResource
(identifier___subclasses__) identifier___subclasses__
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_reconstituable_api_resource_type) identifier_reconstituable_api_resource_type
(identifier_object_type) identifier_object_type
)attribute
(subscript
(identifier_data) identifier_data
(string_'object') string_'object'
)subscript
)comparison_operator
(block
(return_statement
(call
(identifier_reconstituable_api_resource_type) identifier_reconstituable_api_resource_type
(argument_list
(dictionary_splat
(identifier_data) identifier_data
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_UnknownAPIResource) identifier_UnknownAPIResource
)attribute
(argument_list
(binary_operator
(binary_operator
(string_'Unknown object `') string_'Unknown object `'
(subscript
(identifier_data) identifier_data
(string_'object') string_'object'
)subscript
)binary_operator
(string_'`.') string_'`.'
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Try to reconstruct the APIResource from its data.
:param data: The APIResource data
:type data: dict
:return: The guessed APIResource
:raise
exceptions.UnkownAPIResource when it's impossible to reconstruct the APIResource from its data. |
(module
(function_definition
(function_name_encodeEntitiesReentrant) function_name_encodeEntitiesReentrant
(parameters
(identifier_self) identifier_self
(identifier_input) identifier_input
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_libxml2mod) identifier_libxml2mod
(identifier_xmlEncodeEntitiesReentrant) identifier_xmlEncodeEntitiesReentrant
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__o) identifier__o
)attribute
(identifier_input) identifier_input
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Do a global encoding of a string, replacing the predefined
entities and non ASCII values with their entities and
CharRef counterparts. Contrary to xmlEncodeEntities, this
routine is reentrant, and result must be deallocated. |
(module
(function_definition
(function_name_move_entry_in_group) function_name_move_entry_in_group
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_entry) identifier_entry
(None) None
)default_parameter
(default_parameter
(identifier_index) identifier_index
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_entry) identifier_entry
(None) None
)comparison_operator
(comparison_operator
(identifier_index) identifier_index
(None) None
)comparison_operator
)boolean_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
(identifier_v1Entry) identifier_v1Entry
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_index) identifier_index
)argument_list
)call
(identifier_int) identifier_int
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_KPError) identifier_KPError
(argument_list
(string_"Need an entry and an index.") string_"Need an entry and an index."
)argument_list
)call
)raise_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(identifier_index) identifier_index
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_index) identifier_index
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_group) identifier_group
)attribute
(identifier_entries) identifier_entries
)attribute
)argument_list
)call
(integer_1) integer_1
)binary_operator
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_KPError) identifier_KPError
(argument_list
(string_"Index is not valid.") string_"Index is not valid."
)argument_list
)call
)raise_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_entry) identifier_entry
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_KPError) identifier_KPError
(argument_list
(string_"Entry not found.") string_"Entry not found."
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_pos_in_group) identifier_pos_in_group
(call
(attribute
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_group) identifier_group
)attribute
(identifier_entries) identifier_entries
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos_in_entries) identifier_pos_in_entries
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_entry_at_index) identifier_entry_at_index
(subscript
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_group) identifier_group
)attribute
(identifier_entries) identifier_entries
)attribute
(identifier_index) identifier_index
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos_in_entries2) identifier_pos_in_entries2
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_entry_at_index) identifier_entry_at_index
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_group) identifier_group
)attribute
(identifier_entries) identifier_entries
)attribute
(identifier_index) identifier_index
)subscript
(identifier_entry) identifier_entry
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_entry) identifier_entry
(identifier_group) identifier_group
)attribute
(identifier_entries) identifier_entries
)attribute
(identifier_pos_in_group) identifier_pos_in_group
)subscript
(identifier_entry_at_index) identifier_entry_at_index
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
(identifier_pos_in_entries2) identifier_pos_in_entries2
)subscript
(identifier_entry) identifier_entry
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
(identifier_pos_in_entries) identifier_pos_in_entries
)subscript
(identifier_entry_at_index) identifier_entry_at_index
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Move entry to another position inside a group.
An entry and a valid index to insert the entry in the
entry list of the holding group is needed. 0 means
that the entry is moved to the first position 1 to
the second and so on. |
(module
(function_definition
(function_name___init_configrs) function_name___init_configrs
(parameters
(identifier_self) identifier_self
(identifier_rs_cfg) identifier_rs_cfg
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_rs_cfg) identifier_rs_cfg
(string_'id') string_'id'
)subscript
(call
(attribute
(identifier_rs_cfg) identifier_rs_cfg
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'rs_id') string_'rs_id'
(None) None
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_member) identifier_member
(call
(attribute
(identifier_rs_cfg) identifier_rs_cfg
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'members') string_'members'
(list
(dictionary
)dictionary
)list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_member) identifier_member
(string_'procParams') string_'procParams'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__strip_auth) identifier__strip_auth
)attribute
(argument_list
(call
(attribute
(identifier_member) identifier_member
(identifier_get) identifier_get
)attribute
(argument_list
(string_'procParams') string_'procParams'
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_member) identifier_member
(string_'procParams') string_'procParams'
)subscript
(string_'configsvr') string_'configsvr'
)subscript
(True) True
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_enable_ipv6) identifier_enable_ipv6
)attribute
(block
(expression_statement
(call
(attribute
(identifier_common) identifier_common
(identifier_enable_ipv6_single) identifier_enable_ipv6_single
)attribute
(argument_list
(subscript
(identifier_member) identifier_member
(string_'procParams') string_'procParams'
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_rs_cfg) identifier_rs_cfg
(string_'sslParams') string_'sslParams'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_sslParams) identifier_sslParams
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__configsvrs) identifier__configsvrs
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(identifier_ReplicaSets) identifier_ReplicaSets
(argument_list
)argument_list
)call
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_rs_cfg) identifier_rs_cfg
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create and start a config replica set. |
(module
(function_definition
(function_name_fswap) function_name_fswap
(parameters
(identifier_p) identifier_p
(identifier_q) identifier_q
)parameters
(block
(expression_statement
(yield
(expression_list
(call
(attribute
(identifier_cirq) identifier_cirq
(identifier_ISWAP) identifier_ISWAP
)attribute
(argument_list
(identifier_q) identifier_q
(identifier_p) identifier_p
)argument_list
)call
(binary_operator
(call
(attribute
(identifier_cirq) identifier_cirq
(identifier_Z) identifier_Z
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(float_1.5) float_1.5
)binary_operator
)expression_list
)yield
)expression_statement
(expression_statement
(yield
(binary_operator
(call
(attribute
(identifier_cirq) identifier_cirq
(identifier_Z) identifier_Z
)attribute
(argument_list
(identifier_q) identifier_q
)argument_list
)call
(float_1.5) float_1.5
)binary_operator
)yield
)expression_statement
)block
)function_definition
)module | Decompose the Fermionic SWAP gate into two single-qubit gates and
one iSWAP gate.
Args:
p: the id of the first qubit
q: the id of the second qubit |
(module
(function_definition
(function_name_register_or_check) function_name_register_or_check
(parameters
(identifier_klass) identifier_klass
(identifier_finish) identifier_finish
(identifier_mean) identifier_mean
(identifier_between) identifier_between
(identifier_refresh_presision) identifier_refresh_presision
(identifier_configuration) identifier_configuration
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_m) identifier_m
(identifier_created) identifier_created
)pattern_list
(call
(attribute
(attribute
(identifier_klass) identifier_klass
(identifier_objects) identifier_objects
)attribute
(identifier_get_or_create) identifier_get_or_create
)attribute
(argument_list
(keyword_argument
(identifier_finish) identifier_finish
(identifier_finish) identifier_finish
)keyword_argument
(keyword_argument
(identifier_configuration) identifier_configuration
(identifier_configuration) identifier_configuration
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_created) identifier_created
(block
(expression_statement
(assignment
(attribute
(identifier_m) identifier_m
(identifier_mean) identifier_mean
)attribute
(identifier_mean) identifier_mean
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_m) identifier_m
(identifier_between) identifier_between
)attribute
(identifier_between) identifier_between
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_m) identifier_m
(identifier_refresh_presision) identifier_refresh_presision
)attribute
(identifier_refresh_presision) identifier_refresh_presision
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_m) identifier_m
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_diff) identifier_diff
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(attribute
(identifier_m) identifier_m
(identifier_mean) identifier_mean
)attribute
)argument_list
)call
(identifier_mean) identifier_mean
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_diff) identifier_diff
(float_0.006) float_0.006
)comparison_operator
(comparison_operator
(attribute
(identifier_m) identifier_m
(identifier_between) identifier_between
)attribute
(identifier_between) identifier_between
)comparison_operator
)boolean_operator
(comparison_operator
(attribute
(identifier_m) identifier_m
(identifier_refresh_presision) identifier_refresh_presision
)attribute
(identifier_refresh_presision) identifier_refresh_presision
)comparison_operator
)boolean_operator
)parenthesized_expression
)not_operator
(block
(raise_statement
(call
(identifier_InvalidMeasurementError) identifier_InvalidMeasurementError
(argument_list
(string_"There are diferents values for the same measurement.") string_"There are diferents values for the same measurement."
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_m) identifier_m
)return_statement
)block
)function_definition
)module | Return the active configurations. |
(module
(function_definition
(function_name_post_silence_request) function_name_post_silence_request
(parameters
(identifier_self) identifier_self
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__request) identifier__request
)attribute
(argument_list
(string_'POST') string_'POST'
(string_'/silenced') string_'/silenced'
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Create a silence entry. |
(module
(function_definition
(function_name_update_account) function_name_update_account
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_api) identifier_api
(call
(attribute
(identifier_self) identifier_self
(identifier__get_api) identifier__get_api
)attribute
(argument_list
(attribute
(identifier_iam) identifier_iam
(identifier_AccountAdminApi) identifier_AccountAdminApi
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_account) identifier_account
(call
(attribute
(identifier_Account) identifier_Account
(identifier__create_request_map) identifier__create_request_map
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(identifier_AccountUpdateReq) identifier_AccountUpdateReq
(argument_list
(dictionary_splat
(identifier_account) identifier_account
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Account) identifier_Account
(argument_list
(call
(attribute
(identifier_api) identifier_api
(identifier_update_my_account) identifier_update_my_account
)attribute
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update details of account associated with current API key.
:param str address_line1: Postal address line 1.
:param str address_line2: Postal address line 2.
:param str city: The city part of the postal address.
:param str display_name: The display name for the account.
:param str country: The country part of the postal address.
:param str company: The name of the company.
:param str state: The state part of the postal address.
:param str contact: The name of the contact person for this account.
:param str postal_code: The postal code part of the postal address.
:param str parent_id: The ID of the parent account.
:param str phone_number: The phone number of the company.
:param str email: Email address for this account.
:param list[str] aliases: List of aliases
:returns: an account object.
:rtype: Account |
(module
(function_definition
(function_name_unixlisten) function_name_unixlisten
(parameters
(identifier_path) identifier_path
(identifier_onlink) identifier_onlink
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
(pair
(string_'path') string_'path'
(identifier_path) identifier_path
)pair
(pair
(string_'unix') string_'unix'
(True) True
)pair
)dictionary
)assignment
)expression_statement
(function_definition
(function_name_onconn) function_name_onconn
(parameters
(identifier_reader) identifier_reader
(identifier_writer) identifier_writer
)parameters
(block
(expression_statement
(assignment
(identifier_link) identifier_link
(await
(call
(attribute
(identifier_Link) identifier_Link
(identifier_anit) identifier_anit
)attribute
(argument_list
(identifier_reader) identifier_reader
(identifier_writer) identifier_writer
(keyword_argument
(identifier_info) identifier_info
(identifier_info) identifier_info
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_link) identifier_link
(identifier_schedCoro) identifier_schedCoro
)attribute
(argument_list
(call
(identifier_onlink) identifier_onlink
(argument_list
(identifier_link) identifier_link
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
(return_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_start_unix_server) identifier_start_unix_server
)attribute
(argument_list
(identifier_onconn) identifier_onconn
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Start an PF_UNIX server listening on the given path. |
(module
(function_definition
(function_name_predict_proba) function_name_predict_proba
(parameters
(identifier_estimator) identifier_estimator
(identifier_X) identifier_X
)parameters
(block
(if_statement
(call
(identifier_is_probabilistic_classifier) identifier_is_probabilistic_classifier
(argument_list
(identifier_estimator) identifier_estimator
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_proba) identifier_proba
)pattern_list
(call
(attribute
(identifier_estimator) identifier_estimator
(identifier_predict_proba) identifier_predict_proba
)attribute
(argument_list
(identifier_X) identifier_X
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_proba) identifier_proba
)return_statement
)block
(except_clause
(identifier_NotImplementedError) identifier_NotImplementedError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return result of predict_proba, if an estimator supports it, or None. |
(module
(function_definition
(function_name__rewrite_q) function_name__rewrite_q
(parameters
(identifier_self) identifier_self
(identifier_q) identifier_q
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_q) identifier_q
(identifier_tuple) identifier_tuple
)argument_list
)call
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_q) identifier_q
)argument_list
)call
(integer_2) integer_2
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(call
(identifier_rewrite_lookup_key) identifier_rewrite_lookup_key
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(subscript
(identifier_q) identifier_q
(integer_0) integer_0
)subscript
)argument_list
)call
(subscript
(identifier_q) identifier_q
(integer_1) integer_1
)subscript
)expression_list
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_q) identifier_q
(identifier_Node) identifier_Node
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_q) identifier_q
(identifier_children) identifier_children
)attribute
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__rewrite_q) identifier__rewrite_q
)attribute
(attribute
(identifier_q) identifier_q
(identifier_children) identifier_children
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_q) identifier_q
)return_statement
)block
)function_definition
)module | Rewrite field names inside Q call. |
(module
(function_definition
(function_name_checkout) function_name_checkout
(parameters
(identifier_self) identifier_self
(identifier_ref) identifier_ref
(default_parameter
(identifier_branch) identifier_branch
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_git_checkout) identifier_git_checkout
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_repo_dir) identifier_repo_dir
)attribute
(identifier_ref) identifier_ref
(keyword_argument
(identifier_branch) identifier_branch
(identifier_branch) identifier_branch
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Do a git checkout of `ref`. |
(module
(function_definition
(function_name_comment) function_name_comment
(parameters
(identifier_value) identifier_value
(identifier_comment_text) identifier_comment_text
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_Doc) identifier_Doc
)argument_list
)call
(block
(return_statement
(call
(identifier_comment_doc) identifier_comment_doc
(argument_list
(identifier_value) identifier_value
(identifier_comment_text) identifier_comment_text
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_comment_value) identifier_comment_value
(argument_list
(identifier_value) identifier_value
(identifier_comment_text) identifier_comment_text
)argument_list
)call
)return_statement
)block
)function_definition
)module | Annotates a value or a Doc with a comment.
When printed by prettyprinter, the comment will be
rendered next to the value or Doc. |
(module
(function_definition
(function_name_add_access_list) function_name_add_access_list
(parameters
(identifier_self) identifier_self
(identifier_loadbalancer) identifier_loadbalancer
(identifier_access_list) identifier_access_list
)parameters
(block
(expression_statement
(assignment
(identifier_req_body) identifier_req_body
(dictionary
(pair
(string_"accessList") string_"accessList"
(identifier_access_list) identifier_access_list
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(string_"/loadbalancers/%s/accesslist") string_"/loadbalancers/%s/accesslist"
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_id) identifier_get_id
)attribute
(argument_list
(identifier_loadbalancer) identifier_loadbalancer
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_resp) identifier_resp
(identifier_body) identifier_body
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_api) identifier_api
)attribute
(identifier_method_post) identifier_method_post
)attribute
(argument_list
(identifier_uri) identifier_uri
(keyword_argument
(identifier_body) identifier_body
(identifier_req_body) identifier_req_body
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_body) identifier_body
)return_statement
)block
)function_definition
)module | Adds the access list provided to the load balancer.
The 'access_list' should be a list of dicts in the following format:
[{"address": "192.0.43.10", "type": "DENY"},
{"address": "192.0.43.11", "type": "ALLOW"},
...
{"address": "192.0.43.99", "type": "DENY"},
]
If no access list exists, it is created. If an access list
already exists, it is updated with the provided list. |
(module
(function_definition
(function_name_AgregarAjusteMonetario) function_name_AgregarAjusteMonetario
(parameters
(identifier_self) identifier_self
(identifier_precio_unitario) identifier_precio_unitario
(default_parameter
(identifier_precio_recupero) identifier_precio_recupero
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(string_"Agrega campos al detalle de item por un ajuste monetario") string_"Agrega campos al detalle de item por un ajuste monetario"
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
(pair
(string_'precioUnitario') string_'precioUnitario'
(identifier_precio_unitario) identifier_precio_unitario
)pair
(pair
(string_'precioRecupero') string_'precioRecupero'
(identifier_precio_recupero) identifier_precio_recupero
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_item_liq) identifier_item_liq
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_solicitud) identifier_solicitud
)attribute
(string_'itemDetalleAjusteLiquidacion') string_'itemDetalleAjusteLiquidacion'
)subscript
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_item_liq) identifier_item_liq
(string_'ajusteMonetario') string_'ajusteMonetario'
)subscript
(identifier_d) identifier_d
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Agrega campos al detalle de item por un ajuste monetario |
(module
(function_definition
(function_name_prepare_query) function_name_prepare_query
(parameters
(identifier_query) identifier_query
)parameters
(block
(for_statement
(identifier_name) identifier_name
(identifier_query) identifier_query
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_query) identifier_query
(identifier_name) identifier_name
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_query) identifier_query
(identifier_name) identifier_name
)subscript
(string_"") string_""
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_bool) identifier_bool
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_query) identifier_query
(identifier_name) identifier_name
)subscript
(call
(identifier_int) identifier_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_dict) identifier_dict
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Invalid query data type %r") string_"Invalid query data type %r"
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Prepare a query object for the RAPI.
RAPI has lots of curious rules for coercing values.
This function operates on dicts in-place and has no return value.
@type query: dict
@param query: Query arguments |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_crash) identifier_crash
)parameters
(block
(if_statement
(comparison_operator
(identifier_crash) identifier_crash
(identifier_self) identifier_self
)comparison_operator
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_crash) identifier_crash
(identifier_key) identifier_key
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_skey) identifier_skey
(call
(attribute
(identifier_self) identifier_self
(identifier_marshall_key) identifier_marshall_key
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier_marshall_value) identifier_marshall_value
)attribute
(argument_list
(identifier_crash) identifier_crash
(keyword_argument
(identifier_storeMemoryMap) identifier_storeMemoryMap
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___db) identifier___db
)attribute
(identifier_skey) identifier_skey
)subscript
(identifier_data) identifier_data
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Adds a new crash to the container.
If the crash appears to be already known, it's ignored.
@see: L{Crash.key}
@type crash: L{Crash}
@param crash: Crash object to add. |
(module
(function_definition
(function_name_create_lbaas_member) function_name_create_lbaas_member
(parameters
(identifier_self) identifier_self
(identifier_lbaas_pool) identifier_lbaas_pool
(default_parameter
(identifier_body) identifier_body
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_post) identifier_post
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_lbaas_members_path) identifier_lbaas_members_path
)attribute
(identifier_lbaas_pool) identifier_lbaas_pool
)binary_operator
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a lbaas_member. |
(module
(function_definition
(function_name_check_workers) function_name_check_workers
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__worker_alive_time) identifier__worker_alive_time
)attribute
)binary_operator
(integer_5) integer_5
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__worker_alive_time) identifier__worker_alive_time
)attribute
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(list_comprehension
(call
(attribute
(identifier_worker) identifier_worker
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_worker) identifier_worker
(attribute
(identifier_self) identifier_self
(identifier__workers) identifier__workers
)attribute
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_worker) identifier_worker
(identifier_is_alive) identifier_is_alive
)attribute
(argument_list
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__workers) identifier__workers
)attribute
(list_comprehension
(identifier_worker) identifier_worker
(for_in_clause
(identifier_worker) identifier_worker
(attribute
(identifier_self) identifier_self
(identifier__workers) identifier__workers
)attribute
)for_in_clause
(if_clause
(call
(attribute
(identifier_worker) identifier_worker
(identifier_is_alive) identifier_is_alive
)attribute
(argument_list
)argument_list
)call
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__workers) identifier__workers
)attribute
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__num_workers) identifier__num_workers
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ProcessKilled) identifier_ProcessKilled
(argument_list
(string_'One of the workers has been killed.') string_'One of the workers has been killed.'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Kill workers that have been pending for a while and check if all workers
are alive. |
(module
(function_definition
(function_name_counts) function_name_counts
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_ids) identifier_ids
(None) None
)default_parameter
(default_parameter
(identifier_setdata) identifier_setdata
(False) False
)default_parameter
(default_parameter
(identifier_output_format) identifier_output_format
(string_'DataFrame') string_'DataFrame'
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_apply) identifier_apply
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(attribute
(identifier_x) identifier_x
(identifier_counts) identifier_counts
)attribute
)lambda
(keyword_argument
(identifier_ids) identifier_ids
(identifier_ids) identifier_ids
)keyword_argument
(keyword_argument
(identifier_setdata) identifier_setdata
(identifier_setdata) identifier_setdata
)keyword_argument
(keyword_argument
(identifier_output_format) identifier_output_format
(identifier_output_format) identifier_output_format
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the counts in each of the specified measurements.
Parameters
----------
ids : [hashable | iterable of hashables | None]
Keys of measurements to get counts of.
If None is given get counts of all measurements.
setdata : bool
Whether to set the data in the Measurement object.
Used only if data is not already set.
output_format : DataFrame | dict
Specifies the output format for that data.
Returns
-------
[DataFrame | Dictionary]
Dictionary keys correspond to measurement keys. |
(module
(function_definition
(function_name_to_code) function_name_to_code
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_context) identifier_context
(type
(identifier_Context) identifier_Context
)type
(None) None
)typed_default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_context) identifier_context
(boolean_operator
(identifier_context) identifier_context
(call
(identifier_Context) identifier_Context
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(for_statement
(identifier_imp) identifier_imp
(attribute
(identifier_self) identifier_self
(identifier_imports) identifier_imports
)attribute
(block
(if_statement
(comparison_operator
(identifier_imp) identifier_imp
(attribute
(identifier_context) identifier_context
(identifier_imports) identifier_imports
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_context) identifier_context
(identifier_imports) identifier_imports
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_imp) identifier_imp
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_counter) identifier_counter
(call
(identifier_Counter) identifier_Counter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_to_lines) identifier_to_lines
)attribute
(argument_list
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
(keyword_argument
(identifier_counter) identifier_counter
(identifier_counter) identifier_counter
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_counter) identifier_counter
(identifier_num_indented_non_doc_blocks) identifier_num_indented_non_doc_blocks
)attribute
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_expects_body_or_pass) identifier_expects_body_or_pass
)attribute
(block
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(string_" pass") string_" pass"
)argument_list
)call
)expression_statement
)block
(elif_clause
(attribute
(identifier_self) identifier_self
(identifier_closed_by) identifier_closed_by
)attribute
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_lines) identifier_lines
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(attribute
(identifier_self) identifier_self
(identifier_closed_by) identifier_closed_by
)attribute
)augmented_assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_closed_by) identifier_closed_by
)attribute
(block
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_closed_by) identifier_closed_by
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(binary_operator
(call
(identifier_join_lines) identifier_join_lines
(argument_list
(list_splat
(identifier_lines) identifier_lines
)list_splat
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__suffix) identifier__suffix
)attribute
)binary_operator
)return_statement
)block
)function_definition
)module | Generate the code and return it as a string. |
(module
(function_definition
(function_name_add_scroll_bar) function_name_add_scroll_bar
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_adj) identifier_adj
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_terminal) identifier_terminal
)attribute
(identifier_get_vadjustment) identifier_get_vadjustment
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_scroll) identifier_scroll
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_VScrollbar) identifier_VScrollbar
)attribute
(argument_list
(identifier_adj) identifier_adj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_scroll) identifier_scroll
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pack_start) identifier_pack_start
)attribute
(argument_list
(identifier_scroll) identifier_scroll
(False) False
(False) False
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Packs the scrollbar. |
(module
(function_definition
(function_name_draw) function_name_draw
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
(identifier_box) identifier_box
)parameters
(block
(import_statement
(dotted_name
(identifier_wx) identifier_wx
)dotted_name
)import_statement
(import_from_statement
(dotted_name
(identifier_MAVProxy) identifier_MAVProxy
(identifier_modules) identifier_modules
(identifier_lib) identifier_lib
)dotted_name
(dotted_name
(identifier_mp_widgets) identifier_mp_widgets
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_imgpanel) identifier_imgpanel
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_imgpanel) identifier_imgpanel
)attribute
(call
(attribute
(identifier_mp_widgets) identifier_mp_widgets
(identifier_ImagePanel) identifier_ImagePanel
)attribute
(argument_list
(identifier_parent) identifier_parent
(call
(attribute
(identifier_self) identifier_self
(identifier_img) identifier_img
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_box) identifier_box
(identifier_Add) identifier_Add
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_imgpanel) identifier_imgpanel
)attribute
(keyword_argument
(identifier_flag) identifier_flag
(attribute
(identifier_wx) identifier_wx
(identifier_LEFT) identifier_LEFT
)attribute
)keyword_argument
(keyword_argument
(identifier_border) identifier_border
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_box) identifier_box
(identifier_Layout) identifier_Layout
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | redraw the image |
(module
(function_definition
(function_name_cli_program_names) function_name_cli_program_names
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_program_names) identifier_program_names
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_cli_class) identifier_cli_class
(attribute
(identifier_self) identifier_self
(identifier_cli_classes) identifier_cli_classes
)attribute
(block
(expression_statement
(assignment
(identifier_instance) identifier_instance
(call
(identifier_cli_class) identifier_cli_class
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_program_names) identifier_program_names
(attribute
(identifier_instance) identifier_instance
(identifier_program_name) identifier_program_name
)attribute
)subscript
(identifier_cli_class) identifier_cli_class
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_program_names) identifier_program_names
)return_statement
)block
)function_definition
)module | r"""Developer script program names. |
(module
(function_definition
(function_name_get_int) function_name_get_int
(parameters
(identifier_bytearray_) identifier_bytearray_
(identifier_byte_index) identifier_byte_index
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_bytearray_) identifier_bytearray_
(slice
(identifier_byte_index) identifier_byte_index
(colon) colon
(binary_operator
(identifier_byte_index) identifier_byte_index
(integer_2) integer_2
)binary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(integer_1) integer_1
)subscript
(binary_operator
(subscript
(identifier_data) identifier_data
(integer_1) integer_1
)subscript
(integer_0xff) integer_0xff
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(integer_0) integer_0
)subscript
(binary_operator
(subscript
(identifier_data) identifier_data
(integer_0) integer_0
)subscript
(integer_0xff) integer_0xff
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_packed) identifier_packed
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'2B') string_'2B'
(list_splat
(identifier_data) identifier_data
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_'>h') string_'>h'
(identifier_packed) identifier_packed
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Get int value from bytearray.
int are represented in two bytes |
(module
(function_definition
(function_name_get_local_version) function_name_get_local_version
(parameters
(identifier_sigdir) identifier_sigdir
(identifier_sig) identifier_sig
)parameters
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(None) None
)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
(identifier_sigdir) identifier_sigdir
(binary_operator
(string_'%s.cvd') string_'%s.cvd'
(identifier_sig) identifier_sig
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'sigtool') string_'sigtool'
(string_'-i') string_'-i'
(identifier_filename) identifier_filename
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sigtool) identifier_sigtool
(call
(identifier_Popen) identifier_Popen
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_stdout) identifier_stdout
(identifier_PIPE) identifier_PIPE
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(identifier_PIPE) identifier_PIPE
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(attribute
(identifier_sigtool) identifier_sigtool
(identifier_stdout) identifier_stdout
)attribute
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_line) identifier_line
(call
(attribute
(identifier_line) identifier_line
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'Version:') string_'Version:'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(subscript
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_line) identifier_line
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_sigtool) identifier_sigtool
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_version) identifier_version
)return_statement
)block
)function_definition
)module | Get the local version of a signature |
(module
(function_definition
(function_name_select_relevant_id_columns) function_name_select_relevant_id_columns
(parameters
(identifier_rows) identifier_rows
)parameters
(block
(expression_statement
(assignment
(identifier_relevant_id_columns) identifier_relevant_id_columns
(list
(True) True
)list
)assignment
)expression_statement
(if_statement
(identifier_rows) identifier_rows
(block
(expression_statement
(assignment
(identifier_prototype_id) identifier_prototype_id
(attribute
(subscript
(identifier_rows) identifier_rows
(integer_0) integer_0
)subscript
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
(for_statement
(identifier_column) identifier_column
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(call
(identifier_len) identifier_len
(argument_list
(identifier_prototype_id) identifier_prototype_id
)argument_list
)call
)argument_list
)call
(block
(function_definition
(function_name_id_equal_to_prototype) function_name_id_equal_to_prototype
(parameters
(identifier_row) identifier_row
)parameters
(block
(return_statement
(comparison_operator
(subscript
(attribute
(identifier_row) identifier_row
(identifier_id) identifier_id
)attribute
(identifier_column) identifier_column
)subscript
(subscript
(identifier_prototype_id) identifier_prototype_id
(identifier_column) identifier_column
)subscript
)comparison_operator
)return_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_relevant_id_columns) identifier_relevant_id_columns
(identifier_append) identifier_append
)attribute
(argument_list
(not_operator
(call
(identifier_all) identifier_all
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_id_equal_to_prototype) identifier_id_equal_to_prototype
(identifier_rows) identifier_rows
)argument_list
)call
)argument_list
)call
)not_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_relevant_id_columns) identifier_relevant_id_columns
)return_statement
)block
)function_definition
)module | Find out which of the entries in Row.id are equal for all given rows.
@return: A list of True/False values according to whether the i-th part of the id is always equal. |
(module
(function_definition
(function_name___set_status) function_name___set_status
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(list
(identifier_DELIVERY_METHOD_STATUS_PENDING) identifier_DELIVERY_METHOD_STATUS_PENDING
(identifier_DELIVERY_METHOD_STATUS_SENT) identifier_DELIVERY_METHOD_STATUS_SENT
(identifier_DELIVERY_METHOD_STATUS_CONFIRMED) identifier_DELIVERY_METHOD_STATUS_CONFIRMED
(identifier_DELIVERY_METHOD_STATUS_BOUNCED) identifier_DELIVERY_METHOD_STATUS_BOUNCED
)list
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Invalid deliveries method status '%s'") string_"Invalid deliveries method status '%s'"
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___status) identifier___status
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Sets the deliveries status of this method.
@param value: str |
(module
(function_definition
(function_name_to_yaml) function_name_to_yaml
(parameters
(identifier_cls) identifier_cls
(identifier_dumper) identifier_dumper
(identifier_vividict) identifier_vividict
)parameters
(block
(expression_statement
(assignment
(identifier_dictionary) identifier_dictionary
(call
(attribute
(identifier_cls) identifier_cls
(identifier_vividict_to_dict) identifier_vividict_to_dict
)attribute
(argument_list
(identifier_vividict) identifier_vividict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(attribute
(identifier_dumper) identifier_dumper
(identifier_represent_mapping) identifier_represent_mapping
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_yaml_tag) identifier_yaml_tag
)attribute
(identifier_dictionary) identifier_dictionary
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_node) identifier_node
)return_statement
)block
)function_definition
)module | Implementation for the abstract method of the base class YAMLObject |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_args) identifier_args
(list
)list
)default_parameter
(default_parameter
(identifier_filepath) identifier_filepath
(None) None
)default_parameter
(default_parameter
(identifier_opts) identifier_opts
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_compress) identifier_compress
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
(identifier_path) identifier_path
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wd) identifier_wd
(boolean_operator
(identifier_filepath) identifier_filepath
(string_'.') string_'.'
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'stream-channels') string_'stream-channels'
(string_'true') string_'true'
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'archive') string_'archive'
(string_'true') string_'true'
)tuple
)argument_list
)call
)expression_statement
(if_statement
(identifier_compress) identifier_compress
(block
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'compress') string_'compress'
(string_'true') string_'true'
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(for_statement
(identifier_opt) identifier_opt
(call
(attribute
(identifier_opts) identifier_opts
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_opt) identifier_opt
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_arg) identifier_arg
(identifier_args) identifier_args
(block
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'arg') string_'arg'
(identifier_arg) identifier_arg
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(string_'get') string_'get'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier__do_request) identifier__do_request
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_url) identifier_url
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_stream) identifier_stream
(True) True
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__do_raise_for_status) identifier__do_raise_for_status
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_mode) identifier_mode
(conditional_expression
(string_'r|gz') string_'r|gz'
(identifier_compress) identifier_compress
(string_'r|') string_'r|'
)conditional_expression
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_tarfile) identifier_tarfile
(identifier_open) identifier_open
)attribute
(argument_list
(keyword_argument
(identifier_fileobj) identifier_fileobj
(attribute
(identifier_res) identifier_res
(identifier_raw) identifier_raw
)attribute
)keyword_argument
(keyword_argument
(identifier_mode) identifier_mode
(identifier_mode) identifier_mode
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_tf) identifier_tf
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_extractall) identifier_extractall
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_wd) identifier_wd
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Makes a request to the IPFS daemon to download a file.
Downloads a file or files from IPFS into the current working
directory, or the directory given by ``filepath``.
Raises
------
~ipfsapi.exceptions.ErrorResponse
~ipfsapi.exceptions.ConnectionError
~ipfsapi.exceptions.ProtocolError
~ipfsapi.exceptions.StatusError
~ipfsapi.exceptions.TimeoutError
Parameters
----------
path : str
The REST command path to send
filepath : str
The local path where IPFS will store downloaded files
Defaults to the current working directory.
args : list
Positional parameters to be sent along with the HTTP request
opts : dict
Query string paramters to be sent along with the HTTP request
compress : bool
Whether the downloaded file should be GZip compressed by the
daemon before being sent to the client
kwargs : dict
Additional arguments to pass to :mod:`requests` |
(module
(function_definition
(function_name__GetEnableOsLoginValue) function_name__GetEnableOsLoginValue
(parameters
(identifier_self) identifier_self
(identifier_metadata_dict) identifier_metadata_dict
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_instance_data) identifier_instance_data
(identifier_project_data) identifier_project_data
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__GetInstanceAndProjectAttributes) identifier__GetInstanceAndProjectAttributes
)attribute
(argument_list
(identifier_metadata_dict) identifier_metadata_dict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_instance_value) identifier_instance_value
(call
(attribute
(identifier_instance_data) identifier_instance_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'enable-oslogin') string_'enable-oslogin'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_project_value) identifier_project_value
(call
(attribute
(identifier_project_data) identifier_project_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'enable-oslogin') string_'enable-oslogin'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(boolean_operator
(boolean_operator
(identifier_instance_value) identifier_instance_value
(identifier_project_value) identifier_project_value
)boolean_operator
(string_'') string_''
)boolean_operator
)assignment
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_value) identifier_value
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'true') string_'true'
)comparison_operator
)return_statement
)block
)function_definition
)module | Get the value of the enable-oslogin metadata key.
Args:
metadata_dict: json, the deserialized contents of the metadata server.
Returns:
bool, True if OS Login is enabled for VM access. |
(module
(function_definition
(function_name_date_range) function_name_date_range
(parameters
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_boo) identifier_boo
)parameters
(block
(expression_statement
(assignment
(identifier_earliest) identifier_earliest
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(call
(attribute
(identifier_start) identifier_start
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_' ') string_' '
)argument_list
)call
(string_'%Y %m %d') string_'%Y %m %d'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_latest) identifier_latest
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(call
(attribute
(identifier_end) identifier_end
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_' ') string_' '
)argument_list
)call
(string_'%Y %m %d') string_'%Y %m %d'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_num_days) identifier_num_days
(binary_operator
(attribute
(parenthesized_expression
(binary_operator
(identifier_latest) identifier_latest
(identifier_earliest) identifier_earliest
)binary_operator
)parenthesized_expression
(identifier_days) identifier_days
)attribute
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_days) identifier_all_days
(list_comprehension
(binary_operator
(identifier_latest) identifier_latest
(call
(identifier_timedelta) identifier_timedelta
(argument_list
(keyword_argument
(identifier_days) identifier_days
(identifier_x) identifier_x
)keyword_argument
)argument_list
)call
)binary_operator
(for_in_clause
(identifier_x) identifier_x
(call
(identifier_range) identifier_range
(argument_list
(identifier_num_days) identifier_num_days
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_all_days) identifier_all_days
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
(if_statement
(identifier_boo) identifier_boo
(block
(for_statement
(identifier_d) identifier_d
(identifier_all_days) identifier_all_days
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(subscript
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_d) identifier_d
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_'') string_''
)argument_list
)call
(slice
(colon) colon
(integer_8) integer_8
)slice
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(for_statement
(identifier_d) identifier_d
(identifier_all_days) identifier_all_days
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_d) identifier_d
)argument_list
)call
(slice
(colon) colon
(integer_10) integer_10
)slice
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Return list of dates within a specified range, inclusive.
Args:
start: earliest date to include, String ("2015-11-25")
end: latest date to include, String ("2015-12-01")
boo: if true, output list contains Numbers (20151230); if false, list contains Strings ("2015-12-30")
Returns:
list of either Numbers or Strings |
(module
(function_definition
(function_name_recruit) function_name_recruit
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_networks) identifier_networks
)attribute
(argument_list
(keyword_argument
(identifier_full) identifier_full
(False) False
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recruiter) identifier_recruiter
)attribute
(identifier_recruit) identifier_recruit
)attribute
(argument_list
(keyword_argument
(identifier_n) identifier_n
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recruiter) identifier_recruiter
)attribute
(identifier_close_recruitment) identifier_close_recruitment
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Recruit one participant at a time until all networks are full. |
(module
(function_definition
(function_name__meanvalueattr) function_name__meanvalueattr
(parameters
(identifier_self) identifier_self
(identifier_v) identifier_v
)parameters
(block
(expression_statement
(assignment
(identifier_sug) identifier_sug
(attribute
(identifier_self) identifier_self
(identifier_layout) identifier_layout
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_prevlayer) identifier_prevlayer
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(attribute
(subscript
(attribute
(identifier_sug) identifier_sug
(identifier_grx) identifier_grx
)attribute
(identifier_v) identifier_v
)subscript
(identifier_bar) identifier_bar
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_bars) identifier_bars
(list_comprehension
(attribute
(subscript
(attribute
(identifier_sug) identifier_sug
(identifier_grx) identifier_grx
)attribute
(identifier_x) identifier_x
)subscript
(identifier_bar) identifier_bar
)attribute
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_self) identifier_self
(identifier__neighbors) identifier__neighbors
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(conditional_expression
(attribute
(subscript
(attribute
(identifier_sug) identifier_sug
(identifier_grx) identifier_grx
)attribute
(identifier_v) identifier_v
)subscript
(identifier_bar) identifier_bar
)attribute
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_bars) identifier_bars
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(call
(identifier_sum) identifier_sum
(argument_list
(identifier_bars) identifier_bars
)argument_list
)call
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_bars) identifier_bars
)argument_list
)call
)binary_operator
)conditional_expression
)return_statement
)block
)function_definition
)module | find new position of vertex v according to adjacency in prevlayer.
position is given by the mean value of adjacent positions.
experiments show that meanvalue heuristic performs better than median. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_directive_name) identifier_directive_name
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(concatenated_string
(string_'directive_name must be implemented by ') string_'directive_name must be implemented by '
(string_'subclasses of BaseDirective') string_'subclasses of BaseDirective'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_env) identifier_env
(identifier_state) identifier_state
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__prepare_env) identifier__prepare_env
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_state) identifier_state
(identifier_doc_names) identifier_doc_names
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_env) identifier_env
(identifier_docname) identifier_docname
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_directive_name) identifier_directive_name
(call
(attribute
(string_'<{}>') string_'<{}>'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_directive_name) identifier_directive_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_section) identifier_section
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_node) identifier_node
(identifier_document) identifier_document
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_document) identifier_document
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_ViewList) identifier_ViewList
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_self) identifier_self
(identifier__render_rst) identifier__render_rst
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_line) identifier_line
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_HEADING_TOKEN) identifier_HEADING_TOKEN
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_heading) identifier_heading
(subscript
(identifier_line) identifier_line
(slice
(identifier_HEADING_TOKEN_LENGTH) identifier_HEADING_TOKEN_LENGTH
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_heading) identifier_heading
(identifier_directive_name) identifier_directive_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'-') string_'-'
(call
(identifier_len) identifier_len
(argument_list
(identifier_heading) identifier_heading
)argument_list
)call
)binary_operator
(identifier_directive_name) identifier_directive_name
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_line) identifier_line
(identifier_directive_name) identifier_directive_name
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(identifier_nested_parse_with_titles) identifier_nested_parse_with_titles
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_result) identifier_result
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_node) identifier_node
(identifier_children) identifier_children
)attribute
)return_statement
)block
)function_definition
)module | Called by Sphinx to generate documentation for this directive. |
(module
(function_definition
(function_name_set_broadcast_layout) function_name_set_broadcast_layout
(parameters
(identifier_self) identifier_self
(identifier_broadcast_id) identifier_broadcast_id
(identifier_layout_type) identifier_layout_type
(default_parameter
(identifier_stylesheet) identifier_stylesheet
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'type') string_'type'
(identifier_layout_type) identifier_layout_type
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_layout_type) identifier_layout_type
(string_'custom') string_'custom'
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_stylesheet) identifier_stylesheet
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_payload) identifier_payload
(string_'stylesheet') string_'stylesheet'
)subscript
(identifier_stylesheet) identifier_stylesheet
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_endpoint) identifier_endpoint
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_endpoints) identifier_endpoints
)attribute
(identifier_broadcast_url) identifier_broadcast_url
)attribute
(argument_list
(identifier_broadcast_id) identifier_broadcast_id
(keyword_argument
(identifier_layout) identifier_layout
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_put) identifier_put
)attribute
(argument_list
(identifier_endpoint) identifier_endpoint
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(call
(attribute
(identifier_self) identifier_self
(identifier_json_headers) identifier_json_headers
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_proxies) identifier_proxies
(attribute
(identifier_self) identifier_self
(identifier_proxies) identifier_proxies
)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
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_400) integer_400
)comparison_operator
(block
(raise_statement
(call
(identifier_BroadcastError) identifier_BroadcastError
(argument_list
(concatenated_string
(string_'Invalid request. This response may indicate that data in your request data is ') string_'Invalid request. This response may indicate that data in your request data is '
(string_'invalid JSON. It may also indicate that you passed in invalid layout options.') string_'invalid JSON. It may also indicate that you passed in invalid layout options.'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_403) integer_403
)comparison_operator
(block
(raise_statement
(call
(identifier_AuthError) identifier_AuthError
(argument_list
(string_'Authentication error.') string_'Authentication error.'
)argument_list
)call
)raise_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_RequestError) identifier_RequestError
(argument_list
(string_'OpenTok server error.') string_'OpenTok server error.'
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Use this method to change the layout type of a live streaming broadcast
:param String broadcast_id: The ID of the broadcast that will be updated
:param String layout_type: The layout type for the broadcast. Valid values are:
'bestFit', 'custom', 'horizontalPresentation', 'pip' and 'verticalPresentation'
:param String stylesheet optional: CSS used to style the custom layout.
Specify this only if you set the type property to 'custom' |
(module
(function_definition
(function_name_handle_message) function_name_handle_message
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_msg) identifier_msg
(identifier_msg_id) identifier_msg_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_messagesAllowed) identifier_messagesAllowed
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_LimitedReporter) identifier_LimitedReporter
(identifier_self) identifier_self
)argument_list
)call
(identifier_handle_message) identifier_handle_message
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Manage message of different type and in the context of path. |
(module
(function_definition
(function_name__det_inference) function_name__det_inference
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_n_randEffs) identifier_n_randEffs
)attribute
(integer_2) integer_2
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(unary_operator
(call
(attribute
(call
(attribute
(identifier_sp) identifier_sp
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_Y) identifier_Y
)attribute
)argument_list
)call
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
)unary_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(assignment
(identifier_rv) identifier_rv
(string_'GP2KronSum') string_'GP2KronSum'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_rv) identifier_rv
(string_'GP') string_'GP'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_rv) identifier_rv
)return_statement
)block
)function_definition
)module | Internal method for determining the inference method |
(module
(function_definition
(function_name_writeDrizKeywords) function_name_writeDrizKeywords
(parameters
(identifier_hdr) identifier_hdr
(identifier_imgnum) identifier_imgnum
(identifier_drizdict) identifier_drizdict
)parameters
(block
(expression_statement
(assignment
(identifier__keyprefix) identifier__keyprefix
(binary_operator
(string_'D%03d') string_'D%03d'
(identifier_imgnum) identifier_imgnum
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_drizdict) identifier_drizdict
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(subscript
(subscript
(identifier_drizdict) identifier_drizdict
(identifier_key) identifier_key
)subscript
(string_'value') string_'value'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_val) identifier_val
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(string_"") string_""
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_comment) identifier_comment
(subscript
(subscript
(identifier_drizdict) identifier_drizdict
(identifier_key) identifier_key
)subscript
(string_'comment') string_'comment'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_comment) identifier_comment
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_comment) identifier_comment
(string_"") string_""
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_hdr) identifier_hdr
(binary_operator
(identifier__keyprefix) identifier__keyprefix
(identifier_key) identifier_key
)binary_operator
)subscript
(tuple
(identifier_val) identifier_val
(subscript
(subscript
(identifier_drizdict) identifier_drizdict
(identifier_key) identifier_key
)subscript
(string_'comment') string_'comment'
)subscript
)tuple
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Write basic drizzle-related keywords out to image header as a record
of the processing performed to create the image
The dictionary 'drizdict' will contain the keywords and values to be
written out to the header. |
(module
(function_definition
(function_name__get_request) function_name__get_request
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_auth) identifier_auth
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(call
(identifier_HSRequest) identifier_HSRequest
(argument_list
(boolean_operator
(identifier_auth) identifier_auth
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
)boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_response_callback) identifier_response_callback
)attribute
(attribute
(identifier_self) identifier_self
(identifier_response_callback) identifier_response_callback
)attribute
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
)return_statement
)block
)function_definition
)module | Return an http request object
auth: Auth data to use
Returns:
A HSRequest object |
(module
(function_definition
(function_name_visible) function_name_visible
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_query_results) identifier_query_results
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_map) identifier_map
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_el) identifier_el
)lambda_parameters
(call
(attribute
(identifier_el) identifier_el
(identifier_is_displayed) identifier_is_displayed
)attribute
(argument_list
)argument_list
)call
)lambda
(string_'visible') string_'visible'
)argument_list
)call
(identifier_results) identifier_results
)attribute
)assignment
)expression_statement
(if_statement
(identifier_query_results) identifier_query_results
(block
(return_statement
(call
(identifier_all) identifier_all
(argument_list
(identifier_query_results) identifier_query_results
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check whether all matched elements are visible.
Returns:
bool |
(module
(function_definition
(function_name__chunk_write) function_name__chunk_write
(parameters
(identifier_chunk) identifier_chunk
(identifier_local_file) identifier_local_file
(identifier_progress) identifier_progress
)parameters
(block
(expression_statement
(call
(attribute
(identifier_local_file) identifier_local_file
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_progress) identifier_progress
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_progress) identifier_progress
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Write a chunk to file and update the progress bar. |
(module
(function_definition
(function_name_add_local_charm_dir) function_name_add_local_charm_dir
(parameters
(identifier_self) identifier_self
(identifier_charm_dir) identifier_charm_dir
(identifier_series) identifier_series
)parameters
(block
(expression_statement
(assignment
(identifier_fh) identifier_fh
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_NamedTemporaryFile) identifier_NamedTemporaryFile
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_CharmArchiveGenerator) identifier_CharmArchiveGenerator
(argument_list
(identifier_charm_dir) identifier_charm_dir
)argument_list
)call
(identifier_make_archive) identifier_make_archive
)attribute
(argument_list
(attribute
(identifier_fh) identifier_fh
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(identifier_fh) identifier_fh
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(call
(identifier_partial) identifier_partial
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_add_local_charm) identifier_add_local_charm
)attribute
(identifier_fh) identifier_fh
(identifier_series) identifier_series
(attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_stat) identifier_stat
)attribute
(argument_list
(attribute
(identifier_fh) identifier_fh
(identifier_name) identifier_name
)attribute
)argument_list
)call
(identifier_st_size) identifier_st_size
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_charm_url) identifier_charm_url
(await
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connector) identifier__connector
)attribute
(identifier_loop) identifier_loop
)attribute
(identifier_run_in_executor) identifier_run_in_executor
)attribute
(argument_list
(None) None
(identifier_func) identifier_func
)argument_list
)call
)await
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Uploaded local charm: %s -> %s') string_'Uploaded local charm: %s -> %s'
(identifier_charm_dir) identifier_charm_dir
(identifier_charm_url) identifier_charm_url
)argument_list
)call
)expression_statement
(return_statement
(identifier_charm_url) identifier_charm_url
)return_statement
)block
)function_definition
)module | Upload a local charm to the model.
This will automatically generate an archive from
the charm dir.
:param charm_dir: Path to the charm directory
:param series: Charm series |
(module
(function_definition
(function_name_get_historical_data) function_name_get_historical_data
(parameters
(identifier_symbols) identifier_symbols
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_end) identifier_end
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_start) identifier_start
(identifier_end) identifier_end
)pattern_list
(call
(identifier__sanitize_dates) identifier__sanitize_dates
(argument_list
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(identifier_HistoricalReader) identifier_HistoricalReader
(argument_list
(identifier_symbols) identifier_symbols
(keyword_argument
(identifier_start) identifier_start
(identifier_start) identifier_start
)keyword_argument
(keyword_argument
(identifier_end) identifier_end
(identifier_end) identifier_end
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(identifier_fetch) identifier_fetch
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Function to obtain historical date for a symbol or list of
symbols. Return an instance of HistoricalReader
Parameters
----------
symbols: str or list
A symbol or list of symbols
start: datetime.datetime, default None
Beginning of desired date range
end: datetime.datetime, default None
End of required date range
kwargs:
Additional Request Parameters (see base class)
Returns
-------
list or DataFrame
Historical stock prices over date range, start to end |
(module
(function_definition
(function_name_mangle_agreement) function_name_mangle_agreement
(parameters
(identifier_correct_sentence) identifier_correct_sentence
)parameters
(block
(expression_statement
(assignment
(identifier_bad_sents) identifier_bad_sents
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(identifier_nlp) identifier_nlp
(argument_list
(identifier_correct_sentence) identifier_correct_sentence
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_verbs) identifier_verbs
(list_comprehension
(tuple
(identifier_i) identifier_i
(identifier_v) identifier_v
)tuple
(for_in_clause
(tuple_pattern
(identifier_i) identifier_i
(identifier_v) identifier_v
)tuple_pattern
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_doc) identifier_doc
)argument_list
)call
)for_in_clause
(if_clause
(call
(attribute
(attribute
(identifier_v) identifier_v
(identifier_tag_) identifier_tag_
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'VB') string_'VB'
)argument_list
)call
)if_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_v) identifier_v
)pattern_list
(identifier_verbs) identifier_verbs
(block
(for_statement
(identifier_alt_verb) identifier_alt_verb
(call
(identifier_lexeme) identifier_lexeme
(argument_list
(attribute
(subscript
(identifier_doc) identifier_doc
(identifier_i) identifier_i
)subscript
(identifier_text) identifier_text
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_alt_verb) identifier_alt_verb
(attribute
(subscript
(identifier_doc) identifier_doc
(identifier_i) identifier_i
)subscript
(identifier_text) identifier_text
)attribute
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(call
(identifier_tenses) identifier_tenses
(argument_list
(identifier_alt_verb) identifier_alt_verb
)argument_list
)call
(call
(identifier_tenses) identifier_tenses
(argument_list
(attribute
(identifier_v) identifier_v
(identifier_text) identifier_text
)attribute
)argument_list
)call
)comparison_operator
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_alt_verb) identifier_alt_verb
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(attribute
(identifier_v) identifier_v
(identifier_text) identifier_text
)attribute
)argument_list
)call
(call
(attribute
(identifier_alt_verb) identifier_alt_verb
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"n't") string_"n't"
)argument_list
)call
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_new_sent) identifier_new_sent
(binary_operator
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_doc) identifier_doc
(slice
(colon) colon
(identifier_i) identifier_i
)slice
)subscript
)argument_list
)call
(call
(attribute
(string_" {} ") string_" {} "
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_alt_verb) identifier_alt_verb
)argument_list
)call
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_doc) identifier_doc
(slice
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_sent) identifier_new_sent
(call
(attribute
(identifier_new_sent) identifier_new_sent
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ,') string_' ,'
(string_',') string_','
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_bad_sents) identifier_bad_sents
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_sent) identifier_new_sent
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_bad_sents) identifier_bad_sents
)return_statement
)block
)function_definition
)module | Given a correct sentence, return a sentence or sentences with a subject
verb agreement error |
(module
(function_definition
(function_name_get_resampler_for_grouping) function_name_get_resampler_for_grouping
(parameters
(identifier_groupby) identifier_groupby
(identifier_rule) identifier_rule
(default_parameter
(identifier_how) identifier_how
(None) None
)default_parameter
(default_parameter
(identifier_fill_method) identifier_fill_method
(None) None
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_kind) identifier_kind
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'key') string_'key'
)subscript
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'on') string_'on'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tg) identifier_tg
(call
(identifier_TimeGrouper) identifier_TimeGrouper
(argument_list
(keyword_argument
(identifier_freq) identifier_freq
(identifier_rule) identifier_rule
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resampler) identifier_resampler
(call
(attribute
(identifier_tg) identifier_tg
(identifier__get_resampler) identifier__get_resampler
)attribute
(argument_list
(attribute
(identifier_groupby) identifier_groupby
(identifier_obj) identifier_obj
)attribute
(keyword_argument
(identifier_kind) identifier_kind
(identifier_kind) identifier_kind
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_resampler) identifier_resampler
(identifier__get_resampler_for_grouping) identifier__get_resampler_for_grouping
)attribute
(argument_list
(keyword_argument
(identifier_groupby) identifier_groupby
(identifier_groupby) identifier_groupby
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__maybe_process_deprecations) identifier__maybe_process_deprecations
(argument_list
(identifier_r) identifier_r
(keyword_argument
(identifier_how) identifier_how
(identifier_how) identifier_how
)keyword_argument
(keyword_argument
(identifier_fill_method) identifier_fill_method
(identifier_fill_method) identifier_fill_method
)keyword_argument
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return our appropriate resampler when grouping as well. |
(module
(function_definition
(function_name_flattened) function_name_flattened
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(subscript
(identifier_self) identifier_self
(string_'parsed_whois') string_'parsed_whois'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_flat) identifier_flat
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(tuple
(string_'domain') string_'domain'
(string_'created_date') string_'created_date'
(string_'updated_date') string_'updated_date'
(string_'expired_date') string_'expired_date'
(string_'statuses') string_'statuses'
(string_'name_servers') string_'name_servers'
)tuple
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_parsed) identifier_parsed
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_flat) identifier_flat
(identifier_key) identifier_key
)subscript
(conditional_expression
(call
(attribute
(string_' | ') string_' | '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)comparison_operator
(identifier_value) identifier_value
)conditional_expression
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_registrar) identifier_registrar
(call
(attribute
(identifier_parsed) identifier_parsed
(identifier_get) identifier_get
)attribute
(argument_list
(string_'registrar') string_'registrar'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(tuple
(string_'name') string_'name'
(string_'abuse_contact_phone') string_'abuse_contact_phone'
(string_'abuse_contact_email') string_'abuse_contact_email'
(string_'iana_id') string_'iana_id'
(string_'url') string_'url'
(string_'whois_server') string_'whois_server'
)tuple
(block
(expression_statement
(assignment
(subscript
(identifier_flat) identifier_flat
(call
(attribute
(string_'registrar_{0}') string_'registrar_{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)subscript
(subscript
(identifier_registrar) identifier_registrar
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_contact_type) identifier_contact_type
(tuple
(string_'registrant') string_'registrant'
(string_'admin') string_'admin'
(string_'tech') string_'tech'
(string_'billing') string_'billing'
)tuple
(block
(expression_statement
(assignment
(identifier_contact) identifier_contact
(call
(attribute
(call
(attribute
(identifier_parsed) identifier_parsed
(identifier_get) identifier_get
)attribute
(argument_list
(string_'contacts') string_'contacts'
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_contact_type) identifier_contact_type
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(tuple
(string_'name') string_'name'
(string_'email') string_'email'
(string_'org') string_'org'
(string_'street') string_'street'
(string_'city') string_'city'
(string_'state') string_'state'
(string_'postal') string_'postal'
(string_'country') string_'country'
(string_'phone') string_'phone'
(string_'fax') string_'fax'
)tuple
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_contact) identifier_contact
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_flat) identifier_flat
(call
(attribute
(string_'{0}_{1}') string_'{0}_{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_contact_type) identifier_contact_type
(identifier_key) identifier_key
)argument_list
)call
)subscript
(conditional_expression
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)comparison_operator
(identifier_value) identifier_value
)conditional_expression
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_flat) identifier_flat
)return_statement
)block
)function_definition
)module | Returns a flattened version of the parsed whois data |
(module
(function_definition
(function_name_on_vrde_server_change) function_name_on_vrde_server_change
(parameters
(identifier_self) identifier_self
(identifier_restart) identifier_restart
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_restart) identifier_restart
(identifier_bool) identifier_bool
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"restart can only be an instance of type bool") string_"restart can only be an instance of type bool"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(string_"onVRDEServerChange") string_"onVRDEServerChange"
(keyword_argument
(identifier_in_p) identifier_in_p
(list
(identifier_restart) identifier_restart
)list
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Triggered when settings of the VRDE server object of the
associated virtual machine have changed.
in restart of type bool
Flag whether the server must be restarted
raises :class:`VBoxErrorInvalidVmState`
Session state prevents operation.
raises :class:`VBoxErrorInvalidObjectState`
Session type prevents operation. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.