sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_status) function_name_status
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_isEnabledFor) identifier_isEnabledFor
)attribute
(argument_list
(identifier_GNUPG_STATUS_LEVEL) identifier_GNUPG_STATUS_LEVEL
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(argument_list
(identifier_GNUPG_STATUS_LEVEL) identifier_GNUPG_STATUS_LEVEL
(identifier_message) identifier_message
(identifier_args) identifier_args
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | LogRecord for GnuPG internal status messages. |
(module
(function_definition
(function_name_refund_reward) function_name_refund_reward
(parameters
(identifier_event) identifier_event
(identifier_agreement_id) identifier_agreement_id
(identifier_did) identifier_did
(identifier_service_agreement) identifier_service_agreement
(identifier_price) identifier_price
(identifier_consumer_account) identifier_consumer_account
(identifier_publisher_address) identifier_publisher_address
(identifier_condition_ids) identifier_condition_ids
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_f"trigger refund after event {event}.") string_f"trigger refund after event {event}."
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_access_id) identifier_access_id
(identifier_lock_id) identifier_lock_id
)pattern_list
(subscript
(identifier_condition_ids) identifier_condition_ids
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name_to_parameter) identifier_name_to_parameter
(dictionary_comprehension
(pair
(attribute
(identifier_param) identifier_param
(identifier_name) identifier_name
)attribute
(identifier_param) identifier_param
)pair
(for_in_clause
(identifier_param) identifier_param
(attribute
(subscript
(attribute
(identifier_service_agreement) identifier_service_agreement
(identifier_condition_by_name) identifier_condition_by_name
)attribute
(string_'escrowReward') string_'escrowReward'
)subscript
(identifier_parameters) identifier_parameters
)attribute
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_document_id) identifier_document_id
(call
(identifier_add_0x_prefix) identifier_add_0x_prefix
(argument_list
(attribute
(subscript
(identifier_name_to_parameter) identifier_name_to_parameter
(string_'_documentId') string_'_documentId'
)subscript
(identifier_value) identifier_value
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_asset_id) identifier_asset_id
(call
(identifier_add_0x_prefix) identifier_add_0x_prefix
(argument_list
(call
(identifier_did_to_id) identifier_did_to_id
(argument_list
(identifier_did) identifier_did
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_document_id) identifier_document_id
(identifier_asset_id) identifier_asset_id
)comparison_operator
(string_f'document_id {document_id} <=> asset_id {asset_id} mismatch.') string_f'document_id {document_id} <=> asset_id {asset_id} mismatch.'
)assert_statement
(assert_statement
(comparison_operator
(identifier_price) identifier_price
(call
(attribute
(identifier_service_agreement) identifier_service_agreement
(identifier_get_price) identifier_get_price
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(string_'price mismatch.') string_'price mismatch.'
)assert_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_tx_hash) identifier_tx_hash
(call
(attribute
(attribute
(call
(attribute
(identifier_Keeper) identifier_Keeper
(identifier_get_instance) identifier_get_instance
)attribute
(argument_list
)argument_list
)call
(identifier_escrow_reward_condition) identifier_escrow_reward_condition
)attribute
(identifier_fulfill) identifier_fulfill
)attribute
(argument_list
(identifier_agreement_id) identifier_agreement_id
(identifier_price) identifier_price
(identifier_publisher_address) identifier_publisher_address
(attribute
(identifier_consumer_account) identifier_consumer_account
(identifier_address) identifier_address
)attribute
(identifier_lock_id) identifier_lock_id
(identifier_access_id) identifier_access_id
(identifier_consumer_account) identifier_consumer_account
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_process_tx_receipt) identifier_process_tx_receipt
(argument_list
(identifier_tx_hash) identifier_tx_hash
(attribute
(attribute
(call
(attribute
(identifier_Keeper) identifier_Keeper
(identifier_get_instance) identifier_get_instance
)attribute
(argument_list
)argument_list
)call
(identifier_escrow_reward_condition) identifier_escrow_reward_condition
)attribute
(identifier_FULFILLED_EVENT) identifier_FULFILLED_EVENT
)attribute
(string_'EscrowReward.Fulfilled') string_'EscrowReward.Fulfilled'
)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
(raise_statement
(identifier_e) identifier_e
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Refund the reward to the publisher address.
:param event: AttributeDict with the event data.
:param agreement_id: id of the agreement, hex str
:param did: DID, str
:param service_agreement: ServiceAgreement instance
:param price: Asset price, int
:param consumer_account: Account instance of the consumer
:param publisher_address: ethereum account address of publisher, hex str
:param condition_ids: is a list of bytes32 content-addressed Condition IDs, bytes32 |
(module
(function_definition
(function_name__validate_header) function_name__validate_header
(parameters
(identifier_self) identifier_self
(identifier_hed) identifier_hed
)parameters
(block
(if_statement
(not_operator
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_hed) identifier_hed
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_length) identifier_length
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_hed) identifier_hed
(block
(if_statement
(not_operator
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_length) identifier_length
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_length) identifier_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(identifier_length) identifier_length
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Validate the list that represents the table header.
:param hed: The list that represents the table header.
:type hed: list(list(hatemile.util.html.htmldomelement.HTMLDOMElement))
:return: True if the table header is valid or False if the table header
is not valid.
:rtype: bool |
(module
(function_definition
(function_name_pkg_config_header_strings) function_name_pkg_config_header_strings
(parameters
(identifier_pkg_libraries) identifier_pkg_libraries
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier_header_dirs) identifier_header_dirs
)pattern_list
(call
(identifier_pkg_config) identifier_pkg_config
(argument_list
(identifier_pkg_libraries) identifier_pkg_libraries
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header_strings) identifier_header_strings
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_header_dir) identifier_header_dir
(identifier_header_dirs) identifier_header_dirs
(block
(expression_statement
(call
(attribute
(identifier_header_strings) identifier_header_strings
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"-I") string_"-I"
(identifier_header_dir) identifier_header_dir
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_header_strings) identifier_header_strings
)return_statement
)block
)function_definition
)module | Returns a list of header strings that could be passed to a compiler |
(module
(function_definition
(function_name_find_mapping) function_name_find_mapping
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_other_lattice) identifier_other_lattice
(type
(string_"Lattice") string_"Lattice"
)type
)typed_parameter
(typed_default_parameter
(identifier_ltol) identifier_ltol
(type
(identifier_float) identifier_float
)type
(float_1e-5) float_1e-5
)typed_default_parameter
(typed_default_parameter
(identifier_atol) identifier_atol
(type
(identifier_float) identifier_float
)type
(integer_1) integer_1
)typed_default_parameter
(typed_default_parameter
(identifier_skip_rotation_matrix) identifier_skip_rotation_matrix
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(string_"Lattice") string_"Lattice"
)type
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
)type_parameter
)generic_type
)type
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(block
(for_statement
(identifier_x) identifier_x
(call
(attribute
(identifier_self) identifier_self
(identifier_find_all_mappings) identifier_find_all_mappings
)attribute
(argument_list
(identifier_other_lattice) identifier_other_lattice
(identifier_ltol) identifier_ltol
(identifier_atol) identifier_atol
(keyword_argument
(identifier_skip_rotation_matrix) identifier_skip_rotation_matrix
(identifier_skip_rotation_matrix) identifier_skip_rotation_matrix
)keyword_argument
)argument_list
)call
(block
(return_statement
(identifier_x) identifier_x
)return_statement
)block
)for_statement
)block
)function_definition
)module | Finds a mapping between current lattice and another lattice. There
are an infinite number of choices of basis vectors for two entirely
equivalent lattices. This method returns a mapping that maps
other_lattice to this lattice.
Args:
other_lattice (Lattice): Another lattice that is equivalent to
this one.
ltol (float): Tolerance for matching lengths. Defaults to 1e-5.
atol (float): Tolerance for matching angles. Defaults to 1.
Returns:
(aligned_lattice, rotation_matrix, scale_matrix) if a mapping is
found. aligned_lattice is a rotated version of other_lattice that
has the same lattice parameters, but which is aligned in the
coordinate system of this lattice so that translational points
match up in 3D. rotation_matrix is the rotation that has to be
applied to other_lattice to obtain aligned_lattice, i.e.,
aligned_matrix = np.inner(other_lattice, rotation_matrix) and
op = SymmOp.from_rotation_and_translation(rotation_matrix)
aligned_matrix = op.operate_multi(latt.matrix)
Finally, scale_matrix is the integer matrix that expresses
aligned_matrix as a linear combination of this
lattice, i.e., aligned_matrix = np.dot(scale_matrix, self.matrix)
None is returned if no matches are found. |
(module
(function_definition
(function_name_set_color) function_name_set_color
(parameters
(identifier_self) identifier_self
(identifier_rgb) identifier_rgb
)parameters
(block
(expression_statement
(assignment
(identifier_target) identifier_target
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_str) identifier_str
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(identifier_rgb) identifier_rgb
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_service_value) identifier_set_service_value
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_color_service) identifier_color_service
)attribute
(string_'ColorRGB') string_'ColorRGB'
(string_'newColorRGBTarget') string_'newColorRGBTarget'
(identifier_target) identifier_target
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rgbi) identifier_rgbi
(call
(attribute
(identifier_self) identifier_self
(identifier_get_color_index) identifier_get_color_index
)attribute
(argument_list
(list
(string_'R') string_'R'
(string_'G') string_'G'
(string_'B') string_'B'
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_rgbi) identifier_rgbi
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_target) identifier_target
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(string_'0=0,1=0,') string_'0=0,1=0,'
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_rgbi) identifier_rgbi
(integer_0) integer_0
)subscript
)argument_list
)call
)binary_operator
(string_'=') string_'='
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_rgb) identifier_rgb
(integer_0) integer_0
)subscript
)argument_list
)call
)binary_operator
(string_',') string_','
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_rgbi) identifier_rgbi
(integer_1) integer_1
)subscript
)argument_list
)call
)binary_operator
(string_'=') string_'='
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_rgb) identifier_rgb
(integer_1) integer_1
)subscript
)argument_list
)call
)binary_operator
(string_',') string_','
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_rgbi) identifier_rgbi
(integer_2) integer_2
)subscript
)argument_list
)call
)binary_operator
(string_'=') string_'='
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_rgb) identifier_rgb
(integer_2) integer_2
)subscript
)argument_list
)call
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_cache_complex_value) identifier_set_cache_complex_value
)attribute
(argument_list
(string_"CurrentColor") string_"CurrentColor"
(identifier_target) identifier_target
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set dimmer color. |
(module
(function_definition
(function_name__get_type_name) function_name__get_type_name
(parameters
(identifier_target_thing) identifier_target_thing
)parameters
(block
(expression_statement
(assignment
(identifier_thing) identifier_thing
(identifier_target_thing) identifier_target_thing
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_thing) identifier_thing
(string_'im_class') string_'im_class'
)argument_list
)call
(block
(return_statement
(attribute
(attribute
(identifier_thing) identifier_thing
(identifier_im_class) identifier_im_class
)attribute
(identifier___name__) identifier___name__
)attribute
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_ismethod) identifier_ismethod
)attribute
(argument_list
(identifier_thing) identifier_thing
)argument_list
)call
(block
(for_statement
(identifier_cls) identifier_cls
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getmro) identifier_getmro
)attribute
(argument_list
(attribute
(attribute
(identifier_thing) identifier_thing
(identifier___self__) identifier___self__
)attribute
(identifier___class__) identifier___class__
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier___dict__) identifier___dict__
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_thing) identifier_thing
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
(identifier_thing) identifier_thing
)comparison_operator
(block
(return_statement
(attribute
(identifier_cls) identifier_cls
(identifier___name__) identifier___name__
)attribute
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_thing) identifier_thing
(attribute
(identifier_thing) identifier_thing
(identifier___func__) identifier___func__
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_isfunction) identifier_isfunction
)attribute
(argument_list
(identifier_thing) identifier_thing
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_thing) identifier_thing
(string_'__qualname__') string_'__qualname__'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_qualifier) identifier_qualifier
(attribute
(identifier_thing) identifier_thing
(identifier___qualname__) identifier___qualname__
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_LOCALS_TOKEN) identifier_LOCALS_TOKEN
(identifier_qualifier) identifier_qualifier
)comparison_operator
(block
(return_statement
(call
(identifier__get_local_type_name) identifier__get_local_type_name
(argument_list
(identifier_thing) identifier_thing
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier__get_external_type_name) identifier__get_external_type_name
(argument_list
(identifier_thing) identifier_thing
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(attribute
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getmodule) identifier_getmodule
)attribute
(argument_list
(identifier_target_thing) identifier_target_thing
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
)return_statement
)block
)function_definition
)module | Functions, bound methods and unbound methods change significantly in Python 3.
For instance:
class SomeObject(object):
def method():
pass
In Python 2:
- Unbound method inspect.ismethod(SomeObject.method) returns True
- Unbound inspect.isfunction(SomeObject.method) returns False
- Unbound hasattr(SomeObject.method, 'im_class') returns True
- Bound method inspect.ismethod(SomeObject().method) returns True
- Bound method inspect.isfunction(SomeObject().method) returns False
- Bound hasattr(SomeObject().method, 'im_class') returns True
In Python 3:
- Unbound method inspect.ismethod(SomeObject.method) returns False
- Unbound inspect.isfunction(SomeObject.method) returns True
- Unbound hasattr(SomeObject.method, 'im_class') returns False
- Bound method inspect.ismethod(SomeObject().method) returns True
- Bound method inspect.isfunction(SomeObject().method) returns False
- Bound hasattr(SomeObject().method, 'im_class') returns False
This method tries to consolidate the approach for retrieving the
enclosing type of a bound/unbound method and functions. |
(module
(function_definition
(function_name_get_all_lines) function_name_get_all_lines
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_line) identifier_line
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lineno) identifier_lineno
(integer_1) integer_1
)assignment
)expression_statement
(for_statement
(identifier_char) identifier_char
(attribute
(identifier_self) identifier_self
(identifier_string) identifier_string
)attribute
(block
(expression_statement
(call
(attribute
(identifier_line) identifier_line
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_char) identifier_char
(string_'\n') string_'\n'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_SourceLine) identifier_SourceLine
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(identifier_lineno) identifier_lineno
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_line) identifier_line
(list
)list
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_lineno) identifier_lineno
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_line) identifier_line
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_SourceLine) identifier_SourceLine
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(identifier_lineno) identifier_lineno
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Return all lines of the SourceString as a list of SourceLine's. |
(module
(function_definition
(function_name_fetch_by_refresh_token) function_name_fetch_by_refresh_token
(parameters
(identifier_self) identifier_self
(identifier_refresh_token) identifier_refresh_token
)parameters
(block
(expression_statement
(assignment
(identifier_row) identifier_row
(call
(attribute
(identifier_self) identifier_self
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_fetch_by_refresh_token_query) identifier_fetch_by_refresh_token_query
)attribute
(identifier_refresh_token) identifier_refresh_token
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_row) identifier_row
(None) None
)comparison_operator
(block
(raise_statement
(identifier_AccessTokenNotFound) identifier_AccessTokenNotFound
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_scopes) identifier_scopes
(call
(attribute
(identifier_self) identifier_self
(identifier__fetch_scopes) identifier__fetch_scopes
)attribute
(argument_list
(keyword_argument
(identifier_access_token_id) identifier_access_token_id
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__fetch_data) identifier__fetch_data
)attribute
(argument_list
(keyword_argument
(identifier_access_token_id) identifier_access_token_id
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__row_to_token) identifier__row_to_token
)attribute
(argument_list
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_scopes) identifier_scopes
(identifier_scopes) identifier_scopes
)keyword_argument
(keyword_argument
(identifier_row) identifier_row
(identifier_row) identifier_row
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves an access token by its refresh token.
:param refresh_token: The refresh token of an access token as a `str`.
:return: An instance of :class:`oauth2.datatype.AccessToken`.
:raises: :class:`oauth2.error.AccessTokenNotFound` if not access token
could be retrieved. |
(module
(function_definition
(function_name_rename_fmapm) function_name_rename_fmapm
(parameters
(identifier_bids_base) identifier_bids_base
(identifier_basename) identifier_basename
)parameters
(block
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_ext) identifier_ext
(list
(string_'nii.gz') string_'nii.gz'
(string_'json') string_'json'
)list
(block
(for_statement
(identifier_echo) identifier_echo
(list
(integer_1) integer_1
(integer_2) integer_2
)list
(block
(expression_statement
(assignment
(identifier_fname) identifier_fname
(call
(attribute
(string_'{0}_e{1}.{2}') string_'{0}_e{1}.{2}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_basename) identifier_basename
(identifier_echo) identifier_echo
(identifier_ext) identifier_ext
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_src) identifier_src
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_bids_base) identifier_bids_base
(string_'fmap') string_'fmap'
(identifier_fname) identifier_fname
)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_src) identifier_src
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dst) identifier_dst
(call
(attribute
(identifier_src) identifier_src
(identifier_replace) identifier_replace
)attribute
(argument_list
(call
(attribute
(string_'magnitude_e{0}') string_'magnitude_e{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_echo) identifier_echo
)argument_list
)call
(call
(attribute
(string_'magnitude{0}') string_'magnitude{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_echo) identifier_echo
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'renaming %s to %s') string_'renaming %s to %s'
(identifier_src) identifier_src
(identifier_dst) identifier_dst
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_rename) identifier_rename
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_dst) identifier_dst
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_files) identifier_files
(identifier_ext) identifier_ext
)subscript
(identifier_dst) identifier_dst
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_files) identifier_files
)return_statement
)block
)function_definition
)module | Rename magnitude fieldmap file to BIDS specification |
(module
(function_definition
(function_name_after) function_name_after
(parameters
(identifier_parents) identifier_parents
(default_parameter
(identifier_func) identifier_func
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_func) identifier_func
(None) None
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(call
(identifier_after) identifier_after
(argument_list
(identifier_parents) identifier_parents
(identifier_f) identifier_f
)argument_list
)call
)lambda
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dep) identifier_dep
(call
(identifier_Dependent) identifier_Dependent
(argument_list
(identifier_parents) identifier_parents
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_parent) identifier_parent
(identifier_parents) identifier_parents
(block
(if_statement
(attribute
(identifier_parent) identifier_parent
(identifier_complete) identifier_complete
)attribute
(block
(expression_statement
(call
(attribute
(identifier_dep) identifier_dep
(identifier__incoming) identifier__incoming
)attribute
(argument_list
(identifier_parent) identifier_parent
(attribute
(identifier_parent) identifier_parent
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_parent) identifier_parent
(identifier__children) identifier__children
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_weakref) identifier_weakref
(identifier_ref) identifier_ref
)attribute
(argument_list
(identifier_dep) identifier_dep
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_dep) identifier_dep
)return_statement
)block
)function_definition
)module | Create a new Future whose completion depends on parent futures
The new future will have a function that it calls once all its parents
have completed, the return value of which will be its final value.
There is a special case, however, in which the dependent future's
callback returns a future or list of futures. In those cases, waiting
on the dependent will also wait for all those futures, and the result
(or list of results) of those future(s) will then be the final value.
:param parents:
A list of futures, all of which must be complete before the
dependent's function runs.
:type parents: list
:param function func:
The function to determine the value of the dependent future. It
will take as many arguments as it has parents, and they will be the
results of those futures.
:returns:
a :class:`Dependent`, which is a subclass of :class:`Future` and
has all its capabilities. |
(module
(function_definition
(function_name__get_destcache) function_name__get_destcache
(parameters
(identifier_self) identifier_self
(identifier_graph) identifier_graph
(identifier_orig) identifier_orig
(identifier_branch) identifier_branch
(identifier_turn) identifier_turn
(identifier_tick) identifier_tick
(keyword_separator
)keyword_separator
(identifier_forward) identifier_forward
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_destcache) identifier_destcache
(identifier_destcache_lru) identifier_destcache_lru
(identifier_get_keycachelike) identifier_get_keycachelike
(identifier_successors) identifier_successors
(identifier_adds_dels_sucpred) identifier_adds_dels_sucpred
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier__get_destcache_stuff) identifier__get_destcache_stuff
)attribute
)assignment
)expression_statement
(expression_statement
(call
(identifier_lru_append) identifier_lru_append
(argument_list
(identifier_destcache) identifier_destcache
(identifier_destcache_lru) identifier_destcache_lru
(tuple
(tuple
(identifier_graph) identifier_graph
(identifier_orig) identifier_orig
(identifier_branch) identifier_branch
)tuple
(identifier_turn) identifier_turn
(identifier_tick) identifier_tick
)tuple
(identifier_KEYCACHE_MAXSIZE) identifier_KEYCACHE_MAXSIZE
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_get_keycachelike) identifier_get_keycachelike
(argument_list
(identifier_destcache) identifier_destcache
(identifier_successors) identifier_successors
(identifier_adds_dels_sucpred) identifier_adds_dels_sucpred
(tuple
(identifier_graph) identifier_graph
(identifier_orig) identifier_orig
)tuple
(identifier_branch) identifier_branch
(identifier_turn) identifier_turn
(identifier_tick) identifier_tick
(keyword_argument
(identifier_forward) identifier_forward
(identifier_forward) identifier_forward
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a set of destination nodes succeeding ``orig`` |
(module
(function_definition
(function_name_parse_skypipe_data_stream) function_name_parse_skypipe_data_stream
(parameters
(identifier_msg) identifier_msg
(identifier_for_pipe) identifier_for_pipe
)parameters
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pipe_name) identifier_pipe_name
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_header) identifier_header
(identifier_SP_HEADER) identifier_SP_HEADER
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_pipe_name) identifier_pipe_name
(identifier_for_pipe) identifier_for_pipe
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_command) identifier_command
(identifier_SP_CMD_DATA) identifier_SP_CMD_DATA
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_data) identifier_data
(identifier_SP_DATA_EOF) identifier_SP_DATA_EOF
)comparison_operator
(block
(raise_statement
(call
(identifier_EOFError) identifier_EOFError
(argument_list
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | May return data from skypipe message or raises EOFError |
(module
(function_definition
(function_name_weighted_std) function_name_weighted_std
(parameters
(identifier_values) identifier_values
(identifier_weights) identifier_weights
)parameters
(block
(expression_statement
(assignment
(identifier_average) identifier_average
(call
(attribute
(identifier_np) identifier_np
(identifier_average) identifier_average
)attribute
(argument_list
(identifier_values) identifier_values
(keyword_argument
(identifier_weights) identifier_weights
(identifier_weights) identifier_weights
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_variance) identifier_variance
(call
(attribute
(identifier_np) identifier_np
(identifier_average) identifier_average
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_values) identifier_values
(identifier_average) identifier_average
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
(keyword_argument
(identifier_weights) identifier_weights
(identifier_weights) identifier_weights
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(identifier_variance) identifier_variance
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculate standard deviation weighted by errors |
(module
(function_definition
(function_name_create_default_profiles) function_name_create_default_profiles
(parameters
(identifier_apps) identifier_apps
(identifier_schema_editor) identifier_schema_editor
)parameters
(block
(expression_statement
(assignment
(identifier_Profile) identifier_Profile
(call
(attribute
(identifier_apps) identifier_apps
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(string_"edxval") string_"edxval"
(string_"Profile") string_"Profile"
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_profile) identifier_profile
(identifier_DEFAULT_PROFILES) identifier_DEFAULT_PROFILES
(block
(expression_statement
(call
(attribute
(attribute
(identifier_Profile) identifier_Profile
(identifier_objects) identifier_objects
)attribute
(identifier_get_or_create) identifier_get_or_create
)attribute
(argument_list
(keyword_argument
(identifier_profile_name) identifier_profile_name
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Add default profiles |
(module
(function_definition
(function_name_get_order_container) function_name_get_order_container
(parameters
(identifier_self) identifier_self
(identifier_quote_id) identifier_quote_id
)parameters
(block
(expression_statement
(assignment
(identifier_quote) identifier_quote
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(string_'Billing_Order_Quote') string_'Billing_Order_Quote'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_container) identifier_container
(call
(attribute
(identifier_quote) identifier_quote
(identifier_getRecalculatedOrderContainer) identifier_getRecalculatedOrderContainer
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_quote_id) identifier_quote_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_container) identifier_container
)return_statement
)block
)function_definition
)module | Generate an order container from a quote object.
:param quote_id: ID number of target quote |
(module
(function_definition
(function_name_PrintTags) function_name_PrintTags
(parameters
(identifier_self) identifier_self
(identifier_file) identifier_file
)parameters
(block
(print_statement
(chevron
(identifier_file) identifier_file
)chevron
(binary_operator
(string_'/* Tag definition for %s */') string_'/* Tag definition for %s */'
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
)binary_operator
)print_statement
(print_statement
(chevron
(identifier_file) identifier_file
)chevron
(binary_operator
(string_'enum %s_ {') string_'enum %s_ {'
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)binary_operator
)print_statement
(for_statement
(identifier_entry) identifier_entry
(attribute
(identifier_self) identifier_self
(identifier__entries) identifier__entries
)attribute
(block
(print_statement
(chevron
(identifier_file) identifier_file
)chevron
(binary_operator
(string_' %s=%d,') string_' %s=%d,'
(tuple
(call
(attribute
(identifier_self) identifier_self
(identifier_EntryTagName) identifier_EntryTagName
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
(call
(attribute
(identifier_entry) identifier_entry
(identifier_Tag) identifier_Tag
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)print_statement
)block
)for_statement
(print_statement
(chevron
(identifier_file) identifier_file
)chevron
(binary_operator
(string_' %s_MAX_TAGS') string_' %s_MAX_TAGS'
(parenthesized_expression
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)binary_operator
)print_statement
(print_statement
(chevron
(identifier_file) identifier_file
)chevron
(string_'};\n') string_'};\n'
)print_statement
)block
)function_definition
)module | Prints the tag definitions for a structure. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_get_block) identifier_get_block
)attribute
(argument_list
(binary_operator
(string_r'route-map\s%s\s\w+\s\d+') string_r'route-map\s%s\s\w+\s\d+'
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_entries) identifier__parse_entries
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Provides a method to retrieve all routemap configuration
related to the name attribute.
Args:
name (string): The name of the routemap.
Returns:
None if the specified routemap does not exists. If the routermap
exists a dictionary will be provided as follows::
{
'deny': {
30: {
'continue': 200,
'description': None,
'match': ['as 2000',
'source-protocol ospf',
'interface Ethernet2'],
'set': []
}
},
'permit': {
10: {
'continue': 100,
'description': None,
'match': ['interface Ethernet1'],
'set': ['tag 50']},
20: {
'continue': 200,
'description': None,
'match': ['as 2000',
'source-protocol ospf',
'interface Ethernet2'],
'set': []
}
}
} |
(module
(function_definition
(function_name_add_arguments) function_name_add_arguments
(parameters
(identifier_self) identifier_self
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--length') string_'--length'
(keyword_argument
(identifier_default) identifier_default
(attribute
(identifier_self) identifier_self
(identifier_length) identifier_length
)attribute
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_int) identifier_int
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(call
(identifier__) identifier__
(argument_list
(binary_operator
(string_'SECRET_KEY length default=%d') string_'SECRET_KEY length default=%d'
(attribute
(identifier_self) identifier_self
(identifier_length) identifier_length
)attribute
)binary_operator
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--alphabet') string_'--alphabet'
(keyword_argument
(identifier_default) identifier_default
(attribute
(identifier_self) identifier_self
(identifier_allowed_chars) identifier_allowed_chars
)attribute
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(call
(identifier__) identifier__
(argument_list
(binary_operator
(string_'alphabet to use default=%s') string_'alphabet to use default=%s'
(attribute
(identifier_self) identifier_self
(identifier_allowed_chars) identifier_allowed_chars
)attribute
)binary_operator
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Define optional arguments with default values |
(module
(function_definition
(function_name_apply_purging) function_name_apply_purging
(parameters
(identifier_self) identifier_self
(identifier_catalogue) identifier_catalogue
(identifier_flag_vector) identifier_flag_vector
(identifier_magnitude_table) identifier_magnitude_table
)parameters
(block
(expression_statement
(assignment
(identifier_output_catalogue) identifier_output_catalogue
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(identifier_catalogue) identifier_catalogue
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_magnitude_table) identifier_magnitude_table
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_flag_vector) identifier_flag_vector
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_output_catalogue) identifier_output_catalogue
(identifier_catalogue_mt_filter) identifier_catalogue_mt_filter
)attribute
(argument_list
(identifier_magnitude_table) identifier_magnitude_table
(identifier_flag_vector) identifier_flag_vector
)argument_list
)call
)expression_statement
(return_statement
(identifier_output_catalogue) identifier_output_catalogue
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_output_catalogue) identifier_output_catalogue
(identifier_catalogue_mt_filter) identifier_catalogue_mt_filter
)attribute
(argument_list
(identifier_magnitude_table) identifier_magnitude_table
)argument_list
)call
)expression_statement
(return_statement
(identifier_output_catalogue) identifier_output_catalogue
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_flag_vector) identifier_flag_vector
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_output_catalogue) identifier_output_catalogue
(identifier_purge_catalogue) identifier_purge_catalogue
)attribute
(argument_list
(identifier_flag_vector) identifier_flag_vector
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_output_catalogue) identifier_output_catalogue
)return_statement
)block
)function_definition
)module | Apply all the various purging conditions, if specified.
:param catalogue:
Earthquake catalogue as instance of :class:`openquake.hmtk.seismicity.catalogue.Catalogue`
:param numpy.array flag_vector:
Boolean vector specifying whether each event is valid (therefore
written) or otherwise
:param numpy.ndarray magnitude_table:
Magnitude-time table specifying the year and magnitudes of
completeness |
(module
(function_definition
(function_name__generate_genesis_block) function_name__generate_genesis_block
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_genesis_header) identifier_genesis_header
(call
(attribute
(identifier_block_pb2) identifier_block_pb2
(identifier_BlockHeader) identifier_BlockHeader
)attribute
(argument_list
(keyword_argument
(identifier_block_num) identifier_block_num
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_previous_block_id) identifier_previous_block_id
(identifier_NULL_BLOCK_IDENTIFIER) identifier_NULL_BLOCK_IDENTIFIER
)keyword_argument
(keyword_argument
(identifier_signer_public_key) identifier_signer_public_key
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__identity_signer) identifier__identity_signer
)attribute
(identifier_get_public_key) identifier_get_public_key
)attribute
(argument_list
)argument_list
)call
(identifier_as_hex) identifier_as_hex
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_BlockBuilder) identifier_BlockBuilder
(argument_list
(identifier_genesis_header) identifier_genesis_header
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a blocker wrapper with the basics of the block header in place |
(module
(function_definition
(function_name_requests_for_variant) function_name_requests_for_variant
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(default_parameter
(identifier_variant_id) identifier_variant_id
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_requests) identifier_requests
(call
(attribute
(attribute
(identifier_ProductRequest) identifier_ProductRequest
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_variant__id) identifier_variant__id
(identifier_variant_id) identifier_variant_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_serializer) identifier_serializer
(call
(attribute
(identifier_self) identifier_self
(identifier_serializer_class) identifier_serializer_class
)attribute
(argument_list
(identifier_requests) identifier_requests
(keyword_argument
(identifier_many) identifier_many
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Response) identifier_Response
(argument_list
(keyword_argument
(identifier_data) identifier_data
(attribute
(identifier_serializer) identifier_serializer
(identifier_data) identifier_data
)attribute
)keyword_argument
(keyword_argument
(identifier_status) identifier_status
(attribute
(identifier_status) identifier_status
(identifier_HTTP_200_OK) identifier_HTTP_200_OK
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get all the requests for a single variant |
(module
(function_definition
(function_name_to_string) function_name_to_string
(parameters
(identifier_node) identifier_node
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_BytesIO) identifier_BytesIO
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_write) identifier_write
(argument_list
(list
(identifier_node) identifier_node
)list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_f) identifier_f
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Convert a node into a string in NRML format |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_symbol) identifier_symbol
(identifier_X) identifier_X
(default_parameter
(identifier_y) identifier_y
(None) None
)default_parameter
(default_parameter
(identifier_ctx) identifier_ctx
(None) None
)default_parameter
(default_parameter
(identifier_num_epoch) identifier_num_epoch
(None) None
)default_parameter
(default_parameter
(identifier_epoch_size) identifier_epoch_size
(None) None
)default_parameter
(default_parameter
(identifier_optimizer) identifier_optimizer
(string_'sgd') string_'sgd'
)default_parameter
(default_parameter
(identifier_initializer) identifier_initializer
(call
(identifier_Uniform) identifier_Uniform
(argument_list
(float_0.01) float_0.01
)argument_list
)call
)default_parameter
(default_parameter
(identifier_eval_data) identifier_eval_data
(None) None
)default_parameter
(default_parameter
(identifier_eval_metric) identifier_eval_metric
(string_'acc') string_'acc'
)default_parameter
(default_parameter
(identifier_epoch_end_callback) identifier_epoch_end_callback
(None) None
)default_parameter
(default_parameter
(identifier_batch_end_callback) identifier_batch_end_callback
(None) None
)default_parameter
(default_parameter
(identifier_kvstore) identifier_kvstore
(string_'local') string_'local'
)default_parameter
(default_parameter
(identifier_logger) identifier_logger
(None) None
)default_parameter
(default_parameter
(identifier_work_load_list) identifier_work_load_list
(None) None
)default_parameter
(default_parameter
(identifier_eval_end_callback) identifier_eval_end_callback
(call
(identifier_LogValidationMetricsCallback) identifier_LogValidationMetricsCallback
(argument_list
)argument_list
)call
)default_parameter
(default_parameter
(identifier_eval_batch_end_callback) identifier_eval_batch_end_callback
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(identifier_FeedForward) identifier_FeedForward
(argument_list
(identifier_symbol) identifier_symbol
(keyword_argument
(identifier_ctx) identifier_ctx
(identifier_ctx) identifier_ctx
)keyword_argument
(keyword_argument
(identifier_num_epoch) identifier_num_epoch
(identifier_num_epoch) identifier_num_epoch
)keyword_argument
(keyword_argument
(identifier_epoch_size) identifier_epoch_size
(identifier_epoch_size) identifier_epoch_size
)keyword_argument
(keyword_argument
(identifier_optimizer) identifier_optimizer
(identifier_optimizer) identifier_optimizer
)keyword_argument
(keyword_argument
(identifier_initializer) identifier_initializer
(identifier_initializer) identifier_initializer
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_model) identifier_model
(identifier_fit) identifier_fit
)attribute
(argument_list
(identifier_X) identifier_X
(identifier_y) identifier_y
(keyword_argument
(identifier_eval_data) identifier_eval_data
(identifier_eval_data) identifier_eval_data
)keyword_argument
(keyword_argument
(identifier_eval_metric) identifier_eval_metric
(identifier_eval_metric) identifier_eval_metric
)keyword_argument
(keyword_argument
(identifier_epoch_end_callback) identifier_epoch_end_callback
(identifier_epoch_end_callback) identifier_epoch_end_callback
)keyword_argument
(keyword_argument
(identifier_batch_end_callback) identifier_batch_end_callback
(identifier_batch_end_callback) identifier_batch_end_callback
)keyword_argument
(keyword_argument
(identifier_kvstore) identifier_kvstore
(identifier_kvstore) identifier_kvstore
)keyword_argument
(keyword_argument
(identifier_logger) identifier_logger
(identifier_logger) identifier_logger
)keyword_argument
(keyword_argument
(identifier_work_load_list) identifier_work_load_list
(identifier_work_load_list) identifier_work_load_list
)keyword_argument
(keyword_argument
(identifier_eval_end_callback) identifier_eval_end_callback
(identifier_eval_end_callback) identifier_eval_end_callback
)keyword_argument
(keyword_argument
(identifier_eval_batch_end_callback) identifier_eval_batch_end_callback
(identifier_eval_batch_end_callback) identifier_eval_batch_end_callback
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
)function_definition
)module | Functional style to create a model.
This function is more consistent with functional
languages such as R, where mutation is not allowed.
Parameters
----------
symbol : Symbol
The symbol configuration of a computation network.
X : DataIter
Training data.
y : numpy.ndarray, optional
If `X` is a ``numpy.ndarray``, `y` must be set.
ctx : Context or list of Context, optional
The device context of training and prediction.
To use multi-GPU training, pass in a list of GPU contexts.
num_epoch : int, optional
The number of training epochs(epochs).
epoch_size : int, optional
Number of batches in a epoch. In default, it is set to
``ceil(num_train_examples / batch_size)``.
optimizer : str or Optimizer, optional
The name of the chosen optimizer, or an optimizer object, used for training.
initializer : initializer function, optional
The initialization scheme used.
eval_data : DataIter or numpy.ndarray pair
If `eval_set` is ``numpy.ndarray`` pair, it should
be (`valid_data`, `valid_label`).
eval_metric : metric.EvalMetric or str or callable
The evaluation metric. Can be the name of an evaluation metric
or a custom evaluation function that returns statistics
based on a minibatch.
epoch_end_callback : callable(epoch, symbol, arg_params, aux_states)
A callback that is invoked at end of each epoch.
This can be used to checkpoint model each epoch.
batch_end_callback: callable(epoch)
A callback that is invoked at end of each batch for print purposes.
kvstore: KVStore or str, optional
The KVStore or a string kvstore type: 'local', 'dist_sync', 'dis_async'.
Defaults to 'local', often no need to change for single machine.
logger : logging logger, optional
When not specified, default logger will be used.
work_load_list : list of float or int, optional
The list of work load for different devices,
in the same order as `ctx`. |
(module
(function_definition
(function_name_get_default_min_hwe_kernel) function_name_get_default_min_hwe_kernel
(parameters
(identifier_cls) identifier_cls
)parameters
(type
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_Optional) identifier_Optional
)attribute
(identifier_str) identifier_str
)subscript
)type
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(await
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_config) identifier_get_config
)attribute
(argument_list
(string_"default_min_hwe_kernel") string_"default_min_hwe_kernel"
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(conditional_expression
(None) None
(boolean_operator
(comparison_operator
(identifier_data) identifier_data
(None) None
)comparison_operator
(comparison_operator
(identifier_data) identifier_data
(string_"") string_""
)comparison_operator
)boolean_operator
(identifier_data) identifier_data
)conditional_expression
)return_statement
)block
)function_definition
)module | Default minimum kernel version.
The minimum kernel version used on new and commissioned nodes. |
(module
(function_definition
(function_name_http_context) function_name_http_context
(parameters
(identifier_self) identifier_self
(identifier_worker_ctx) identifier_worker_ctx
)parameters
(block
(expression_statement
(assignment
(identifier_http) identifier_http
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_worker_ctx) identifier_worker_ctx
(identifier_entrypoint) identifier_entrypoint
)attribute
(identifier_HttpRequestHandler) identifier_HttpRequestHandler
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(subscript
(attribute
(identifier_worker_ctx) identifier_worker_ctx
(identifier_args) identifier_args
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(try_statement
(block
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_mimetype) identifier_mimetype
)attribute
(string_'application/json') string_'application/json'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(attribute
(identifier_request) identifier_request
(identifier_form) identifier_form
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_ClientDisconnected) identifier_ClientDisconnected
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_urlparts) identifier_urlparts
(call
(identifier_urlsplit) identifier_urlsplit
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_url) identifier_url
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_http) identifier_http
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'url') string_'url'
(call
(attribute
(string_'{}://{}{}') string_'{}://{}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_urlparts) identifier_urlparts
(identifier_scheme) identifier_scheme
)attribute
(attribute
(identifier_urlparts) identifier_urlparts
(identifier_netloc) identifier_netloc
)attribute
(attribute
(identifier_urlparts) identifier_urlparts
(identifier_path) identifier_path
)attribute
)argument_list
)call
)pair
(pair
(string_'query_string') string_'query_string'
(attribute
(identifier_urlparts) identifier_urlparts
(identifier_query) identifier_query
)attribute
)pair
(pair
(string_'method') string_'method'
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
)pair
(pair
(string_'data') string_'data'
(identifier_data) identifier_data
)pair
(pair
(string_'headers') string_'headers'
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_get_headers) identifier_get_headers
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_environ) identifier_environ
)attribute
)argument_list
)call
)argument_list
)call
)pair
(pair
(string_'env') string_'env'
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_get_environ) identifier_get_environ
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_environ) identifier_environ
)attribute
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_http_context) identifier_http_context
)attribute
(argument_list
(identifier_http) identifier_http
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Attempt to extract HTTP context if an HTTP entrypoint was used. |
(module
(function_definition
(function_name__decade_ranges_in_date_range) function_name__decade_ranges_in_date_range
(parameters
(identifier_self) identifier_self
(identifier_begin_date) identifier_begin_date
(identifier_end_date) identifier_end_date
)parameters
(block
(expression_statement
(assignment
(identifier_begin_dated) identifier_begin_dated
(binary_operator
(attribute
(identifier_begin_date) identifier_begin_date
(identifier_year) identifier_year
)attribute
(integer_10) integer_10
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end_dated) identifier_end_dated
(binary_operator
(attribute
(identifier_end_date) identifier_end_date
(identifier_year) identifier_year
)attribute
(integer_10) integer_10
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_decades) identifier_decades
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_d) identifier_d
(call
(identifier_range) identifier_range
(argument_list
(identifier_begin_dated) identifier_begin_dated
(binary_operator
(identifier_end_dated) identifier_end_dated
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_decades) identifier_decades
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{}-{}') string_'{}-{}'
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(identifier_d) identifier_d
(integer_10) integer_10
)binary_operator
(binary_operator
(binary_operator
(identifier_d) identifier_d
(integer_10) integer_10
)binary_operator
(integer_9) integer_9
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_decades) identifier_decades
)return_statement
)block
)function_definition
)module | Return a list of decades which is covered by date range. |
(module
(function_definition
(function_name_split_phylogeny) function_name_split_phylogeny
(parameters
(identifier_p) identifier_p
(default_parameter
(identifier_level) identifier_level
(string_"s") string_"s"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_level) identifier_level
(binary_operator
(identifier_level) identifier_level
(string_"__") string_"__"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_p) identifier_p
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_level) identifier_level
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(subscript
(identifier_result) identifier_result
(integer_0) integer_0
)subscript
(identifier_level) identifier_level
)binary_operator
(subscript
(call
(attribute
(subscript
(identifier_result) identifier_result
(integer_1) integer_1
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_";") string_";"
)argument_list
)call
(integer_0) integer_0
)subscript
)binary_operator
)return_statement
)block
)function_definition
)module | Return either the full or truncated version of a QIIME-formatted taxonomy string.
:type p: str
:param p: A QIIME-formatted taxonomy string: k__Foo; p__Bar; ...
:type level: str
:param level: The different level of identification are kingdom (k), phylum (p),
class (c),order (o), family (f), genus (g) and species (s). If level is
not provided, the default level of identification is species.
:rtype: str
:return: A QIIME-formatted taxonomy string up to the classification given
by param level. |
(module
(function_definition
(function_name__check_trim) function_name__check_trim
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_trim) identifier_trim
(call
(attribute
(subscript
(identifier_data) identifier_data
(string_"algorithm") string_"algorithm"
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(string_"trim_reads") string_"trim_reads"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_trim) identifier_trim
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_trim) identifier_trim
(string_"fastp") string_"fastp"
)comparison_operator
(comparison_operator
(call
(attribute
(subscript
(identifier_data) identifier_data
(string_"algorithm") string_"algorithm"
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(string_"align_split_size") string_"align_split_size"
)argument_list
)call
(False) False
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"In sample %s, `trim_reads: fastp` currently requires `align_split_size: false`") string_"In sample %s, `trim_reads: fastp` currently requires `align_split_size: false`"
(parenthesized_expression
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_sample_name) identifier_get_sample_name
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)parenthesized_expression
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Check for valid values for trim_reads. |
(module
(function_definition
(function_name_touch_member) function_name_touch_member
(parameters
(identifier_config) identifier_config
(identifier_dcs) identifier_dcs
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_Postgresql) identifier_Postgresql
(argument_list
(subscript
(identifier_config) identifier_config
(string_'postgresql') string_'postgresql'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_set_state) identifier_set_state
)attribute
(argument_list
(string_'running') string_'running'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_set_role) identifier_set_role
)attribute
(argument_list
(string_'master') string_'master'
)argument_list
)call
)expression_statement
(function_definition
(function_name_restapi_connection_string) function_name_restapi_connection_string
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_protocol) identifier_protocol
(conditional_expression
(string_'https') string_'https'
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'certfile') string_'certfile'
)argument_list
)call
(string_'http') string_'http'
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_connect_address) identifier_connect_address
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'connect_address') string_'connect_address'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_listen) identifier_listen
(subscript
(identifier_config) identifier_config
(string_'listen') string_'listen'
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'{0}://{1}/patroni') string_'{0}://{1}/patroni'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_protocol) identifier_protocol
(boolean_operator
(identifier_connect_address) identifier_connect_address
(identifier_listen) identifier_listen
)boolean_operator
)argument_list
)call
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'conn_url') string_'conn_url'
(attribute
(identifier_p) identifier_p
(identifier_connection_string) identifier_connection_string
)attribute
)pair
(pair
(string_'api_url') string_'api_url'
(call
(identifier_restapi_connection_string) identifier_restapi_connection_string
(argument_list
(subscript
(identifier_config) identifier_config
(string_'restapi') string_'restapi'
)subscript
)argument_list
)call
)pair
(pair
(string_'state') string_'state'
(attribute
(identifier_p) identifier_p
(identifier_state) identifier_state
)attribute
)pair
(pair
(string_'role') string_'role'
(attribute
(identifier_p) identifier_p
(identifier_role) identifier_role
)attribute
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_dcs) identifier_dcs
(identifier_touch_member) identifier_touch_member
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_permanent) identifier_permanent
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Rip-off of the ha.touch_member without inter-class dependencies |
(module
(function_definition
(function_name_repeat) function_name_repeat
(parameters
(identifier_coro) identifier_coro
(default_parameter
(identifier_times) identifier_times
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_step) identifier_step
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_loop) identifier_loop
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_assert_corofunction) identifier_assert_corofunction
(argument_list
(keyword_argument
(identifier_coro) identifier_coro
(identifier_coro) identifier_coro
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_times) identifier_times
(call
(identifier_max) identifier_max
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_times) identifier_times
)argument_list
)call
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iterable) identifier_iterable
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(identifier_times) identifier_times
(integer_1) integer_1
)binary_operator
(identifier_step) identifier_step
)argument_list
)call
)assignment
)expression_statement
(return_statement
(parenthesized_expression
(yield
(call
(identifier_map) identifier_map
(argument_list
(identifier_coro) identifier_coro
(identifier_iterable) identifier_iterable
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
(keyword_argument
(identifier_loop) identifier_loop
(identifier_loop) identifier_loop
)keyword_argument
)argument_list
)call
)yield
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Executes the coroutine function ``x`` number of times,
and accumulates results in order as you would use with ``map``.
Execution concurrency is configurable using ``limit`` param.
This function is a coroutine.
Arguments:
coro (coroutinefunction): coroutine function to schedule.
times (int): number of times to execute the coroutine.
step (int): increment iteration step, as with ``range()``.
limit (int): concurrency execution limit. Defaults to 10.
loop (asyncio.BaseEventLoop): optional event loop to use.
Raises:
TypeError: if coro is not a coroutine function.
Returns:
list: accumulated yielded values returned by coroutine.
Usage::
async def mul_2(num):
return num * 2
await paco.repeat(mul_2, times=5)
# => [2, 4, 6, 8, 10] |
(module
(function_definition
(function_name_generate_lars_path) function_name_generate_lars_path
(parameters
(identifier_weighted_data) identifier_weighted_data
(identifier_weighted_labels) identifier_weighted_labels
)parameters
(block
(expression_statement
(assignment
(identifier_x_vector) identifier_x_vector
(identifier_weighted_data) identifier_weighted_data
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_alphas) identifier_alphas
(identifier__) identifier__
(identifier_coefs) identifier_coefs
)pattern_list
(call
(identifier_lars_path) identifier_lars_path
(argument_list
(identifier_x_vector) identifier_x_vector
(identifier_weighted_labels) identifier_weighted_labels
(keyword_argument
(identifier_method) identifier_method
(string_'lasso') string_'lasso'
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_alphas) identifier_alphas
(identifier_coefs) identifier_coefs
)expression_list
)return_statement
)block
)function_definition
)module | Generates the lars path for weighted data.
Args:
weighted_data: data that has been weighted by kernel
weighted_label: labels, weighted by kernel
Returns:
(alphas, coefs), both are arrays corresponding to the
regularization parameter and coefficients, respectively |
(module
(function_definition
(function_name_list_security_groups) function_name_list_security_groups
(parameters
(default_parameter
(identifier_call) identifier_call
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_call) identifier_call
(string_'action') string_'action'
)comparison_operator
(block
(raise_statement
(call
(identifier_SaltCloudSystemExit) identifier_SaltCloudSystemExit
(argument_list
(string_'The list_security_groups function must be called with -f or --function.') string_'The list_security_groups function must be called with -f or --function.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_server) identifier_server
(identifier_user) identifier_user
(identifier_password) identifier_password
)pattern_list
(call
(identifier__get_xml_rpc) identifier__get_xml_rpc
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_auth) identifier_auth
(call
(attribute
(string_':') string_':'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_user) identifier_user
(identifier_password) identifier_password
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_secgroup_pool) identifier_secgroup_pool
(subscript
(call
(attribute
(attribute
(attribute
(identifier_server) identifier_server
(identifier_one) identifier_one
)attribute
(identifier_secgrouppool) identifier_secgrouppool
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_auth) identifier_auth
(unary_operator
(integer_2) integer_2
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_groups) identifier_groups
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_group) identifier_group
(call
(identifier__get_xml) identifier__get_xml
(argument_list
(identifier_secgroup_pool) identifier_secgroup_pool
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_groups) identifier_groups
(attribute
(call
(attribute
(identifier_group) identifier_group
(identifier_find) identifier_find
)attribute
(argument_list
(string_'NAME') string_'NAME'
)argument_list
)call
(identifier_text) identifier_text
)attribute
)subscript
(call
(identifier__xml_to_dict) identifier__xml_to_dict
(argument_list
(identifier_group) identifier_group
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_groups) identifier_groups
)return_statement
)block
)function_definition
)module | Lists all security groups available to the user and the user's groups.
.. versionadded:: 2016.3.0
CLI Example:
.. code-block:: bash
salt-cloud -f list_security_groups opennebula |
(module
(function_definition
(function_name_NOT) function_name_NOT
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(decorated_definition
(decorator
(identifier_chainable) identifier_chainable
)decorator
(function_definition
(function_name_validator) function_name_validator
(parameters
(identifier_v) identifier_v
)parameters
(block
(try_statement
(block
(expression_statement
(call
(identifier_fn) identifier_fn
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(identifier_v) identifier_v
)return_statement
)block
)except_clause
)try_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'invalid') string_'invalid'
)argument_list
)call
)raise_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_validator) identifier_validator
)return_statement
)block
)function_definition
)module | Reverse the effect of a chainable validator function |
(module
(function_definition
(function_name_terms_iterator_for_elasticsearch) function_name_terms_iterator_for_elasticsearch
(parameters
(typed_parameter
(identifier_fo) identifier_fo
(type
(identifier_IO) identifier_IO
)type
)typed_parameter
(typed_parameter
(identifier_index_name) identifier_index_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_species_list) identifier_species_list
(call
(attribute
(subscript
(identifier_config) identifier_config
(string_"bel_resources") string_"bel_resources"
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(string_"species_list") string_"species_list"
(list
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fo) identifier_fo
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_gzip) identifier_gzip
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_fo) identifier_fo
(string_"rt") string_"rt"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(identifier_f) identifier_f
(block
(expression_statement
(assignment
(identifier_term) identifier_term
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_"term") string_"term"
(identifier_term) identifier_term
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_term) identifier_term
(subscript
(identifier_term) identifier_term
(string_"term") string_"term"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_species_id) identifier_species_id
(call
(attribute
(identifier_term) identifier_term
(identifier_get) identifier_get
)attribute
(argument_list
(string_"species_id") string_"species_id"
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_species_list) identifier_species_list
(identifier_species_id) identifier_species_id
)boolean_operator
(comparison_operator
(identifier_species_id) identifier_species_id
(identifier_species_list) identifier_species_list
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_all_term_ids) identifier_all_term_ids
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_term_id) identifier_term_id
(binary_operator
(list
(subscript
(identifier_term) identifier_term
(string_"id") string_"id"
)subscript
)list
(call
(attribute
(identifier_term) identifier_term
(identifier_get) identifier_get
)attribute
(argument_list
(string_"alt_ids") string_"alt_ids"
(list
)list
)argument_list
)call
)binary_operator
(block
(expression_statement
(call
(attribute
(identifier_all_term_ids) identifier_all_term_ids
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_term_id) identifier_term_id
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_all_term_ids) identifier_all_term_ids
(identifier_add) identifier_add
)attribute
(argument_list
(call
(identifier_lowercase_term_id) identifier_lowercase_term_id
(argument_list
(identifier_term_id) identifier_term_id
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_term) identifier_term
(string_"alt_ids") string_"alt_ids"
)subscript
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_all_term_ids) identifier_all_term_ids
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(dictionary
(pair
(string_"_op_type") string_"_op_type"
(string_"index") string_"index"
)pair
(pair
(string_"_index") string_"_index"
(identifier_index_name) identifier_index_name
)pair
(pair
(string_"_type") string_"_type"
(string_"term") string_"term"
)pair
(pair
(string_"_id") string_"_id"
(subscript
(identifier_term) identifier_term
(string_"id") string_"id"
)subscript
)pair
(pair
(string_"_source") string_"_source"
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_term) identifier_term
)argument_list
)call
)pair
)dictionary
)yield
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Add index_name to term documents for bulk load |
(module
(function_definition
(function_name_batch_iter) function_name_batch_iter
(parameters
(identifier_data) identifier_data
(identifier_batch_size) identifier_batch_size
(identifier_num_epochs) identifier_num_epochs
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_size) identifier_data_size
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_num_batches_per_epoch) identifier_num_batches_per_epoch
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(identifier_batch_size) identifier_batch_size
)binary_operator
)argument_list
)call
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_epoch) identifier_epoch
(call
(identifier_range) identifier_range
(argument_list
(identifier_num_epochs) identifier_num_epochs
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_shuffle_indices) identifier_shuffle_indices
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_permutation) identifier_permutation
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(identifier_data_size) identifier_data_size
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_shuffled_data) identifier_shuffled_data
(subscript
(identifier_data) identifier_data
(identifier_shuffle_indices) identifier_shuffle_indices
)subscript
)assignment
)expression_statement
(for_statement
(identifier_batch_num) identifier_batch_num
(call
(identifier_range) identifier_range
(argument_list
(identifier_num_batches_per_epoch) identifier_num_batches_per_epoch
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_start_index) identifier_start_index
(binary_operator
(identifier_batch_num) identifier_batch_num
(identifier_batch_size) identifier_batch_size
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end_index) identifier_end_index
(call
(identifier_min) identifier_min
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_batch_num) identifier_batch_num
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_batch_size) identifier_batch_size
)binary_operator
(identifier_data_size) identifier_data_size
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(subscript
(identifier_shuffled_data) identifier_shuffled_data
(slice
(identifier_start_index) identifier_start_index
(colon) colon
(identifier_end_index) identifier_end_index
)slice
)subscript
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Generates a batch iterator for a dataset. |
(module
(function_definition
(function_name_to_safe) function_name_to_safe
(parameters
(identifier_self) identifier_self
(identifier_word) identifier_word
)parameters
(block
(expression_statement
(assignment
(identifier_regex) identifier_regex
(string_"[^A-Za-z0-9\_") string_"[^A-Za-z0-9\_"
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_replace_dash_in_groups) identifier_replace_dash_in_groups
)attribute
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_regex) identifier_regex
(string_"\-") string_"\-"
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(binary_operator
(identifier_regex) identifier_regex
(string_"]") string_"]"
)binary_operator
(string_"_") string_"_"
(identifier_word) identifier_word
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts 'bad' characters in a string to underscores so they can be used as Ansible groups |
(module
(function_definition
(function_name__begin_write) function_name__begin_write
(parameters
(typed_parameter
(identifier_session) identifier_session
(type
(identifier_UpdateSession) identifier_UpdateSession
)type
)typed_parameter
(typed_parameter
(identifier_loop) identifier_loop
(type
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_AbstractEventLoop) identifier_AbstractEventLoop
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_rootfs_file_path) identifier_rootfs_file_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_set_progress) identifier_set_progress
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_set_stage) identifier_set_stage
)attribute
(argument_list
(attribute
(identifier_Stages) identifier_Stages
(identifier_WRITING) identifier_WRITING
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_write_future) identifier_write_future
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_ensure_future) identifier_ensure_future
)attribute
(argument_list
(call
(attribute
(identifier_loop) identifier_loop
(identifier_run_in_executor) identifier_run_in_executor
)attribute
(argument_list
(None) None
(attribute
(identifier_file_actions) identifier_file_actions
(identifier_write_update) identifier_write_update
)attribute
(identifier_rootfs_file_path) identifier_rootfs_file_path
(attribute
(identifier_session) identifier_session
(identifier_set_progress) identifier_set_progress
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_write_done) function_name_write_done
(parameters
(identifier_fut) identifier_fut
)parameters
(block
(expression_statement
(assignment
(identifier_exc) identifier_exc
(call
(attribute
(identifier_fut) identifier_fut
(identifier_exception) identifier_exception
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_exc) identifier_exc
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_set_error) identifier_set_error
)attribute
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_exc) identifier_exc
(string_'short') string_'short'
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)argument_list
)call
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_set_stage) identifier_set_stage
)attribute
(argument_list
(attribute
(identifier_Stages) identifier_Stages
(identifier_DONE) identifier_DONE
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_write_future) identifier_write_future
(identifier_add_done_callback) identifier_add_done_callback
)attribute
(argument_list
(identifier_write_done) identifier_write_done
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start the write process. |
(module
(function_definition
(function_name_record) function_name_record
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__initialized) identifier__initialized
)attribute
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInternalError) identifier_PyCdlibInternalError
)attribute
(argument_list
(string_'UDF Logical Volume Integrity Descriptor not initialized') string_'UDF Logical Volume Integrity Descriptor not initialized'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rec) identifier_rec
(subscript
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_FMT) identifier_FMT
)attribute
(binary_operator
(string_b'\x00') string_b'\x00'
(integer_16) integer_16
)binary_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recording_date) identifier_recording_date
)attribute
(identifier_record) identifier_record
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
(integer_0) integer_0
(integer_0) integer_0
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logical_volume_contents_use) identifier_logical_volume_contents_use
)attribute
(identifier_record) identifier_record
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
(attribute
(identifier_self) identifier_self
(identifier_length_impl_use) identifier_length_impl_use
)attribute
(attribute
(identifier_self) identifier_self
(identifier_free_space_table) identifier_free_space_table
)attribute
(attribute
(identifier_self) identifier_self
(identifier_size_table) identifier_size_table
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logical_volume_impl_use) identifier_logical_volume_impl_use
)attribute
(identifier_record) identifier_record
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(slice
(integer_16) integer_16
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_desc_tag) identifier_desc_tag
)attribute
(identifier_record) identifier_record
)attribute
(argument_list
(identifier_rec) identifier_rec
)argument_list
)call
(identifier_rec) identifier_rec
)binary_operator
)return_statement
)block
)function_definition
)module | A method to generate the string representing this UDF Logical Volume
Integrity Descriptor.
Parameters:
None.
Returns:
A string representing this UDF Logical Volume Integrity Descriptor. |
(module
(function_definition
(function_name_parse_http_accept_header) function_name_parse_http_accept_header
(parameters
(identifier_header) identifier_header
)parameters
(block
(expression_statement
(assignment
(identifier_components) identifier_components
(list_comprehension
(call
(attribute
(identifier_item) identifier_item
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_item) identifier_item
(call
(attribute
(identifier_header) identifier_header
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_l) identifier_l
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_component) identifier_component
(identifier_components) identifier_components
(block
(if_statement
(comparison_operator
(string_';') string_';'
(identifier_component) identifier_component
)comparison_operator
(block
(expression_statement
(assignment
(identifier_subcomponents) identifier_subcomponents
(list_comprehension
(call
(attribute
(identifier_item) identifier_item
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_item) identifier_item
(call
(attribute
(identifier_component) identifier_component
(identifier_split) identifier_split
)attribute
(argument_list
(string_';') string_';'
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_l) identifier_l
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(subscript
(identifier_subcomponents) identifier_subcomponents
(integer_0) integer_0
)subscript
(subscript
(subscript
(identifier_subcomponents) identifier_subcomponents
(integer_1) integer_1
)subscript
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
)tuple
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_l) identifier_l
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_component) identifier_component
(string_'1') string_'1'
)tuple
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_l) identifier_l
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_i) identifier_i
)lambda_parameters
(subscript
(identifier_i) identifier_i
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_content_types) identifier_content_types
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(identifier_l) identifier_l
(block
(expression_statement
(call
(attribute
(identifier_content_types) identifier_content_types
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_i) identifier_i
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_content_types) identifier_content_types
)return_statement
)block
)function_definition
)module | Return a list of content types listed in the HTTP Accept header
ordered by quality.
:param header: A string describing the contents of the HTTP Accept header. |
(module
(function_definition
(function_name_generic_modis5kmto1km) function_name_generic_modis5kmto1km
(parameters
(list_splat_pattern
(identifier_data5km) identifier_data5km
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_cols5km) identifier_cols5km
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(integer_2) integer_2
(integer_1354) integer_1354
(integer_5) integer_5
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cols1km) identifier_cols1km
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(integer_1354) integer_1354
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(binary_operator
(subscript
(attribute
(subscript
(identifier_data5km) identifier_data5km
(integer_0) integer_0
)subscript
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
(integer_5) integer_5
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rows5km) identifier_rows5km
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(integer_2) integer_2
(identifier_lines) identifier_lines
(integer_5) integer_5
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rows1km) identifier_rows1km
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(identifier_lines) identifier_lines
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_along_track_order) identifier_along_track_order
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cross_track_order) identifier_cross_track_order
(integer_3) integer_3
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_satint) identifier_satint
(call
(identifier_Interpolator) identifier_Interpolator
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_data5km) identifier_data5km
)argument_list
)call
(tuple
(identifier_rows5km) identifier_rows5km
(identifier_cols5km) identifier_cols5km
)tuple
(tuple
(identifier_rows1km) identifier_rows1km
(identifier_cols1km) identifier_cols1km
)tuple
(identifier_along_track_order) identifier_along_track_order
(identifier_cross_track_order) identifier_cross_track_order
(keyword_argument
(identifier_chunk_size) identifier_chunk_size
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_satint) identifier_satint
(identifier_fill_borders) identifier_fill_borders
)attribute
(argument_list
(string_"y") string_"y"
(string_"x") string_"x"
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_satint) identifier_satint
(identifier_interpolate) identifier_interpolate
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Getting 1km data for modis from 5km tiepoints. |
(module
(function_definition
(function_name_daterange) function_name_daterange
(parameters
(identifier_self) identifier_self
(identifier_datecol) identifier_datecol
(identifier_date_start) identifier_date_start
(identifier_op) identifier_op
(dictionary_splat_pattern
(identifier_args) identifier_args
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_self) identifier_self
(identifier__daterange) identifier__daterange
)attribute
(argument_list
(identifier_datecol) identifier_datecol
(identifier_date_start) identifier_date_start
(identifier_op) identifier_op
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_df) identifier_df
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_err) identifier_err
)attribute
(argument_list
(string_"Can not select date range data") string_"Can not select date range data"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_df) identifier_df
)attribute
(identifier_df) identifier_df
)assignment
)expression_statement
)block
)function_definition
)module | Returns rows in a date range |
(module
(function_definition
(function_name_set_primary_contact) function_name_set_primary_contact
(parameters
(identifier_self) identifier_self
(identifier_email) identifier_email
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"email") string_"email"
(identifier_email) identifier_email
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__put) identifier__put
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_uri_for) identifier_uri_for
)attribute
(argument_list
(string_'primarycontact') string_'primarycontact'
)argument_list
)call
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_json_to_py) identifier_json_to_py
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | assigns the primary contact for this client |
(module
(function_definition
(function_name_get_content_descendants_by_type) function_name_get_content_descendants_by_type
(parameters
(identifier_self) identifier_self
(identifier_content_id) identifier_content_id
(identifier_child_type) identifier_child_type
(default_parameter
(identifier_expand) identifier_expand
(None) None
)default_parameter
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_expand) identifier_expand
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"expand") string_"expand"
)subscript
(identifier_expand) identifier_expand
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_start) identifier_start
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"start") string_"start"
)subscript
(call
(identifier_int) identifier_int
(argument_list
(identifier_start) identifier_start
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_limit) identifier_limit
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"limit") string_"limit"
)subscript
(call
(identifier_int) identifier_int
(argument_list
(identifier_limit) identifier_limit
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__service_get_request) identifier__service_get_request
)attribute
(argument_list
(call
(attribute
(concatenated_string
(string_"rest/api/content/{id}/descendant/{type}") string_"rest/api/content/{id}/descendant/{type}"
(string_"") string_""
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_content_id) identifier_content_id
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_child_type) identifier_child_type
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_callback) identifier_callback
(identifier_callback) identifier_callback
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the direct descendants of a piece of Content, limited to a single descendant type.
The {@link ContentType}(s) of the descendants returned is specified by the "type" path parameter in the request.
Currently the only supported descendants are comment descendants of non-comment Content.
:param content_id (string): A string containing the id of the content to retrieve descendants for
:param child_type (string): A {@link ContentType} to filter descendants on.
:param expand (string): OPTIONAL: A comma separated list of properties to expand on the descendants.
Default: Empty
:param start (int): OPTIONAL: The index of the first item within the result set that should be returned.
Default: 0.
:param limit (int): OPTIONAL: How many items should be returned after the start index.
Default: 25 or site limit.
:param callback: OPTIONAL: The callback to execute on the resulting data, before the method returns.
Default: None (no callback, raw data returned).
:return: The JSON data returned from the content/{id}/descendant/{type} endpoint, or the results of the
callback. Will raise requests.HTTPError on bad input, potentially. |
(module
(function_definition
(function_name_filterGraph) function_name_filterGraph
(parameters
(identifier_graph) identifier_graph
(identifier_node_fnc) identifier_node_fnc
)parameters
(block
(expression_statement
(assignment
(identifier_nodes) identifier_nodes
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_l) identifier_l
)lambda_parameters
(call
(identifier_node_fnc) identifier_node_fnc
(argument_list
(identifier_l) identifier_l
)argument_list
)call
)lambda
(call
(attribute
(identifier_graph) identifier_graph
(identifier_nodes) identifier_nodes
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edges) identifier_edges
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_gedges) identifier_gedges
(call
(attribute
(identifier_graph) identifier_graph
(identifier_edges) identifier_edges
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_u) identifier_u
(identifier_gedges) identifier_gedges
(block
(if_statement
(comparison_operator
(identifier_u) identifier_u
(identifier_nodes) identifier_nodes
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_v) identifier_v
(subscript
(identifier_gedges) identifier_gedges
(identifier_u) identifier_u
)subscript
(block
(if_statement
(comparison_operator
(identifier_v) identifier_v
(identifier_nodes) identifier_nodes
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(subscript
(identifier_edges) identifier_edges
(identifier_u) identifier_u
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(subscript
(identifier_edges) identifier_edges
(identifier_u) identifier_u
)subscript
(list
(identifier_v) identifier_v
)list
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(identifier_Graph) identifier_Graph
(argument_list
(identifier_nodes) identifier_nodes
(identifier_edges) identifier_edges
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove all nodes for with node_fnc does not hold |
(module
(function_definition
(function_name_angprofile) function_name_angprofile
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_kwargs_copy) identifier_kwargs_copy
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_base_dict) identifier_base_dict
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_kwargs_copy) identifier_kwargs_copy
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__replace_none) identifier__replace_none
)attribute
(argument_list
(identifier_kwargs_copy) identifier_kwargs_copy
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_localpath) identifier_localpath
(call
(attribute
(attribute
(identifier_NameFactory) identifier_NameFactory
(identifier_angprofile_format) identifier_angprofile_format
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs_copy) identifier_kwargs_copy
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'fullpath') string_'fullpath'
(False) False
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fullpath) identifier_fullpath
)attribute
(argument_list
(keyword_argument
(identifier_localpath) identifier_localpath
(identifier_localpath) identifier_localpath
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_localpath) identifier_localpath
)return_statement
)block
)function_definition
)module | return the file name for sun or moon angular profiles |
(module
(function_definition
(function_name_get_config) function_name_get_config
(parameters
(identifier_config_file) identifier_config_file
)parameters
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tobool) identifier_tobool
(lambda
(lambda_parameters
(identifier_s) identifier_s
)lambda_parameters
(conditional_expression
(True) True
(comparison_operator
(call
(attribute
(identifier_s) identifier_s
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'true') string_'true'
)comparison_operator
(False) False
)conditional_expression
)lambda
)assignment
)expression_statement
(if_statement
(identifier_config_file) identifier_config_file
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_open) identifier_open
(argument_list
(identifier_config_file) identifier_config_file
(string_'r') string_'r'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"Unable to open configuration file '{0}'") string_"Unable to open configuration file '{0}'"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_config_file) identifier_config_file
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
(else_clause
(block
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_f) identifier_f
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_"=") string_"="
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(expression_list
(call
(attribute
(identifier_key) identifier_key
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_value) identifier_value
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)expression_list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(list
(string_'init2class') string_'init2class'
(string_'first_line') string_'first_line'
(string_'convert_only') string_'convert_only'
)list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_tobool) identifier_tobool
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_config) identifier_config
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)else_clause
)try_statement
)block
)if_statement
(return_statement
(identifier_config) identifier_config
)return_statement
)block
)function_definition
)module | Get the configuration from a file.
@param config_file: the configuration file
@return: the configuration
@rtype: dict |
(module
(function_definition
(function_name__encode_params) function_name__encode_params
(parameters
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name__encode) function_name__encode
(parameters
(identifier_L) identifier_L
(identifier_k) identifier_k
(identifier_v) identifier_v
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_unicode) identifier_unicode
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_L) identifier_L
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'%s=%s') string_'%s=%s'
(tuple
(identifier_k) identifier_k
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_quote) identifier_quote
)attribute
(argument_list
(call
(attribute
(identifier_v) identifier_v
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_L) identifier_L
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'%s=%s') string_'%s=%s'
(tuple
(identifier_k) identifier_k
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_quote) identifier_quote
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(attribute
(identifier_collections) identifier_collections
(identifier_Iterable) identifier_Iterable
)attribute
)argument_list
)call
(block
(for_statement
(identifier_x) identifier_x
(identifier_v) identifier_v
(block
(expression_statement
(call
(identifier__encode) identifier__encode
(argument_list
(identifier_L) identifier_L
(identifier_k) identifier_k
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_L) identifier_L
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'%s=%s') string_'%s=%s'
(tuple
(identifier_k) identifier_k
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_quote) identifier_quote
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_args) identifier_args
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_kw) identifier_kw
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier__encode) identifier__encode
(argument_list
(identifier_args) identifier_args
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_'&') string_'&'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)return_statement
)block
)function_definition
)module | Do url-encode parameters
>>> _encode_params(a=1, b='R&D')
'a=1&b=R%26D'
>>> _encode_params(a=u'\u4e2d\u6587', b=['A', 'B', 123])
'a=%E4%B8%AD%E6%96%87&b=A&b=B&b=123' |
(module
(function_definition
(function_name_sconsign_dir) function_name_sconsign_dir
(parameters
(identifier_node) identifier_node
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_node) identifier_node
(identifier__sconsign) identifier__sconsign
)attribute
)not_operator
(block
(import_statement
(dotted_name
(identifier_SCons) identifier_SCons
(identifier_SConsign) identifier_SConsign
)dotted_name
)import_statement
(expression_statement
(assignment
(attribute
(identifier_node) identifier_node
(identifier__sconsign) identifier__sconsign
)attribute
(call
(attribute
(attribute
(identifier_SCons) identifier_SCons
(identifier_SConsign) identifier_SConsign
)attribute
(identifier_ForDirectory) identifier_ForDirectory
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_node) identifier_node
(identifier__sconsign) identifier__sconsign
)attribute
)return_statement
)block
)function_definition
)module | Return the .sconsign file info for this directory,
creating it first if necessary. |
(module
(function_definition
(function_name_mapPriority) function_name_mapPriority
(parameters
(identifier_levelno) identifier_levelno
)parameters
(block
(if_statement
(comparison_operator
(identifier_levelno) identifier_levelno
(attribute
(identifier__logging) identifier__logging
(identifier_DEBUG) identifier_DEBUG
)attribute
)comparison_operator
(block
(return_statement
(identifier_LOG_DEBUG) identifier_LOG_DEBUG
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_levelno) identifier_levelno
(attribute
(identifier__logging) identifier__logging
(identifier_INFO) identifier_INFO
)attribute
)comparison_operator
(block
(return_statement
(identifier_LOG_INFO) identifier_LOG_INFO
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_levelno) identifier_levelno
(attribute
(identifier__logging) identifier__logging
(identifier_WARNING) identifier_WARNING
)attribute
)comparison_operator
(block
(return_statement
(identifier_LOG_WARNING) identifier_LOG_WARNING
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_levelno) identifier_levelno
(attribute
(identifier__logging) identifier__logging
(identifier_ERROR) identifier_ERROR
)attribute
)comparison_operator
(block
(return_statement
(identifier_LOG_ERR) identifier_LOG_ERR
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_levelno) identifier_levelno
(attribute
(identifier__logging) identifier__logging
(identifier_CRITICAL) identifier_CRITICAL
)attribute
)comparison_operator
(block
(return_statement
(identifier_LOG_CRIT) identifier_LOG_CRIT
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(identifier_LOG_ALERT) identifier_LOG_ALERT
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Map logging levels to journald priorities.
Since Python log level numbers are "sparse", we have
to map numbers in between the standard levels too. |
(module
(function_definition
(function_name_line) function_name_line
(parameters
(identifier_self) identifier_self
(identifier_x_0) identifier_x_0
(identifier_y_0) identifier_y_0
(identifier_x_1) identifier_x_1
(identifier_y_1) identifier_y_1
(identifier_color) identifier_color
)parameters
(block
(expression_statement
(assignment
(identifier_d_x) identifier_d_x
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(identifier_x_1) identifier_x_1
(identifier_x_0) identifier_x_0
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d_y) identifier_d_y
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(identifier_y_1) identifier_y_1
(identifier_y_0) identifier_y_0
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)pattern_list
(expression_list
(identifier_x_0) identifier_x_0
(identifier_y_0) identifier_y_0
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s_x) identifier_s_x
(conditional_expression
(unary_operator
(integer_1) integer_1
)unary_operator
(comparison_operator
(identifier_x_0) identifier_x_0
(identifier_x_1) identifier_x_1
)comparison_operator
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s_y) identifier_s_y
(conditional_expression
(unary_operator
(integer_1) integer_1
)unary_operator
(comparison_operator
(identifier_y_0) identifier_y_0
(identifier_y_1) identifier_y_1
)comparison_operator
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_d_x) identifier_d_x
(identifier_d_y) identifier_d_y
)comparison_operator
(block
(expression_statement
(assignment
(identifier_err) identifier_err
(binary_operator
(identifier_d_x) identifier_d_x
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_x) identifier_x
(identifier_x_1) identifier_x_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pixel) identifier_pixel
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_color) identifier_color
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_err) identifier_err
(identifier_d_y) identifier_d_y
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_err) identifier_err
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_y) identifier_y
(identifier_s_y) identifier_s_y
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_err) identifier_err
(identifier_d_x) identifier_d_x
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_x) identifier_x
(identifier_s_x) identifier_s_x
)augmented_assignment
)expression_statement
)block
)while_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_err) identifier_err
(binary_operator
(identifier_d_y) identifier_d_y
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_y) identifier_y
(identifier_y_1) identifier_y_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pixel) identifier_pixel
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_color) identifier_color
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_err) identifier_err
(identifier_d_x) identifier_d_x
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_err) identifier_err
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_x) identifier_x
(identifier_s_x) identifier_s_x
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_err) identifier_err
(identifier_d_y) identifier_d_y
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_y) identifier_y
(identifier_s_y) identifier_s_y
)augmented_assignment
)expression_statement
)block
)while_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pixel) identifier_pixel
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_color) identifier_color
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Bresenham's line algorithm |
(module
(function_definition
(function_name_flush_profile_data) function_name_flush_profile_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier_lock) identifier_lock
)attribute
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_events) identifier_events
(attribute
(identifier_self) identifier_self
(identifier_events) identifier_events
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_events) identifier_events
)attribute
(list
)list
)assignment
)expression_statement
)block
)with_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker) identifier_worker
)attribute
(identifier_mode) identifier_mode
)attribute
(attribute
(identifier_ray) identifier_ray
(identifier_WORKER_MODE) identifier_WORKER_MODE
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_component_type) identifier_component_type
(string_"worker") string_"worker"
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_component_type) identifier_component_type
(string_"driver") string_"driver"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker) identifier_worker
)attribute
(identifier_raylet_client) identifier_raylet_client
)attribute
(identifier_push_profile_events) identifier_push_profile_events
)attribute
(argument_list
(identifier_component_type) identifier_component_type
(call
(attribute
(identifier_ray) identifier_ray
(identifier_UniqueID) identifier_UniqueID
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker) identifier_worker
)attribute
(identifier_worker_id) identifier_worker_id
)attribute
)argument_list
)call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker) identifier_worker
)attribute
(identifier_node_ip_address) identifier_node_ip_address
)attribute
(identifier_events) identifier_events
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Push the logged profiling data to the global control store. |
(module
(function_definition
(function_name_get_thumbnail_format) function_name_get_thumbnail_format
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_field) identifier_field
)attribute
(identifier_thumbnail_format) identifier_thumbnail_format
)attribute
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_field) identifier_field
)attribute
(identifier_thumbnail_format) identifier_thumbnail_format
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_filename_split) identifier_filename_split
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'.') string_'.'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_filename_split) identifier_filename_split
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Determines the target thumbnail type either by looking for a format
override specified at the model level, or by using the format the
user uploaded. |
(module
(function_definition
(function_name_savings_score) function_name_savings_score
(parameters
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
(identifier_cost_mat) identifier_cost_mat
)parameters
(block
(expression_statement
(assignment
(identifier_y_true) identifier_y_true
(call
(identifier_column_or_1d) identifier_column_or_1d
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y_pred) identifier_y_pred
(call
(identifier_column_or_1d) identifier_column_or_1d
(argument_list
(identifier_y_pred) identifier_y_pred
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n_samples) identifier_n_samples
(call
(identifier_len) identifier_len
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cost_base) identifier_cost_base
(call
(identifier_min) identifier_min
(argument_list
(call
(identifier_cost_loss) identifier_cost_loss
(argument_list
(identifier_y_true) identifier_y_true
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_n_samples) identifier_n_samples
)argument_list
)call
(identifier_cost_mat) identifier_cost_mat
)argument_list
)call
(call
(identifier_cost_loss) identifier_cost_loss
(argument_list
(identifier_y_true) identifier_y_true
(call
(attribute
(identifier_np) identifier_np
(identifier_ones) identifier_ones
)attribute
(argument_list
(identifier_n_samples) identifier_n_samples
)argument_list
)call
(identifier_cost_mat) identifier_cost_mat
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cost) identifier_cost
(call
(identifier_cost_loss) identifier_cost_loss
(argument_list
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
(identifier_cost_mat) identifier_cost_mat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(float_1.0) float_1.0
(binary_operator
(identifier_cost) identifier_cost
(identifier_cost_base) identifier_cost_base
)binary_operator
)binary_operator
)return_statement
)block
)function_definition
)module | Savings score.
This function calculates the savings cost of using y_pred on y_true with
cost-matrix cost-mat, as the difference of y_pred and the cost_loss of a naive
classification model.
Parameters
----------
y_true : array-like or label indicator matrix
Ground truth (correct) labels.
y_pred : array-like or label indicator matrix
Predicted labels, as returned by a classifier.
cost_mat : array-like of shape = [n_samples, 4]
Cost matrix of the classification problem
Where the columns represents the costs of: false positives, false negatives,
true positives and true negatives, for each example.
Returns
-------
score : float
Savings of a using y_pred on y_true with cost-matrix cost-mat
The best performance is 1.
References
----------
.. [1] A. Correa Bahnsen, A. Stojanovic, D.Aouada, B, Ottersten,
`"Improving Credit Card Fraud Detection with Calibrated Probabilities" <http://albahnsen.com/files/%20Improving%20Credit%20Card%20Fraud%20Detection%20by%20using%20Calibrated%20Probabilities%20-%20Publish.pdf>`__, in Proceedings of the fourteenth SIAM International Conference on Data Mining,
677-685, 2014.
See also
--------
cost_loss
Examples
--------
>>> import numpy as np
>>> from costcla.metrics import savings_score, cost_loss
>>> y_pred = [0, 1, 0, 0]
>>> y_true = [0, 1, 1, 0]
>>> cost_mat = np.array([[4, 1, 0, 0], [1, 3, 0, 0], [2, 3, 0, 0], [2, 1, 0, 0]])
>>> savings_score(y_true, y_pred, cost_mat)
0.5 |
(module
(function_definition
(function_name_dice) function_name_dice
(parameters
(identifier_self) identifier_self
(identifier_n) identifier_n
(identifier_d) identifier_d
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(identifier_n) identifier_n
)argument_list
)call
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_roll_die) identifier_roll_die
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Roll ``n`` dice with ``d`` faces, and yield the results.
This is an iterator. You'll get the result of each die in
successon. |
(module
(function_definition
(function_name_cleanup) function_name_cleanup
(parameters
(identifier_self) identifier_self
(identifier_release) identifier_release
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Performing cleanup.") string_"Performing cleanup."
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_execute_actioncollection) identifier_execute_actioncollection
(argument_list
(attribute
(identifier_release) identifier_release
(identifier__releasefile) identifier__releasefile
)attribute
(keyword_argument
(identifier_actioncollection) identifier_actioncollection
(attribute
(identifier_release) identifier_release
(identifier__cleanup) identifier__cleanup
)attribute
)keyword_argument
(keyword_argument
(identifier_confirm) identifier_confirm
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform cleanup actions on the releasefile of the given release
This is inteded to be used in a action unit.
:param release: the release with the releasefile and cleanup actions
:type release: :class:`Release`
:returns: the action status of the cleanup actions
:rtype: :class:`ActionStatus`
:raises: None |
(module
(function_definition
(function_name__get_action) function_name__get_action
(parameters
(identifier_trans) identifier_trans
)parameters
(block
(expression_statement
(assignment
(identifier_mark_action) identifier_mark_action
(dictionary
(pair
(string_'^') string_'^'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_MARK) identifier_ADD_MARK
)attribute
(attribute
(identifier_Mark) identifier_Mark
(identifier_HAT) identifier_HAT
)attribute
)tuple
)pair
(pair
(string_'+') string_'+'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_MARK) identifier_ADD_MARK
)attribute
(attribute
(identifier_Mark) identifier_Mark
(identifier_BREVE) identifier_BREVE
)attribute
)tuple
)pair
(pair
(string_'*') string_'*'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_MARK) identifier_ADD_MARK
)attribute
(attribute
(identifier_Mark) identifier_Mark
(identifier_HORN) identifier_HORN
)attribute
)tuple
)pair
(pair
(string_'-') string_'-'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_MARK) identifier_ADD_MARK
)attribute
(attribute
(identifier_Mark) identifier_Mark
(identifier_BAR) identifier_BAR
)attribute
)tuple
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_accent_action) identifier_accent_action
(dictionary
(pair
(string_'\\') string_'\\'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_ACCENT) identifier_ADD_ACCENT
)attribute
(attribute
(identifier_Accent) identifier_Accent
(identifier_GRAVE) identifier_GRAVE
)attribute
)tuple
)pair
(pair
(string_'/') string_'/'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_ACCENT) identifier_ADD_ACCENT
)attribute
(attribute
(identifier_Accent) identifier_Accent
(identifier_ACUTE) identifier_ACUTE
)attribute
)tuple
)pair
(pair
(string_'?') string_'?'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_ACCENT) identifier_ADD_ACCENT
)attribute
(attribute
(identifier_Accent) identifier_Accent
(identifier_HOOK) identifier_HOOK
)attribute
)tuple
)pair
(pair
(string_'~') string_'~'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_ACCENT) identifier_ADD_ACCENT
)attribute
(attribute
(identifier_Accent) identifier_Accent
(identifier_TIDLE) identifier_TIDLE
)attribute
)tuple
)pair
(pair
(string_'.') string_'.'
(tuple
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_ACCENT) identifier_ADD_ACCENT
)attribute
(attribute
(identifier_Accent) identifier_Accent
(identifier_DOT) identifier_DOT
)attribute
)tuple
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_trans) identifier_trans
(integer_0) integer_0
)subscript
(tuple
(string_'<') string_'<'
(string_'+') string_'+'
)tuple
)comparison_operator
(block
(return_statement
(expression_list
(attribute
(identifier__Action) identifier__Action
(identifier_ADD_CHAR) identifier_ADD_CHAR
)attribute
(subscript
(identifier_trans) identifier_trans
(integer_1) integer_1
)subscript
)expression_list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_trans) identifier_trans
(integer_0) integer_0
)subscript
(string_"_") string_"_"
)comparison_operator
(block
(return_statement
(expression_list
(attribute
(identifier__Action) identifier__Action
(identifier_UNDO) identifier_UNDO
)attribute
(subscript
(identifier_trans) identifier_trans
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)expression_list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_trans) identifier_trans
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(return_statement
(subscript
(identifier_mark_action) identifier_mark_action
(subscript
(identifier_trans) identifier_trans
(integer_1) integer_1
)subscript
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(subscript
(identifier_accent_action) identifier_accent_action
(subscript
(identifier_trans) identifier_trans
(integer_0) integer_0
)subscript
)subscript
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the action inferred from the transformation `trans`.
and the parameter going with this action
An _Action.ADD_MARK goes with a Mark
while an _Action.ADD_ACCENT goes with an Accent |
(module
(function_definition
(function_name_form_upload_valid) function_name_form_upload_valid
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current_step) identifier_current_step
)attribute
(attribute
(identifier_self) identifier_self
(identifier_STEP_LINES) identifier_STEP_LINES
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(subscript
(attribute
(identifier_form) identifier_form
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(string_'file') string_'file'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_initial_lines) identifier_initial_lines
(list_comprehension
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_columns) identifier_get_columns
)attribute
(argument_list
)argument_list
)call
(identifier_line) identifier_line
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_line) identifier_line
(identifier_lines) identifier_lines
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_inner_form) identifier_inner_form
(call
(attribute
(identifier_self) identifier_self
(identifier_get_form) identifier_get_form
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_form_class) identifier_get_form_class
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_data) identifier_data
(None) None
)keyword_argument
(keyword_argument
(identifier_files) identifier_files
(None) None
)keyword_argument
(keyword_argument
(identifier_initial) identifier_initial
(identifier_initial_lines) identifier_initial_lines
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render_to_response) identifier_render_to_response
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_context_data) identifier_get_context_data
)attribute
(argument_list
(keyword_argument
(identifier_form) identifier_form
(identifier_inner_form) identifier_inner_form
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Handle a valid upload form. |
(module
(function_definition
(function_name_CAPM) function_name_CAPM
(parameters
(identifier_self) identifier_self
(identifier_benchmark) identifier_benchmark
(default_parameter
(identifier_has_const) identifier_has_const
(False) False
)default_parameter
(default_parameter
(identifier_use_const) identifier_use_const
(True) True
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_ols) identifier_ols
(identifier_OLS) identifier_OLS
)attribute
(argument_list
(keyword_argument
(identifier_y) identifier_y
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_x) identifier_x
(identifier_benchmark) identifier_benchmark
)keyword_argument
(keyword_argument
(identifier_has_const) identifier_has_const
(identifier_has_const) identifier_has_const
)keyword_argument
(keyword_argument
(identifier_use_const) identifier_use_const
(identifier_use_const) identifier_use_const
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Interface to OLS regression against `benchmark`.
`self.alpha()`, `self.beta()` and several other methods
stem from here. For the full method set, see
`pyfinance.ols.OLS`.
Parameters
----------
benchmark : {pd.Series, TSeries, pd.DataFrame, np.ndarray}
The benchmark securitie(s) to which `self` is compared.
has_const : bool, default False
Specifies whether `benchmark` includes a user-supplied constant
(a column vector). If False, it is added at instantiation.
use_const : bool, default True
Whether to include an intercept term in the model output. Note the
difference between `has_const` and `use_const`: the former
specifies whether a column vector of 1s is included in the
input; the latter specifies whether the model itself
should include a constant (intercept) term. Exogenous
data that is ~N(0,1) would have a constant equal to zero;
specify use_const=False in this situation.
Returns
-------
pyfinance.ols.OLS |
(module
(function_definition
(function_name_errint) function_name_errint
(parameters
(identifier_marker) identifier_marker
(identifier_number) identifier_number
)parameters
(block
(expression_statement
(assignment
(identifier_marker) identifier_marker
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_stringToCharP) identifier_stringToCharP
)attribute
(argument_list
(identifier_marker) identifier_marker
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_number) identifier_number
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_number) identifier_number
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_errint_c) identifier_errint_c
)attribute
(argument_list
(identifier_marker) identifier_marker
(identifier_number) identifier_number
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Substitute an integer for the first occurrence of a marker found
in the current long error message.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/errint_c.html
:param marker: A substring of the error message to be replaced.
:type marker: str
:param number: The integer to substitute for marker.
:type number: int |
(module
(function_definition
(function_name_dumb_css_parser) function_name_dumb_css_parser
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(augmented_assignment
(identifier_data) identifier_data
(string_';') string_';'
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_importIndex) identifier_importIndex
(call
(attribute
(identifier_data) identifier_data
(identifier_find) identifier_find
)attribute
(argument_list
(string_'@import') string_'@import'
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_importIndex) identifier_importIndex
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(binary_operator
(subscript
(identifier_data) identifier_data
(slice
(integer_0) integer_0
(colon) colon
(identifier_importIndex) identifier_importIndex
)slice
)subscript
(subscript
(identifier_data) identifier_data
(slice
(binary_operator
(call
(attribute
(identifier_data) identifier_data
(identifier_find) identifier_find
)attribute
(argument_list
(string_';') string_';'
(identifier_importIndex) identifier_importIndex
)argument_list
)call
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_importIndex) identifier_importIndex
(call
(attribute
(identifier_data) identifier_data
(identifier_find) identifier_find
)attribute
(argument_list
(string_'@import') string_'@import'
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_elements) identifier_elements
(list_comprehension
(call
(attribute
(identifier_x) identifier_x
(identifier_split) identifier_split
)attribute
(argument_list
(string_'{') string_'{'
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_data) identifier_data
(identifier_split) identifier_split
)attribute
(argument_list
(string_'}') string_'}'
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(string_'{') string_'{'
(call
(attribute
(identifier_x) identifier_x
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_elements) identifier_elements
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(tuple
(call
(attribute
(identifier_a) identifier_a
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(call
(identifier_dumb_property_dict) identifier_dumb_property_dict
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)tuple
(for_in_clause
(pattern_list
(identifier_a) identifier_a
(identifier_b) identifier_b
)pattern_list
(identifier_elements) identifier_elements
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_elements) identifier_elements
(dictionary
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_elements) identifier_elements
)return_statement
)block
)function_definition
)module | returns a hash of css selectors, each of which contains a hash of css attributes |
(module
(function_definition
(function_name_send_sticker) function_name_send_sticker
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_chat_id) identifier_chat_id
(None) None
)default_parameter
(default_parameter
(identifier_sticker) identifier_sticker
(None) None
)default_parameter
(default_parameter
(identifier_reply_to_message_id) identifier_reply_to_message_id
(None) None
)default_parameter
(default_parameter
(identifier_reply_markup) identifier_reply_markup
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_chat_id) identifier_chat_id
(identifier_chat_id) identifier_chat_id
)keyword_argument
(keyword_argument
(identifier_reply_to_message_id) identifier_reply_to_message_id
(identifier_reply_to_message_id) identifier_reply_to_message_id
)keyword_argument
(keyword_argument
(identifier_reply_markup) identifier_reply_markup
(identifier_reply_markup) identifier_reply_markup
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_sticker) identifier_sticker
(call
(identifier_open) identifier_open
(argument_list
(identifier_sticker) identifier_sticker
(string_'rb') string_'rb'
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_Message) identifier_Message
(identifier_from_api) identifier_from_api
)attribute
(argument_list
(identifier_api) identifier_api
(dictionary_splat
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(string_'sendSticker') string_'sendSticker'
(identifier_payload) identifier_payload
(identifier_files) identifier_files
)argument_list
)call
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Use this method to send .webp stickers. On success, the sent Message is returned. |
(module
(function_definition
(function_name_wait_until_running) function_name_wait_until_running
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_status) identifier_status
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_machine) identifier_machine
)attribute
(identifier_scheduler) identifier_scheduler
)attribute
(identifier_wait_until_running) identifier_wait_until_running
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_job) identifier_job
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker_config) identifier_worker_config
)attribute
(identifier_time_out) identifier_time_out
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_status) identifier_status
(identifier_running) identifier_running
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_online) identifier_online
)attribute
(True) True
)assignment
)expression_statement
(if_statement
(identifier_callback) identifier_callback
(block
(expression_statement
(call
(identifier_callback) identifier_callback
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_TimeoutError) identifier_TimeoutError
(argument_list
(binary_operator
(string_"Timeout while waiting for worker to run: ") string_"Timeout while waiting for worker to run: "
(attribute
(attribute
(identifier_self) identifier_self
(identifier_worker_config) identifier_worker_config
)attribute
(identifier_name) identifier_name
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Waits until the remote worker is running, then calls the callback.
Usually, this method is passed to a different thread; the callback
is then a function patching results through to the result queue. |
(module
(function_definition
(function_name_get_tgt_for) function_name_get_tgt_for
(parameters
(identifier_user) identifier_user
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_settings) identifier_settings
(identifier_CAS_PROXY_CALLBACK) identifier_CAS_PROXY_CALLBACK
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_CasConfigException) identifier_CasConfigException
(argument_list
(string_"No proxy callback set in settings") string_"No proxy callback set in settings"
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifier_Tgt) identifier_Tgt
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(attribute
(identifier_user) identifier_user
(identifier_username) identifier_username
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ObjectDoesNotExist) identifier_ObjectDoesNotExist
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_'No ticket found for user {user}') string_'No ticket found for user {user}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_user) identifier_user
(attribute
(identifier_user) identifier_user
(identifier_username) identifier_username
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_CasTicketException) identifier_CasTicketException
(argument_list
(binary_operator
(string_"no ticket found for user ") string_"no ticket found for user "
(attribute
(identifier_user) identifier_user
(identifier_username) identifier_username
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Fetch a ticket granting ticket for a given user.
:param user: UserObj
:return: TGT or Exepction |
(module
(function_definition
(function_name_pvals) function_name_pvals
(parameters
(identifier_cls) identifier_cls
(identifier_slice_) identifier_slice_
(default_parameter
(identifier_axis) identifier_axis
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_weighted) identifier_weighted
(True) True
)default_parameter
)parameters
(block
(return_statement
(attribute
(call
(attribute
(identifier_cls) identifier_cls
(identifier__factory) identifier__factory
)attribute
(argument_list
(identifier_slice_) identifier_slice_
(identifier_axis) identifier_axis
(identifier_weighted) identifier_weighted
)argument_list
)call
(identifier_pvals) identifier_pvals
)attribute
)return_statement
)block
)function_definition
)module | Wishart CDF values for slice columns as square ndarray.
Wishart CDF (Cumulative Distribution Function) is calculated to determine
statistical significance of slice columns, in relation to all other columns.
These values represent the answer to the question "How much is a particular
column different from each other column in the slice". |
(module
(function_definition
(function_name_add_version) function_name_add_version
(parameters
(identifier_f) identifier_f
)parameters
(block
(expression_statement
(assignment
(identifier_doc) identifier_doc
(attribute
(identifier_f) identifier_f
(identifier___doc__) identifier___doc__
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_f) identifier_f
(identifier___doc__) identifier___doc__
)attribute
(binary_operator
(binary_operator
(binary_operator
(string_"Version: ") string_"Version: "
(identifier___version__) identifier___version__
)binary_operator
(string_"\n\n") string_"\n\n"
)binary_operator
(identifier_doc) identifier_doc
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
)module | Add the version of wily to the help heading.
:param f: function to decorate
:return: decorated function |
(module
(function_definition
(function_name_get_urls) function_name_get_urls
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_urls) identifier_urls
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_DashboardSite) identifier_DashboardSite
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_urls) identifier_get_urls
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_custom_urls) identifier_custom_urls
(list
(call
(identifier_url) identifier_url
(argument_list
(string_r'^$') string_r'^$'
(call
(attribute
(identifier_self) identifier_self
(identifier_admin_view) identifier_admin_view
)attribute
(argument_list
(call
(attribute
(identifier_HomeView) identifier_HomeView
(identifier_as_view) identifier_as_view
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_name) identifier_name
(string_'index') string_'index'
)keyword_argument
)argument_list
)call
(call
(identifier_url) identifier_url
(argument_list
(string_r'^logs/') string_r'^logs/'
(call
(identifier_include) identifier_include
(argument_list
(call
(identifier_logs_urlpatterns) identifier_logs_urlpatterns
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_admin_view) identifier_admin_view
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)list
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_custom_urls) identifier_custom_urls
(call
(identifier_get_realtime_urls) identifier_get_realtime_urls
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_admin_view) identifier_admin_view
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
(delete_statement
(subscript
(identifier_urls) identifier_urls
(integer_0) integer_0
)subscript
)delete_statement
(return_statement
(binary_operator
(identifier_custom_urls) identifier_custom_urls
(identifier_urls) identifier_urls
)binary_operator
)return_statement
)block
)function_definition
)module | Get urls method.
Returns:
list: the list of url objects. |
(module
(function_definition
(function_name_update_appt) function_name_update_appt
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_complex) identifier_complex
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_house) identifier_house
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_price) identifier_price
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_square) identifier_square
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_id) identifier_id
(type
(identifier_str) identifier_str
)type
)typed_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check_house) identifier_check_house
)attribute
(argument_list
(identifier_complex) identifier_complex
(identifier_house) identifier_house
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'price') string_'price'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__format_decimal) identifier__format_decimal
)attribute
(argument_list
(identifier_price) identifier_price
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'square') string_'square'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__format_decimal) identifier__format_decimal
)attribute
(argument_list
(identifier_square) identifier_square
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_put) identifier_put
)attribute
(argument_list
(call
(attribute
(string_'developers/{developer}/complexes/{complex}/houses/{house}/appts/{id}') string_'developers/{developer}/complexes/{complex}/houses/{house}/appts/{id}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_developer) identifier_developer
(attribute
(identifier_self) identifier_self
(identifier_developer) identifier_developer
)attribute
)keyword_argument
(keyword_argument
(identifier_complex) identifier_complex
(identifier_complex) identifier_complex
)keyword_argument
(keyword_argument
(identifier_house) identifier_house
(identifier_house) identifier_house
)keyword_argument
(keyword_argument
(identifier_id) identifier_id
(identifier_id) identifier_id
)keyword_argument
(keyword_argument
(identifier_price) identifier_price
(call
(attribute
(identifier_self) identifier_self
(identifier__format_decimal) identifier__format_decimal
)attribute
(argument_list
(identifier_price) identifier_price
)argument_list
)call
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_data) identifier_data
(identifier_kwargs) identifier_kwargs
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update existing appartment |
(module
(function_definition
(function_name_cmd_ok) function_name_cmd_ok
(parameters
(identifier_cmd) identifier_cmd
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_sp) identifier_sp
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_stderr) identifier_stderr
(attribute
(identifier_sp) identifier_sp
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(attribute
(identifier_sp) identifier_sp
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_sp) identifier_sp
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
(except_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(string_"{} not found, skipping\n") string_"{} not found, skipping\n"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Returns True if cmd can be run. |
(module
(function_definition
(function_name_custom_decode) function_name_custom_decode
(parameters
(identifier_encoding) identifier_encoding
)parameters
(block
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(call
(attribute
(identifier_encoding) identifier_encoding
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_alternates) identifier_alternates
(dictionary
(pair
(string_'big5') string_'big5'
(string_'big5hkscs') string_'big5hkscs'
)pair
(pair
(string_'gb2312') string_'gb2312'
(string_'gb18030') string_'gb18030'
)pair
(pair
(string_'ascii') string_'ascii'
(string_'utf-8') string_'utf-8'
)pair
(pair
(string_'MacCyrillic') string_'MacCyrillic'
(string_'cp1251') string_'cp1251'
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_encoding) identifier_encoding
(identifier_alternates) identifier_alternates
)comparison_operator
(block
(return_statement
(subscript
(identifier_alternates) identifier_alternates
(identifier_encoding) identifier_encoding
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_encoding) identifier_encoding
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Overrides encoding when charset declaration
or charset determination is a subset of a larger
charset. Created because of issues with Chinese websites |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_Logger) identifier_Logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Board: updating") string_"Board: updating"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_absent_pawns) identifier_remove_absent_pawns
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_absent_spots) identifier_remove_absent_spots
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_absent_arrows) identifier_remove_absent_arrows
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_new_spots) identifier_add_new_spots
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_arrow_cls) identifier_arrow_cls
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_new_arrows) identifier_add_new_arrows
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_new_pawns) identifier_add_new_pawns
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_spotlayout) identifier_spotlayout
)attribute
(identifier_finalize_all) identifier_finalize_all
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_Logger) identifier_Logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Board: updated") string_"Board: updated"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Force an update to match the current state of my character.
This polls every element of the character, and therefore
causes me to sync with the LiSE core for a long time. Avoid
when possible. |
(module
(function_definition
(function_name_SetDefaultAgency) function_name_SetDefaultAgency
(parameters
(identifier_self) identifier_self
(identifier_agency) identifier_agency
(default_parameter
(identifier_validate) identifier_validate
(True) True
)default_parameter
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_agency) identifier_agency
(attribute
(attribute
(identifier_self) identifier_self
(identifier__gtfs_factory) identifier__gtfs_factory
)attribute
(identifier_Agency) identifier_Agency
)attribute
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__default_agency) identifier__default_agency
)attribute
(identifier_agency) identifier_agency
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_agency) identifier_agency
(identifier_agency_id) identifier_agency_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier__agencies) identifier__agencies
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_AddAgencyObject) identifier_AddAgencyObject
)attribute
(argument_list
(identifier_agency) identifier_agency
(keyword_argument
(identifier_validate) identifier_validate
(identifier_validate) identifier_validate
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Make agency the default and add it to the schedule if not already added |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
)parameters
(type
(None) None
)type
(block
(import_from_statement
(dotted_name
(identifier_wdom) identifier_wdom
(identifier_document) identifier_document
)dotted_name
(dotted_name
(identifier_get_new_document) identifier_get_new_document
)dotted_name
(dotted_name
(identifier_set_document) identifier_set_document
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_wdom) identifier_wdom
(identifier_element) identifier_element
)dotted_name
(dotted_name
(identifier_Element) identifier_Element
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_wdom) identifier_wdom
(identifier_server) identifier_server
)dotted_name
(dotted_name
(identifier__tornado) identifier__tornado
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_wdom) identifier_wdom
(identifier_window) identifier_window
)dotted_name
(dotted_name
(identifier_customElements) identifier_customElements
)dotted_name
)import_from_statement
(expression_statement
(call
(identifier_set_document) identifier_set_document
(argument_list
(call
(identifier_get_new_document) identifier_get_new_document
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier__tornado) identifier__tornado
(identifier_connections) identifier_connections
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__tornado) identifier__tornado
(identifier_set_application) identifier_set_application
)attribute
(argument_list
(call
(attribute
(identifier__tornado) identifier__tornado
(identifier_Application) identifier_Application
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_Element) identifier_Element
(identifier__elements_with_id) identifier__elements_with_id
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_Element) identifier_Element
(identifier__element_buffer) identifier__element_buffer
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_customElements) identifier_customElements
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reset all wdom objects.
This function clear all connections, elements, and resistered custom
elements. This function also makes new document/application and set them. |
(module
(function_definition
(function_name_project_activity) function_name_project_activity
(parameters
(identifier_index) identifier_index
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(dictionary
(pair
(string_"metrics") string_"metrics"
(list
(call
(identifier_SubmittedPRs) identifier_SubmittedPRs
(argument_list
(identifier_index) identifier_index
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
(call
(identifier_ClosedPRs) identifier_ClosedPRs
(argument_list
(identifier_index) identifier_index
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)list
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Compute the metrics for the project activity section of the enriched
github pull requests index.
Returns a dictionary containing a "metric" key. This key contains the
metrics for this section.
:param index: index object
:param start: start date to get the data from
:param end: end date to get the data upto
:return: dictionary with the value of the metrics |
(module
(function_definition
(function_name_in_degree) function_name_in_degree
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_nbunch) identifier_nbunch
(None) None
)default_parameter
(default_parameter
(identifier_t) identifier_t
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_nbunch) identifier_nbunch
(identifier_self) identifier_self
)comparison_operator
(block
(return_statement
(subscript
(call
(identifier_next) identifier_next
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_in_degree_iter) identifier_in_degree_iter
)attribute
(argument_list
(identifier_nbunch) identifier_nbunch
(identifier_t) identifier_t
)argument_list
)call
)argument_list
)call
(integer_1) integer_1
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_in_degree_iter) identifier_in_degree_iter
)attribute
(argument_list
(identifier_nbunch) identifier_nbunch
(identifier_t) identifier_t
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the in degree of a node or nodes at time t.
The node in degree is the number of incoming interaction to that node in a given time frame.
Parameters
----------
nbunch : iterable container, optional (default=all nodes)
A container of nodes. The container will be iterated
through once.
t : snapshot id (default=None)
If None will be returned the degree of nodes on the flattened graph.
Returns
-------
nd : dictionary, or number
A dictionary with nodes as keys and degree as values or
a number if a single node is specified.
Examples
--------
>>> G = dn.DynDiGraph()
>>> G.add_interaction(0,1, t=0)
>>> G.add_interaction(1,2, t=0)
>>> G.add_interaction(2,3, t=0)
>>> G.in_degree(0, t=0)
1
>>> G.in_degree([0,1], t=1)
{0: 0, 1: 0}
>>> list(G.in_degree([0,1], t=0).values())
[1, 2] |
(module
(function_definition
(function_name_filterindex) function_name_filterindex
(parameters
(identifier_source) identifier_source
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(attribute
(attribute
(identifier_transform) identifier_transform
(identifier_enumerate) identifier_enumerate
)attribute
(identifier_raw) identifier_raw
)attribute
(argument_list
(identifier_source) identifier_source
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_streamcontext) identifier_streamcontext
(argument_list
(identifier_source) identifier_source
)argument_list
)call
(as_pattern_target
(identifier_streamer) identifier_streamer
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_item) identifier_item
)pattern_list
(identifier_streamer) identifier_streamer
(block
(if_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(block
(expression_statement
(yield
(identifier_item) identifier_item
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Filter an asynchronous sequence using the index of the elements.
The given function is synchronous, takes the index as an argument,
and returns ``True`` if the corresponding should be forwarded,
``False`` otherwise. |
(module
(function_definition
(function_name__build_response) function_name__build_response
(parameters
(identifier_self) identifier_self
(identifier_resp) identifier_resp
)parameters
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(identifier_content) identifier_content
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_content) identifier_content
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_response) identifier_response
)attribute
(identifier_headers) identifier_headers
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_headers) identifier_headers
)attribute
)assignment
)expression_statement
)block
)function_definition
)module | Build internal Response object from given response. |
(module
(function_definition
(function_name_build_dump_order) function_name_build_dump_order
(parameters
(identifier_orm_class) identifier_orm_class
(identifier_orm_classes) identifier_orm_classes
)parameters
(block
(if_statement
(comparison_operator
(identifier_orm_class) identifier_orm_class
(identifier_orm_classes) identifier_orm_classes
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_field_name) identifier_field_name
(identifier_field_val) identifier_field_val
)pattern_list
(call
(attribute
(attribute
(attribute
(identifier_orm_class) identifier_orm_class
(identifier_schema) identifier_schema
)attribute
(identifier_fields) identifier_fields
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_field_val) identifier_field_val
(identifier_is_ref) identifier_is_ref
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier_build_dump_order) identifier_build_dump_order
(argument_list
(attribute
(attribute
(identifier_field_val) identifier_field_val
(identifier_schema) identifier_schema
)attribute
(identifier_orm_class) identifier_orm_class
)attribute
(identifier_orm_classes) identifier_orm_classes
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_orm_class) identifier_orm_class
(identifier_orm_classes) identifier_orm_classes
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_orm_classes) identifier_orm_classes
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_orm_class) identifier_orm_class
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | pass in an array, when you encounter a ref, call this method again with the array
when something has no more refs, then it gets appended to the array and returns, each
time something gets through the list they are added, but before they are added to the
list it is checked to see if it is already in the listt |
(module
(function_definition
(function_name_configure_uploadfor) function_name_configure_uploadfor
(parameters
(identifier_self) identifier_self
(identifier_ns) identifier_ns
(identifier_definition) identifier_definition
)parameters
(block
(expression_statement
(assignment
(identifier_upload_for) identifier_upload_for
(call
(attribute
(identifier_self) identifier_self
(identifier_create_upload_func) identifier_create_upload_func
)attribute
(argument_list
(identifier_ns) identifier_ns
(identifier_definition) identifier_definition
(attribute
(identifier_ns) identifier_ns
(identifier_relation_path) identifier_relation_path
)attribute
(attribute
(identifier_Operation) identifier_Operation
(identifier_UploadFor) identifier_UploadFor
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_upload_for) identifier_upload_for
(identifier___doc__) identifier___doc__
)attribute
(call
(attribute
(string_"Upload a {} for a {}") string_"Upload a {} for a {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_ns) identifier_ns
(identifier_subject_name) identifier_subject_name
)attribute
(attribute
(identifier_ns) identifier_ns
(identifier_object_name) identifier_object_name
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Register an upload-for relation endpoint.
The definition's func should be an upload function, which must:
- accept kwargs for path data and query string parameters
- accept a list of tuples of the form (formname, tempfilepath, filename)
- optionall return a resource
:param ns: the namespace
:param definition: the endpoint definition |
(module
(function_definition
(function_name__to_graph) function_name__to_graph
(parameters
(identifier_self) identifier_self
(identifier_contexts) identifier_contexts
)parameters
(block
(expression_statement
(assignment
(identifier_prev) identifier_prev
(None) None
)assignment
)expression_statement
(for_statement
(identifier_context) identifier_context
(identifier_contexts) identifier_contexts
(block
(if_statement
(comparison_operator
(identifier_prev) identifier_prev
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_prev) identifier_prev
(identifier_context) identifier_context
)assignment
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(yield
(expression_list
(subscript
(identifier_prev) identifier_prev
(integer_0) integer_0
)subscript
(subscript
(identifier_context) identifier_context
(integer_1) integer_1
)subscript
(subscript
(identifier_context) identifier_context
(integer_0) integer_0
)subscript
)expression_list
)yield
)expression_statement
(expression_statement
(assignment
(identifier_prev) identifier_prev
(identifier_context) identifier_context
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | This is an iterator that returns each edge of our graph
with its two nodes |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'_id') string_'_id'
(identifier_self) identifier_self
)comparison_operator
(comparison_operator
(subscript
(identifier_self) identifier_self
(string_'_id') string_'_id'
)subscript
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_r_session) identifier_r_session
)attribute
(identifier_head) identifier_head
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_document_url) identifier_document_url
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(list
(integer_200) integer_200
(integer_404) integer_404
)list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
)return_statement
)block
)function_definition
)module | Retrieves whether the document exists in the remote database or not.
:returns: True if the document exists in the remote database,
otherwise False |
(module
(function_definition
(function_name__sanity_check_construct_result_block) function_name__sanity_check_construct_result_block
(parameters
(identifier_ir_blocks) identifier_ir_blocks
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_ir_blocks) identifier_ir_blocks
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_ConstructResult) identifier_ConstructResult
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(call
(attribute
(string_u'The last block was not ConstructResult: {}') string_u'The last block was not ConstructResult: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ir_blocks) identifier_ir_blocks
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_block) identifier_block
(subscript
(identifier_ir_blocks) identifier_ir_blocks
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_block) identifier_block
(identifier_ConstructResult) identifier_ConstructResult
)argument_list
)call
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(call
(attribute
(concatenated_string
(string_u'Found ConstructResult before the last block: ') string_u'Found ConstructResult before the last block: '
(string_u'{}') string_u'{}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ir_blocks) identifier_ir_blocks
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Assert that ConstructResult is always the last block, and only the last block. |
(module
(function_definition
(function_name_filenames) function_name_filenames
(parameters
(identifier_directory) identifier_directory
(default_parameter
(identifier_tag) identifier_tag
(string_'') string_''
)default_parameter
(default_parameter
(identifier_sorted) identifier_sorted
(False) False
)default_parameter
(default_parameter
(identifier_recursive) identifier_recursive
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_recursive) identifier_recursive
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(list_comprehension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_f) identifier_f
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_directory) identifier_directory
(identifier__) identifier__
(identifier_filename) identifier_filename
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
)for_in_clause
(for_in_clause
(identifier_f) identifier_f
(identifier_filename) identifier_filename
)for_in_clause
(if_clause
(comparison_operator
(call
(attribute
(identifier_f) identifier_f
(identifier_find) identifier_find
)attribute
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(list_comprehension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_f) identifier_f
)argument_list
)call
(for_in_clause
(identifier_f) identifier_f
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(call
(attribute
(identifier_f) identifier_f
(identifier_find) identifier_find
)attribute
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_sorted) identifier_sorted
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
)module | Reads in all filenames from a directory that contain a specified substring.
Parameters
----------
directory : :obj:`str`
the directory to read from
tag : :obj:`str`
optional tag to match in the filenames
sorted : bool
whether or not to sort the filenames
recursive : bool
whether or not to search for the files recursively
Returns
-------
:obj:`list` of :obj:`str`
filenames to read from |
(module
(function_definition
(function_name__read_body_until_close) function_name__read_body_until_close
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
(identifier_file) identifier_file
)parameters
(block
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Reading body until close.') string_'Reading body until close.'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_file_is_async) identifier_file_is_async
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_file) identifier_file
(string_'drain') string_'drain'
)argument_list
)call
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(yield
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__read_size) identifier__read_size
)attribute
)argument_list
)call
)yield
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_data) identifier_data
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data_event_dispatcher) identifier__data_event_dispatcher
)attribute
(identifier_notify_read) identifier_notify_read
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_content_data) identifier_content_data
(call
(attribute
(identifier_self) identifier_self
(identifier__decompress_data) identifier__decompress_data
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_file) identifier_file
(block
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_content_data) identifier_content_data
)argument_list
)call
)expression_statement
(if_statement
(identifier_file_is_async) identifier_file_is_async
(block
(expression_statement
(yield
(call
(attribute
(identifier_file) identifier_file
(identifier_drain) identifier_drain
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_content_data) identifier_content_data
(call
(attribute
(identifier_self) identifier_self
(identifier__flush_decompressor) identifier__flush_decompressor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_file) identifier_file
(block
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_content_data) identifier_content_data
)argument_list
)call
)expression_statement
(if_statement
(identifier_file_is_async) identifier_file_is_async
(block
(expression_statement
(yield
(call
(attribute
(identifier_file) identifier_file
(identifier_drain) identifier_drain
)attribute
(argument_list
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Read the response until the connection closes.
Coroutine. |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_binary) identifier_binary
(dictionary_splat_pattern
(identifier_params) identifier_params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_binary) identifier_binary
(call
(attribute
(identifier_io) identifier_io
(identifier_BytesIO) identifier_BytesIO
)attribute
(argument_list
(identifier_binary) identifier_binary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_collection) identifier_collection
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_zipfile) identifier_zipfile
(identifier_ZipFile) identifier_ZipFile
)attribute
(argument_list
(identifier_binary) identifier_binary
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_zip_) identifier_zip_
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_zip_info) identifier_zip_info
(call
(attribute
(identifier_zip_) identifier_zip_
(identifier_infolist) identifier_infolist
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_content_type) identifier_content_type
(identifier_encoding) identifier_encoding
)pattern_list
(call
(attribute
(identifier_mimetypes) identifier_mimetypes
(identifier_guess_type) identifier_guess_type
)attribute
(argument_list
(attribute
(identifier_zip_info) identifier_zip_info
(identifier_filename) identifier_filename
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_zip_) identifier_zip_
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_zip_info) identifier_zip_info
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(call
(attribute
(identifier_content_encodings) identifier_content_encodings
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_encoding) identifier_encoding
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(call
(attribute
(identifier_content_types) identifier_content_types
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_content_type) identifier_content_type
)argument_list
)call
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_content) identifier_content
(dictionary_splat
(identifier_params) identifier_params
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_collection) identifier_collection
(identifier_apppend) identifier_apppend
)attribute
(argument_list
(tuple
(attribute
(identifier_zip_info) identifier_zip_info
(identifier_filename) identifier_filename
)attribute
(identifier_content) identifier_content
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(return_statement
(identifier_collection) identifier_collection
)return_statement
)block
)function_definition
)module | Turns a ZIP file into a frozen sample. |
(module
(function_definition
(function_name_get_contents) function_name_get_contents
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_childsigs) identifier_childsigs
(list_comprehension
(call
(attribute
(identifier_n) identifier_n
(identifier_get_csig) identifier_get_csig
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_n) identifier_n
(call
(attribute
(identifier_self) identifier_self
(identifier_children) identifier_children
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_childsigs) identifier_childsigs
)argument_list
)call
)return_statement
)block
)function_definition
)module | The contents of an alias is the concatenation
of the content signatures of all its sources. |
(module
(function_definition
(function_name_parse_field) function_name_parse_field
(parameters
(typed_parameter
(identifier_cls) identifier_cls
(type
(generic_type
(identifier_Type) identifier_Type
(type_parameter
(type
(identifier_DocumentType) identifier_DocumentType
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_field_name) identifier_field_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_line) identifier_line
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_Any) identifier_Any
)type
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier_fields_parsers) identifier_fields_parsers
)attribute
(identifier_field_name) identifier_field_name
)subscript
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_match) identifier_match
(None) None
)comparison_operator
(block
(raise_statement
(identifier_AttributeError) identifier_AttributeError
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_MalformedDocumentError) identifier_MalformedDocumentError
(argument_list
(identifier_field_name) identifier_field_name
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Parse a document field with regular expression and return the value
:param field_name: Name of the field
:param line: Line string to parse
:return: |
(module
(function_definition
(function_name_supported_types_for_region) function_name_supported_types_for_region
(parameters
(identifier_region_code) identifier_region_code
)parameters
(block
(if_statement
(not_operator
(call
(identifier__is_valid_region_code) identifier__is_valid_region_code
(argument_list
(identifier_region_code) identifier_region_code
)argument_list
)call
)not_operator
(block
(return_statement
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(attribute
(identifier_PhoneMetadata) identifier_PhoneMetadata
(identifier_metadata_for_region) identifier_metadata_for_region
)attribute
(argument_list
(call
(attribute
(identifier_region_code) identifier_region_code
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__supported_types_for_metadata) identifier__supported_types_for_metadata
(argument_list
(identifier_metadata) identifier_metadata
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the types for a given region which the library has metadata for.
Will not include FIXED_LINE_OR_MOBILE (if numbers in this region could
be classified as FIXED_LINE_OR_MOBILE, both FIXED_LINE and MOBILE would
be present) and UNKNOWN.
No types will be returned for invalid or unknown region codes. |
(module
(function_definition
(function_name_access_request) function_name_access_request
(parameters
(identifier_self) identifier_self
(identifier_realm) identifier_realm
(default_parameter
(identifier_exclusive) identifier_exclusive
(False) False
)default_parameter
(default_parameter
(identifier_passive) identifier_passive
(False) False
)default_parameter
(default_parameter
(identifier_active) identifier_active
(False) False
)default_parameter
(default_parameter
(identifier_write) identifier_write
(False) False
)default_parameter
(default_parameter
(identifier_read) identifier_read
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_AMQPWriter) identifier_AMQPWriter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_shortstr) identifier_write_shortstr
)attribute
(argument_list
(identifier_realm) identifier_realm
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_exclusive) identifier_exclusive
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_passive) identifier_passive
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_active) identifier_active
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_write) identifier_write
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_read) identifier_read
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_method) identifier__send_method
)attribute
(argument_list
(tuple
(integer_30) integer_30
(integer_10) integer_10
)tuple
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_wait) identifier_wait
)attribute
(argument_list
(keyword_argument
(identifier_allowed_methods) identifier_allowed_methods
(list
(tuple
(integer_30) integer_30
(integer_11) integer_11
)tuple
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | request an access ticket
This method requests an access ticket for an access realm. The
server responds by granting the access ticket. If the client
does not have access rights to the requested realm this causes
a connection exception. Access tickets are a per-channel
resource.
RULE:
The realm name MUST start with either "/data" (for
application resources) or "/admin" (for server
administration resources). If the realm starts with any
other path, the server MUST raise a connection exception
with reply code 403 (access refused).
RULE:
The server MUST implement the /data realm and MAY
implement the /admin realm. The mapping of resources to
realms is not defined in the protocol - this is a server-
side configuration issue.
PARAMETERS:
realm: shortstr
name of requested realm
RULE:
If the specified realm is not known to the server,
the server must raise a channel exception with
reply code 402 (invalid path).
exclusive: boolean
request exclusive access
Request exclusive access to the realm. If the server
cannot grant this - because there are other active
tickets for the realm - it raises a channel exception.
passive: boolean
request passive access
Request message passive access to the specified access
realm. Passive access lets a client get information
about resources in the realm but not to make any
changes to them.
active: boolean
request active access
Request message active access to the specified access
realm. Acvtive access lets a client get create and
delete resources in the realm.
write: boolean
request write access
Request write access to the specified access realm.
Write access lets a client publish messages to all
exchanges in the realm.
read: boolean
request read access
Request read access to the specified access realm.
Read access lets a client consume messages from queues
in the realm.
The most recently requested ticket is used as the channel's
default ticket for any method that requires a ticket. |
(module
(function_definition
(function_name_list_external_jar_dependencies) function_name_list_external_jar_dependencies
(parameters
(identifier_self) identifier_self
(identifier_binary) identifier_binary
)parameters
(block
(expression_statement
(assignment
(identifier_classpath_products) identifier_classpath_products
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_products) identifier_products
)attribute
(identifier_get_data) identifier_get_data
)attribute
(argument_list
(string_'runtime_classpath') string_'runtime_classpath'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_classpath_entries) identifier_classpath_entries
(call
(attribute
(identifier_classpath_products) identifier_classpath_products
(identifier_get_artifact_classpath_entries_for_targets) identifier_get_artifact_classpath_entries_for_targets
)attribute
(argument_list
(call
(attribute
(identifier_binary) identifier_binary
(identifier_closure) identifier_closure
)attribute
(argument_list
(keyword_argument
(identifier_bfs) identifier_bfs
(True) True
)keyword_argument
(keyword_argument
(identifier_include_scopes) identifier_include_scopes
(attribute
(identifier_Scopes) identifier_Scopes
(identifier_JVM_RUNTIME_SCOPES) identifier_JVM_RUNTIME_SCOPES
)attribute
)keyword_argument
(keyword_argument
(identifier_respect_intransitive) identifier_respect_intransitive
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_external_jars) identifier_external_jars
(call
(identifier_OrderedSet) identifier_OrderedSet
(generator_expression
(identifier_jar_entry) identifier_jar_entry
(for_in_clause
(pattern_list
(identifier_conf) identifier_conf
(identifier_jar_entry) identifier_jar_entry
)pattern_list
(identifier_classpath_entries) identifier_classpath_entries
)for_in_clause
(if_clause
(comparison_operator
(identifier_conf) identifier_conf
(string_'default') string_'default'
)comparison_operator
)if_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(tuple
(attribute
(identifier_entry) identifier_entry
(identifier_path) identifier_path
)attribute
(attribute
(identifier_entry) identifier_entry
(identifier_coordinate) identifier_coordinate
)attribute
)tuple
(for_in_clause
(identifier_entry) identifier_entry
(identifier_external_jars) identifier_external_jars
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_entry) identifier_entry
(identifier_is_excluded_by) identifier_is_excluded_by
)attribute
(argument_list
(attribute
(identifier_binary) identifier_binary
(identifier_deploy_excludes) identifier_deploy_excludes
)attribute
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Returns the external jar dependencies of the given binary.
:param binary: The jvm binary target to list transitive external dependencies for.
:type binary: :class:`pants.backend.jvm.targets.jvm_binary.JvmBinary`
:returns: A list of (jar path, coordinate) tuples.
:rtype: list of (string, :class:`pants.java.jar.M2Coordinate`) |
(module
(function_definition
(function_name__get_dns_info) function_name__get_dns_info
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_dns_list) identifier_dns_list
(list
)list
)assignment
)expression_statement
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_files) identifier_files
)attribute
(identifier_fopen) identifier_fopen
)attribute
(argument_list
(string_'/etc/resolv.conf') string_'/etc/resolv.conf'
(string_'r+') string_'r+'
)argument_list
)call
(as_pattern_target
(identifier_dns_info) identifier_dns_info
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_dns_info) identifier_dns_info
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_lines) identifier_lines
(block
(if_statement
(comparison_operator
(string_'nameserver') string_'nameserver'
(identifier_line) identifier_line
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dns) identifier_dns
(call
(attribute
(subscript
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dns) identifier_dns
(identifier_dns_list) identifier_dns_list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_dns_list) identifier_dns_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_dns) identifier_dns
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Could not get domain\n') string_'Could not get domain\n'
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_dns_list) identifier_dns_list
)return_statement
)block
)function_definition
)module | return dns list |
(module
(function_definition
(function_name_body) function_name_body
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_body) identifier_body
(identifier__) identifier__
(identifier_is_markdown) identifier_is_markdown
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier__entry_content) identifier__entry_content
)attribute
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(identifier_TrueCallableProxy) identifier_TrueCallableProxy
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__get_markup) identifier__get_markup
)attribute
(identifier_body) identifier_body
(identifier_is_markdown) identifier_is_markdown
)argument_list
)call
(identifier_body) identifier_body
(call
(identifier_CallableProxy) identifier_CallableProxy
(argument_list
(None) None
)argument_list
)call
)conditional_expression
)return_statement
)block
)function_definition
)module | Get the above-the-fold entry body text |
(module
(function_definition
(function_name_load_json_body) function_name_load_json_body
(parameters
(identifier_handler) identifier_handler
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_event) identifier_event
(identifier_context) identifier_context
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(call
(attribute
(identifier_event) identifier_event
(identifier_get) identifier_get
)attribute
(argument_list
(string_'body') string_'body'
)argument_list
)call
(identifier_str) identifier_str
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_event) identifier_event
(string_'body') string_'body'
)subscript
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(subscript
(identifier_event) identifier_event
(string_'body') string_'body'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(return_statement
(dictionary
(pair
(string_'statusCode') string_'statusCode'
(integer_400) integer_400
)pair
(pair
(string_'body') string_'body'
(string_'BAD REQUEST') string_'BAD REQUEST'
)pair
)dictionary
)return_statement
)block
)except_clause
)try_statement
)block
)if_statement
(return_statement
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_event) identifier_event
(identifier_context) identifier_context
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Automatically deserialize event bodies with json.loads.
Automatically returns a 400 BAD REQUEST if there is an error while parsing.
Usage::
>>> from lambda_decorators import load_json_body
>>> @load_json_body
... def handler(event, context):
... return event['body']['foo']
>>> handler({'body': '{"foo": "bar"}'}, object())
'bar'
note that ``event['body']`` is already a dictionary and didn't have to
explicitly be parsed. |
(module
(function_definition
(function_name_rollback) function_name_rollback
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__parent) identifier__parent
)attribute
(identifier__is_active) identifier__is_active
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__do_rollback) identifier__do_rollback
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__is_active) identifier__is_active
)attribute
(False) False
)assignment
)expression_statement
)block
)function_definition
)module | Roll back this transaction. |
(module
(function_definition
(function_name__discarded_reads1_out_file_name) function_name__discarded_reads1_out_file_name
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Parameters) identifier_Parameters
)attribute
(string_'-3') string_'-3'
)subscript
(identifier_isOn) identifier_isOn
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_discarded_reads1) identifier_discarded_reads1
(call
(attribute
(identifier_self) identifier_self
(identifier__absolute) identifier__absolute
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Parameters) identifier_Parameters
)attribute
(string_'-3') string_'-3'
)subscript
(identifier_Value) identifier_Value
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"No discarded-reads1 (flag -3) output path specified") string_"No discarded-reads1 (flag -3) output path specified"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_discarded_reads1) identifier_discarded_reads1
)return_statement
)block
)function_definition
)module | Checks if file name is set for discarded reads1 output.
Returns absolute path. |
(module
(function_definition
(function_name_return_file_objects) function_name_return_file_objects
(parameters
(identifier_connection) identifier_connection
(identifier_container) identifier_container
(default_parameter
(identifier_prefix) identifier_prefix
(string_'database') string_'database'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_meta_data) identifier_meta_data
(call
(attribute
(identifier_objectstore) identifier_objectstore
(identifier_get_full_container_list) identifier_get_full_container_list
)attribute
(argument_list
(identifier_connection) identifier_connection
(identifier_container) identifier_container
(keyword_argument
(identifier_prefix) identifier_prefix
(string_'database') string_'database'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_env) identifier_env
(call
(attribute
(identifier_ENV) identifier_ENV
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_o_info) identifier_o_info
(identifier_meta_data) identifier_meta_data
(block
(expression_statement
(assignment
(identifier_expected_file) identifier_expected_file
(string_f'database.{ENV}') string_f'database.{ENV}'
)assignment
)expression_statement
(if_statement
(call
(attribute
(subscript
(identifier_o_info) identifier_o_info
(string_'name') string_'name'
)subscript
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_expected_file) identifier_expected_file
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(identifier_dateparser) identifier_dateparser
(identifier_parse) identifier_parse
)attribute
(argument_list
(subscript
(identifier_o_info) identifier_o_info
(string_'last_modified') string_'last_modified'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta) identifier_delta
(binary_operator
(identifier_now) identifier_now
(identifier_dt) identifier_dt
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'AGE: %d %s') string_'AGE: %d %s'
(attribute
(identifier_delta) identifier_delta
(identifier_days) identifier_days
)attribute
(identifier_expected_file) identifier_expected_file
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_options) identifier_options
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_dt) identifier_dt
(identifier_o_info) identifier_o_info
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_options) identifier_options
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_options) identifier_options
)return_statement
)block
)function_definition
)module | Given connecton and container find database dumps |
(module
(function_definition
(function_name_reindex) function_name_reindex
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
(default_parameter
(identifier_background) identifier_background
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_background) identifier_background
(block
(expression_statement
(assignment
(identifier_indexingStrategy) identifier_indexingStrategy
(string_'background') string_'background'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_indexingStrategy) identifier_indexingStrategy
(string_'stoptheworld') string_'stoptheworld'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__options) identifier__options
)attribute
(string_'server') string_'server'
)subscript
(string_'/secure/admin/jira/IndexReIndex.jspa') string_'/secure/admin/jira/IndexReIndex.jspa'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(subscript
(attribute
(identifier_self) identifier_self
(identifier__options) identifier__options
)attribute
(string_'headers') string_'headers'
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_r) identifier_r
(identifier_status_code) identifier_status_code
)attribute
(integer_503) integer_503
)comparison_operator
(block
(return_statement
(integer_503) integer_503
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(call
(attribute
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(string_"To perform the re-index now, please go to the") string_"To perform the re-index now, please go to the"
)argument_list
)call
)not_operator
(comparison_operator
(identifier_force) identifier_force
(False) False
)comparison_operator
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(string_'All issues are being re-indexed') string_'All issues are being re-indexed'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"JIRA re-indexing is already running.") string_"JIRA re-indexing is already running."
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(string_'To perform the re-index now, please go to the') string_'To perform the re-index now, please go to the'
)argument_list
)call
(identifier_force) identifier_force
)boolean_operator
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(subscript
(attribute
(identifier_self) identifier_self
(identifier__options) identifier__options
)attribute
(string_'headers') string_'headers'
)subscript
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_"indexingStrategy") string_"indexingStrategy"
(identifier_indexingStrategy) identifier_indexingStrategy
)pair
(pair
(string_"reindex") string_"reindex"
(string_"Re-Index") string_"Re-Index"
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(string_'All issues are being re-indexed') string_'All issues are being re-indexed'
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Failed to reindex jira, probably a bug.") string_"Failed to reindex jira, probably a bug."
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Start jira re-indexing. Returns True if reindexing is in progress or not needed, or False.
If you call reindex() without any parameters it will perform a background reindex only if JIRA thinks it should do it.
:param force: reindex even if JIRA doesn't say this is needed, False by default.
:param background: reindex in background, slower but does not impact the users, defaults to True. |
(module
(function_definition
(function_name_getComplexFileData) function_name_getComplexFileData
(parameters
(identifier_self) identifier_self
(identifier_fileInfo) identifier_fileInfo
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(identifier_fileInfo) identifier_fileInfo
(slice
(binary_operator
(call
(attribute
(identifier_fileInfo) identifier_fileInfo
(identifier_find) identifier_find
)attribute
(argument_list
(binary_operator
(identifier_data) identifier_data
(string_"</td>") string_"</td>"
)binary_operator
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(binary_operator
(identifier_data) identifier_data
(string_"</td>") string_"</td>"
)binary_operator
)argument_list
)call
)binary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(identifier_result) identifier_result
(slice
(colon) colon
(call
(attribute
(identifier_result) identifier_result
(identifier_find) identifier_find
)attribute
(argument_list
(string_"</td>") string_"</td>"
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(identifier_result) identifier_result
(slice
(binary_operator
(call
(attribute
(identifier_result) identifier_result
(identifier_rfind) identifier_rfind
)attribute
(argument_list
(string_">") string_">"
)argument_list
)call
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Function to initialize the slightly more complicated data for file info |
(module
(function_definition
(function_name_load_kb_mappings_file) function_name_load_kb_mappings_file
(parameters
(identifier_kbname) identifier_kbname
(identifier_kbfile) identifier_kbfile
(identifier_separator) identifier_separator
)parameters
(block
(expression_statement
(assignment
(identifier_num_added) identifier_num_added
(integer_0) integer_0
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_kbfile) identifier_kbfile
)argument_list
)call
(as_pattern_target
(identifier_kb_fd) identifier_kb_fd
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(identifier_kb_fd) identifier_kb_fd
(block
(if_statement
(not_operator
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_separator) identifier_separator
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(call
(attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"Error splitting: {0}") string_"Error splitting: {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_add_kb_mapping) identifier_add_kb_mapping
(argument_list
(identifier_kbname) identifier_kbname
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_num_added) identifier_num_added
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)with_statement
(return_statement
(identifier_num_added) identifier_num_added
)return_statement
)block
)function_definition
)module | Add KB values from file to given KB returning rows added. |
(module
(function_definition
(function_name_flag_time_err) function_name_flag_time_err
(parameters
(identifier_phase_err) identifier_phase_err
(default_parameter
(identifier_time_thresh) identifier_time_thresh
(float_0.02) float_0.02
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_time_err) identifier_time_err
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_stamp) identifier_stamp
(identifier_phase_err) identifier_phase_err
(block
(if_statement
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(subscript
(identifier_stamp) identifier_stamp
(integer_1) integer_1
)subscript
)argument_list
)call
(identifier_time_thresh) identifier_time_thresh
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_time_err) identifier_time_err
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_stamp) identifier_stamp
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_time_err) identifier_time_err
)return_statement
)block
)function_definition
)module | Find large time errors in list.
Scan through a list of tuples of time stamps and phase errors
and return a list of time stamps with timing errors above a threshold.
.. note::
This becomes important for networks cross-correlations, where
if timing information is uncertain at one site, the relative arrival
time (lag) will be incorrect, which will degrade the cross-correlation
sum.
:type phase_err: list
:param phase_err: List of Tuple of float, datetime.datetime
:type time_thresh: float
:param time_thresh: Threshold to declare a timing error for
:returns: List of :class:`datetime.datetime` when timing is questionable. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.