sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_get_json) function_name_get_json
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__make_url) identifier__make_url
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'headers') string_'headers'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_headers) identifier_headers
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'Accept') string_'Accept'
(string_'application/json') string_'application/json'
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__make_request) identifier__make_request
)attribute
(argument_list
(string_"GET") string_"GET"
(identifier_url) identifier_url
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Perform an HTTP GET request with JSON headers of the specified path against Device Cloud
Make an HTTP GET request against Device Cloud with this accounts
credentials and base url. This method uses the
`requests <http://docs.python-requests.org/en/latest/>`_ library
`request method <http://docs.python-requests.org/en/latest/api/#requests.request>`_
and all keyword arguments will be passed on to that method.
This method will automatically add the ``Accept: application/json`` and parse the
JSON response from Device Cloud.
:param str path: Device Cloud path to GET
:param int retries: The number of times the request should be retried if an
unsuccessful response is received. Most likely, you should leave this at 0.
:raises DeviceCloudHttpException: if a non-success response to the request is received
from Device Cloud
:returns: A python data structure containing the results of calling ``json.loads`` on the
body of the response from Device Cloud. |
(module
(function_definition
(function_name_predict_variant_effects) function_name_predict_variant_effects
(parameters
(identifier_variant) identifier_variant
(default_parameter
(identifier_raise_on_error) identifier_raise_on_error
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_variant) identifier_variant
(identifier_gene_ids) identifier_gene_ids
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_effects) identifier_effects
(list
(call
(identifier_Intergenic) identifier_Intergenic
(argument_list
(identifier_variant) identifier_variant
)argument_list
)call
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_effects) identifier_effects
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_transcripts_grouped_by_gene) identifier_transcripts_grouped_by_gene
(call
(identifier_groupby_field) identifier_groupby_field
(argument_list
(attribute
(identifier_variant) identifier_variant
(identifier_transcripts) identifier_transcripts
)attribute
(string_'gene_id') string_'gene_id'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_gene_id) identifier_gene_id
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(identifier_variant) identifier_variant
(identifier_gene_ids) identifier_gene_ids
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_gene_id) identifier_gene_id
(identifier_transcripts_grouped_by_gene) identifier_transcripts_grouped_by_gene
)comparison_operator
(block
(expression_statement
(assignment
(identifier_gene) identifier_gene
(call
(attribute
(attribute
(identifier_variant) identifier_variant
(identifier_ensembl) identifier_ensembl
)attribute
(identifier_gene_by_id) identifier_gene_by_id
)attribute
(argument_list
(identifier_gene_id) identifier_gene_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_effects) identifier_effects
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Intragenic) identifier_Intragenic
(argument_list
(identifier_variant) identifier_variant
(identifier_gene) identifier_gene
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(for_statement
(identifier_transcript) identifier_transcript
(subscript
(identifier_transcripts_grouped_by_gene) identifier_transcripts_grouped_by_gene
(identifier_gene_id) identifier_gene_id
)subscript
(block
(if_statement
(identifier_raise_on_error) identifier_raise_on_error
(block
(expression_statement
(assignment
(identifier_effect) identifier_effect
(call
(identifier_predict_variant_effect_on_transcript) identifier_predict_variant_effect_on_transcript
(argument_list
(keyword_argument
(identifier_variant) identifier_variant
(identifier_variant) identifier_variant
)keyword_argument
(keyword_argument
(identifier_transcript) identifier_transcript
(identifier_transcript) identifier_transcript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_effect) identifier_effect
(call
(identifier_predict_variant_effect_on_transcript_or_failure) identifier_predict_variant_effect_on_transcript_or_failure
(argument_list
(keyword_argument
(identifier_variant) identifier_variant
(identifier_variant) identifier_variant
)keyword_argument
(keyword_argument
(identifier_transcript) identifier_transcript
(identifier_transcript) identifier_transcript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_effects) identifier_effects
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_effect) identifier_effect
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_EffectCollection) identifier_EffectCollection
(argument_list
(identifier_effects) identifier_effects
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determine the effects of a variant on any transcripts it overlaps.
Returns an EffectCollection object.
Parameters
----------
variant : Variant
raise_on_error : bool
Raise an exception if we encounter an error while trying to
determine the effect of this variant on a transcript, or simply
log the error and continue. |
(module
(function_definition
(function_name__input_file_as_html_links) function_name__input_file_as_html_links
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_session) identifier_session
(type
(identifier_AppSession) identifier_AppSession
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_scrape_result) identifier_scrape_result
(call
(attribute
(subscript
(attribute
(identifier_session) identifier_session
(identifier_factory) identifier_factory
)attribute
(string_'HTMLScraper') string_'HTMLScraper'
)subscript
(identifier_scrape_file) identifier_scrape_file
)attribute
(argument_list
(attribute
(attribute
(identifier_session) identifier_session
(identifier_args) identifier_args
)attribute
(identifier_input_file) identifier_input_file
)attribute
(keyword_argument
(identifier_encoding) identifier_encoding
(boolean_operator
(attribute
(attribute
(identifier_session) identifier_session
(identifier_args) identifier_args
)attribute
(identifier_local_encoding) identifier_local_encoding
)attribute
(string_'utf-8') string_'utf-8'
)boolean_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_context) identifier_context
(attribute
(identifier_scrape_result) identifier_scrape_result
(identifier_link_contexts) identifier_link_contexts
)attribute
(block
(expression_statement
(yield
(attribute
(identifier_context) identifier_context
(identifier_link) identifier_link
)attribute
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Read input file as HTML and return the links. |
(module
(function_definition
(function_name__after_request) function_name__after_request
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_cookie_secure) identifier_cookie_secure
(parenthesized_expression
(boolean_operator
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'OIDC_COOKIE_SECURE') string_'OIDC_COOKIE_SECURE'
)subscript
(call
(attribute
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'OIDC_ID_TOKEN_COOKIE_SECURE') string_'OIDC_ID_TOKEN_COOKIE_SECURE'
(True) True
)argument_list
)call
)boolean_operator
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_g) identifier_g
(string_'oidc_id_token_dirty') string_'oidc_id_token_dirty'
(False) False
)argument_list
)call
(block
(if_statement
(attribute
(identifier_g) identifier_g
(identifier_oidc_id_token) identifier_oidc_id_token
)attribute
(block
(expression_statement
(assignment
(identifier_signed_id_token) identifier_signed_id_token
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cookie_serializer) identifier_cookie_serializer
)attribute
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(attribute
(identifier_g) identifier_g
(identifier_oidc_id_token) identifier_oidc_id_token
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_set_cookie) identifier_set_cookie
)attribute
(argument_list
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'OIDC_ID_TOKEN_COOKIE_NAME') string_'OIDC_ID_TOKEN_COOKIE_NAME'
)subscript
(identifier_signed_id_token) identifier_signed_id_token
(keyword_argument
(identifier_secure) identifier_secure
(identifier_cookie_secure) identifier_cookie_secure
)keyword_argument
(keyword_argument
(identifier_httponly) identifier_httponly
(True) True
)keyword_argument
(keyword_argument
(identifier_max_age) identifier_max_age
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'OIDC_ID_TOKEN_COOKIE_TTL') string_'OIDC_ID_TOKEN_COOKIE_TTL'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_set_cookie) identifier_set_cookie
)attribute
(argument_list
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'OIDC_ID_TOKEN_COOKIE_NAME') string_'OIDC_ID_TOKEN_COOKIE_NAME'
)subscript
(string_'') string_''
(keyword_argument
(identifier_path) identifier_path
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'OIDC_ID_TOKEN_COOKIE_PATH') string_'OIDC_ID_TOKEN_COOKIE_PATH'
)subscript
)keyword_argument
(keyword_argument
(identifier_secure) identifier_secure
(identifier_cookie_secure) identifier_cookie_secure
)keyword_argument
(keyword_argument
(identifier_httponly) identifier_httponly
(True) True
)keyword_argument
(keyword_argument
(identifier_expires) identifier_expires
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Set a new ID token cookie if the ID token has changed. |
(module
(function_definition
(function_name_find_protein_complexes) function_name_find_protein_complexes
(parameters
(identifier_model) identifier_model
)parameters
(block
(expression_statement
(assignment
(identifier_complexes) identifier_complexes
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_rxn) identifier_rxn
(attribute
(identifier_model) identifier_model
(identifier_reactions) identifier_reactions
)attribute
(block
(if_statement
(not_operator
(attribute
(identifier_rxn) identifier_rxn
(identifier_gene_reaction_rule) identifier_gene_reaction_rule
)attribute
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_size) identifier_size
(call
(identifier_find_top_level_complex) identifier_find_top_level_complex
(argument_list
(attribute
(identifier_rxn) identifier_rxn
(identifier_gene_reaction_rule) identifier_gene_reaction_rule
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_size) identifier_size
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_complexes) identifier_complexes
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_rxn) identifier_rxn
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_complexes) identifier_complexes
)return_statement
)block
)function_definition
)module | Find reactions that are catalyzed by at least a heterodimer.
Parameters
----------
model : cobra.Model
The metabolic model under investigation.
Returns
-------
list
Reactions whose gene-protein-reaction association contains at least one
logical AND combining different gene products (heterodimer). |
(module
(function_definition
(function_name_power_in_band) function_name_power_in_band
(parameters
(identifier_events) identifier_events
(identifier_dat) identifier_dat
(identifier_s_freq) identifier_s_freq
(identifier_frequency) identifier_frequency
)parameters
(block
(expression_statement
(assignment
(identifier_dat) identifier_dat
(call
(identifier_diff) identifier_diff
(argument_list
(identifier_dat) identifier_dat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pw) identifier_pw
(call
(identifier_empty) identifier_empty
(argument_list
(subscript
(attribute
(identifier_events) identifier_events
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pw) identifier_pw
(identifier_fill) identifier_fill
)attribute
(argument_list
(identifier_nan) identifier_nan
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_one_event) identifier_one_event
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_events) identifier_events
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_x0) identifier_x0
(subscript
(identifier_one_event) identifier_one_event
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_x1) identifier_x1
(subscript
(identifier_one_event) identifier_one_event
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_x0) identifier_x0
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_x1) identifier_x1
(call
(identifier_len) identifier_len
(argument_list
(identifier_dat) identifier_dat
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_pw) identifier_pw
(identifier_i) identifier_i
)subscript
(identifier_nan) identifier_nan
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_sf) identifier_sf
(identifier_Pxx) identifier_Pxx
)pattern_list
(call
(identifier_periodogram) identifier_periodogram
(argument_list
(subscript
(identifier_dat) identifier_dat
(slice
(identifier_x0) identifier_x0
(colon) colon
(identifier_x1) identifier_x1
)slice
)subscript
(identifier_s_freq) identifier_s_freq
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b0) identifier_b0
(call
(attribute
(call
(identifier_asarray) identifier_asarray
(argument_list
(list_comprehension
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(identifier_x) identifier_x
(subscript
(identifier_frequency) identifier_frequency
(integer_0) integer_0
)subscript
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_sf) identifier_sf
)for_in_clause
)list_comprehension
)argument_list
)call
(identifier_argmin) identifier_argmin
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_b1) identifier_b1
(call
(attribute
(call
(identifier_asarray) identifier_asarray
(argument_list
(list_comprehension
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(identifier_x) identifier_x
(subscript
(identifier_frequency) identifier_frequency
(integer_1) integer_1
)subscript
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_sf) identifier_sf
)for_in_clause
)list_comprehension
)argument_list
)call
(identifier_argmin) identifier_argmin
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_pw) identifier_pw
(identifier_i) identifier_i
)subscript
(call
(identifier_mean) identifier_mean
(argument_list
(subscript
(identifier_Pxx) identifier_Pxx
(slice
(identifier_b0) identifier_b0
(colon) colon
(identifier_b1) identifier_b1
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_pw) identifier_pw
)return_statement
)block
)function_definition
)module | Define power of the signal within frequency band.
Parameters
----------
events : ndarray (dtype='int')
N x 3 matrix with start, peak, end samples
dat : ndarray (dtype='float')
vector with the original data
s_freq : float
sampling frequency
frequency : tuple of float
low and high frequency of spindle band, for window
Returns
-------
ndarray (dtype='float')
vector with power |
(module
(function_definition
(function_name_transfer_and_wait) function_name_transfer_and_wait
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_registry_address) identifier_registry_address
(type
(identifier_PaymentNetworkID) identifier_PaymentNetworkID
)type
)typed_parameter
(typed_parameter
(identifier_token_address) identifier_token_address
(type
(identifier_TokenAddress) identifier_TokenAddress
)type
)typed_parameter
(typed_parameter
(identifier_amount) identifier_amount
(type
(identifier_TokenAmount) identifier_TokenAmount
)type
)typed_parameter
(typed_parameter
(identifier_target) identifier_target
(type
(identifier_Address) identifier_Address
)type
)typed_parameter
(typed_default_parameter
(identifier_identifier) identifier_identifier
(type
(identifier_PaymentID) identifier_PaymentID
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_transfer_timeout) identifier_transfer_timeout
(type
(identifier_int) identifier_int
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_secret) identifier_secret
(type
(identifier_Secret) identifier_Secret
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_secret_hash) identifier_secret_hash
(type
(identifier_SecretHash) identifier_SecretHash
)type
(None) None
)typed_default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_payment_status) identifier_payment_status
(call
(attribute
(identifier_self) identifier_self
(identifier_transfer_async) identifier_transfer_async
)attribute
(argument_list
(keyword_argument
(identifier_registry_address) identifier_registry_address
(identifier_registry_address) identifier_registry_address
)keyword_argument
(keyword_argument
(identifier_token_address) identifier_token_address
(identifier_token_address) identifier_token_address
)keyword_argument
(keyword_argument
(identifier_amount) identifier_amount
(identifier_amount) identifier_amount
)keyword_argument
(keyword_argument
(identifier_target) identifier_target
(identifier_target) identifier_target
)keyword_argument
(keyword_argument
(identifier_identifier) identifier_identifier
(identifier_identifier) identifier_identifier
)keyword_argument
(keyword_argument
(identifier_secret) identifier_secret
(identifier_secret) identifier_secret
)keyword_argument
(keyword_argument
(identifier_secret_hash) identifier_secret_hash
(identifier_secret_hash) identifier_secret_hash
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_payment_status) identifier_payment_status
(identifier_payment_done) identifier_payment_done
)attribute
(identifier_wait) identifier_wait
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_transfer_timeout) identifier_transfer_timeout
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_payment_status) identifier_payment_status
)return_statement
)block
)function_definition
)module | Do a transfer with `target` with the given `amount` of `token_address`. |
(module
(function_definition
(function_name_context_lookup) function_name_context_lookup
(parameters
(identifier_self) identifier_self
(identifier_vars) identifier_vars
)parameters
(block
(while_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_vars) identifier_vars
(identifier_IscmExpr) identifier_IscmExpr
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_vars) identifier_vars
(call
(attribute
(identifier_vars) identifier_vars
(identifier_resolve) identifier_resolve
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(for_statement
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(identifier_vars) identifier_vars
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_IscmExpr) identifier_IscmExpr
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_vars) identifier_vars
(identifier_k) identifier_k
)subscript
(call
(attribute
(identifier_v) identifier_v
(identifier_resolve) identifier_resolve
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_vars) identifier_vars
)return_statement
)block
)function_definition
)module | Lookup the variables in the provided dictionary, resolve with entries
in the context |
(module
(function_definition
(function_name_choose_best_amplicon) function_name_choose_best_amplicon
(parameters
(identifier_self) identifier_self
(identifier_amplicon_tuples) identifier_amplicon_tuples
)parameters
(block
(expression_statement
(assignment
(identifier_quality) identifier_quality
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_amplicon_length) identifier_amplicon_length
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_best_amplicon) identifier_best_amplicon
(None) None
)assignment
)expression_statement
(for_statement
(identifier_amplicon) identifier_amplicon
(identifier_amplicon_tuples) identifier_amplicon_tuples
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_amplicon) identifier_amplicon
(integer_4) integer_4
)subscript
)argument_list
)call
(identifier_quality) identifier_quality
)comparison_operator
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_amplicon) identifier_amplicon
(integer_5) integer_5
)subscript
)argument_list
)call
(identifier_amplicon_length) identifier_amplicon_length
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_quality) identifier_quality
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_amplicon) identifier_amplicon
(integer_4) integer_4
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_amplicon_length) identifier_amplicon_length
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_amplicon) identifier_amplicon
(integer_5) integer_5
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_best_amplicon) identifier_best_amplicon
(identifier_amplicon) identifier_amplicon
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_best_amplicon) identifier_best_amplicon
)return_statement
)block
)function_definition
)module | Iterates over amplicon tuples and returns the one with highest quality
and amplicon length. |
(module
(function_definition
(function_name__merge_with_defaults) function_name__merge_with_defaults
(parameters
(identifier_params) identifier_params
)parameters
(block
(expression_statement
(assignment
(identifier_marks_params) identifier_marks_params
(conditional_expression
(list_comprehension
(call
(attribute
(identifier_tz) identifier_tz
(identifier_merge) identifier_merge
)attribute
(argument_list
(identifier_default) identifier_default
(identifier_param) identifier_param
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_default) identifier_default
(identifier_param) identifier_param
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_repeat) identifier_repeat
)attribute
(argument_list
(subscript
(identifier__default_params) identifier__default_params
(string_'marks') string_'marks'
)subscript
)argument_list
)call
(subscript
(identifier_params) identifier_params
(string_'marks') string_'marks'
)subscript
)argument_list
)call
)for_in_clause
)list_comprehension
(comparison_operator
(string_'marks') string_'marks'
(identifier_params) identifier_params
)comparison_operator
(list
(subscript
(identifier__default_params) identifier__default_params
(string_'marks') string_'marks'
)subscript
)list
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_merged_without_marks) identifier_merged_without_marks
(call
(attribute
(identifier_tz) identifier_tz
(identifier_merge_with) identifier_merge_with
)attribute
(argument_list
(attribute
(identifier_tz) identifier_tz
(identifier_merge) identifier_merge
)attribute
(call
(attribute
(identifier_tz) identifier_tz
(identifier_dissoc) identifier_dissoc
)attribute
(argument_list
(identifier__default_params) identifier__default_params
(string_'marks') string_'marks'
)argument_list
)call
(call
(attribute
(identifier_tz) identifier_tz
(identifier_dissoc) identifier_dissoc
)attribute
(argument_list
(identifier_params) identifier_params
(string_'marks') string_'marks'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_tz) identifier_tz
(identifier_merge) identifier_merge
)attribute
(argument_list
(identifier_merged_without_marks) identifier_merged_without_marks
(dictionary
(pair
(string_'marks') string_'marks'
(identifier_marks_params) identifier_marks_params
)pair
)dictionary
)argument_list
)call
)return_statement
)block
)function_definition
)module | Performs a 2-level deep merge of params with _default_params with corrent
merging of params for each mark.
This is a bit complicated since params['marks'] is a list and we need to
make sure each mark gets the default params. |
(module
(function_definition
(function_name_client) function_name_client
(parameters
(identifier_self) identifier_self
(identifier_container) identifier_container
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client_chk) identifier__client_chk
)attribute
(identifier_check) identifier_check
)attribute
(argument_list
(identifier_container) identifier_container
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_ContainerClient) identifier_ContainerClient
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(call
(identifier_int) identifier_int
(argument_list
(identifier_container) identifier_container
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a client instance that is bound to that container.
:param container: container id
:return: Client object bound to the specified container id
Return a ContainerResponse from container.create |
(module
(function_definition
(function_name_setKey) function_name_setKey
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier_getDictionary) identifier_getDictionary
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setDictionary) identifier_setDictionary
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets the value for the specified dictionary key |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_term) identifier_term
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_term) identifier_term
(identifier_Conjunction) identifier_Conjunction
)argument_list
)call
(block
(for_statement
(identifier_term_) identifier_term_
(attribute
(identifier_term) identifier_term
(identifier_terms) identifier_terms
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_term_) identifier_term_
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_term) identifier_term
(identifier_Term) identifier_Term
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__terms) identifier__terms
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_term) identifier_term
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Not a Term or Conjunction') string_'Not a Term or Conjunction'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add a term to the conjunction.
Args:
term (:class:`Term`, :class:`Conjunction`): term to add;
if a :class:`Conjunction`, all of its terms are added
to the current conjunction.
Raises:
:class:`TypeError`: when *term* is an invalid type |
(module
(function_definition
(function_name_seebeck_spb) function_name_seebeck_spb
(parameters
(identifier_eta) identifier_eta
(default_parameter
(identifier_Lambda) identifier_Lambda
(float_0.5) float_0.5
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_fdint) identifier_fdint
)dotted_name
(dotted_name
(identifier_fdk) identifier_fdk
)dotted_name
)import_from_statement
(return_statement
(binary_operator
(binary_operator
(binary_operator
(attribute
(identifier_constants) identifier_constants
(identifier_k) identifier_k
)attribute
(attribute
(identifier_constants) identifier_constants
(identifier_e) identifier_e
)attribute
)binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(float_2.) float_2.
(identifier_Lambda) identifier_Lambda
)binary_operator
)parenthesized_expression
(call
(identifier_fdk) identifier_fdk
(argument_list
(binary_operator
(float_1.) float_1.
(identifier_Lambda) identifier_Lambda
)binary_operator
(identifier_eta) identifier_eta
)argument_list
)call
)binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(float_1.) float_1.
(identifier_Lambda) identifier_Lambda
)binary_operator
)parenthesized_expression
(call
(identifier_fdk) identifier_fdk
(argument_list
(identifier_Lambda) identifier_Lambda
(identifier_eta) identifier_eta
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_eta) identifier_eta
)binary_operator
)parenthesized_expression
)binary_operator
(float_1e+6) float_1e+6
)binary_operator
)return_statement
)block
)function_definition
)module | Seebeck analytic formula in the single parabolic model |
(module
(function_definition
(function_name_spaced_indexes) function_name_spaced_indexes
(parameters
(identifier_len_) identifier_len_
(identifier_n) identifier_n
(default_parameter
(identifier_trunc) identifier_trunc
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_n) identifier_n
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(identifier_len_) identifier_len_
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_all_indexes) identifier_all_indexes
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(identifier_len_) identifier_len_
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_trunc) identifier_trunc
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_min) identifier_min
(argument_list
(identifier_len_) identifier_len_
(identifier_n) identifier_n
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_n) identifier_n
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_stride) identifier_stride
(binary_operator
(identifier_len_) identifier_len_
(identifier_n) identifier_n
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_indexes) identifier_indexes
(subscript
(identifier_all_indexes) identifier_all_indexes
(slice
(integer_0) integer_0
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
(colon) colon
(identifier_stride) identifier_stride
)slice
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'cannot slice list of len_=%r into n=%r parts') string_'cannot slice list of len_=%r into n=%r parts'
(tuple
(identifier_len_) identifier_len_
(identifier_n) identifier_n
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_indexes) identifier_indexes
)return_statement
)block
)function_definition
)module | Returns n evenly spaced indexes.
Returns as many as possible if trunc is true |
(module
(function_definition
(function_name_umount) function_name_umount
(parameters
(identifier_mountpoint) identifier_mountpoint
(default_parameter
(identifier_persist) identifier_persist
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cmd_args) identifier_cmd_args
(list
(string_'umount') string_'umount'
(identifier_mountpoint) identifier_mountpoint
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(identifier_cmd_args) identifier_cmd_args
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_log) identifier_log
(argument_list
(call
(attribute
(string_'Error unmounting {}\n{}') string_'Error unmounting {}\n{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_mountpoint) identifier_mountpoint
(attribute
(identifier_e) identifier_e
(identifier_output) identifier_output
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(if_statement
(identifier_persist) identifier_persist
(block
(return_statement
(call
(identifier_fstab_remove) identifier_fstab_remove
(argument_list
(identifier_mountpoint) identifier_mountpoint
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Unmount a filesystem |
(module
(function_definition
(function_name_end_script) function_name_end_script
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_remote_bridge) identifier_remote_bridge
)attribute
(identifier_status) identifier_status
)attribute
(tuple
(attribute
(identifier_BRIDGE_STATUS) identifier_BRIDGE_STATUS
(identifier_RECEIVED) identifier_RECEIVED
)attribute
(attribute
(identifier_BRIDGE_STATUS) identifier_BRIDGE_STATUS
(identifier_WAITING) identifier_WAITING
)attribute
)tuple
)comparison_operator
(block
(return_statement
(list
(integer_1) integer_1
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_remote_bridge) identifier_remote_bridge
)attribute
(identifier_status) identifier_status
)attribute
(attribute
(identifier_BRIDGE_STATUS) identifier_BRIDGE_STATUS
(identifier_RECEIVED) identifier_RECEIVED
)attribute
)assignment
)expression_statement
(return_statement
(list
(integer_0) integer_0
)list
)return_statement
)block
)function_definition
)module | Indicate that we have finished receiving a script. |
(module
(function_definition
(function_name_wait) function_name_wait
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__ping_task) identifier__ping_task
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_'Response is not started') string_'Response is not started'
)argument_list
)call
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_contextlib) identifier_contextlib
(identifier_suppress) identifier_suppress
)attribute
(argument_list
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_CancelledError) identifier_CancelledError
)attribute
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(await
(attribute
(identifier_self) identifier_self
(identifier__ping_task) identifier__ping_task
)attribute
)await
)expression_statement
)block
)with_statement
)block
)function_definition
)module | EventSourceResponse object is used for streaming data to the client,
this method returns future, so we can wain until connection will
be closed or other task explicitly call ``stop_streaming`` method. |
(module
(function_definition
(function_name_parse_cstring) function_name_parse_cstring
(parameters
(identifier_stream) identifier_stream
(identifier_offset) identifier_offset
)parameters
(block
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier_seek) identifier_seek
)attribute
(argument_list
(identifier_offset) identifier_offset
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_string) identifier_string
(string_"") string_""
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_char) identifier_char
(subscript
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_'c') string_'c'
(call
(attribute
(identifier_stream) identifier_stream
(identifier_read) identifier_read
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_char) identifier_char
(string_b'\x00') string_b'\x00'
)comparison_operator
(block
(return_statement
(identifier_string) identifier_string
)return_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_string) identifier_string
(call
(attribute
(identifier_char) identifier_char
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
)block
)function_definition
)module | parse_cstring will parse a null-terminated string in a bytestream.
The string will be decoded with UTF-8 decoder, of course since we are
doing this byte-a-byte, it won't really work for all Unicode strings.
TODO: add proper Unicode support |
(module
(function_definition
(function_name_reqContractDetails) function_name_reqContractDetails
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_contract) identifier_contract
(type
(identifier_Contract) identifier_Contract
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_ContractDetails) identifier_ContractDetails
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__run) identifier__run
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_reqContractDetailsAsync) identifier_reqContractDetailsAsync
)attribute
(argument_list
(identifier_contract) identifier_contract
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a list of contract details that match the given contract.
If the returned list is empty then the contract is not known;
If the list has multiple values then the contract is ambiguous.
The fully qualified contract is available in the the
ContractDetails.contract attribute.
This method is blocking.
https://interactivebrokers.github.io/tws-api/contract_details.html
Args:
contract: The contract to get details for. |
(module
(function_definition
(function_name_ssh_authorized_key_exists) function_name_ssh_authorized_key_exists
(parameters
(identifier_public_key) identifier_public_key
(identifier_application_name) identifier_application_name
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(identifier_authorized_keys) identifier_authorized_keys
(argument_list
(identifier_application_name) identifier_application_name
(identifier_user) identifier_user
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_keys) identifier_keys
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(string_'%s') string_'%s'
(identifier_public_key) identifier_public_key
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_keys) identifier_keys
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)return_statement
)block
)with_statement
)block
)function_definition
)module | Check if given key is in the authorized_key file.
:param public_key: Public key.
:type public_key: str
:param application_name: Name of application eg nova-compute-something
:type application_name: str
:param user: The user that the ssh asserts are for.
:type user: str
:returns: Whether given key is in the authorized_key file.
:rtype: boolean |
(module
(function_definition
(function_name___generate_tree) function_name___generate_tree
(parameters
(identifier_self) identifier_self
(identifier_top) identifier_top
(identifier_src) identifier_src
(identifier_resources) identifier_resources
(identifier_models) identifier_models
(identifier_ctrls) identifier_ctrls
(identifier_views) identifier_views
(identifier_utils) identifier_utils
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier___mkdir) identifier___mkdir
)attribute
(argument_list
(identifier_top) identifier_top
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_fn) identifier_fn
(tuple
(identifier_src) identifier_src
(identifier_models) identifier_models
(identifier_ctrls) identifier_ctrls
(identifier_views) identifier_views
(identifier_utils) identifier_utils
)tuple
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier___mkpkg) identifier___mkpkg
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
(identifier_res) identifier_res
)boolean_operator
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier___mkdir) identifier___mkdir
)attribute
(argument_list
(identifier_resources) identifier_resources
)argument_list
)call
(identifier_res) identifier_res
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier___mkdir) identifier___mkdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_resources) identifier_resources
(string_"ui") string_"ui"
(string_"builder") string_"builder"
)argument_list
)call
)argument_list
)call
(identifier_res) identifier_res
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier___mkdir) identifier___mkdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_resources) identifier_resources
(string_"ui") string_"ui"
(string_"styles") string_"styles"
)argument_list
)call
)argument_list
)call
(identifier_res) identifier_res
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier___mkdir) identifier___mkdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_resources) identifier_resources
(string_"external") string_"external"
)argument_list
)call
)argument_list
)call
(identifier_res) identifier_res
)boolean_operator
)assignment
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Creates directories and packages |
(module
(function_definition
(function_name_get_pwm) function_name_get_pwm
(parameters
(identifier_self) identifier_self
(identifier_led_num) identifier_led_num
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___check_range) identifier___check_range
)attribute
(argument_list
(string_'led_number') string_'led_number'
(identifier_led_num) identifier_led_num
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_register_low) identifier_register_low
(call
(attribute
(identifier_self) identifier_self
(identifier_calc_led_register) identifier_calc_led_register
)attribute
(argument_list
(identifier_led_num) identifier_led_num
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___get_led_value) identifier___get_led_value
)attribute
(argument_list
(identifier_register_low) identifier_register_low
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generic getter for all LED PWM value |
(module
(function_definition
(function_name_custom_property_prefix_strict) function_name_custom_property_prefix_strict
(parameters
(identifier_instance) identifier_instance
)parameters
(block
(for_statement
(identifier_prop_name) identifier_prop_name
(call
(attribute
(identifier_instance) identifier_instance
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(subscript
(identifier_instance) identifier_instance
(string_'type') string_'type'
)subscript
(attribute
(identifier_enums) identifier_enums
(identifier_PROPERTIES) identifier_PROPERTIES
)attribute
)comparison_operator
(comparison_operator
(identifier_prop_name) identifier_prop_name
(subscript
(attribute
(identifier_enums) identifier_enums
(identifier_PROPERTIES) identifier_PROPERTIES
)attribute
(subscript
(identifier_instance) identifier_instance
(string_'type') string_'type'
)subscript
)subscript
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_prop_name) identifier_prop_name
(attribute
(identifier_enums) identifier_enums
(identifier_RESERVED_PROPERTIES) identifier_RESERVED_PROPERTIES
)attribute
)comparison_operator
)boolean_operator
(not_operator
(call
(attribute
(identifier_CUSTOM_PROPERTY_PREFIX_RE) identifier_CUSTOM_PROPERTY_PREFIX_RE
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_prop_name) identifier_prop_name
)argument_list
)call
)not_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(yield
(call
(identifier_JSONError) identifier_JSONError
(argument_list
(binary_operator
(concatenated_string
(string_"Custom property '%s' should have a type that ") string_"Custom property '%s' should have a type that "
(string_"starts with 'x_' followed by a source unique ") string_"starts with 'x_' followed by a source unique "
(string_"identifier (like a domain name with dots ") string_"identifier (like a domain name with dots "
(string_"replaced by hyphen), a hyphen and then the name.") string_"replaced by hyphen), a hyphen and then the name."
)concatenated_string
(identifier_prop_name) identifier_prop_name
)binary_operator
(subscript
(identifier_instance) identifier_instance
(string_'id') string_'id'
)subscript
(string_'custom-prefix') string_'custom-prefix'
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Ensure custom properties follow strict naming style conventions.
Does not check property names in custom objects. |
(module
(function_definition
(function_name_process_user_info_response) function_name_process_user_info_response
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_mapping) identifier_mapping
(tuple
(tuple
(string_'username') string_'username'
(string_'preferred_username') string_'preferred_username'
)tuple
(tuple
(string_'email') string_'email'
(string_'email') string_'email'
)tuple
(tuple
(string_'last_name') string_'last_name'
(string_'family_name') string_'family_name'
)tuple
(tuple
(string_'first_name') string_'first_name'
(string_'given_name') string_'given_name'
)tuple
)tuple
)assignment
)expression_statement
(return_statement
(dictionary_comprehension
(pair
(identifier_dest) identifier_dest
(subscript
(identifier_response) identifier_response
(identifier_source) identifier_source
)subscript
)pair
(for_in_clause
(pattern_list
(identifier_dest) identifier_dest
(identifier_source) identifier_source
)pattern_list
(identifier_mapping) identifier_mapping
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Process the user info response data.
By default, this simply maps the edX user info key-values (example below) to Django-friendly names. If your
provider returns different fields, you should sub-class this class and override this method.
.. code-block:: python
{
"username": "jdoe",
"email": "jdoe@example.com",
"first_name": "Jane",
"last_name": "Doe"
}
Arguments:
response (dict): User info data
Returns:
dict |
(module
(function_definition
(function_name__read_json_db) function_name__read_json_db
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_metadata_str) identifier_metadata_str
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db_io) identifier_db_io
)attribute
(identifier_read_metadata_from_uri) identifier_read_metadata_from_uri
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_layer_uri) identifier_layer_uri
)attribute
(string_'json') string_'json'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_HashNotFoundError) identifier_HashNotFoundError
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_metadata_str) identifier_metadata_str
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_metadata) identifier_metadata
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(identifier_tr) identifier_tr
(argument_list
(concatenated_string
(string_'the file DB entry for %s does not appear to be ') string_'the file DB entry for %s does not appear to be '
(string_'valid JSON') string_'valid JSON'
)concatenated_string
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_message) identifier_message
(attribute
(identifier_self) identifier_self
(identifier_layer_uri) identifier_layer_uri
)attribute
)augmented_assignment
)expression_statement
(raise_statement
(call
(identifier_MetadataReadError) identifier_MetadataReadError
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | read metadata from a json string stored in a DB.
:return: the parsed json dict
:rtype: dict |
(module
(function_definition
(function_name_changelog_file_option_validator) function_name_changelog_file_option_validator
(parameters
(identifier_ctx) identifier_ctx
(identifier_param) identifier_param
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_path) identifier_path
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(identifier_click) identifier_click
(identifier_style) identifier_style
)attribute
(argument_list
(attribute
(identifier_path) identifier_path
(identifier_name) identifier_name
)attribute
(keyword_argument
(identifier_fg) identifier_fg
(string_"blue") string_"blue"
)keyword_argument
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_fail) identifier_fail
)attribute
(argument_list
(concatenated_string
(string_"\n") string_"\n"
(string_f" {x_mark} Unable to find {filename}\n") string_f" {x_mark} Unable to find {filename}\n"
(string_' Run "$ brau init" to create one') string_' Run "$ brau init" to create one'
)concatenated_string
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_path) identifier_path
)return_statement
)block
)function_definition
)module | Checks that the given file path exists in the current working directory.
Returns a :class:`~pathlib.Path` object. If the file does not exist raises
a :class:`~click.UsageError` exception. |
(module
(function_definition
(function_name_GET_namespace_num_names) function_name_GET_namespace_num_names
(parameters
(identifier_self) identifier_self
(identifier_path_info) identifier_path_info
(identifier_namespace_id) identifier_namespace_id
)parameters
(block
(if_statement
(not_operator
(call
(identifier_check_namespace) identifier_check_namespace
(argument_list
(identifier_namespace_id) identifier_namespace_id
)argument_list
)call
)not_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__reply_json) identifier__reply_json
)attribute
(argument_list
(dictionary
(pair
(string_'error') string_'error'
(string_'Invalid namespace') string_'Invalid namespace'
)pair
)dictionary
(keyword_argument
(identifier_status_code) identifier_status_code
(integer_400) integer_400
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_blockstackd_url) identifier_blockstackd_url
(call
(identifier_get_blockstackd_url) identifier_get_blockstackd_url
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name_count) identifier_name_count
(call
(attribute
(identifier_blockstackd_client) identifier_blockstackd_client
(identifier_get_num_names_in_namespace) identifier_get_num_names_in_namespace
)attribute
(argument_list
(identifier_namespace_id) identifier_namespace_id
(keyword_argument
(identifier_hostport) identifier_hostport
(identifier_blockstackd_url) identifier_blockstackd_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_json_is_error) identifier_json_is_error
(argument_list
(identifier_name_count) identifier_name_count
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"Failed to load namespace count for {}: {}") string_"Failed to load namespace count for {}: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_namespace_id) identifier_namespace_id
(subscript
(identifier_name_count) identifier_name_count
(string_'error') string_'error'
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__reply_json) identifier__reply_json
)attribute
(argument_list
(dictionary
(pair
(string_'error') string_'error'
(call
(attribute
(string_'Failed to load namespace count: {}') string_'Failed to load namespace count: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_name_count) identifier_name_count
(string_'error') string_'error'
)subscript
)argument_list
)call
)pair
)dictionary
(keyword_argument
(identifier_status_code) identifier_status_code
(integer_404) integer_404
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__reply_json) identifier__reply_json
)attribute
(argument_list
(dictionary
(pair
(string_'names_count') string_'names_count'
(identifier_name_count) identifier_name_count
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Get the number of names in a namespace
Reply the number on success
Reply 404 if the namespace does not exist
Reply 502 on failure to talk to the blockstack server |
(module
(function_definition
(function_name_logtrick_sgd) function_name_logtrick_sgd
(parameters
(identifier_sgd) identifier_sgd
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_sgd) identifier_sgd
)argument_list
)call
)decorator
(function_definition
(function_name_new_sgd) function_name_new_sgd
(parameters
(identifier_fun) identifier_fun
(identifier_x0) identifier_x0
(identifier_data) identifier_data
(default_parameter
(identifier_bounds) identifier_bounds
(None) None
)default_parameter
(default_parameter
(identifier_eval_obj) identifier_eval_obj
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_sgd_kwargs) identifier_sgd_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_bounds) identifier_bounds
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_sgd) identifier_sgd
(argument_list
(identifier_fun) identifier_fun
(identifier_x0) identifier_x0
(identifier_data) identifier_data
(keyword_argument
(identifier_bounds) identifier_bounds
(identifier_bounds) identifier_bounds
)keyword_argument
(keyword_argument
(identifier_eval_obj) identifier_eval_obj
(identifier_eval_obj) identifier_eval_obj
)keyword_argument
(dictionary_splat
(identifier_sgd_kwargs) identifier_sgd_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_logx) identifier_logx
(identifier_expx) identifier_expx
(identifier_gradx) identifier_gradx
(identifier_bounds) identifier_bounds
)pattern_list
(call
(identifier__logtrick_gen) identifier__logtrick_gen
(argument_list
(identifier_bounds) identifier_bounds
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_eval_obj) identifier_eval_obj
)argument_list
)call
(block
(function_definition
(function_name_new_fun) function_name_new_fun
(parameters
(identifier_x) identifier_x
(list_splat_pattern
(identifier_fargs) identifier_fargs
)list_splat_pattern
(dictionary_splat_pattern
(identifier_fkwargs) identifier_fkwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_o) identifier_o
(identifier_g) identifier_g
)pattern_list
(call
(identifier_fun) identifier_fun
(argument_list
(call
(identifier_expx) identifier_expx
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(list_splat
(identifier_fargs) identifier_fargs
)list_splat
(dictionary_splat
(identifier_fkwargs) identifier_fkwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_o) identifier_o
(call
(identifier_gradx) identifier_gradx
(argument_list
(identifier_g) identifier_g
(identifier_x) identifier_x
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)block
(else_clause
(block
(function_definition
(function_name_new_fun) function_name_new_fun
(parameters
(identifier_x) identifier_x
(list_splat_pattern
(identifier_fargs) identifier_fargs
)list_splat_pattern
(dictionary_splat_pattern
(identifier_fkwargs) identifier_fkwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_gradx) identifier_gradx
(argument_list
(call
(identifier_fun) identifier_fun
(argument_list
(call
(identifier_expx) identifier_expx
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(list_splat
(identifier_fargs) identifier_fargs
)list_splat
(dictionary_splat
(identifier_fkwargs) identifier_fkwargs
)dictionary_splat
)argument_list
)call
(identifier_x) identifier_x
)argument_list
)call
)return_statement
)block
)function_definition
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_sgd) identifier_sgd
(argument_list
(identifier_new_fun) identifier_new_fun
(call
(identifier_logx) identifier_logx
(argument_list
(identifier_x0) identifier_x0
)argument_list
)call
(identifier_data) identifier_data
(keyword_argument
(identifier_bounds) identifier_bounds
(identifier_bounds) identifier_bounds
)keyword_argument
(keyword_argument
(identifier_eval_obj) identifier_eval_obj
(identifier_eval_obj) identifier_eval_obj
)keyword_argument
(dictionary_splat
(identifier_sgd_kwargs) identifier_sgd_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(string_'x') string_'x'
)subscript
(call
(identifier_expx) identifier_expx
(argument_list
(subscript
(identifier_result) identifier_result
(string_'x') string_'x'
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_new_sgd) identifier_new_sgd
)return_statement
)block
)function_definition
)module | r"""
Log-Trick decorator for stochastic gradients.
This decorator implements the "log trick" for optimizing positive bounded
variables using SGD. It will apply this trick for any variables that
correspond to a Positive() bound.
Examples
--------
>>> from ..optimize import sgd
>>> from ..btypes import Bound, Positive
Here is an example where we may want to enforce a particular parameter or
parameters to be strictly greater than zero,
>>> def cost(w, data, lambda_):
... N = len(data)
... y, X = data[:, 0], data[:, 1:]
... y_est = X.dot(w)
... ww = w.T.dot(w)
... obj = (y - y_est).sum() / N + lambda_ * ww
... gradw = - 2 * X.T.dot(y - y_est) / N + 2 * lambda_ * w
... return obj, gradw
Now let's enforce that the `w` are positive,
>>> bounds = [Positive(), Positive()]
>>> new_sgd = logtrick_sgd(sgd)
Data
>>> y = np.linspace(1, 10, 100) + np.random.randn(100) + 1
>>> X = np.array([np.ones(100), np.linspace(1, 100, 100)]).T
>>> data = np.hstack((y[:, np.newaxis], X))
Initial values
>>> w_0 = np.array([1., 1.])
>>> lambda_0 = .25
>>> res = new_sgd(cost, w_0, data, args=(lambda_0,), bounds=bounds,
... batch_size=10, eval_obj=True)
>>> res.x >= 0
array([ True, True], dtype=bool)
Note
----
This decorator only works on unstructured optimizers. However, it can be
use with structured_minimizer, so long as it is the inner wrapper. |
(module
(function_definition
(function_name_getReffs) function_name_getReffs
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_level) identifier_level
(type
(identifier_int) identifier_int
)type
(integer_1) integer_1
)typed_default_parameter
(typed_default_parameter
(identifier_subreference) identifier_subreference
(type
(identifier_CtsReference) identifier_CtsReference
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_CtsReferenceSet) identifier_CtsReferenceSet
)type
(block
(if_statement
(boolean_operator
(not_operator
(identifier_subreference) identifier_subreference
)not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_"reference") string_"reference"
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_subreference) identifier_subreference
(attribute
(identifier_self) identifier_self
(identifier_reference) identifier_reference
)attribute
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(identifier_subreference) identifier_subreference
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_subreference) identifier_subreference
(identifier_CtsReference) identifier_CtsReference
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_subreference) identifier_subreference
(call
(identifier_CtsReference) identifier_CtsReference
(argument_list
(identifier_subreference) identifier_subreference
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_getValidReff) identifier_getValidReff
)attribute
(argument_list
(keyword_argument
(identifier_level) identifier_level
(identifier_level) identifier_level
)keyword_argument
(keyword_argument
(identifier_reference) identifier_reference
(identifier_subreference) identifier_subreference
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | CtsReference available at a given level
:param level: Depth required. If not set, should retrieve first encountered level (1 based)
:param subreference: Subreference (optional)
:returns: List of levels |
(module
(function_definition
(function_name_spp_call_peaks) function_name_spp_call_peaks
(parameters
(identifier_self) identifier_self
(identifier_treatment_bam) identifier_treatment_bam
(identifier_control_bam) identifier_control_bam
(identifier_treatment_name) identifier_treatment_name
(identifier_control_name) identifier_control_name
(identifier_output_dir) identifier_output_dir
(identifier_broad) identifier_broad
(identifier_cpus) identifier_cpus
(default_parameter
(identifier_qvalue) identifier_qvalue
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_broad) identifier_broad
(conditional_expression
(string_"TRUE") string_"TRUE"
(identifier_broad) identifier_broad
(string_"FALSE") string_"FALSE"
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tools) identifier_tools
)attribute
(identifier_Rscript) identifier_Rscript
)attribute
(call
(attribute
(string_" `which spp_peak_calling.R` {0} {1} {2} {3} {4} {5} {6}") string_" `which spp_peak_calling.R` {0} {1} {2} {3} {4} {5} {6}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_treatment_bam) identifier_treatment_bam
(identifier_control_bam) identifier_control_bam
(identifier_treatment_name) identifier_treatment_name
(identifier_control_name) identifier_control_name
(identifier_broad) identifier_broad
(identifier_cpus) identifier_cpus
(identifier_output_dir) identifier_output_dir
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_qvalue) identifier_qvalue
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_" {}") string_" {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_qvalue) identifier_qvalue
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_cmd) identifier_cmd
)return_statement
)block
)function_definition
)module | Build command for R script to call peaks with SPP.
:param str treatment_bam: Path to file with data for treatment sample.
:param str control_bam: Path to file with data for control sample.
:param str treatment_name: Name for the treatment sample.
:param str control_name: Name for the control sample.
:param str output_dir: Path to folder for output.
:param str | bool broad: Whether to specify broad peak calling mode.
:param int cpus: Number of cores the script may use.
:param float qvalue: FDR, as decimal value
:return str: Command to run. |
(module
(function_definition
(function_name__assert_no_error) function_name__assert_no_error
(parameters
(identifier_error) identifier_error
(default_parameter
(identifier_exception_class) identifier_exception_class
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_error) identifier_error
(integer_0) integer_0
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cf_error_string) identifier_cf_error_string
(call
(attribute
(identifier_Security) identifier_Security
(identifier_SecCopyErrorMessageString) identifier_SecCopyErrorMessageString
)attribute
(argument_list
(identifier_error) identifier_error
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(identifier__cf_string_to_unicode) identifier__cf_string_to_unicode
(argument_list
(identifier_cf_error_string) identifier_cf_error_string
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_CoreFoundation) identifier_CoreFoundation
(identifier_CFRelease) identifier_CFRelease
)attribute
(argument_list
(identifier_cf_error_string) identifier_cf_error_string
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_output) identifier_output
(None) None
)comparison_operator
(comparison_operator
(identifier_output) identifier_output
(string_u'') string_u''
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(binary_operator
(string_u'OSStatus %s') string_u'OSStatus %s'
(identifier_error) identifier_error
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_exception_class) identifier_exception_class
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_exception_class) identifier_exception_class
(attribute
(identifier_ssl) identifier_ssl
(identifier_SSLError) identifier_SSLError
)attribute
)assignment
)expression_statement
)block
)if_statement
(raise_statement
(call
(identifier_exception_class) identifier_exception_class
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Checks the return code and throws an exception if there is an error to
report |
(module
(function_definition
(function_name_check_string) function_name_check_string
(parameters
(identifier_sql_string) identifier_sql_string
(default_parameter
(identifier_add_semicolon) identifier_add_semicolon
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_prepped_sql) identifier_prepped_sql
(call
(attribute
(identifier_sqlprep) identifier_sqlprep
(identifier_prepare_sql) identifier_prepare_sql
)attribute
(argument_list
(identifier_sql_string) identifier_sql_string
(keyword_argument
(identifier_add_semicolon) identifier_add_semicolon
(identifier_add_semicolon) identifier_add_semicolon
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_success) identifier_success
(identifier_msg) identifier_msg
)pattern_list
(call
(attribute
(identifier_ecpg) identifier_ecpg
(identifier_check_syntax) identifier_check_syntax
)attribute
(argument_list
(identifier_prepped_sql) identifier_prepped_sql
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_success) identifier_success
(identifier_msg) identifier_msg
)expression_list
)return_statement
)block
)function_definition
)module | Check whether a string is valid PostgreSQL. Returns a boolean
indicating validity and a message from ecpg, which will be an
empty string if the input was valid, or a description of the
problem otherwise. |
(module
(function_definition
(function_name_detect_infinitive_phrase) function_name_detect_infinitive_phrase
(parameters
(identifier_sentence) identifier_sentence
)parameters
(block
(if_statement
(not_operator
(comparison_operator
(string_'to') string_'to'
(call
(attribute
(identifier_sentence) identifier_sentence
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(identifier_nlp) identifier_nlp
(argument_list
(identifier_sentence) identifier_sentence
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev_word) identifier_prev_word
(None) None
)assignment
)expression_statement
(for_statement
(identifier_w) identifier_w
(identifier_doc) identifier_doc
(block
(if_statement
(comparison_operator
(identifier_prev_word) identifier_prev_word
(string_'to') string_'to'
)comparison_operator
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_w) identifier_w
(identifier_dep_) identifier_dep_
)attribute
(string_'ROOT') string_'ROOT'
)comparison_operator
(call
(attribute
(attribute
(identifier_w) identifier_w
(identifier_tag_) identifier_tag_
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'VB') string_'VB'
)argument_list
)call
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_prev_word) identifier_prev_word
(call
(attribute
(attribute
(identifier_w) identifier_w
(identifier_text) identifier_text
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Given a string, return true if it is an infinitive phrase fragment |
(module
(function_definition
(function_name_get_for_accounts) function_name_get_for_accounts
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_accounts) identifier_accounts
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Account) identifier_Account
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_account_ids) identifier_account_ids
(list_comprehension
(attribute
(identifier_acc) identifier_acc
(identifier_guid) identifier_guid
)attribute
(for_in_clause
(identifier_acc) identifier_acc
(identifier_accounts) identifier_accounts
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(parenthesized_expression
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_query) identifier_query
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_Split) identifier_Split
(identifier_account_guid) identifier_account_guid
)attribute
(identifier_in_) identifier_in_
)attribute
(argument_list
(identifier_account_ids) identifier_account_ids
)argument_list
)call
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_splits) identifier_splits
(call
(attribute
(identifier_query) identifier_query
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_splits) identifier_splits
)return_statement
)block
)function_definition
)module | Get all splits for the given accounts |
(module
(function_definition
(function_name_cb) function_name_cb
(parameters
(identifier_option) identifier_option
(identifier_value) identifier_value
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(list
(identifier_value) identifier_value
)list
)assignment
)expression_statement
(for_statement
(identifier_arg) identifier_arg
(attribute
(identifier_parser) identifier_parser
(identifier_rargs) identifier_rargs
)attribute
(block
(if_statement
(comparison_operator
(subscript
(identifier_arg) identifier_arg
(integer_0) integer_0
)subscript
(string_"-") string_"-"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_arguments) identifier_arguments
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(delete_statement
(subscript
(attribute
(identifier_parser) identifier_parser
(identifier_rargs) identifier_rargs
)attribute
(slice
(colon) colon
(call
(identifier_len) identifier_len
(argument_list
(identifier_arguments) identifier_arguments
)argument_list
)call
)slice
)subscript
)delete_statement
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_parser) identifier_parser
(identifier_values) identifier_values
)attribute
(attribute
(identifier_option) identifier_option
(identifier_dest) identifier_dest
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_arguments) identifier_arguments
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_parser) identifier_parser
(identifier_values) identifier_values
)attribute
(attribute
(identifier_option) identifier_option
(identifier_dest) identifier_dest
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(attribute
(identifier_parser) identifier_parser
(identifier_values) identifier_values
)attribute
(attribute
(identifier_option) identifier_option
(identifier_dest) identifier_dest
)attribute
(identifier_arguments) identifier_arguments
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Callback function to handle variable number of arguments in optparse |
(module
(function_definition
(function_name_draw_selection) function_name_draw_selection
(parameters
(identifier_self) identifier_self
(identifier_surf) identifier_surf
)parameters
(block
(expression_statement
(assignment
(identifier_select_start) identifier_select_start
(attribute
(identifier_self) identifier_self
(identifier__select_start) identifier__select_start
)attribute
)assignment
)expression_statement
(if_statement
(identifier_select_start) identifier_select_start
(block
(expression_statement
(assignment
(identifier_mouse_pos) identifier_mouse_pos
(call
(attribute
(identifier_self) identifier_self
(identifier_get_mouse_pos) identifier_get_mouse_pos
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(identifier_mouse_pos) identifier_mouse_pos
(binary_operator
(attribute
(attribute
(identifier_mouse_pos) identifier_mouse_pos
(identifier_surf) identifier_surf
)attribute
(identifier_surf_type) identifier_surf_type
)attribute
(attribute
(identifier_SurfType) identifier_SurfType
(identifier_SCREEN) identifier_SCREEN
)attribute
)binary_operator
)boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_mouse_pos) identifier_mouse_pos
(identifier_surf) identifier_surf
)attribute
(identifier_surf_type) identifier_surf_type
)attribute
(attribute
(attribute
(identifier_select_start) identifier_select_start
(identifier_surf) identifier_surf
)attribute
(identifier_surf_type) identifier_surf_type
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_rect) identifier_rect
(call
(attribute
(identifier_point) identifier_point
(identifier_Rect) identifier_Rect
)attribute
(argument_list
(attribute
(identifier_select_start) identifier_select_start
(identifier_world_pos) identifier_world_pos
)attribute
(attribute
(identifier_mouse_pos) identifier_mouse_pos
(identifier_world_pos) identifier_world_pos
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_surf) identifier_surf
(identifier_draw_rect) identifier_draw_rect
)attribute
(argument_list
(attribute
(identifier_colors) identifier_colors
(identifier_green) identifier_green
)attribute
(identifier_rect) identifier_rect
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Draw the selection rectange. |
(module
(function_definition
(function_name_transformer_text_encoder) function_name_transformer_text_encoder
(parameters
(identifier_inputs) identifier_inputs
(identifier_target_space) identifier_target_space
(identifier_hparams) identifier_hparams
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_tf) identifier_tf
(identifier_variable_scope) identifier_variable_scope
)attribute
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_default_name) identifier_default_name
(string_"transformer_text_encoder") string_"transformer_text_encoder"
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_inputs) identifier_inputs
(call
(attribute
(identifier_common_layers) identifier_common_layers
(identifier_flatten4d3d) identifier_flatten4d3d
)attribute
(argument_list
(identifier_inputs) identifier_inputs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(list_pattern
(identifier_encoder_input) identifier_encoder_input
(identifier_encoder_self_attention_bias) identifier_encoder_self_attention_bias
(identifier_ed) identifier_ed
)list_pattern
(call
(attribute
(identifier_transformer_layers) identifier_transformer_layers
(identifier_transformer_prepare_encoder) identifier_transformer_prepare_encoder
)attribute
(argument_list
(identifier_inputs) identifier_inputs
(keyword_argument
(identifier_target_space) identifier_target_space
(identifier_target_space) identifier_target_space
)keyword_argument
(keyword_argument
(identifier_hparams) identifier_hparams
(identifier_hparams) identifier_hparams
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoder_input) identifier_encoder_input
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_nn) identifier_nn
)attribute
(identifier_dropout) identifier_dropout
)attribute
(argument_list
(identifier_encoder_input) identifier_encoder_input
(binary_operator
(float_1.0) float_1.0
(attribute
(identifier_hparams) identifier_hparams
(identifier_dropout) identifier_dropout
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoder_output) identifier_encoder_output
(call
(attribute
(identifier_transformer_layers) identifier_transformer_layers
(identifier_transformer_encoder) identifier_transformer_encoder
)attribute
(argument_list
(identifier_encoder_input) identifier_encoder_input
(identifier_encoder_self_attention_bias) identifier_encoder_self_attention_bias
(identifier_hparams) identifier_hparams
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_encoder_output) identifier_encoder_output
(identifier_ed) identifier_ed
)expression_list
)return_statement
)block
)with_statement
)block
)function_definition
)module | Transformer text encoder over inputs with unmasked full attention.
Args:
inputs: Tensor of shape [batch, length, 1, hparams.hidden_size].
target_space: int. Used for encoding inputs under a target space id.
hparams: HParams.
name: string, variable scope.
Returns:
encoder_output: Tensor of shape [batch, length, hparams.hidden_size].
ed: Tensor of shape [batch, 1, 1, length]. Encoder-decoder attention bias
for any padded tokens. |
(module
(function_definition
(function_name_compare_md5) function_name_compare_md5
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
(string_"put") string_"put"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_remote_md5) identifier_remote_md5
(call
(attribute
(identifier_self) identifier_self
(identifier_remote_md5) identifier_remote_md5
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_source_md5) identifier_source_md5
)attribute
(identifier_remote_md5) identifier_remote_md5
)comparison_operator
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
(string_"get") string_"get"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_local_md5) identifier_local_md5
(call
(attribute
(identifier_self) identifier_self
(identifier_file_md5) identifier_file_md5
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dest_file) identifier_dest_file
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_source_md5) identifier_source_md5
)attribute
(identifier_local_md5) identifier_local_md5
)comparison_operator
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Compare md5 of file on network device to md5 of local file. |
(module
(function_definition
(function_name__focus_tab) function_name__focus_tab
(parameters
(identifier_self) identifier_self
(identifier_tab_idx) identifier_tab_idx
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tab_widget) identifier_tab_widget
)attribute
(identifier_count) identifier_count
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tab_widget) identifier_tab_widget
)attribute
(identifier_setTabEnabled) identifier_setTabEnabled
)attribute
(argument_list
(identifier_i) identifier_i
(False) False
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tab_widget) identifier_tab_widget
)attribute
(identifier_setTabEnabled) identifier_setTabEnabled
)attribute
(argument_list
(identifier_tab_idx) identifier_tab_idx
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tab_widget) identifier_tab_widget
)attribute
(identifier_setCurrentIndex) identifier_setCurrentIndex
)attribute
(argument_list
(identifier_tab_idx) identifier_tab_idx
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Change tab focus |
(module
(function_definition
(function_name__remove_unicode_keys) function_name__remove_unicode_keys
(parameters
(identifier_dictobj) identifier_dictobj
)parameters
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(tuple
(integer_3) integer_3
(integer_0) integer_0
)tuple
)comparison_operator
(block
(return_statement
(identifier_dictobj) identifier_dictobj
)return_statement
)block
)if_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_dictobj) identifier_dictobj
(identifier_dict) identifier_dict
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(identifier_newdict) identifier_newdict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_dictobj) identifier_dictobj
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(identifier_unicode) identifier_unicode
)comparison_operator
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_key) identifier_key
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_newdict) identifier_newdict
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_newdict) identifier_newdict
)return_statement
)block
)function_definition
)module | Convert keys from 'unicode' to 'str' type.
workaround for <http://bugs.python.org/issue2646> |
(module
(function_definition
(function_name_decompose_dateint) function_name_decompose_dateint
(parameters
(identifier_dateint) identifier_dateint
)parameters
(block
(expression_statement
(assignment
(identifier_year) identifier_year
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_dateint) identifier_dateint
(integer_10000) integer_10000
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_leftover) identifier_leftover
(binary_operator
(identifier_dateint) identifier_dateint
(binary_operator
(identifier_year) identifier_year
(integer_10000) integer_10000
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_month) identifier_month
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_leftover) identifier_leftover
(integer_100) integer_100
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_day) identifier_day
(binary_operator
(identifier_leftover) identifier_leftover
(binary_operator
(identifier_month) identifier_month
(integer_100) integer_100
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
)expression_list
)return_statement
)block
)function_definition
)module | Decomposes the given dateint into its year, month and day components.
Arguments
---------
dateint : int
An integer object decipting a specific calendaric day; e.g. 20161225.
Returns
-------
year : int
The year component of the given dateint.
month : int
The month component of the given dateint.
day : int
The day component of the given dateint. |
(module
(function_definition
(function_name_load_config) function_name_load_config
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(if_statement
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Path to config was null; using defaults.") string_"Path to config was null; using defaults."
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"[No user config file found at default location; using defaults.]\n") string_"[No user config file found at default location; using defaults.]\n"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_user_config) identifier_user_config
(None) None
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_user_config) identifier_user_config
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_extension) identifier_extension
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_extension) identifier_extension
(string_'yaml') string_'yaml'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_user_config) identifier_user_config
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_user_config) identifier_user_config
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Error) identifier_Error
(argument_list
(call
(attribute
(string_'Configuration file type "{}" not supported') string_'Configuration file type "{}" not supported'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_extension) identifier_extension
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_merge_config) identifier_merge_config
)attribute
(argument_list
(identifier_user_config) identifier_user_config
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_configuration) identifier_configuration
)attribute
(call
(identifier_Configuration) identifier_Configuration
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data_config) identifier_data_config
)attribute
(attribute
(identifier_self) identifier_self
(identifier_model_config) identifier_model_config
)attribute
(attribute
(identifier_self) identifier_self
(identifier_conversation_config) identifier_conversation_config
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Load a configuration file; eventually, support dicts, .yaml, .csv, etc. |
(module
(function_definition
(function_name_validate_argmax_with_skipna) function_name_validate_argmax_with_skipna
(parameters
(identifier_skipna) identifier_skipna
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_skipna) identifier_skipna
(identifier_args) identifier_args
)pattern_list
(call
(identifier_process_skipna) identifier_process_skipna
(argument_list
(identifier_skipna) identifier_skipna
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_validate_argmax) identifier_validate_argmax
(argument_list
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(return_statement
(identifier_skipna) identifier_skipna
)return_statement
)block
)function_definition
)module | If 'Series.argmax' is called via the 'numpy' library,
the third parameter in its signature is 'out', which
takes either an ndarray or 'None', so check if the
'skipna' parameter is either an instance of ndarray or
is None, since 'skipna' itself should be a boolean |
(module
(function_definition
(function_name_get_stream_or_content_from_request) function_name_get_stream_or_content_from_request
(parameters
(identifier_request) identifier_request
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_stream) identifier_stream
)attribute
(identifier_tell) identifier_tell
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(concatenated_string
(string_'Request stream already consumed. ') string_'Request stream already consumed. '
(string_'Storing file content using in-memory data.') string_'Storing file content using in-memory data.'
)concatenated_string
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_request) identifier_request
(identifier_data) identifier_data
)attribute
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Storing file content using request stream.') string_'Storing file content using request stream.'
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_request) identifier_request
(identifier_stream) identifier_stream
)attribute
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Ensure the proper content is uploaded.
Stream might be already consumed by authentication process.
Hence flask.request.stream might not be readable and return improper value.
This methods checks if the stream has already been consumed and if so
retrieve the data from flask.request.data where it has been stored. |
(module
(function_definition
(function_name_thread_raise) function_name_thread_raise
(parameters
(identifier_thread) identifier_thread
(identifier_exctype) identifier_exctype
)parameters
(block
(import_statement
(dotted_name
(identifier_ctypes) identifier_ctypes
)dotted_name
(dotted_name
(identifier_inspect) identifier_inspect
)dotted_name
(dotted_name
(identifier_threading) identifier_threading
)dotted_name
(dotted_name
(identifier_logging) identifier_logging
)dotted_name
)import_statement
(if_statement
(not_operator
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_isclass) identifier_isclass
)attribute
(argument_list
(identifier_exctype) identifier_exctype
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(concatenated_string
(string_'cannot raise %s, only exception types can be raised (not ') string_'cannot raise %s, only exception types can be raised (not '
(string_'instances)') string_'instances)'
)concatenated_string
(identifier_exctype) identifier_exctype
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_gate) identifier_gate
(call
(identifier_thread_exception_gate) identifier_thread_exception_gate
(argument_list
(identifier_thread) identifier_thread
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_gate) identifier_gate
(identifier_lock) identifier_lock
)attribute
)with_item
)with_clause
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_gate) identifier_gate
(identifier_ok_to_raise) identifier_ok_to_raise
)attribute
(identifier_is_set) identifier_is_set
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_thread) identifier_thread
(identifier_is_alive) identifier_is_alive
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_gate) identifier_gate
(identifier_ok_to_raise) identifier_ok_to_raise
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'raising %s in thread %s') string_'raising %s in thread %s'
(identifier_exctype) identifier_exctype
(identifier_thread) identifier_thread
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_pythonapi) identifier_pythonapi
)attribute
(identifier_PyThreadState_SetAsyncExc) identifier_PyThreadState_SetAsyncExc
)attribute
(argument_list
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_long) identifier_c_long
)attribute
(argument_list
(attribute
(identifier_thread) identifier_thread
(identifier_ident) identifier_ident
)attribute
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_py_object) identifier_py_object
)attribute
(argument_list
(identifier_exctype) identifier_exctype
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'invalid thread id? thread.ident=%s') string_'invalid thread id? thread.ident=%s'
(attribute
(identifier_thread) identifier_thread
(identifier_ident) identifier_ident
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(identifier_res) identifier_res
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_pythonapi) identifier_pythonapi
)attribute
(identifier_PyThreadState_SetAsyncExc) identifier_PyThreadState_SetAsyncExc
)attribute
(argument_list
(attribute
(identifier_thread) identifier_thread
(identifier_ident) identifier_ident
)attribute
(integer_0) integer_0
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_SystemError) identifier_SystemError
(argument_list
(string_'PyThreadState_SetAsyncExc failed') string_'PyThreadState_SetAsyncExc failed'
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'queueing %s for thread %s') string_'queueing %s for thread %s'
(identifier_exctype) identifier_exctype
(identifier_thread) identifier_thread
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_gate) identifier_gate
(identifier_queue_exception) identifier_queue_exception
)attribute
(argument_list
(identifier_exctype) identifier_exctype
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)with_statement
)block
)function_definition
)module | Raises or queues the exception `exctype` for the thread `thread`.
See the documentation on the function `thread_exception_gate()` for more
information.
Adapted from http://tomerfiliba.com/recipes/Thread2/ which explains:
"The exception will be raised only when executing python bytecode. If your
thread calls a native/built-in blocking function, the exception will be
raised only when execution returns to the python code."
Raises:
TypeError if `exctype` is not a class
ValueError, SystemError in case of unexpected problems |
(module
(function_definition
(function_name_get_task_runs) function_name_get_task_runs
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_json_file) identifier_json_file
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_project) identifier_project
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(identifier_ProjectError) identifier_ProjectError
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_loader) identifier_loader
(call
(identifier_create_task_runs_loader) identifier_create_task_runs_loader
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_project) identifier_project
)attribute
(identifier_id) identifier_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_tasks) identifier_tasks
)attribute
(identifier_json_file) identifier_json_file
(attribute
(identifier_self) identifier_self
(identifier_all) identifier_all
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_task_runs) identifier_task_runs
)attribute
(attribute
(identifier_self) identifier_self
(identifier_task_runs_file) identifier_task_runs_file
)attribute
)pattern_list
(call
(attribute
(identifier_loader) identifier_loader
(identifier_load) identifier_load
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_project_has_taskruns) identifier__check_project_has_taskruns
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_task_runs_df) identifier_task_runs_df
)attribute
(call
(attribute
(identifier_dataframer) identifier_dataframer
(identifier_create_task_run_data_frames) identifier_create_task_run_data_frames
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_tasks) identifier_tasks
)attribute
(attribute
(identifier_self) identifier_self
(identifier_task_runs) identifier_task_runs
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Load all project Task Runs from Tasks. |
(module
(function_definition
(function_name_get_state) function_name_get_state
(parameters
(identifier_cls) identifier_cls
(identifier_clz) identifier_clz
)parameters
(block
(if_statement
(comparison_operator
(identifier_clz) identifier_clz
(attribute
(identifier_cls) identifier_cls
(identifier___shared_state) identifier___shared_state
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier___shared_state) identifier___shared_state
)attribute
(identifier_clz) identifier_clz
)subscript
(parenthesized_expression
(conditional_expression
(call
(attribute
(identifier_clz) identifier_clz
(identifier_init_state) identifier_init_state
)attribute
(argument_list
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_clz) identifier_clz
(string_"init_state") string_"init_state"
)argument_list
)call
(dictionary
)dictionary
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier___shared_state) identifier___shared_state
)attribute
(identifier_clz) identifier_clz
)subscript
)return_statement
)block
)function_definition
)module | Retrieve the state of a given Class.
:param clz: types.ClassType
:return: Class state.
:rtype: dict |
(module
(function_definition
(function_name_from_json) function_name_from_json
(parameters
(identifier_cls) identifier_cls
(identifier_data) identifier_data
(default_parameter
(identifier_api) identifier_api
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_cls) identifier_cls
(argument_list
(keyword_argument
(identifier_api) identifier_api
(identifier_api) identifier_api
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_elem_cls) identifier_elem_cls
(list
(identifier_Node) identifier_Node
(identifier_Way) identifier_Way
(identifier_Relation) identifier_Relation
(identifier_Area) identifier_Area
)list
(block
(for_statement
(identifier_element) identifier_element
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_"elements") string_"elements"
(list
)list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_e_type) identifier_e_type
(call
(attribute
(identifier_element) identifier_element
(identifier_get) identifier_get
)attribute
(argument_list
(string_"type") string_"type"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_e_type) identifier_e_type
(string_"lower") string_"lower"
)argument_list
)call
(comparison_operator
(call
(attribute
(identifier_e_type) identifier_e_type
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_elem_cls) identifier_elem_cls
(identifier__type_value) identifier__type_value
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_elem_cls) identifier_elem_cls
(identifier_from_json) identifier_from_json
)attribute
(argument_list
(identifier_element) identifier_element
(keyword_argument
(identifier_result) identifier_result
(identifier_result) identifier_result
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Create a new instance and load data from json object.
:param data: JSON data returned by the Overpass API
:type data: Dict
:param api:
:type api: overpy.Overpass
:return: New instance of Result object
:rtype: overpy.Result |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(call
(attribute
(identifier_other) identifier_other
(identifier_qualify) identifier_qualify
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_n) identifier_n
(tuple
(string_'name') string_'name'
(string_'qname') string_'qname'
(string_'min') string_'min'
(string_'max') string_'max'
(string_'default') string_'default'
(string_'type') string_'type'
(string_'nillable') string_'nillable'
(string_'form_qualified') string_'form_qualified'
)tuple
(block
(if_statement
(comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_n) identifier_n
)argument_list
)call
(None) None
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_other) identifier_other
(identifier_n) identifier_n
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_n) identifier_n
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Merge another object as needed. |
(module
(function_definition
(function_name__parse_data_array) function_name__parse_data_array
(parameters
(identifier_self) identifier_self
(identifier_data_array) identifier_data_array
)parameters
(block
(expression_statement
(assignment
(identifier_tokenSeparator) identifier_tokenSeparator
(attribute
(attribute
(identifier_data_array) identifier_data_array
(identifier_encoding) identifier_encoding
)attribute
(identifier_tokenSeparator) identifier_tokenSeparator
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_blockSeparator) identifier_blockSeparator
(attribute
(attribute
(identifier_data_array) identifier_data_array
(identifier_encoding) identifier_encoding
)attribute
(identifier_blockSeparator) identifier_blockSeparator
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data_values) identifier_data_values
(attribute
(identifier_data_array) identifier_data_array
(identifier_values) identifier_values
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(list_comprehension
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_data_values) identifier_data_values
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_blockSeparator) identifier_blockSeparator
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_x) identifier_x
(string_"") string_""
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_lines) identifier_lines
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_row) identifier_row
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_tokenSeparator) identifier_tokenSeparator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ret_val) identifier_ret_val
(identifier_append) identifier_append
)attribute
(argument_list
(list_comprehension
(conditional_expression
(call
(identifier_float) identifier_float
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(comparison_operator
(string_" ") string_" "
(call
(attribute
(identifier_v) identifier_v
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(list_comprehension
(call
(identifier_float) identifier_float
(argument_list
(identifier_vv) identifier_vv
)argument_list
)call
(for_in_clause
(identifier_vv) identifier_vv
(call
(attribute
(identifier_v) identifier_v
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)conditional_expression
(for_in_clause
(identifier_v) identifier_v
(identifier_values) identifier_values
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(list_comprehension
(call
(identifier_list) identifier_list
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_ret_val) identifier_ret_val
)list_splat
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Parses a general DataArray. |
(module
(function_definition
(function_name_update_task_positions_obj) function_name_update_task_positions_obj
(parameters
(identifier_self) identifier_self
(identifier_positions_obj_id) identifier_positions_obj_id
(identifier_revision) identifier_revision
(identifier_values) identifier_values
)parameters
(block
(return_statement
(call
(attribute
(identifier_positions_endpoints) identifier_positions_endpoints
(identifier_update_task_positions_obj) identifier_update_task_positions_obj
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_positions_obj_id) identifier_positions_obj_id
(identifier_revision) identifier_revision
(identifier_values) identifier_values
)argument_list
)call
)return_statement
)block
)function_definition
)module | Updates the ordering of tasks in the positions object with the given ID to the ordering in the given values.
See https://developer.wunderlist.com/documentation/endpoints/positions for more info
Return:
The updated TaskPositionsObj-mapped object defining the order of list layout |
(module
(function_definition
(function_name__close_prepared_statement) function_name__close_prepared_statement
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_prepared_sql) identifier_prepared_sql
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_flush_to_query_ready) identifier_flush_to_query_ready
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_messages) identifier_messages
(identifier_Close) identifier_Close
)attribute
(argument_list
(string_'prepared_statement') string_'prepared_statement'
(attribute
(identifier_self) identifier_self
(identifier_prepared_name) identifier_prepared_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_messages) identifier_messages
(identifier_Flush) identifier_Flush
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__message) identifier__message
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_read_expected_message) identifier_read_expected_message
)attribute
(argument_list
(attribute
(identifier_messages) identifier_messages
(identifier_CloseComplete) identifier_CloseComplete
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_messages) identifier_messages
(identifier_Sync) identifier_Sync
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Close the prepared statement on the server. |
(module
(function_definition
(function_name_count) function_name_count
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__primary_keys) identifier__primary_keys
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_queryset) identifier_queryset
)attribute
(identifier_count) identifier_count
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pks) identifier_pks
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a count of instances. |
(module
(function_definition
(function_name__parse_bid_table) function_name__parse_bid_table
(parameters
(identifier_self) identifier_self
(identifier_table) identifier_table
)parameters
(block
(expression_statement
(assignment
(identifier_player) identifier_player
(attribute
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_owner) identifier_owner
(attribute
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
(integer_1) integer_1
)subscript
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_team) identifier_team
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find) identifier_find
)attribute
(argument_list
(string_'img') string_'img'
)argument_list
)call
(string_'alt') string_'alt'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_price) identifier_price
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(attribute
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
(integer_3) integer_3
)subscript
(identifier_text) identifier_text
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_".") string_"."
(string_"") string_""
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bid_date) identifier_bid_date
(attribute
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
(integer_4) integer_4
)subscript
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_trans_date) identifier_trans_date
(attribute
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
(integer_5) integer_5
)subscript
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_status) identifier_status
(attribute
(subscript
(call
(attribute
(identifier_table) identifier_table
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
(integer_6) integer_6
)subscript
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_player) identifier_player
(identifier_owner) identifier_owner
(identifier_team) identifier_team
(identifier_price) identifier_price
(identifier_bid_date) identifier_bid_date
(identifier_trans_date) identifier_trans_date
(identifier_status) identifier_status
)expression_list
)return_statement
)block
)function_definition
)module | Convert table row values into strings
@return: player, owner, team, price, bid_date, trans_date, status |
(module
(function_definition
(function_name_filter) function_name_filter
(parameters
(identifier_self) identifier_self
(identifier_fn) identifier_fn
(default_parameter
(identifier_skip_na) identifier_skip_na
(True) True
)default_parameter
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
(block
(assert_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
(string_"Input must be callable") string_"Input must be callable"
)assert_statement
(if_statement
(comparison_operator
(identifier_seed) identifier_seed
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_seed) identifier_seed
(binary_operator
(call
(identifier_abs) identifier_abs
(argument_list
(call
(identifier_hash) identifier_hash
(argument_list
(binary_operator
(string_"%0.20f") string_"%0.20f"
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
(parenthesized_expression
(binary_operator
(integer_2) integer_2
(integer_31) integer_31
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(identifier_cython_context) identifier_cython_context
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(return_statement
(call
(identifier_SArray) identifier_SArray
(argument_list
(keyword_argument
(identifier__proxy) identifier__proxy
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___proxy__) identifier___proxy__
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(identifier_fn) identifier_fn
(identifier_skip_na) identifier_skip_na
(identifier_seed) identifier_seed
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Filter this SArray by a function.
Returns a new SArray filtered by this SArray. If `fn` evaluates an
element to true, this element is copied to the new SArray. If not, it
isn't. Throws an exception if the return type of `fn` is not castable
to a boolean value.
Parameters
----------
fn : function
Function that filters the SArray. Must evaluate to bool or int.
skip_na : bool, optional
If True, will not apply fn to any undefined values.
seed : int, optional
Used as the seed if a random number generator is included in fn.
Returns
-------
out : SArray
The SArray filtered by fn. Each element of the SArray is of
type int.
Examples
--------
>>> sa = turicreate.SArray([1,2,3])
>>> sa.filter(lambda x: x < 3)
dtype: int
Rows: 2
[1, 2] |
(module
(function_definition
(function_name_floating_point_to_datetime) function_name_floating_point_to_datetime
(parameters
(identifier_day) identifier_day
(identifier_fp_time) identifier_fp_time
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_datetime) identifier_datetime
(argument_list
(keyword_argument
(identifier_year) identifier_year
(attribute
(identifier_day) identifier_day
(identifier_year) identifier_year
)attribute
)keyword_argument
(keyword_argument
(identifier_month) identifier_month
(attribute
(identifier_day) identifier_day
(identifier_month) identifier_month
)attribute
)keyword_argument
(keyword_argument
(identifier_day) identifier_day
(attribute
(identifier_day) identifier_day
(identifier_day) identifier_day
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(call
(identifier_timedelta) identifier_timedelta
(argument_list
(keyword_argument
(identifier_minutes) identifier_minutes
(call
(attribute
(identifier_math) identifier_math
(identifier_ceil) identifier_ceil
)attribute
(argument_list
(binary_operator
(integer_60) integer_60
(identifier_fp_time) identifier_fp_time
)binary_operator
)argument_list
)call
)keyword_argument
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Convert a floating point time to a datetime. |
(module
(function_definition
(function_name_read_user_mapping) function_name_read_user_mapping
(parameters
(identifier_self) identifier_self
(identifier_user_name) identifier_user_name
(default_parameter
(identifier_mount_point) identifier_mount_point
(identifier_DEFAULT_MOUNT_POINT) identifier_DEFAULT_MOUNT_POINT
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_api_path) identifier_api_path
(call
(attribute
(string_'/v1/auth/{mount_point}/map/users/{user_name}') string_'/v1/auth/{mount_point}/map/users/{user_name}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_mount_point) identifier_mount_point
(identifier_mount_point) identifier_mount_point
)keyword_argument
(keyword_argument
(identifier_user_name) identifier_user_name
(identifier_user_name) identifier_user_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__adapter) identifier__adapter
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_url) identifier_url
(identifier_api_path) identifier_api_path
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read the GitHub user policy mapping.
Supported methods:
GET: /auth/{mount_point}/map/users/{user_name}. Produces: 200 application/json
:param user_name: GitHub user name
:type user_name: str | unicode
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
:return: The JSON response of the read_user_mapping request.
:rtype: dict |
(module
(function_definition
(function_name__set_shared_instances) function_name__set_shared_instances
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_inqueue) identifier_inqueue
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_em) identifier_em
)attribute
(identifier_get_inqueue) identifier_get_inqueue
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_outqueue) identifier_outqueue
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_em) identifier_em
)attribute
(identifier_get_outqueue) identifier_get_outqueue
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_namespace) identifier_namespace
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_em) identifier_em
)attribute
(identifier_get_namespace) identifier_get_namespace
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Sets attributes from the shared instances. |
(module
(function_definition
(function_name__build_tarball) function_name__build_tarball
(parameters
(identifier_src_repo) identifier_src_repo
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_run) identifier_run
(call
(identifier_partial) identifier_partial
(argument_list
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_run) identifier_run
)attribute
(keyword_argument
(identifier_cwd) identifier_cwd
(identifier_src_repo) identifier_src_repo
)keyword_argument
(keyword_argument
(identifier_check) identifier_check
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(list
(string_'git') string_'git'
(string_'clean') string_'clean'
(string_'-xdff') string_'-xdff'
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_src_repo) identifier_src_repo
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_src_repo) identifier_src_repo
)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
(binary_operator
(binary_operator
(identifier_src_repo) identifier_src_repo
(string_'es') string_'es'
)binary_operator
(string_'upstream') string_'upstream'
)binary_operator
)argument_list
)call
(block
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(list
(string_'git') string_'git'
(string_'submodule') string_'submodule'
(string_'update') string_'update'
(string_'--init') string_'--init'
(string_'--') string_'--'
(string_'es/upstream') string_'es/upstream'
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(list
(string_'./gradlew') string_'./gradlew'
(string_'--no-daemon') string_'--no-daemon'
(string_'clean') string_'clean'
(string_'distTar') string_'distTar'
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_distributions) identifier_distributions
(binary_operator
(binary_operator
(binary_operator
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_src_repo) identifier_src_repo
)argument_list
)call
(string_'app') string_'app'
)binary_operator
(string_'build') string_'build'
)binary_operator
(string_'distributions') string_'distributions'
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_next) identifier_next
(argument_list
(call
(attribute
(identifier_distributions) identifier_distributions
(identifier_glob) identifier_glob
)attribute
(argument_list
(string_'crate-*.tar.gz') string_'crate-*.tar.gz'
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Build a tarball from src and return the path to it |
(module
(function_definition
(function_name_hash_shooter) function_name_hash_shooter
(parameters
(identifier_video_path) identifier_video_path
)parameters
(block
(expression_statement
(assignment
(identifier_filesize) identifier_filesize
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getsize) identifier_getsize
)attribute
(argument_list
(identifier_video_path) identifier_video_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_readsize) identifier_readsize
(integer_4096) integer_4096
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getsize) identifier_getsize
)attribute
(argument_list
(identifier_video_path) identifier_video_path
)argument_list
)call
(binary_operator
(identifier_readsize) identifier_readsize
(integer_2) integer_2
)binary_operator
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_offsets) identifier_offsets
(tuple
(identifier_readsize) identifier_readsize
(binary_operator
(binary_operator
(identifier_filesize) identifier_filesize
(integer_3) integer_3
)binary_operator
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_filesize) identifier_filesize
(integer_3) integer_3
)binary_operator
(binary_operator
(identifier_filesize) identifier_filesize
(binary_operator
(identifier_readsize) identifier_readsize
(integer_2) integer_2
)binary_operator
)binary_operator
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filehash) identifier_filehash
(list
)list
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_video_path) identifier_video_path
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_offset) identifier_offset
(identifier_offsets) identifier_offsets
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_seek) identifier_seek
)attribute
(argument_list
(identifier_offset) identifier_offset
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_filehash) identifier_filehash
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_hashlib) identifier_hashlib
(identifier_md5) identifier_md5
)attribute
(argument_list
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_readsize) identifier_readsize
)argument_list
)call
)argument_list
)call
(identifier_hexdigest) identifier_hexdigest
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(return_statement
(call
(attribute
(string_';') string_';'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_filehash) identifier_filehash
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute a hash using Shooter's algorithm
:param string video_path: path of the video
:return: the hash
:rtype: string |
(module
(function_definition
(function_name_update_notification_settings) function_name_update_notification_settings
(parameters
(identifier_self) identifier_self
(identifier_api_token) identifier_api_token
(identifier_event) identifier_event
(identifier_service) identifier_service
(identifier_should_notify) identifier_should_notify
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'token') string_'token'
(identifier_api_token) identifier_api_token
)pair
(pair
(string_'notification_type') string_'notification_type'
(identifier_event) identifier_event
)pair
(pair
(string_'service') string_'service'
(identifier_service) identifier_service
)pair
(pair
(string_'dont_notify') string_'dont_notify'
(identifier_should_notify) identifier_should_notify
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(string_'update_notification_setting') string_'update_notification_setting'
(identifier_params) identifier_params
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update a user's notification settings.
:param api_token: The user's login api_token.
:type api_token: str
:param event: Update the notification settings of this event.
:type event: str
:param service: ``email`` or ``push``
:type service: str
:param should_notify: If ``0`` notify, otherwise do not.
:type should_notify: int
:return: The HTTP response to the request.
:rtype: :class:`requests.Response`
>>> from pytodoist.api import TodoistAPI
>>> api = TodoistAPI()
>>> response = api.login('john.doe@gmail.com', 'password')
>>> user_info = response.json()
>>> user_api_token = user_info['api_token']
>>> response = api.update_notification_settings(user_api_token,
... 'user_left_project',
... 'email', 0)
... |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
(identifier_doc_type) identifier_doc_type
(identifier_id) identifier_id
(default_parameter
(identifier_fields) identifier_fields
(None) None
)default_parameter
(default_parameter
(identifier_model) identifier_model
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_query_params) identifier_query_params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_make_path) identifier_make_path
(argument_list
(identifier_index) identifier_index
(identifier_doc_type) identifier_doc_type
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_fields) identifier_fields
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_"fields") string_"fields"
)subscript
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_fields) identifier_fields
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_model) identifier_model
(boolean_operator
(identifier_model) identifier_model
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
)boolean_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_model) identifier_model
(argument_list
(identifier_self) identifier_self
(call
(attribute
(identifier_self) identifier_self
(identifier__send_request) identifier__send_request
)attribute
(argument_list
(string_'GET') string_'GET'
(identifier_path) identifier_path
(keyword_argument
(identifier_params) identifier_params
(identifier_query_params) identifier_query_params
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a typed JSON document from an index based on its id. |
(module
(function_definition
(function_name_as_dict) function_name_as_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_conv) function_name_conv
(parameters
(identifier_v) identifier_v
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_SerializableAttributesHolder) identifier_SerializableAttributesHolder
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_as_dict) identifier_as_dict
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(list_comprehension
(call
(identifier_conv) identifier_conv
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_v) identifier_v
)for_in_clause
)list_comprehension
)return_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_dict) identifier_dict
)argument_list
)call
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_x) identifier_x
(call
(identifier_conv) identifier_conv
(argument_list
(identifier_y) identifier_y
)argument_list
)call
)pair
(for_in_clause
(tuple_pattern
(identifier_x) identifier_x
(identifier_y) identifier_y
)tuple_pattern
(call
(attribute
(identifier_v) identifier_v
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(identifier_v) identifier_v
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
(return_statement
(dictionary_comprehension
(pair
(call
(attribute
(identifier_k) identifier_k
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'_') string_'_'
(string_'-') string_'-'
)argument_list
)call
(call
(identifier_conv) identifier_conv
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)pair
(for_in_clause
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__attributes) identifier__attributes
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Returns a JSON-serializeable object representing this tree. |
(module
(function_definition
(function_name__render_asset) function_name__render_asset
(parameters
(identifier_self) identifier_self
(identifier_subpath) identifier_subpath
)parameters
(block
(return_statement
(call
(identifier_send_from_directory) identifier_send_from_directory
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_assets) identifier_assets
)attribute
(identifier_cache_path) identifier_cache_path
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_assets) identifier_assets
)attribute
(identifier_cache_filename) identifier_cache_filename
)attribute
(argument_list
(identifier_subpath) identifier_subpath
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Renders the specified cache file. |
(module
(function_definition
(function_name_get_bank_hierarchy_session) function_name_get_bank_hierarchy_session
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_supports_bank_hierarchy) identifier_supports_bank_hierarchy
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_Unimplemented) identifier_Unimplemented
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_sessions) identifier_sessions
(identifier_BankHierarchySession) identifier_BankHierarchySession
)attribute
(argument_list
(keyword_argument
(identifier_runtime) identifier_runtime
(attribute
(identifier_self) identifier_self
(identifier__runtime) identifier__runtime
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the session traversing bank hierarchies.
return: (osid.assessment.BankHierarchySession) - a
``BankHierarchySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_hierarchy() is false``
*compliance: optional -- This method must be implemented if
``supports_bank_hierarchy()`` is true.* |
(module
(function_definition
(function_name__to_backend) function_name__to_backend
(parameters
(identifier_self) identifier_self
(identifier_p) identifier_p
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_p) identifier_p
(attribute
(identifier_self) identifier_self
(identifier__cmp_base) identifier__cmp_base
)attribute
)argument_list
)call
(block
(return_statement
(attribute
(identifier_p) identifier_p
(identifier_path) identifier_path
)attribute
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_p) identifier_p
(attribute
(identifier_self) identifier_self
(identifier__backend) identifier__backend
)attribute
)argument_list
)call
(block
(return_statement
(identifier_p) identifier_p
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__backend) identifier__backend
)attribute
(identifier_unicode) identifier_unicode
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_p) identifier_p
(identifier_bytes) identifier_bytes
)argument_list
)call
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_decode) identifier_decode
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__encoding) identifier__encoding
)attribute
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__backend) identifier__backend
)attribute
(identifier_bytes) identifier_bytes
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_p) identifier_p
(identifier_unicode) identifier_unicode
)argument_list
)call
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_encode) identifier_encode
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__encoding) identifier__encoding
)attribute
(conditional_expression
(string_'surrogateescape') string_'surrogateescape'
(identifier_PY3) identifier_PY3
(string_'strict') string_'strict'
)conditional_expression
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_"Can't construct a %s from %r") string_"Can't construct a %s from %r"
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Converts something to the correct path representation.
If given a Path, this will simply unpack it, if it's the correct type.
If given the correct backend, it will return that.
If given bytes for unicode of unicode for bytes, it will encode/decode
with a reasonable encoding. Note that these operations can raise
UnicodeError! |
(module
(function_definition
(function_name_get_from_area) function_name_get_from_area
(parameters
(identifier_self) identifier_self
(identifier_lat_min) identifier_lat_min
(identifier_lon_min) identifier_lon_min
(identifier_lat_max) identifier_lat_max
(identifier_lon_max) identifier_lon_max
(default_parameter
(identifier_picture_size) identifier_picture_size
(None) None
)default_parameter
(default_parameter
(identifier_set_) identifier_set_
(None) None
)default_parameter
(default_parameter
(identifier_map_filter) identifier_map_filter
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_page_size) identifier_page_size
(integer_100) integer_100
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_page) identifier_page
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier__request) identifier__request
)attribute
(argument_list
(identifier_lat_min) identifier_lat_min
(identifier_lon_min) identifier_lon_min
(identifier_lat_max) identifier_lat_max
(identifier_lon_max) identifier_lon_max
(binary_operator
(identifier_page) identifier_page
(identifier_page_size) identifier_page_size
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_page) identifier_page
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_page_size) identifier_page_size
)binary_operator
(identifier_picture_size) identifier_picture_size
(identifier_set_) identifier_set_
(identifier_map_filter) identifier_map_filter
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_photos) identifier_total_photos
(subscript
(identifier_result) identifier_result
(string_'count') string_'count'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_total_photos) identifier_total_photos
(identifier_page_size) identifier_page_size
)comparison_operator
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_page) identifier_page
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_pages) identifier_pages
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_total_photos) identifier_total_photos
(identifier_page_size) identifier_page_size
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_page) identifier_page
(identifier_pages) identifier_pages
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_result) identifier_new_result
(call
(attribute
(identifier_self) identifier_self
(identifier__request) identifier__request
)attribute
(argument_list
(identifier_lat_min) identifier_lat_min
(identifier_lon_min) identifier_lon_min
(identifier_lat_max) identifier_lat_max
(identifier_lon_max) identifier_lon_max
(binary_operator
(identifier_page) identifier_page
(identifier_page_size) identifier_page_size
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_page) identifier_page
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_page_size) identifier_page_size
)binary_operator
(identifier_picture_size) identifier_picture_size
(identifier_set_) identifier_set_
(identifier_map_filter) identifier_map_filter
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_result) identifier_result
(string_'photos') string_'photos'
)subscript
(identifier_extend) identifier_extend
)attribute
(argument_list
(subscript
(identifier_new_result) identifier_new_result
(string_'photos') string_'photos'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_page) identifier_page
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Get all available photos for a specific bounding box
:param lat_min:
Minimum latitude of the bounding box
:type lat_min: float
:param lon_min:
Minimum longitude of the bounding box
:type lon_min: float
:param lat_max:
Maximum latitude of the bounding box
:type lat_max: float
:param lon_max:
Maximum longitude of the bounding box
:type lon_max: float
:param picture_size:
This can be: original, medium (*default*), small, thumbnail, square, mini_square
:type picture_size: basestring
:param set_:
This can be: public, popular or user-id; where user-id is the specific id of a user (as integer)
:type set_: basestring/int
:param map_filter:
Whether to return photos that look better together; when True, tries to avoid returning photos of the same
location
:type map_filter: bool
:return: Returns the full dataset of all available photos |
(module
(function_definition
(function_name_guess_mime_mimedb) function_name_guess_mime_mimedb
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_mime) identifier_mime
(identifier_encoding) identifier_encoding
)pattern_list
(expression_list
(None) None
(None) None
)expression_list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mimedb) identifier_mimedb
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_mime) identifier_mime
(identifier_encoding) identifier_encoding
)pattern_list
(call
(attribute
(identifier_mimedb) identifier_mimedb
(identifier_guess_type) identifier_guess_type
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_strict) identifier_strict
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_mime) identifier_mime
(identifier_ArchiveMimetypes) identifier_ArchiveMimetypes
)comparison_operator
(comparison_operator
(identifier_encoding) identifier_encoding
(identifier_ArchiveCompressions) identifier_ArchiveCompressions
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_mime) identifier_mime
(subscript
(identifier_Encoding2Mime) identifier_Encoding2Mime
(identifier_encoding) identifier_encoding
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(None) None
)assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_mime) identifier_mime
(identifier_encoding) identifier_encoding
)expression_list
)return_statement
)block
)function_definition
)module | Guess MIME type from given filename.
@return: tuple (mime, encoding) |
(module
(function_definition
(function_name_broadcast_tx) function_name_broadcast_tx
(parameters
(identifier_cls) identifier_cls
(identifier_tx_hex) identifier_tx_hex
)parameters
(block
(expression_statement
(assignment
(identifier_success) identifier_success
(None) None
)assignment
)expression_statement
(for_statement
(identifier_api_call) identifier_api_call
(attribute
(identifier_cls) identifier_cls
(identifier_BROADCAST_TX_MAIN) identifier_BROADCAST_TX_MAIN
)attribute
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_success) identifier_success
(call
(identifier_api_call) identifier_api_call
(argument_list
(identifier_tx_hex) identifier_tx_hex
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_success) identifier_success
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(return_statement
)return_statement
)block
(except_clause
(attribute
(identifier_cls) identifier_cls
(identifier_IGNORED_ERRORS) identifier_IGNORED_ERRORS
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_success) identifier_success
(False) False
)comparison_operator
(block
(raise_statement
(call
(identifier_ConnectionError) identifier_ConnectionError
(argument_list
(concatenated_string
(string_'Transaction broadcast failed, or ') string_'Transaction broadcast failed, or '
(string_'Unspents were already used.') string_'Unspents were already used.'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(raise_statement
(call
(identifier_ConnectionError) identifier_ConnectionError
(argument_list
(string_'All APIs are unreachable.') string_'All APIs are unreachable.'
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Broadcasts a transaction to the blockchain.
:param tx_hex: A signed transaction in hex form.
:type tx_hex: ``str``
:raises ConnectionError: If all API services fail. |
(module
(function_definition
(function_name_get_content) function_name_get_content
(parameters
(identifier_ident_hash) identifier_ident_hash
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_id) identifier_id
(identifier_version) identifier_version
)pattern_list
(call
(identifier_get_id_n_version) identifier_get_id_n_version
(argument_list
(identifier_ident_hash) identifier_ident_hash
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filename) identifier_filename
(string_'index.cnxml.html') string_'index.cnxml.html'
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_context) identifier_context
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_stmt) identifier_stmt
(call
(identifier__get_sql) identifier__get_sql
(argument_list
(string_'get-baked-content.sql') string_'get-baked-content.sql'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_id) identifier_id
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier_version) identifier_version
)keyword_argument
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_stmt) identifier_stmt
(call
(identifier__get_sql) identifier__get_sql
(argument_list
(string_'get-content.sql') string_'get-content.sql'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_id) identifier_id
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier_version) identifier_version
)keyword_argument
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_db_connect) identifier_db_connect
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_db_conn) identifier_db_conn
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_db_conn) identifier_db_conn
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_cursor) identifier_cursor
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(identifier_stmt) identifier_stmt
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_content) identifier_content
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(raise_statement
(call
(identifier_ContentNotFound) identifier_ContentNotFound
(argument_list
(identifier_ident_hash) identifier_ident_hash
(identifier_context) identifier_context
(identifier_filename) identifier_filename
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)with_statement
)block
)with_statement
(return_statement
(subscript
(identifier_content) identifier_content
(slice
(colon) colon
)slice
)subscript
)return_statement
)block
)function_definition
)module | Returns the content for the given ``ident_hash``.
``context`` is optionally ident-hash used to find the content
within the context of a Collection ident_hash. |
(module
(function_definition
(function_name_verify_order) function_name_verify_order
(parameters
(identifier_self) identifier_self
(identifier_hostname) identifier_hostname
(identifier_domain) identifier_domain
(identifier_location) identifier_location
(identifier_hourly) identifier_hourly
(identifier_flavor) identifier_flavor
(default_parameter
(identifier_router) identifier_router
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_create_options) identifier_create_options
(call
(attribute
(identifier_self) identifier_self
(identifier__generate_create_dict) identifier__generate_create_dict
)attribute
(argument_list
(keyword_argument
(identifier_hostname) identifier_hostname
(identifier_hostname) identifier_hostname
)keyword_argument
(keyword_argument
(identifier_router) identifier_router
(identifier_router) identifier_router
)keyword_argument
(keyword_argument
(identifier_domain) identifier_domain
(identifier_domain) identifier_domain
)keyword_argument
(keyword_argument
(identifier_flavor) identifier_flavor
(identifier_flavor) identifier_flavor
)keyword_argument
(keyword_argument
(identifier_datacenter) identifier_datacenter
(identifier_location) identifier_location
)keyword_argument
(keyword_argument
(identifier_hourly) identifier_hourly
(identifier_hourly) identifier_hourly
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(string_'Product_Order') string_'Product_Order'
)subscript
(identifier_verifyOrder) identifier_verifyOrder
)attribute
(argument_list
(identifier_create_options) identifier_create_options
)argument_list
)call
)return_statement
)block
)function_definition
)module | Verifies an order for a dedicated host.
See :func:`place_order` for a list of available options. |
(module
(function_definition
(function_name__analyse_overview_field) function_name__analyse_overview_field
(parameters
(identifier_content) identifier_content
)parameters
(block
(if_statement
(comparison_operator
(string_"(") string_"("
(identifier_content) identifier_content
)comparison_operator
(block
(return_statement
(expression_list
(subscript
(call
(attribute
(identifier_content) identifier_content
(identifier_split) identifier_split
)attribute
(argument_list
(string_"(") string_"("
)argument_list
)call
(integer_0) integer_0
)subscript
(subscript
(call
(attribute
(identifier_content) identifier_content
(identifier_split) identifier_split
)attribute
(argument_list
(string_"(") string_"("
)argument_list
)call
(integer_0) integer_0
)subscript
)expression_list
)return_statement
)block
(elif_clause
(comparison_operator
(string_"/") string_"/"
(identifier_content) identifier_content
)comparison_operator
(block
(return_statement
(expression_list
(subscript
(call
(attribute
(identifier_content) identifier_content
(identifier_split) identifier_split
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
(integer_0) integer_0
)subscript
(subscript
(call
(attribute
(identifier_content) identifier_content
(identifier_split) identifier_split
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
(integer_1) integer_1
)subscript
)expression_list
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(expression_list
(identifier_content) identifier_content
(string_"") string_""
)expression_list
)return_statement
)block
)function_definition
)module | Split the field in drbd-overview |
(module
(function_definition
(function_name_lang_match_xml) function_name_lang_match_xml
(parameters
(identifier_row) identifier_row
(identifier_accepted_languages) identifier_accepted_languages
)parameters
(block
(if_statement
(not_operator
(identifier_accepted_languages) identifier_accepted_languages
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_column_languages) identifier_column_languages
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_elem) identifier_elem
(identifier_row) identifier_row
(block
(expression_statement
(assignment
(identifier_lang) identifier_lang
(call
(attribute
(attribute
(subscript
(identifier_elem) identifier_elem
(integer_0) integer_0
)subscript
(identifier_attrib) identifier_attrib
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_XML_LANG) identifier_XML_LANG
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_lang) identifier_lang
(block
(expression_statement
(call
(attribute
(identifier_column_languages) identifier_column_languages
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_lang) identifier_lang
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(boolean_operator
(parenthesized_expression
(not_operator
(identifier_column_languages) identifier_column_languages
)not_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_column_languages) identifier_column_languages
(identifier_accepted_languages) identifier_accepted_languages
)binary_operator
)parenthesized_expression
)boolean_operator
)return_statement
)block
)function_definition
)module | Find if the XML row contains acceptable language data |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_target) identifier_target
(None) None
)default_parameter
(default_parameter
(identifier_shp) identifier_shp
(None) None
)default_parameter
(default_parameter
(identifier_shx) identifier_shx
(None) None
)default_parameter
(default_parameter
(identifier_dbf) identifier_dbf
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_shp) identifier_shp
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveShp) identifier_saveShp
)attribute
(argument_list
(identifier_shp) identifier_shp
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_shx) identifier_shx
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveShx) identifier_saveShx
)attribute
(argument_list
(identifier_shx) identifier_shx
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_dbf) identifier_dbf
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveDbf) identifier_saveDbf
)attribute
(argument_list
(identifier_dbf) identifier_dbf
)argument_list
)call
)expression_statement
)block
(elif_clause
(identifier_target) identifier_target
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveShp) identifier_saveShp
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shp) identifier_shp
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveShx) identifier_saveShx
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shx) identifier_shx
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_saveDbf) identifier_saveDbf
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dbf) identifier_dbf
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Save the shapefile data to three files or
three file-like objects. SHP and DBF files can also
be written exclusively using saveShp, saveShx, and saveDbf respectively. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_config) identifier_config
(identifier_opt) identifier_opt
)parameters
(block
(expression_statement
(assignment
(identifier_ctx) identifier_ctx
(call
(identifier_Context) identifier_Context
(argument_list
(identifier_opt) identifier_opt
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_seed_map) identifier_seed_map
(call
(identifier_py_resources) identifier_py_resources
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_seed_keys) identifier_seed_keys
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(list_comprehension
(subscript
(identifier_m) identifier_m
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_m) identifier_m
(identifier_seed_map) identifier_seed_map
)for_in_clause
)list_comprehension
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(identifier_resource_sort) identifier_resource_sort
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_config_key) identifier_config_key
(identifier_seed_keys) identifier_seed_keys
(block
(if_statement
(comparison_operator
(identifier_config_key) identifier_config_key
(identifier_config) identifier_config
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_resource_config) identifier_resource_config
(subscript
(identifier_config) identifier_config
(identifier_config_key) identifier_config_key
)subscript
(block
(expression_statement
(assignment
(identifier_mod) identifier_mod
(call
(identifier_find_model) identifier_find_model
(argument_list
(identifier_config_key) identifier_config_key
(identifier_resource_config) identifier_resource_config
(identifier_seed_map) identifier_seed_map
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_mod) identifier_mod
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"unable to find mod for %s") string_"unable to find mod for %s"
(identifier_resource_config) identifier_resource_config
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_add) identifier_add
)attribute
(argument_list
(call
(identifier_mod) identifier_mod
(argument_list
(identifier_resource_config) identifier_resource_config
(identifier_opt) identifier_opt
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(for_statement
(identifier_config_key) identifier_config_key
(call
(attribute
(identifier_config) identifier_config
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_config_key) identifier_config_key
(string_'pgp_keys') string_'pgp_keys'
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_config_key) identifier_config_key
(identifier_seed_keys) identifier_seed_keys
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"missing model for %s") string_"missing model for %s"
(identifier_config_key) identifier_config_key
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(identifier_filtered_context) identifier_filtered_context
(argument_list
(identifier_ctx) identifier_ctx
)argument_list
)call
)return_statement
)block
)function_definition
)module | Loads and returns a full context object based on the Secretfile |
(module
(function_definition
(function_name__get_resource) function_name__get_resource
(parameters
(identifier_self) identifier_self
(identifier_resource) identifier_resource
(identifier_obj) identifier_obj
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_self) identifier_self
(identifier__http_resource) identifier__http_resource
)attribute
(argument_list
(string_'GET') string_'GET'
(identifier_resource) identifier_resource
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(attribute
(identifier_self) identifier_self
(identifier__resource_deserialize) identifier__resource_deserialize
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_r) identifier_r
(identifier_content) identifier_content
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier_new_from_dict) identifier_new_from_dict
)attribute
(argument_list
(identifier_item) identifier_item
(keyword_argument
(identifier_h) identifier_h
(identifier_self) identifier_self
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a mapped object from an HTTP resource. |
(module
(function_definition
(function_name_inspect_workers) function_name_inspect_workers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_workers) identifier_workers
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_workers) identifier_workers
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_expired) identifier_expired
(call
(identifier_tuple) identifier_tuple
(generator_expression
(identifier_w) identifier_w
(for_in_clause
(identifier_w) identifier_w
(identifier_workers) identifier_workers
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_w) identifier_w
(identifier_is_alive) identifier_is_alive
)attribute
(argument_list
)argument_list
)call
)not_operator
)if_clause
)generator_expression
)call
)assignment
)expression_statement
(for_statement
(identifier_worker) identifier_worker
(identifier_expired) identifier_expired
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_workers) identifier_workers
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(attribute
(identifier_worker) identifier_worker
(identifier_pid) identifier_pid
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(generator_expression
(tuple
(attribute
(identifier_w) identifier_w
(identifier_pid) identifier_pid
)attribute
(attribute
(identifier_w) identifier_w
(identifier_exitcode) identifier_exitcode
)attribute
)tuple
(for_in_clause
(identifier_w) identifier_w
(identifier_expired) identifier_expired
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_w) identifier_w
(identifier_exitcode) identifier_exitcode
)attribute
(integer_0) integer_0
)comparison_operator
)if_clause
)generator_expression
)return_statement
)block
)function_definition
)module | Updates the workers status.
Returns the workers which have unexpectedly ended. |
(module
(function_definition
(function_name_check_isis_version) function_name_check_isis_version
(parameters
(identifier_major) identifier_major
(default_parameter
(identifier_minor) identifier_minor
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_patch) identifier_patch
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_ISIS_VERSION) identifier_ISIS_VERSION
(comparison_operator
(tuple
(identifier_major) identifier_major
(identifier_minor) identifier_minor
(identifier_patch) identifier_patch
)tuple
(identifier_ISIS_VERISON_TUPLE) identifier_ISIS_VERISON_TUPLE
)comparison_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_'Version %s.%s.%s of isis required (%s found).') string_'Version %s.%s.%s of isis required (%s found).'
)assignment
)expression_statement
(raise_statement
(call
(identifier_VersionError) identifier_VersionError
(argument_list
(binary_operator
(identifier_msg) identifier_msg
(tuple
(identifier_major) identifier_major
(identifier_minor) identifier_minor
(identifier_patch) identifier_patch
(identifier_ISIS_VERSION) identifier_ISIS_VERSION
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Checks that the current isis version is equal to or above the suplied
version. |
(module
(function_definition
(function_name__free_up_space) function_name__free_up_space
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
(default_parameter
(identifier_this_rel_path) identifier_this_rel_path
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_space) identifier_space
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
(identifier_size) identifier_size
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_maxsize) identifier_maxsize
)attribute
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_space) identifier_space
(integer_0) integer_0
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_removes) identifier_removes
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"SELECT path, size, time FROM files ORDER BY time ASC") string_"SELECT path, size, time FROM files ORDER BY time ASC"
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_space) identifier_space
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_removes) identifier_removes
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_space) identifier_space
(subscript
(identifier_row) identifier_row
(integer_1) integer_1
)subscript
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)for_statement
(for_statement
(identifier_rel_path) identifier_rel_path
(identifier_removes) identifier_removes
(block
(if_statement
(comparison_operator
(identifier_rel_path) identifier_rel_path
(identifier_this_rel_path) identifier_this_rel_path
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_global_logger) identifier_global_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Deleting {}") string_"Deleting {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_rel_path) identifier_rel_path
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_rel_path) identifier_rel_path
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | If there are not size bytes of space left, delete files
until there is
Args:
size: size of the current file
this_rel_path: rel_pat to the current file, so we don't delete it. |
(module
(function_definition
(function_name__recursive_merge) function_name__recursive_merge
(parameters
(identifier_dct) identifier_dct
(identifier_merge_dct) identifier_merge_dct
(identifier_raise_on_missing) identifier_raise_on_missing
)parameters
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_merge_dct) identifier_merge_dct
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_k) identifier_k
(identifier_dct) identifier_dct
)comparison_operator
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_dct) identifier_dct
(identifier_k) identifier_k
)subscript
(identifier_dict) identifier_dict
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_merge_dct) identifier_merge_dct
(identifier_k) identifier_k
)subscript
(identifier_BaseMapping) identifier_BaseMapping
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_dct) identifier_dct
(identifier_k) identifier_k
)subscript
(call
(identifier__recursive_merge) identifier__recursive_merge
(argument_list
(subscript
(identifier_dct) identifier_dct
(identifier_k) identifier_k
)subscript
(subscript
(identifier_merge_dct) identifier_merge_dct
(identifier_k) identifier_k
)subscript
(identifier_raise_on_missing) identifier_raise_on_missing
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_dct) identifier_dct
(identifier_k) identifier_k
)subscript
(subscript
(identifier_merge_dct) identifier_merge_dct
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_dct) identifier_dct
(identifier_Extensible) identifier_Extensible
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_dct) identifier_dct
(identifier_k) identifier_k
)subscript
(subscript
(identifier_merge_dct) identifier_merge_dct
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(string_"Unknown configuration key: '{k}'") string_"Unknown configuration key: '{k}'"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_k) identifier_k
(identifier_k) identifier_k
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_raise_on_missing) identifier_raise_on_missing
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(identifier___name__) identifier___name__
)argument_list
)call
(identifier_warning) identifier_warning
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_dct) identifier_dct
)return_statement
)block
)function_definition
)module | Recursive dict merge
This modifies `dct` in place. Use `copy.deepcopy` if this behavior is not desired. |
(module
(function_definition
(function_name_cycle_focus) function_name_cycle_focus
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_windows) identifier_windows
(call
(attribute
(identifier_self) identifier_self
(identifier_windows) identifier_windows
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_index) identifier_new_index
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_windows) identifier_windows
(identifier_index) identifier_index
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_active_window) identifier_active_window
)attribute
)argument_list
)call
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_windows) identifier_windows
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_active_window) identifier_active_window
)attribute
(subscript
(identifier_windows) identifier_windows
(identifier_new_index) identifier_new_index
)subscript
)assignment
)expression_statement
)block
)function_definition
)module | Cycle through all windows. |
(module
(function_definition
(function_name_tail_threshold) function_name_tail_threshold
(parameters
(identifier_vals) identifier_vals
(default_parameter
(identifier_N) identifier_N
(integer_1000) integer_1000
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_vals) identifier_vals
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_vals) identifier_vals
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_vals) identifier_vals
)argument_list
)call
(identifier_N) identifier_N
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_'Not enough input values to determine threshold') string_'Not enough input values to determine threshold'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_vals) identifier_vals
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_min) identifier_min
(argument_list
(subscript
(identifier_vals) identifier_vals
(slice
(unary_operator
(identifier_N) identifier_N
)unary_operator
(colon) colon
)slice
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determine a threshold above which there are N louder values |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_max_dataset_history) identifier_max_dataset_history
(call
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
(argument_list
(string_'max_dataset_history') string_'max_dataset_history'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_keep_recent_datasets) identifier_keep_recent_datasets
(argument_list
(identifier_max_dataset_history) identifier_max_dataset_history
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_labels) identifier_labels
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_channels) identifier_channels
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_notes) identifier_notes
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_overview) identifier_overview
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_spectrum) identifier_spectrum
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_traces) identifier_traces
)attribute
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove all the information from previous dataset before loading a
new dataset. |
(module
(function_definition
(function_name_squared_distance) function_name_squared_distance
(parameters
(identifier_v1) identifier_v1
(identifier_v2) identifier_v2
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_v1) identifier_v1
(identifier_v2) identifier_v2
)pattern_list
(expression_list
(call
(identifier__convert_to_vector) identifier__convert_to_vector
(argument_list
(identifier_v1) identifier_v1
)argument_list
)call
(call
(identifier__convert_to_vector) identifier__convert_to_vector
(argument_list
(identifier_v2) identifier_v2
)argument_list
)call
)expression_list
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_v1) identifier_v1
(identifier_squared_distance) identifier_squared_distance
)attribute
(argument_list
(identifier_v2) identifier_v2
)argument_list
)call
)return_statement
)block
)function_definition
)module | Squared distance between two vectors.
a and b can be of type SparseVector, DenseVector, np.ndarray
or array.array.
>>> a = Vectors.sparse(4, [(0, 1), (3, 4)])
>>> b = Vectors.dense([2, 5, 4, 1])
>>> a.squared_distance(b)
51.0 |
(module
(function_definition
(function_name__can_process_application) function_name__can_process_application
(parameters
(identifier_self) identifier_self
(identifier_app) identifier_app
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_LOCATION_KEY) identifier_LOCATION_KEY
)attribute
(attribute
(identifier_app) identifier_app
(identifier_properties) identifier_properties
)attribute
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(attribute
(identifier_app) identifier_app
(identifier_properties) identifier_properties
)attribute
(attribute
(identifier_self) identifier_self
(identifier_LOCATION_KEY) identifier_LOCATION_KEY
)attribute
)subscript
(identifier_dict) identifier_dict
)argument_list
)call
)boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_APPLICATION_ID_KEY) identifier_APPLICATION_ID_KEY
)attribute
(subscript
(attribute
(identifier_app) identifier_app
(identifier_properties) identifier_properties
)attribute
(attribute
(identifier_self) identifier_self
(identifier_LOCATION_KEY) identifier_LOCATION_KEY
)attribute
)subscript
)comparison_operator
)boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_SEMANTIC_VERSION_KEY) identifier_SEMANTIC_VERSION_KEY
)attribute
(subscript
(attribute
(identifier_app) identifier_app
(identifier_properties) identifier_properties
)attribute
(attribute
(identifier_self) identifier_self
(identifier_LOCATION_KEY) identifier_LOCATION_KEY
)attribute
)subscript
)comparison_operator
)boolean_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Determines whether or not the on_before_transform_template event can process this application
:param dict app: the application and its properties |
(module
(function_definition
(function_name_set_mode_by_id) function_name_set_mode_by_id
(parameters
(identifier_self) identifier_self
(identifier_zone_id) identifier_zone_id
(identifier_mode) identifier_mode
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__do_auth) identifier__do_auth
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Unable to login") string_"Unable to login"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_"ZoneId") string_"ZoneId"
(identifier_zone_id) identifier_zone_id
)pair
(pair
(string_"mode") string_"mode"
(attribute
(identifier_mode) identifier_mode
(identifier_value) identifier_value
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_"Accept") string_"Accept"
(string_"application/json") string_"application/json"
)pair
(pair
(string_"Content-Type") string_"Content-Type"
(string_"application/json") string_"application/json"
)pair
(pair
(string_'Authorization') string_'Authorization'
(binary_operator
(string_'Bearer ') string_'Bearer '
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_login_data) identifier_login_data
)attribute
(string_'token') string_'token'
)subscript
(string_'accessToken') string_'accessToken'
)subscript
)binary_operator
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_api_base_url) identifier_api_base_url
)attribute
(string_"Home/SetZoneMode") string_"Home/SetZoneMode"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_mode_data) identifier_mode_data
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_mode_data) identifier_mode_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_"isSuccess") string_"isSuccess"
(False) False
)argument_list
)call
)return_statement
)block
)function_definition
)module | Set the mode by using the zone id
Supported zones are available in the enum Mode |
(module
(function_definition
(function_name_rpc_export) function_name_rpc_export
(parameters
(identifier_rpc_method_name) identifier_rpc_method_name
(default_parameter
(identifier_sync) identifier_sync
(False) False
)default_parameter
)parameters
(block
(function_definition
(function_name_dec) function_name_dec
(parameters
(identifier_f) identifier_f
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_f) identifier_f
(identifier__nvim_rpc_method_name) identifier__nvim_rpc_method_name
)attribute
(identifier_rpc_method_name) identifier_rpc_method_name
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_f) identifier_f
(identifier__nvim_rpc_sync) identifier__nvim_rpc_sync
)attribute
(identifier_sync) identifier_sync
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_f) identifier_f
(identifier__nvim_bind) identifier__nvim_bind
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_f) identifier_f
(identifier__nvim_prefix_plugin_path) identifier__nvim_prefix_plugin_path
)attribute
(False) False
)assignment
)expression_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
(return_statement
(identifier_dec) identifier_dec
)return_statement
)block
)function_definition
)module | Export a function or plugin method as a msgpack-rpc request handler. |
(module
(function_definition
(function_name_GroupSizer) function_name_GroupSizer
(parameters
(identifier_field_number) identifier_field_number
(identifier_is_repeated) identifier_is_repeated
(identifier_is_packed) identifier_is_packed
)parameters
(block
(expression_statement
(assignment
(identifier_tag_size) identifier_tag_size
(binary_operator
(call
(identifier__TagSize) identifier__TagSize
(argument_list
(identifier_field_number) identifier_field_number
)argument_list
)call
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(assert_statement
(not_operator
(identifier_is_packed) identifier_is_packed
)not_operator
)assert_statement
(if_statement
(identifier_is_repeated) identifier_is_repeated
(block
(function_definition
(function_name_RepeatedFieldSize) function_name_RepeatedFieldSize
(parameters
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(binary_operator
(identifier_tag_size) identifier_tag_size
(call
(identifier_len) identifier_len
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(for_statement
(identifier_element) identifier_element
(identifier_value) identifier_value
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_element) identifier_element
(identifier_ByteSize) identifier_ByteSize
)attribute
(argument_list
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
(return_statement
(identifier_RepeatedFieldSize) identifier_RepeatedFieldSize
)return_statement
)block
(else_clause
(block
(function_definition
(function_name_FieldSize) function_name_FieldSize
(parameters
(identifier_value) identifier_value
)parameters
(block
(return_statement
(binary_operator
(identifier_tag_size) identifier_tag_size
(call
(attribute
(identifier_value) identifier_value
(identifier_ByteSize) identifier_ByteSize
)attribute
(argument_list
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
(return_statement
(identifier_FieldSize) identifier_FieldSize
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns a sizer for a group field. |
(module
(function_definition
(function_name_get_default_config_help) function_name_get_default_config_help
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_config_help) identifier_config_help
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_PostgresqlCollector) identifier_PostgresqlCollector
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_default_config_help) identifier_get_default_config_help
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_config_help) identifier_config_help
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'host') string_'host'
(string_'Hostname') string_'Hostname'
)pair
(pair
(string_'dbname') string_'dbname'
(string_'DB to connect to in order to get list of DBs in PgSQL') string_'DB to connect to in order to get list of DBs in PgSQL'
)pair
(pair
(string_'user') string_'user'
(string_'Username') string_'Username'
)pair
(pair
(string_'password') string_'password'
(string_'Password') string_'Password'
)pair
(pair
(string_'port') string_'port'
(string_'Port number') string_'Port number'
)pair
(pair
(string_'password_provider') string_'password_provider'
(concatenated_string
(string_"Whether to auth with supplied password or") string_"Whether to auth with supplied password or"
(string_" .pgpass file <password|pgpass>") string_" .pgpass file <password|pgpass>"
)concatenated_string
)pair
(pair
(string_'sslmode') string_'sslmode'
(string_'Whether to use SSL - <disable|allow|require|...>') string_'Whether to use SSL - <disable|allow|require|...>'
)pair
(pair
(string_'underscore') string_'underscore'
(string_'Convert _ to .') string_'Convert _ to .'
)pair
(pair
(string_'extended') string_'extended'
(string_'Enable collection of extended database stats.') string_'Enable collection of extended database stats.'
)pair
(pair
(string_'metrics') string_'metrics'
(string_'List of enabled metrics to collect') string_'List of enabled metrics to collect'
)pair
(pair
(string_'pg_version') string_'pg_version'
(concatenated_string
(string_"The version of postgres that you'll be monitoring") string_"The version of postgres that you'll be monitoring"
(string_" eg. in format 9.2") string_" eg. in format 9.2"
)concatenated_string
)pair
(pair
(string_'has_admin') string_'has_admin'
(concatenated_string
(string_'Admin privileges are required to execute some') string_'Admin privileges are required to execute some'
(string_' queries.') string_' queries.'
)concatenated_string
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(identifier_config_help) identifier_config_help
)return_statement
)block
)function_definition
)module | Return help text for collector |
(module
(function_definition
(function_name_visit_Assign) function_name_visit_Assign
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__in_class) identifier__in_class
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_element_full_name) identifier_element_full_name
(call
(attribute
(identifier_self) identifier_self
(identifier__pop_indent_stack) identifier__pop_indent_stack
)attribute
(argument_list
(identifier_node) identifier_node
(string_"prop") string_"prop"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_code_id) identifier_code_id
(tuple
(attribute
(identifier_self) identifier_self
(identifier__fname) identifier__fname
)attribute
(attribute
(identifier_node) identifier_node
(identifier_lineno) identifier_lineno
)attribute
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__processed_line) identifier__processed_line
)attribute
(attribute
(identifier_node) identifier_node
(identifier_lineno) identifier_lineno
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__callables_db) identifier__callables_db
)attribute
(identifier_element_full_name) identifier_element_full_name
)subscript
(dictionary
(pair
(string_"name") string_"name"
(identifier_element_full_name) identifier_element_full_name
)pair
(pair
(string_"type") string_"type"
(string_"prop") string_"prop"
)pair
(pair
(string_"code_id") string_"code_id"
(identifier_code_id) identifier_code_id
)pair
(pair
(string_"last_lineno") string_"last_lineno"
(None) None
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__reverse_callables_db) identifier__reverse_callables_db
)attribute
(identifier_code_id) identifier_code_id
)subscript
(identifier_element_full_name) identifier_element_full_name
)assignment
)expression_statement
(comment) comment
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_generic_visit) identifier_generic_visit
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Implement assignment walker.
Parse class properties defined via the property() function |
(module
(function_definition
(function_name_get_pools) function_name_get_pools
(parameters
(default_parameter
(identifier_time_span) identifier_time_span
(None) None
)default_parameter
(default_parameter
(identifier_api_code) identifier_api_code
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_resource) identifier_resource
(string_'pools') string_'pools'
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_time_span) identifier_time_span
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_resource) identifier_resource
(binary_operator
(string_'?timespan=') string_'?timespan='
(identifier_time_span) identifier_time_span
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_api_code) identifier_api_code
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_resource) identifier_resource
(binary_operator
(string_'&api_code=') string_'&api_code='
(identifier_api_code) identifier_api_code
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_util) identifier_util
(identifier_call_api) identifier_call_api
)attribute
(argument_list
(identifier_resource) identifier_resource
(keyword_argument
(identifier_base_url) identifier_base_url
(string_'https://api.blockchain.info/') string_'https://api.blockchain.info/'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json_response) identifier_json_response
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(identifier_v) identifier_v
)pair
(for_in_clause
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(identifier_json_response) identifier_json_response
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Get number of blocks mined by each pool.
:param str time_span: duration of the chart.
Default is 4days (optional)
:param str api_code: Blockchain.info API code (optional)
:return: an instance of dict:{str,int} |
(module
(function_definition
(function_name_flatten) function_name_flatten
(parameters
(identifier_dictionary) identifier_dictionary
(default_parameter
(identifier_separator) identifier_separator
(string_'.') string_'.'
)default_parameter
(default_parameter
(identifier_prefix) identifier_prefix
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_new_dict) identifier_new_dict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_dictionary) identifier_dictionary
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_new_key) identifier_new_key
(conditional_expression
(binary_operator
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_separator) identifier_separator
)binary_operator
(identifier_key) identifier_key
)binary_operator
(identifier_prefix) identifier_prefix
(identifier_key) identifier_key
)conditional_expression
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(attribute
(identifier_collections) identifier_collections
(identifier_MutableMapping) identifier_MutableMapping
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_new_dict) identifier_new_dict
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_flatten) identifier_flatten
(argument_list
(identifier_value) identifier_value
(identifier_separator) identifier_separator
(identifier_new_key) identifier_new_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_new_value) identifier_new_value
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_value) identifier_value
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(attribute
(identifier_collections) identifier_collections
(identifier_MutableMapping) identifier_MutableMapping
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_new_value) identifier_new_value
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_flatten) identifier_flatten
(argument_list
(identifier_item) identifier_item
(identifier_separator) identifier_separator
(identifier_new_key) identifier_new_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_new_value) identifier_new_value
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_new_dict) identifier_new_dict
(identifier_new_key) identifier_new_key
)subscript
(identifier_new_value) identifier_new_value
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_new_dict) identifier_new_dict
(identifier_new_key) identifier_new_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_new_dict) identifier_new_dict
)return_statement
)block
)function_definition
)module | Flatten the dictionary keys are separated by separator
Arguments:
dictionary {dict} -- The dictionary to be flattened.
Keyword Arguments:
separator {str} -- The separator to use (default is '.'). It will
crush items with key conflicts.
prefix {str} -- Used for recursive calls.
Returns:
dict -- The flattened dictionary. |
(module
(function_definition
(function_name_push) function_name_push
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_insert_pos) identifier_insert_pos
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_el) identifier_el
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_tops) identifier_tops
)attribute
)argument_list
)call
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_find_min) identifier_find_min
)attribute
)not_operator
(comparison_operator
(subscript
(identifier_el) identifier_el
(integer_1) integer_1
)subscript
(identifier_value) identifier_value
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_insert_pos) identifier_insert_pos
(binary_operator
(identifier_index) identifier_index
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_find_min) identifier_find_min
)attribute
(comparison_operator
(subscript
(identifier_el) identifier_el
(integer_1) integer_1
)subscript
(identifier_value) identifier_value
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_insert_pos) identifier_insert_pos
(binary_operator
(identifier_index) identifier_index
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tops) identifier_tops
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(identifier_insert_pos) identifier_insert_pos
(list
(identifier_element) identifier_element
(identifier_value) identifier_value
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tops) identifier_tops
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_tops) identifier_tops
)attribute
(slice
(colon) colon
(attribute
(identifier_self) identifier_self
(identifier_n) identifier_n
)attribute
)slice
)subscript
)assignment
)expression_statement
)block
)function_definition
)module | Push an ``element`` into the datastrucutre together with its value
and only save it if it currently is one of the top n elements.
Drop elements if necessary. |
(module
(function_definition
(function_name_get_banks_by_item) function_name_get_banks_by_item
(parameters
(identifier_self) identifier_self
(identifier_item_id) identifier_item_id
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) identifier_mgr
(call
(attribute
(identifier_self) identifier_self
(identifier__get_provider_manager) identifier__get_provider_manager
)attribute
(argument_list
(string_'ASSESSMENT') string_'ASSESSMENT'
(keyword_argument
(identifier_local) identifier_local
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lookup_session) identifier_lookup_session
(call
(attribute
(identifier_mgr) identifier_mgr
(identifier_get_bank_lookup_session) identifier_get_bank_lookup_session
)attribute
(argument_list
(keyword_argument
(identifier_proxy) identifier_proxy
(attribute
(identifier_self) identifier_self
(identifier__proxy) identifier__proxy
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_lookup_session) identifier_lookup_session
(identifier_get_banks_by_ids) identifier_get_banks_by_ids
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_bank_ids_by_item) identifier_get_bank_ids_by_item
)attribute
(argument_list
(identifier_item_id) identifier_item_id
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the list of ``Banks`` mapped to an ``Item``.
arg: item_id (osid.id.Id): ``Id`` of an ``Item``
return: (osid.assessment.BankList) - list of banks
raise: NotFound - ``item_id`` is not found
raise: NullArgument - ``item_id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - assessment failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_key) identifier_key
(identifier_unicode) identifier_unicode
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_key) identifier_key
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(binary_operator
(string_"Cache key [%s] not found") string_"Cache key [%s] not found"
(identifier_key) identifier_key
)binary_operator
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(identifier_v) identifier_v
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | because memcached does not provide a function to check if a key is existed
so here is a heck way, if the value is None, then raise Exception |
(module
(function_definition
(function_name_interleave) function_name_interleave
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_array) identifier_array
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_flatten) identifier_flatten
(argument_list
(identifier_array) identifier_array
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Interleaves the elements of the provided arrays.
>>> a = [(0, 0), (1, 0), (2, 0), (3, 0)]
>>> b = [(0, 0), (0, 1), (0, 2), (0, 3)]
>>> interleave(a, b)
[(0, 0, 0, 0), (1, 0, 0, 1), (2, 0, 0, 2), (3, 0, 0, 3)]
This is useful for combining multiple vertex attributes into a single
vertex buffer. The shader attributes can be assigned a slice of the
vertex buffer. |
(module
(function_definition
(function_name_get_message) function_name_get_message
(parameters
(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
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(attribute
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_extensions) identifier_extensions
)attribute
(string_'simplelogin') string_'simplelogin'
)subscript
(identifier_messages) identifier_messages
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_msg) identifier_msg
(parenthesized_expression
(boolean_operator
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_msg) identifier_msg
)return_statement
)block
)function_definition
)module | Helper to get internal messages outside this instance |
(module
(function_definition
(function_name__Scroll) function_name__Scroll
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_lines) identifier_lines
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_lines) identifier_lines
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(attribute
(identifier_self) identifier_self
(identifier__cli_lines) identifier__cli_lines
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_lines) identifier_lines
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__displayed) identifier__displayed
)attribute
(attribute
(identifier_self) identifier_self
(identifier__cli_lines) identifier__cli_lines
)attribute
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__displayed) identifier__displayed
)attribute
(identifier_lines) identifier_lines
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__displayed) identifier__displayed
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__displayed) identifier__displayed
)attribute
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__lines_to_show) identifier__lines_to_show
)attribute
(attribute
(identifier_self) identifier_self
(identifier__cli_lines) identifier__cli_lines
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__lines_to_show) identifier__lines_to_show
)attribute
(identifier_lines) identifier_lines
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__lastscroll) identifier__lastscroll
)attribute
(identifier_lines) identifier_lines
)assignment
)expression_statement
)block
)function_definition
)module | Set attributes to scroll the buffer correctly.
Args:
lines: An int, number of lines to scroll. If None, scrolls
by the terminal length. |
(module
(function_definition
(function_name_disconnect) function_name_disconnect
(parameters
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"Disconnecting %s") string_"Disconnecting %s"
(identifier_connection) identifier_connection
)binary_operator
)argument_list
)call
)expression_statement
(for_statement
(identifier_dest) identifier_dest
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__topics) identifier__topics
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_connection) identifier_connection
(subscript
(attribute
(identifier_self) identifier_self
(identifier__topics) identifier__topics
)attribute
(identifier_dest) identifier_dest
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__topics) identifier__topics
)attribute
(identifier_dest) identifier_dest
)subscript
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_connection) identifier_connection
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__topics) identifier__topics
)attribute
(identifier_dest) identifier_dest
)subscript
)not_operator
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__topics) identifier__topics
)attribute
(identifier_dest) identifier_dest
)subscript
)delete_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Removes a subscriber connection.
@param connection: The client connection to unsubscribe.
@type connection: L{coilmq.server.StompConnection} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.