sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_ReplaceInstanceDisks) function_name_ReplaceInstanceDisks
(parameters
(identifier_r) identifier_r
(identifier_instance) identifier_instance
(default_parameter
(identifier_disks) identifier_disks
(None) None
)default_parameter
(default_parameter
(identifier_mode) identifier_mode
(identifier_REPLACE_DISK_AUTO) identifier_REPLACE_DISK_AUTO
)default_parameter
(default_parameter
(identifier_remote_node) identifier_remote_node
(None) None
)default_parameter
(default_parameter
(identifier_iallocator) identifier_iallocator
(None) None
)default_parameter
(default_parameter
(identifier_dry_run) identifier_dry_run
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(identifier_REPLACE_DISK) identifier_REPLACE_DISK
)comparison_operator
(block
(raise_statement
(call
(identifier_GanetiApiError) identifier_GanetiApiError
(argument_list
(binary_operator
(string_"Invalid mode %r not one of %r") string_"Invalid mode %r not one of %r"
(tuple
(identifier_mode) identifier_mode
(identifier_REPLACE_DISK) identifier_REPLACE_DISK
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(dictionary
(pair
(string_"mode") string_"mode"
(identifier_mode) identifier_mode
)pair
(pair
(string_"dry-run") string_"dry-run"
(identifier_dry_run) identifier_dry_run
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_disks) identifier_disks
(block
(expression_statement
(assignment
(subscript
(identifier_query) identifier_query
(string_"disks") string_"disks"
)subscript
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_str) identifier_str
(argument_list
(identifier_idx) identifier_idx
)argument_list
)call
(for_in_clause
(identifier_idx) identifier_idx
(identifier_disks) identifier_disks
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_remote_node) identifier_remote_node
(block
(expression_statement
(assignment
(subscript
(identifier_query) identifier_query
(string_"remote_node") string_"remote_node"
)subscript
(identifier_remote_node) identifier_remote_node
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_iallocator) identifier_iallocator
(block
(expression_statement
(assignment
(subscript
(identifier_query) identifier_query
(string_"iallocator") string_"iallocator"
)subscript
(identifier_iallocator) identifier_iallocator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_request) identifier_request
)attribute
(argument_list
(string_"post") string_"post"
(binary_operator
(string_"/2/instances/%s/replace-disks") string_"/2/instances/%s/replace-disks"
(identifier_instance) identifier_instance
)binary_operator
(keyword_argument
(identifier_query) identifier_query
(identifier_query) identifier_query
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Replaces disks on an instance.
@type instance: str
@param instance: instance whose disks to replace
@type disks: list of ints
@param disks: Indexes of disks to replace
@type mode: str
@param mode: replacement mode to use (defaults to replace_auto)
@type remote_node: str or None
@param remote_node: new secondary node to use (for use with
replace_new_secondary mode)
@type iallocator: str or None
@param iallocator: instance allocator plugin to use (for use with
replace_auto mode)
@type dry_run: bool
@param dry_run: whether to perform a dry run
@rtype: int
@return: job id |
(module
(function_definition
(function_name_show_status) function_name_show_status
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_print_header) identifier_print_header
(argument_list
(string_'Attack work statistics') string_'Attack work statistics'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_attack_work) identifier_attack_work
)attribute
(identifier_read_all_from_datastore) identifier_read_all_from_datastore
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__show_status_for_work) identifier__show_status_for_work
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_attack_work) identifier_attack_work
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__export_work_errors) identifier__export_work_errors
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_attack_work) identifier_attack_work
)attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_results_dir) identifier_results_dir
)attribute
(string_'attack_errors.txt') string_'attack_errors.txt'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print_header) identifier_print_header
(argument_list
(string_'Defense work statistics') string_'Defense work statistics'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_defense_work) identifier_defense_work
)attribute
(identifier_read_all_from_datastore) identifier_read_all_from_datastore
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__show_status_for_work) identifier__show_status_for_work
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_defense_work) identifier_defense_work
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__export_work_errors) identifier__export_work_errors
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_defense_work) identifier_defense_work
)attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_results_dir) identifier_results_dir
)attribute
(string_'defense_errors.txt') string_'defense_errors.txt'
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Shows current status of competition evaluation.
Also this method saves error messages generated by attacks and defenses
into attack_errors.txt and defense_errors.txt. |
(module
(function_definition
(function_name_histogram1d) function_name_histogram1d
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_bins) identifier_bins
(None) None
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_statement
(dotted_name
(identifier_dask) identifier_dask
)dotted_name
)import_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_data) identifier_data
(string_"dask") string_"dask"
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_dask) identifier_dask
(identifier_array) identifier_array
)attribute
(identifier_from_array) identifier_from_array
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_chunks) identifier_chunks
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(subscript
(attribute
(identifier_data) identifier_data
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
(subscript
(identifier_options) identifier_options
(string_"chunk_split") string_"chunk_split"
)subscript
)binary_operator
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"adaptive") string_"adaptive"
(True) True
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Only adaptive histograms supported for dask (currently).") string_"Only adaptive histograms supported for dask (currently)."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_"adaptive") string_"adaptive"
)subscript
(True) True
)assignment
)expression_statement
(function_definition
(function_name_block_hist) function_name_block_hist
(parameters
(identifier_array) identifier_array
)parameters
(block
(return_statement
(call
(identifier_original_h1) identifier_original_h1
(argument_list
(identifier_array) identifier_array
(identifier_bins) identifier_bins
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(call
(identifier__run_dask) identifier__run_dask
(argument_list
(keyword_argument
(identifier_name) identifier_name
(string_"dask_adaptive1d") string_"dask_adaptive1d"
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_compute) identifier_compute
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_"compute") string_"compute"
(True) True
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_method) identifier_method
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_"dask_method") string_"dask_method"
(string_"threaded") string_"threaded"
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_func) identifier_func
(identifier_block_hist) identifier_block_hist
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Facade function to create one-dimensional histogram using dask.
Parameters
----------
data: dask.DaskArray or array-like
See also
--------
physt.histogram |
(module
(function_definition
(function_name_available_state_for_gene) function_name_available_state_for_gene
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_gene) identifier_gene
(type
(identifier_Gene) identifier_Gene
)type
)typed_parameter
(typed_parameter
(identifier_state) identifier_state
(type
(identifier_State) identifier_State
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_State) identifier_State
)type
(type
(ellipsis_...) ellipsis_...
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_State) identifier_State
)type
)type_parameter
)generic_type
)type
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_active_multiplex) identifier_active_multiplex
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_Multiplex) identifier_Multiplex
)type
)type_parameter
)generic_type
)type
(call
(attribute
(identifier_gene) identifier_gene
(identifier_active_multiplex) identifier_active_multiplex
)attribute
(argument_list
(identifier_state) identifier_state
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_transition) identifier_transition
(type
(identifier_Transition) identifier_Transition
)type
(call
(attribute
(identifier_self) identifier_self
(identifier_find_transition) identifier_find_transition
)attribute
(argument_list
(identifier_gene) identifier_gene
(identifier_active_multiplex) identifier_active_multiplex
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_state) identifier_current_state
(type
(identifier_int) identifier_int
)type
(subscript
(identifier_state) identifier_state
(identifier_gene) identifier_gene
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_done) identifier_done
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_target_state) identifier_target_state
(attribute
(identifier_transition) identifier_transition
(identifier_states) identifier_states
)attribute
(block
(expression_statement
(assignment
(identifier_target_state) identifier_target_state
(type
(identifier_int) identifier_int
)type
(call
(attribute
(identifier_self) identifier_self
(identifier__state_after_transition) identifier__state_after_transition
)attribute
(argument_list
(identifier_current_state) identifier_current_state
(identifier_target_state) identifier_target_state
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_target_state) identifier_target_state
(identifier_done) identifier_done
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_done) identifier_done
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_target_state) identifier_target_state
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_new_state) identifier_new_state
(type
(identifier_State) identifier_State
)type
(call
(attribute
(identifier_state) identifier_state
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_new_state) identifier_new_state
(identifier_gene) identifier_gene
)subscript
(identifier_target_state) identifier_target_state
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_state) identifier_new_state
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the state reachable from a given state for a particular gene. |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_activeCells) identifier_activeCells
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(integer_0) integer_0
(keyword_argument
(identifier_dtype) identifier_dtype
(string_"uint32") string_"uint32"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_activeDeltaSegments) identifier_activeDeltaSegments
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(integer_0) integer_0
(keyword_argument
(identifier_dtype) identifier_dtype
(string_"uint32") string_"uint32"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_activeFeatureLocationSegments) identifier_activeFeatureLocationSegments
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(integer_0) integer_0
(keyword_argument
(identifier_dtype) identifier_dtype
(string_"uint32") string_"uint32"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Deactivate all cells. |
(module
(function_definition
(function_name_done) function_name_done
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(list_comprehension
(attribute
(identifier_mm) identifier_mm
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_mm) identifier_mm
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_select) identifier_select
)attribute
(argument_list
)argument_list
)call
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_id) identifier_id
)attribute
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Scan migrations in database. |
(module
(function_definition
(function_name_incrby) function_name_incrby
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_increment) identifier_increment
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_increment) identifier_increment
(identifier_int) identifier_int
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"increment must be of type int") string_"increment must be of type int"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_b'INCRBY') string_b'INCRBY'
(identifier_key) identifier_key
(identifier_increment) identifier_increment
)argument_list
)call
)return_statement
)block
)function_definition
)module | Increment the integer value of a key by the given amount.
:raises TypeError: if increment is not int |
(module
(function_definition
(function_name_downvote) function_name_downvote
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__imgur) identifier__imgur
)attribute
(identifier__base_url) identifier__base_url
)attribute
(call
(attribute
(string_"/3/gallery/{0}/vote/down") string_"/3/gallery/{0}/vote/down"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__imgur) identifier__imgur
)attribute
(identifier__send_request) identifier__send_request
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_needs_auth) identifier_needs_auth
(True) True
)keyword_argument
(keyword_argument
(identifier_method) identifier_method
(string_'POST') string_'POST'
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Dislike this.
A downvote will replace a neutral vote or an upvote. Downvoting
something the authenticated user has already downvoted will set the
vote to neutral. |
(module
(function_definition
(function_name__step00) function_name__step00
(parameters
(identifier_self) identifier_self
(identifier_in_row) identifier_in_row
(identifier_tmp_row) identifier_tmp_row
(identifier_out_row) identifier_out_row
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_in_row) identifier_in_row
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_in_row) identifier_in_row
(identifier_key) identifier_key
)subscript
(call
(attribute
(identifier_WhitespaceCleaner) identifier_WhitespaceCleaner
(identifier_clean) identifier_clean
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(None) None
(None) None
)expression_list
)return_statement
)block
)function_definition
)module | Prunes whitespace for all fields in the input row.
:param dict in_row: The input row.
:param dict tmp_row: Not used.
:param dict out_row: Not used. |
(module
(function_definition
(function_name_config_program_reqs) function_name_config_program_reqs
(parameters
(identifier_cls) identifier_cls
(identifier_programs) identifier_programs
)parameters
(block
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__set_program_defaults) identifier__set_program_defaults
)attribute
(argument_list
(identifier_programs) identifier_programs
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_do_png) identifier_do_png
(boolean_operator
(boolean_operator
(attribute
(identifier_cls) identifier_cls
(identifier_optipng) identifier_optipng
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier_pngout) identifier_pngout
)attribute
)boolean_operator
(attribute
(identifier_cls) identifier_cls
(identifier_advpng) identifier_advpng
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_do_jpeg) identifier_do_jpeg
(boolean_operator
(boolean_operator
(attribute
(identifier_cls) identifier_cls
(identifier_mozjpeg) identifier_mozjpeg
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier_jpegrescan) identifier_jpegrescan
)attribute
)boolean_operator
(attribute
(identifier_cls) identifier_cls
(identifier_jpegtran) identifier_jpegtran
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_do_comics) identifier_do_comics
(attribute
(identifier_cls) identifier_cls
(identifier_comics) identifier_comics
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(not_operator
(identifier_do_png) identifier_do_png
)not_operator
(not_operator
(identifier_do_jpeg) identifier_do_jpeg
)not_operator
)boolean_operator
(not_operator
(identifier_do_comics) identifier_do_comics
)not_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"All optimizers are not available or disabled.") string_"All optimizers are not available or disabled."
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_exit) identifier_exit
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Run the program tester and determine if we can do anything. |
(module
(function_definition
(function_name_create_masks) function_name_create_masks
(parameters
(identifier_input_dim) identifier_input_dim
(identifier_hidden_dims) identifier_hidden_dims
(default_parameter
(identifier_input_order) identifier_input_order
(string_'left-to-right') string_'left-to-right'
)default_parameter
(default_parameter
(identifier_hidden_order) identifier_hidden_order
(string_'left-to-right') string_'left-to-right'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_degrees) identifier_degrees
(call
(identifier_create_degrees) identifier_create_degrees
(argument_list
(identifier_input_dim) identifier_input_dim
(identifier_hidden_dims) identifier_hidden_dims
(identifier_input_order) identifier_input_order
(identifier_hidden_order) identifier_hidden_order
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_masks) identifier_masks
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_input_degrees) identifier_input_degrees
(identifier_output_degrees) identifier_output_degrees
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(subscript
(identifier_degrees) identifier_degrees
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(subscript
(identifier_degrees) identifier_degrees
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(attribute
(identifier_tf) identifier_tf
(identifier_cast) identifier_cast
)attribute
(argument_list
(comparison_operator
(subscript
(identifier_input_degrees) identifier_input_degrees
(slice
(colon) colon
)slice
(attribute
(identifier_np) identifier_np
(identifier_newaxis) identifier_newaxis
)attribute
)subscript
(identifier_output_degrees) identifier_output_degrees
)comparison_operator
(attribute
(identifier_tf) identifier_tf
(identifier_float32) identifier_float32
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_masks) identifier_masks
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_mask) identifier_mask
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(attribute
(identifier_tf) identifier_tf
(identifier_cast) identifier_cast
)attribute
(argument_list
(comparison_operator
(subscript
(subscript
(identifier_degrees) identifier_degrees
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(slice
(colon) colon
)slice
(attribute
(identifier_np) identifier_np
(identifier_newaxis) identifier_newaxis
)attribute
)subscript
(subscript
(identifier_degrees) identifier_degrees
(integer_0) integer_0
)subscript
)comparison_operator
(attribute
(identifier_tf) identifier_tf
(identifier_float32) identifier_float32
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_masks) identifier_masks
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_mask) identifier_mask
)argument_list
)call
)expression_statement
(return_statement
(identifier_masks) identifier_masks
)return_statement
)block
)function_definition
)module | Returns a list of binary mask matrices respecting autoregressive ordering.
Args:
input_dim: Number of inputs.
hidden_dims: list with the number of hidden units per layer. It does not
include the output layer; those number of units will always be set to
input_dim downstream. Each hidden unit size must be at least the size of
length (otherwise autoregressivity is not possible).
input_order: Order of degrees to the input units: 'random', 'left-to-right',
'right-to-left', or an array of an explicit order. For example,
'left-to-right' builds an autoregressive model
p(x) = p(x1) p(x2 | x1) ... p(xD | x<D).
hidden_order: Order of degrees to the hidden units: 'random',
'left-to-right'. If 'left-to-right', hidden units are allocated equally
(up to a remainder term) to each degree. |
(module
(function_definition
(function_name_get_index_fields) function_name_get_index_fields
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_index_fields) identifier_index_fields
(call
(attribute
(identifier_self) identifier_self
(identifier_get_meta_option) identifier_get_meta_option
)attribute
(argument_list
(string_'index') string_'index'
(list
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_index_fields) identifier_index_fields
(block
(return_statement
(identifier_index_fields) identifier_index_fields
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_model_serializer_meta) identifier_model_serializer_meta
)attribute
(string_'model') string_'model'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_model) identifier_model
(block
(expression_statement
(assignment
(identifier_pk_name) identifier_pk_name
(attribute
(attribute
(attribute
(identifier_model) identifier_model
(identifier__meta) identifier__meta
)attribute
(identifier_pk) identifier_pk
)attribute
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pk_name) identifier_pk_name
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_child) identifier_child
)attribute
(identifier_get_fields) identifier_get_fields
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(list
(identifier_pk_name) identifier_pk_name
)list
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(list
)list
)return_statement
)block
)function_definition
)module | List of fields to use for index |
(module
(function_definition
(function_name__split_dict) function_name__split_dict
(parameters
(identifier_dic) identifier_dic
)parameters
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_dic) identifier_dic
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_keys) identifier_keys
(list_comprehension
(subscript
(identifier_dic) identifier_dic
(identifier_k) identifier_k
)subscript
(for_in_clause
(identifier_k) identifier_k
(identifier_keys) identifier_keys
)for_in_clause
)list_comprehension
)expression_list
)return_statement
)block
)function_definition
)module | Split dict into sorted keys and values
>>> _split_dict({'b': 2, 'a': 1})
(['a', 'b'], [1, 2]) |
(module
(function_definition
(function_name_cd) function_name_cd
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_subpaths) identifier_subpaths
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_target) identifier_target
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(list_splat
(identifier_subpaths) identifier_subpaths
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Change the current working directory and update all the paths in the
workspace. This is useful for commands that have to be run from a
certain directory. |
(module
(function_definition
(function_name_pretty_print) function_name_pretty_print
(parameters
(identifier_session) identifier_session
(identifier_feed) identifier_feed
)parameters
(block
(if_statement
(comparison_operator
(identifier_feed) identifier_feed
(attribute
(identifier_session) identifier_session
(identifier_feeds) identifier_feeds
)attribute
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_feed_info) identifier_feed_info
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_session) identifier_session
(identifier_data_dir) identifier_data_dir
)attribute
(identifier_feed) identifier_feed
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_entrylinks) identifier_entrylinks
(identifier_linkdates) identifier_linkdates
)pattern_list
(call
(identifier_parse_feed_info) identifier_parse_feed_info
(argument_list
(identifier_feed_info) identifier_feed_info
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_feed) identifier_feed
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"-") string_"-"
(call
(identifier_len) identifier_len
(argument_list
(identifier_feed) identifier_feed
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list
(string_" url: ") string_" url: "
(subscript
(subscript
(attribute
(identifier_session) identifier_session
(identifier_feeds) identifier_feeds
)attribute
(identifier_feed) identifier_feed
)subscript
(string_"url") string_"url"
)subscript
)list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_linkdates) identifier_linkdates
(list
)list
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list
(string_" Next sync will download from: ") string_" Next sync will download from: "
(call
(attribute
(identifier_time) identifier_time
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(string_"%d %b %Y %H:%M:%S") string_"%d %b %Y %H:%M:%S"
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(identifier_linkdates) identifier_linkdates
)argument_list
)call
)argument_list
)call
)argument_list
)call
(string_".") string_"."
)list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"You don't have a feed called {}.") string_"You don't have a feed called {}."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_feed) identifier_feed
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
(keyword_argument
(identifier_flush) identifier_flush
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Print the dictionary entry of a feed in a nice way. |
(module
(function_definition
(function_name__batch_key) function_name__batch_key
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
)parameters
(block
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(binary_operator
(string_'%s%s') string_'%s%s'
(tuple
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple
)binary_operator
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_query) identifier_query
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a unique id from a query. |
(module
(function_definition
(function_name_bandpass) function_name_bandpass
(parameters
(identifier_data) identifier_data
(identifier_freqmin) identifier_freqmin
(identifier_freqmax) identifier_freqmax
(identifier_df) identifier_df
(default_parameter
(identifier_corners) identifier_corners
(integer_4) integer_4
)default_parameter
(default_parameter
(identifier_zerophase) identifier_zerophase
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_fe) identifier_fe
(binary_operator
(float_0.5) float_0.5
(identifier_df) identifier_df
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_low) identifier_low
(binary_operator
(identifier_freqmin) identifier_freqmin
(identifier_fe) identifier_fe
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_high) identifier_high
(binary_operator
(identifier_freqmax) identifier_freqmax
(identifier_fe) identifier_fe
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_high) identifier_high
(float_1.0) float_1.0
)binary_operator
(unary_operator
(float_1e-6) float_1e-6
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(parenthesized_expression
(concatenated_string
(string_"Selected high corner frequency ({}) of bandpass is at or ") string_"Selected high corner frequency ({}) of bandpass is at or "
(string_"above Nyquist ({}). Applying a high-pass instead.") string_"above Nyquist ({}). Applying a high-pass instead."
)concatenated_string
)parenthesized_expression
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_freqmax) identifier_freqmax
(identifier_fe) identifier_fe
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_highpass) identifier_highpass
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_freq) identifier_freq
(identifier_freqmin) identifier_freqmin
)keyword_argument
(keyword_argument
(identifier_df) identifier_df
(identifier_df) identifier_df
)keyword_argument
(keyword_argument
(identifier_corners) identifier_corners
(identifier_corners) identifier_corners
)keyword_argument
(keyword_argument
(identifier_zerophase) identifier_zerophase
(identifier_zerophase) identifier_zerophase
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_low) identifier_low
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_"Selected low corner frequency is above Nyquist.") string_"Selected low corner frequency is above Nyquist."
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_z) identifier_z
(identifier_p) identifier_p
(identifier_k) identifier_k
)pattern_list
(call
(identifier_iirfilter) identifier_iirfilter
(argument_list
(identifier_corners) identifier_corners
(list
(identifier_low) identifier_low
(identifier_high) identifier_high
)list
(keyword_argument
(identifier_btype) identifier_btype
(string_'band') string_'band'
)keyword_argument
(keyword_argument
(identifier_ftype) identifier_ftype
(string_'butter') string_'butter'
)keyword_argument
(keyword_argument
(identifier_output) identifier_output
(string_'zpk') string_'zpk'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sos) identifier_sos
(call
(identifier_zpk2sos) identifier_zpk2sos
(argument_list
(identifier_z) identifier_z
(identifier_p) identifier_p
(identifier_k) identifier_k
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_zerophase) identifier_zerophase
(block
(expression_statement
(assignment
(identifier_firstpass) identifier_firstpass
(call
(identifier_sosfilt) identifier_sosfilt
(argument_list
(identifier_sos) identifier_sos
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(call
(identifier_sosfilt) identifier_sosfilt
(argument_list
(identifier_sos) identifier_sos
(subscript
(identifier_firstpass) identifier_firstpass
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_sosfilt) identifier_sosfilt
(argument_list
(identifier_sos) identifier_sos
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Butterworth-Bandpass Filter.
Filter data from ``freqmin`` to ``freqmax`` using ``corners``
corners.
The filter uses :func:`scipy.signal.iirfilter` (for design)
and :func:`scipy.signal.sosfilt` (for applying the filter).
:type data: numpy.ndarray
:param data: Data to filter.
:param freqmin: Pass band low corner frequency.
:param freqmax: Pass band high corner frequency.
:param df: Sampling rate in Hz.
:param corners: Filter corners / order.
:param zerophase: If True, apply filter once forwards and once backwards.
This results in twice the filter order but zero phase shift in
the resulting filtered trace.
:return: Filtered data. |
(module
(function_definition
(function_name_sync_client) function_name_sync_client
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__sync_client) identifier__sync_client
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__sync_client) identifier__sync_client
)attribute
(call
(identifier_AlfSyncClient) identifier_AlfSyncClient
(argument_list
(keyword_argument
(identifier_token_endpoint) identifier_token_endpoint
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'OAUTH_TOKEN_ENDPOINT') string_'OAUTH_TOKEN_ENDPOINT'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_client_id) identifier_client_id
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'OAUTH_CLIENT_ID') string_'OAUTH_CLIENT_ID'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_client_secret) identifier_client_secret
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'OAUTH_CLIENT_SECRET') string_'OAUTH_CLIENT_SECRET'
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__sync_client) identifier__sync_client
)attribute
)return_statement
)block
)function_definition
)module | Synchronous OAuth 2.0 Bearer client |
(module
(function_definition
(function_name_delete_row) function_name_delete_row
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_keyValue) identifier_keyValue
(None) None
)default_parameter
(default_parameter
(identifier_table) identifier_table
(None) None
)default_parameter
(default_parameter
(identifier_verbose) identifier_verbose
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_PARAMS) identifier_PARAMS
(call
(identifier_set_param) identifier_set_param
(argument_list
(list
(string_'keyValue') string_'keyValue'
(string_'table') string_'table'
)list
(list
(identifier_keyValue) identifier_keyValue
(identifier_table) identifier_table
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_api) identifier_api
(argument_list
(keyword_argument
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier___url) identifier___url
)attribute
(string_"/delete row") string_"/delete row"
)binary_operator
)keyword_argument
(keyword_argument
(identifier_PARAMS) identifier_PARAMS
(identifier_PARAMS) identifier_PARAMS
)keyword_argument
(keyword_argument
(identifier_method) identifier_method
(string_"POST") string_"POST"
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(identifier_verbose) identifier_verbose
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Deletes a row from a table.Requires the table name or SUID and the row key.
:param keyValue (string): Specifies the primary key of a value in the row o
f a table
:param table (string, optional): Specifies a table by table name. If the pr
efix SUID: is used, the table corresponding the SUID will be returne
d. |
(module
(function_definition
(function_name_BuildServiceStub) function_name_BuildServiceStub
(parameters
(identifier_self) identifier_self
(identifier_cls) identifier_cls
)parameters
(block
(function_definition
(function_name__ServiceStubInit) function_name__ServiceStubInit
(parameters
(identifier_stub) identifier_stub
(identifier_rpc_channel) identifier_rpc_channel
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_stub) identifier_stub
(identifier_rpc_channel) identifier_rpc_channel
)attribute
(identifier_rpc_channel) identifier_rpc_channel
)assignment
)expression_statement
)block
)function_definition
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_cls) identifier_cls
)attribute
(identifier_cls) identifier_cls
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier___init__) identifier___init__
)attribute
(identifier__ServiceStubInit) identifier__ServiceStubInit
)assignment
)expression_statement
(for_statement
(identifier_method) identifier_method
(attribute
(attribute
(identifier_self) identifier_self
(identifier_descriptor) identifier_descriptor
)attribute
(identifier_methods) identifier_methods
)attribute
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_cls) identifier_cls
(attribute
(identifier_method) identifier_method
(identifier_name) identifier_name
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__GenerateStubMethod) identifier__GenerateStubMethod
)attribute
(argument_list
(identifier_method) identifier_method
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Constructs the stub class.
Args:
cls: The class that will be constructed. |
(module
(function_definition
(function_name_create_all) function_name_create_all
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_checkfirst) identifier_checkfirst
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
(identifier_metadata) identifier_metadata
)attribute
(identifier_create_all) identifier_create_all
)attribute
(argument_list
(keyword_argument
(identifier_bind) identifier_bind
(attribute
(identifier_self) identifier_self
(identifier_engine) identifier_engine
)attribute
)keyword_argument
(keyword_argument
(identifier_checkfirst) identifier_checkfirst
(identifier_checkfirst) identifier_checkfirst
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create the PyBEL cache's database and tables.
:param checkfirst: Check if the database exists before trying to re-make it |
(module
(function_definition
(function_name_app_evaluation_count) function_name_app_evaluation_count
(parameters
(identifier_app_id) identifier_app_id
(default_parameter
(identifier_value) identifier_value
(integer_1) integer_1
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_TabEvaluation) identifier_TabEvaluation
(identifier_select) identifier_select
)attribute
(argument_list
)argument_list
)call
(identifier_where) identifier_where
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_TabEvaluation) identifier_TabEvaluation
(identifier_post_id) identifier_post_id
)attribute
(identifier_app_id) identifier_app_id
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(attribute
(identifier_TabEvaluation) identifier_TabEvaluation
(identifier_value) identifier_value
)attribute
(identifier_value) identifier_value
)comparison_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
(identifier_count) identifier_count
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the Evalution sum. |
(module
(function_definition
(function_name_get_header) function_name_get_header
(parameters
(identifier_self) identifier_self
(identifier_header_name) identifier_header_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_header_name) identifier_header_name
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
(identifier_header_name) identifier_header_name
)subscript
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_header_name) identifier_add_header_name
)attribute
(argument_list
(identifier_header_name) identifier_header_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a header with that name, creates it if it does not exist. |
(module
(function_definition
(function_name__flush_puts) function_name__flush_puts
(parameters
(identifier_self) identifier_self
(identifier_items) identifier_items
(identifier_options) identifier_options
)parameters
(block
(expression_statement
(call
(attribute
(identifier_datastore) identifier_datastore
(identifier_Put) identifier_Put
)attribute
(argument_list
(identifier_items) identifier_items
(keyword_argument
(identifier_config) identifier_config
(call
(attribute
(identifier_self) identifier_self
(identifier__create_config) identifier__create_config
)attribute
(argument_list
(identifier_options) identifier_options
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Flush all puts to datastore. |
(module
(function_definition
(function_name_specialize) function_name_specialize
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(expression_statement
(assignment
(identifier_new_nodes) identifier_new_nodes
(call
(attribute
(identifier__curve_helpers) identifier__curve_helpers
(identifier_specialize_curve) identifier_specialize_curve
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__nodes) identifier__nodes
)attribute
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Curve) identifier_Curve
(argument_list
(identifier_new_nodes) identifier_new_nodes
(attribute
(identifier_self) identifier_self
(identifier__degree) identifier__degree
)attribute
(keyword_argument
(identifier__copy) identifier__copy
(False) False
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Specialize the curve to a given sub-interval.
.. image:: ../../images/curve_specialize.png
:align: center
.. doctest:: curve-specialize
>>> nodes = np.asfortranarray([
... [0.0, 0.5, 1.0],
... [0.0, 1.0, 0.0],
... ])
>>> curve = bezier.Curve(nodes, degree=2)
>>> new_curve = curve.specialize(-0.25, 0.75)
>>> new_curve.nodes
array([[-0.25 , 0.25 , 0.75 ],
[-0.625, 0.875, 0.375]])
.. testcleanup:: curve-specialize
import make_images
make_images.curve_specialize(curve, new_curve)
This is generalized version of :meth:`subdivide`, and can even
match the output of that method:
.. testsetup:: curve-specialize2
import numpy as np
import bezier
nodes = np.asfortranarray([
[0.0, 0.5, 1.0],
[0.0, 1.0, 0.0],
])
curve = bezier.Curve(nodes, degree=2)
.. doctest:: curve-specialize2
>>> left, right = curve.subdivide()
>>> also_left = curve.specialize(0.0, 0.5)
>>> np.all(also_left.nodes == left.nodes)
True
>>> also_right = curve.specialize(0.5, 1.0)
>>> np.all(also_right.nodes == right.nodes)
True
Args:
start (float): The start point of the interval we
are specializing to.
end (float): The end point of the interval we
are specializing to.
Returns:
Curve: The newly-specialized curve. |
(module
(function_definition
(function_name_search_series) function_name_search_series
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_imdb_id) identifier_imdb_id
(None) None
)default_parameter
(default_parameter
(identifier_zap2it_id) identifier_zap2it_id
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_optional_parameters) identifier_optional_parameters
(dictionary
(pair
(string_'name') string_'name'
(string_'name') string_'name'
)pair
(pair
(string_'imdb_id') string_'imdb_id'
(string_'imdbId') string_'imdbId'
)pair
(pair
(string_'zap2it_id') string_'zap2it_id'
(string_'zap2itId') string_'zap2itId'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query_string) identifier_query_string
(call
(attribute
(identifier_utils) identifier_utils
(identifier_query_param_string_from_option_args) identifier_query_param_string_from_option_args
)attribute
(argument_list
(identifier_optional_parameters) identifier_optional_parameters
(identifier_arguments) identifier_arguments
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_raw_response) identifier_raw_response
(call
(attribute
(identifier_requests_util) identifier_requests_util
(identifier_run_request) identifier_run_request
)attribute
(argument_list
(string_'get') string_'get'
(binary_operator
(string_'%s%s?%s') string_'%s%s?%s'
(tuple
(attribute
(identifier_self) identifier_self
(identifier_API_BASE_URL) identifier_API_BASE_URL
)attribute
(string_'/search/series') string_'/search/series'
(identifier_query_string) identifier_query_string
)tuple
)binary_operator
(keyword_argument
(identifier_headers) identifier_headers
(call
(attribute
(identifier_self) identifier_self
(identifier___get_header_with_auth) identifier___get_header_with_auth
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_raw_response) identifier_parse_raw_response
)attribute
(argument_list
(identifier_raw_response) identifier_raw_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | Searchs for a series in TheTVDB by either its name, imdb_id or zap2it_id.
:param name: the name of the series to look for
:param imdb_id: the IMDB id of the series to look for
:param zap2it_id: the zap2it id of the series to look for.
:return: a python dictionary with either the result of the search or an error from TheTVDB. |
(module
(function_definition
(function_name_evaluate) function_name_evaluate
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_condition) identifier_condition
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_terms) identifier_terms
)attribute
(identifier_prune) identifier_prune
)attribute
(argument_list
(identifier_ConditionBinOp) identifier_ConditionBinOp
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"cannot process expression [{expr}], [{slf}] ") string_"cannot process expression [{expr}], [{slf}] "
(string_"is not a valid condition") string_"is not a valid condition"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_expr) identifier_expr
(attribute
(identifier_self) identifier_self
(identifier_expr) identifier_expr
)attribute
)keyword_argument
(keyword_argument
(identifier_slf) identifier_slf
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_filter) identifier_filter
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_terms) identifier_terms
)attribute
(identifier_prune) identifier_prune
)attribute
(argument_list
(identifier_FilterBinOp) identifier_FilterBinOp
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"cannot process expression [{expr}], [{slf}] ") string_"cannot process expression [{expr}], [{slf}] "
(string_"is not a valid filter") string_"is not a valid filter"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_expr) identifier_expr
(attribute
(identifier_self) identifier_self
(identifier_expr) identifier_expr
)attribute
)keyword_argument
(keyword_argument
(identifier_slf) identifier_slf
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(attribute
(identifier_self) identifier_self
(identifier_condition) identifier_condition
)attribute
(attribute
(identifier_self) identifier_self
(identifier_filter) identifier_filter
)attribute
)expression_list
)return_statement
)block
)function_definition
)module | create and return the numexpr condition and filter |
(module
(function_definition
(function_name__is_declaration) function_name__is_declaration
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(tuple
(identifier_classmethod) identifier_classmethod
(identifier_staticmethod) identifier_staticmethod
)tuple
)argument_list
)call
(block
(return_statement
(False) False
)return_statement
)block
(elif_clause
(call
(attribute
(identifier_enums) identifier_enums
(identifier_get_builder_phase) identifier_get_builder_phase
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(not_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"_") string_"_"
)argument_list
)call
)not_operator
)return_statement
)block
)function_definition
)module | Determines if a class attribute is a field value declaration.
Based on the name and value of the class attribute, return ``True`` if
it looks like a declaration of a default field value, ``False`` if it
is private (name starts with '_') or a classmethod or staticmethod. |
(module
(function_definition
(function_name_replace_more_comments) function_name_replace_more_comments
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(integer_32) integer_32
)default_parameter
(default_parameter
(identifier_threshold) identifier_threshold
(integer_1) integer_1
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__replaced_more) identifier__replaced_more
)attribute
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_remaining) identifier_remaining
(identifier_limit) identifier_limit
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_more_comments) identifier_more_comments
(call
(attribute
(identifier_self) identifier_self
(identifier__extract_more_comments) identifier__extract_more_comments
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_comments) identifier_comments
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_skipped) identifier_skipped
(list
)list
)assignment
)expression_statement
(while_statement
(identifier_more_comments) identifier_more_comments
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(identifier_heappop) identifier_heappop
(argument_list
(identifier_more_comments) identifier_more_comments
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_remaining) identifier_remaining
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(identifier_heappush) identifier_heappush
(argument_list
(identifier_more_comments) identifier_more_comments
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_item) identifier_item
(identifier_children) identifier_children
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(comparison_operator
(integer_0) integer_0
(attribute
(identifier_item) identifier_item
(identifier_count) identifier_count
)attribute
(identifier_threshold) identifier_threshold
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_heappush) identifier_heappush
(argument_list
(identifier_skipped) identifier_skipped
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_new_comments) identifier_new_comments
(call
(attribute
(identifier_item) identifier_item
(identifier_comments) identifier_comments
)attribute
(argument_list
(keyword_argument
(identifier_update) identifier_update
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_new_comments) identifier_new_comments
(None) None
)comparison_operator
(comparison_operator
(identifier_remaining) identifier_remaining
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_remaining) identifier_remaining
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_new_comments) identifier_new_comments
(None) None
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)elif_clause
)if_statement
(for_statement
(identifier_more) identifier_more
(call
(attribute
(identifier_self) identifier_self
(identifier__extract_more_comments) identifier__extract_more_comments
)attribute
(argument_list
(identifier_new_comments) identifier_new_comments
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_more) identifier_more
(identifier__update_submission) identifier__update_submission
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_heappush) identifier_heappush
(argument_list
(identifier_more_comments) identifier_more_comments
(identifier_more) identifier_more
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_comment) identifier_comment
(identifier_new_comments) identifier_new_comments
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__insert_comment) identifier__insert_comment
)attribute
(argument_list
(identifier_comment) identifier_comment
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)while_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__replaced_more) identifier__replaced_more
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_more_comments) identifier_more_comments
(identifier_skipped) identifier_skipped
)binary_operator
)return_statement
)block
)function_definition
)module | Update the comment tree by replacing instances of MoreComments.
:param limit: The maximum number of MoreComments objects to
replace. Each replacement requires 1 API request. Set to None to
have no limit, or to 0 to make no extra requests. Default: 32
:param threshold: The minimum number of children comments a
MoreComments object must have in order to be replaced. Default: 1
:returns: A list of MoreComments objects that were not replaced.
Note that after making this call, the `comments` attribute of the
submission will no longer contain any MoreComments objects. Items that
weren't replaced are still removed from the tree, and will be included
in the returned list. |
(module
(function_definition
(function_name_would_move_be_promotion) function_name_would_move_be_promotion
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(boolean_operator
(identifier_location) identifier_location
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
)boolean_operator
)assignment
)expression_statement
(return_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_location) identifier_location
(identifier_rank) identifier_rank
)attribute
(integer_1) integer_1
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(attribute
(identifier_color) identifier_color
(identifier_black) identifier_black
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_location) identifier_location
(identifier_rank) identifier_rank
)attribute
(integer_6) integer_6
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(attribute
(identifier_color) identifier_color
(identifier_white) identifier_white
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)return_statement
)block
)function_definition
)module | Finds if move from current get_location would result in promotion
:type: location: Location
:rtype: bool |
(module
(function_definition
(function_name_auto_install) function_name_auto_install
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_property_name) identifier_property_name
(string_'auto_install') string_'auto_install'
)keyword_argument
(keyword_argument
(identifier_environment_variable) identifier_environment_variable
(string_'PIP_ACCEL_AUTO_INSTALL') string_'PIP_ACCEL_AUTO_INSTALL'
)keyword_argument
(keyword_argument
(identifier_configuration_option) identifier_configuration_option
(string_'auto-install') string_'auto-install'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_coerce_boolean) identifier_coerce_boolean
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Whether automatic installation of missing system packages is enabled.
:data:`True` if automatic installation of missing system packages is
enabled, :data:`False` if it is disabled, :data:`None` otherwise (in this case
the user will be prompted at the appropriate time).
- Environment variable: ``$PIP_ACCEL_AUTO_INSTALL`` (refer to
:func:`~humanfriendly.coerce_boolean()` for details on how the
value of the environment variable is interpreted)
- Configuration option: ``auto-install`` (also parsed using
:func:`~humanfriendly.coerce_boolean()`)
- Default: :data:`None` |
(module
(function_definition
(function_name__le_annot_parms) function_name__le_annot_parms
(parameters
(identifier_self) identifier_self
(identifier_annot) identifier_annot
(identifier_p1) identifier_p1
(identifier_p2) identifier_p2
)parameters
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(subscript
(attribute
(identifier_annot) identifier_annot
(identifier_border) identifier_border
)attribute
(string_"width") string_"width"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sc) identifier_sc
(subscript
(attribute
(identifier_annot) identifier_annot
(identifier_colors) identifier_colors
)attribute
(string_"stroke") string_"stroke"
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_sc) identifier_sc
)not_operator
(block
(expression_statement
(assignment
(identifier_sc) identifier_sc
(tuple
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
)tuple
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_scol) identifier_scol
(binary_operator
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_str) identifier_str
(identifier_sc) identifier_sc
)argument_list
)call
)argument_list
)call
(string_" RG\n") string_" RG\n"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fc) identifier_fc
(subscript
(attribute
(identifier_annot) identifier_annot
(identifier_colors) identifier_colors
)attribute
(string_"fill") string_"fill"
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_fc) identifier_fc
)not_operator
(block
(expression_statement
(assignment
(identifier_fc) identifier_fc
(tuple
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
)tuple
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_fcol) identifier_fcol
(binary_operator
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_str) identifier_str
(identifier_fc) identifier_fc
)argument_list
)call
)argument_list
)call
(string_" rg\n") string_" rg\n"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nr) identifier_nr
(attribute
(identifier_annot) identifier_annot
(identifier_rect) identifier_rect
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_np1) identifier_np1
(identifier_p1) identifier_p1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_np2) identifier_np2
(identifier_p2) identifier_p2
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_self) identifier_self
(identifier__hor_matrix) identifier__hor_matrix
)attribute
(argument_list
(identifier_np1) identifier_np1
(identifier_np2) identifier_np2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_im) identifier_im
(unary_operator
(identifier_m) identifier_m
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_L) identifier_L
(binary_operator
(identifier_np1) identifier_np1
(identifier_m) identifier_m
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_R) identifier_R
(binary_operator
(identifier_np2) identifier_np2
(identifier_m) identifier_m
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(integer_0) integer_0
(attribute
(identifier_annot) identifier_annot
(identifier_opacity) identifier_opacity
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_opacity) identifier_opacity
(string_"/Alp0 gs\n") string_"/Alp0 gs\n"
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_opacity) identifier_opacity
(string_"") string_""
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_m) identifier_m
(identifier_im) identifier_im
(identifier_L) identifier_L
(identifier_R) identifier_R
(identifier_w) identifier_w
(identifier_scol) identifier_scol
(identifier_fcol) identifier_fcol
(identifier_opacity) identifier_opacity
)expression_list
)return_statement
)block
)function_definition
)module | Get common parameters for making line end symbols. |
(module
(function_definition
(function_name_write_json_corpus) function_name_write_json_corpus
(parameters
(identifier_documents) identifier_documents
(identifier_fnm) identifier_fnm
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_fnm) identifier_fnm
(string_'wb') string_'wb'
(string_'ascii') string_'ascii'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_document) identifier_document
(identifier_documents) identifier_documents
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_document) identifier_document
)argument_list
)call
(string_'\n') string_'\n'
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(return_statement
(identifier_documents) identifier_documents
)return_statement
)block
)function_definition
)module | Write a lisst of Text instances as JSON corpus on disk.
A JSON corpus contains one document per line, encoded in JSON.
Parameters
----------
documents: iterable of estnltk.text.Text
The documents of the corpus
fnm: str
The path to save the corpus. |
(module
(function_definition
(function_name_route_election) function_name_route_election
(parameters
(identifier_self) identifier_self
(identifier_election) identifier_election
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_election) identifier_election
(identifier_election_type) identifier_election_type
)attribute
(identifier_slug) identifier_slug
)attribute
(attribute
(identifier_ElectionType) identifier_ElectionType
(identifier_GENERAL) identifier_GENERAL
)attribute
)comparison_operator
(attribute
(identifier_ElectionType) identifier_ElectionType
(identifier_GENERAL_RUNOFF) identifier_GENERAL_RUNOFF
)attribute
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bootstrap_general_election) identifier_bootstrap_general_election
)attribute
(argument_list
(identifier_election) identifier_election
)argument_list
)call
)expression_statement
)block
(elif_clause
(attribute
(attribute
(identifier_election) identifier_election
(identifier_race) identifier_race
)attribute
(identifier_special) identifier_special
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bootstrap_special_election) identifier_bootstrap_special_election
)attribute
(argument_list
(identifier_election) identifier_election
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(attribute
(attribute
(attribute
(identifier_election) identifier_election
(identifier_race) identifier_race
)attribute
(identifier_office) identifier_office
)attribute
(identifier_is_executive) identifier_is_executive
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bootstrap_executive_office) identifier_bootstrap_executive_office
)attribute
(argument_list
(identifier_election) identifier_election
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_bootstrap_legislative_office) identifier_bootstrap_legislative_office
)attribute
(argument_list
(identifier_election) identifier_election
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Legislative or executive office? |
(module
(function_definition
(function_name_calc_radius) function_name_calc_radius
(parameters
(identifier_latitude) identifier_latitude
(default_parameter
(identifier_ellipsoid) identifier_ellipsoid
(string_'WGS84') string_'WGS84'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ellipsoids) identifier_ellipsoids
(dictionary
(pair
(string_'Airy (1830)') string_'Airy (1830)'
(tuple
(float_6377.563) float_6377.563
(float_6356.257) float_6356.257
)tuple
)pair
(pair
(string_'Bessel') string_'Bessel'
(tuple
(float_6377.397) float_6377.397
(float_6356.079) float_6356.079
)tuple
)pair
(pair
(string_'Clarke (1880)') string_'Clarke (1880)'
(tuple
(float_6378.249145) float_6378.249145
(float_6356.51486955) float_6356.51486955
)tuple
)pair
(pair
(string_'FAI sphere') string_'FAI sphere'
(tuple
(integer_6371) integer_6371
(integer_6371) integer_6371
)tuple
)pair
(pair
(string_'GRS-67') string_'GRS-67'
(tuple
(float_6378.160) float_6378.160
(float_6356.775) float_6356.775
)tuple
)pair
(pair
(string_'International') string_'International'
(tuple
(float_6378.388) float_6378.388
(float_6356.912) float_6356.912
)tuple
)pair
(pair
(string_'Krasovsky') string_'Krasovsky'
(tuple
(float_6378.245) float_6378.245
(float_6356.863) float_6356.863
)tuple
)pair
(pair
(string_'NAD27') string_'NAD27'
(tuple
(float_6378.206) float_6378.206
(float_6356.584) float_6356.584
)tuple
)pair
(pair
(string_'WGS66') string_'WGS66'
(tuple
(float_6378.145) float_6378.145
(float_6356.758) float_6356.758
)tuple
)pair
(pair
(string_'WGS72') string_'WGS72'
(tuple
(float_6378.135) float_6378.135
(float_6356.751) float_6356.751
)tuple
)pair
(pair
(string_'WGS84') string_'WGS84'
(tuple
(float_6378.137) float_6378.137
(float_6356.752) float_6356.752
)tuple
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_major) identifier_major
(identifier_minor) identifier_minor
)pattern_list
(subscript
(identifier_ellipsoids) identifier_ellipsoids
(identifier_ellipsoid) identifier_ellipsoid
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_eccentricity) identifier_eccentricity
(binary_operator
(integer_1) integer_1
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_minor) identifier_minor
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_major) identifier_major
(integer_2) integer_2
)binary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sl) identifier_sl
(call
(attribute
(identifier_math) identifier_math
(identifier_sin) identifier_sin
)attribute
(argument_list
(call
(attribute
(identifier_math) identifier_math
(identifier_radians) identifier_radians
)attribute
(argument_list
(identifier_latitude) identifier_latitude
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_major) identifier_major
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_eccentricity) identifier_eccentricity
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(binary_operator
(identifier_eccentricity) identifier_eccentricity
(binary_operator
(identifier_sl) identifier_sl
(integer_2) integer_2
)binary_operator
)binary_operator
)binary_operator
)parenthesized_expression
(float_1.5) float_1.5
)binary_operator
)binary_operator
)return_statement
)block
)function_definition
)module | Calculate earth radius for a given latitude.
This function is most useful when dealing with datasets that are very
localised and require the accuracy of an ellipsoid model without the
complexity of code necessary to actually use one. The results are meant to
be used as a :data:`BODY_RADIUS` replacement when the simple geocentric
value is not good enough.
The original use for ``calc_radius`` is to set a more accurate radius value
for use with trigpointing databases that are keyed on the OSGB36 datum, but
it has been expanded to cover other ellipsoids.
Args:
latitude (float): Latitude to calculate earth radius for
ellipsoid (tuple of float): Ellipsoid model to use for calculation
Returns:
float: Approximated Earth radius at the given latitude |
(module
(function_definition
(function_name_get_declared_items) function_name_get_declared_items
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_AndroidListView) identifier_AndroidListView
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_declared_items) identifier_get_declared_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_k) identifier_k
(string_'layout') string_'layout'
)comparison_operator
(block
(expression_statement
(yield
(expression_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)expression_list
)yield
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Override to do it manually |
(module
(function_definition
(function_name_get_video_start_time) function_name_get_video_start_time
(parameters
(identifier_video_file) identifier_video_file
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_video_file) identifier_video_file
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"Error, video file {} does not exist") string_"Error, video file {} does not exist"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_video_file) identifier_video_file
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_video_end_time) identifier_video_end_time
(call
(identifier_get_video_end_time) identifier_get_video_end_time
(argument_list
(identifier_video_file) identifier_video_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_duration) identifier_duration
(call
(identifier_get_video_duration) identifier_get_video_duration
(argument_list
(identifier_video_file) identifier_video_file
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_video_end_time) identifier_video_end_time
(None) None
)comparison_operator
(comparison_operator
(identifier_duration) identifier_duration
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_video_start_time) identifier_video_start_time
(parenthesized_expression
(binary_operator
(identifier_video_end_time) identifier_video_end_time
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_seconds) identifier_seconds
(identifier_duration) identifier_duration
)keyword_argument
)argument_list
)call
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(identifier_video_start_time) identifier_video_start_time
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get start time in seconds |
(module
(function_definition
(function_name_is_serving) function_name_is_serving
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_is_serving) identifier_is_serving
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(return_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_sockets) identifier_sockets
)attribute
(None) None
)comparison_operator
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Tell whether the server is accepting new connections or shutting down. |
(module
(function_definition
(function_name_includeme) function_name_includeme
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_settings) identifier_settings
(call
(attribute
(identifier_config) identifier_config
(identifier_get_settings) identifier_get_settings
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_view_predicate) identifier_add_view_predicate
)attribute
(argument_list
(string_'last_retry_attempt') string_'last_retry_attempt'
(identifier_LastAttemptPredicate) identifier_LastAttemptPredicate
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_view_predicate) identifier_add_view_predicate
)attribute
(argument_list
(string_'retryable_error') string_'retryable_error'
(identifier_RetryableErrorPredicate) identifier_RetryableErrorPredicate
)argument_list
)call
)expression_statement
(function_definition
(function_name_register) function_name_register
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_attempts) identifier_attempts
(call
(identifier_int) identifier_int
(argument_list
(boolean_operator
(call
(attribute
(identifier_settings) identifier_settings
(identifier_get) identifier_get
)attribute
(argument_list
(string_'retry.attempts') string_'retry.attempts'
)argument_list
)call
(integer_3) integer_3
)boolean_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'retry.attempts') string_'retry.attempts'
)subscript
(identifier_attempts) identifier_attempts
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_activate_hook) identifier_activate_hook
(call
(attribute
(identifier_settings) identifier_settings
(identifier_get) identifier_get
)attribute
(argument_list
(string_'retry.activate_hook') string_'retry.activate_hook'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_activate_hook) identifier_activate_hook
(call
(attribute
(identifier_config) identifier_config
(identifier_maybe_dotted) identifier_maybe_dotted
)attribute
(argument_list
(identifier_activate_hook) identifier_activate_hook
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_policy) identifier_policy
(call
(identifier_RetryableExecutionPolicy) identifier_RetryableExecutionPolicy
(argument_list
(identifier_attempts) identifier_attempts
(keyword_argument
(identifier_activate_hook) identifier_activate_hook
(identifier_activate_hook) identifier_activate_hook
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_set_execution_policy) identifier_set_execution_policy
)attribute
(argument_list
(identifier_policy) identifier_policy
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_action) identifier_action
)attribute
(argument_list
(None) None
(identifier_register) identifier_register
(keyword_argument
(identifier_order) identifier_order
(identifier_PHASE1_CONFIG) identifier_PHASE1_CONFIG
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Activate the ``pyramid_retry`` execution policy in your application.
This will add the :func:`pyramid_retry.RetryableErrorPolicy` with
``attempts`` pulled from the ``retry.attempts`` setting.
The ``last_retry_attempt`` and ``retryable_error`` view predicates
are registered.
This should be included in your Pyramid application via
``config.include('pyramid_retry')``. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_arguments) identifier_arguments
(identifier_parser) identifier_parser
)pattern_list
(call
(identifier_parse_arguments) identifier_parse_arguments
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_store) identifier_store
(call
(identifier_RevisionStore) identifier_RevisionStore
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_"Iterating over %d items.\n") string_"Iterating over %d items.\n"
(attribute
(identifier_arguments) identifier_arguments
(identifier_number) identifier_number
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_xrange) identifier_xrange
(argument_list
(attribute
(identifier_arguments) identifier_arguments
(identifier_number) identifier_number
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(identifier_chr) identifier_chr
(argument_list
(binary_operator
(integer_65) integer_65
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_26) integer_26
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(list
(binary_operator
(identifier_key) identifier_key
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_26) integer_26
)binary_operator
)parenthesized_expression
)binary_operator
(binary_operator
(identifier_key) identifier_key
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_13) integer_13
)binary_operator
)parenthesized_expression
)binary_operator
(binary_operator
(identifier_key) identifier_key
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_5) integer_5
)binary_operator
)parenthesized_expression
)binary_operator
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_store) identifier_store
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(attribute
(identifier_arguments) identifier_arguments
(identifier_pause) identifier_pause
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_"Done!") string_"Done!"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdin) identifier_stdin
)attribute
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Run a benchmark for N items. If N is not specified, take 1,000,000 for N. |
(module
(function_definition
(function_name_get_authorization_url) function_name_get_authorization_url
(parameters
(identifier_self) identifier_self
(identifier_redirect_uri) identifier_redirect_uri
(identifier_client_id) identifier_client_id
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
(default_parameter
(identifier_scope) identifier_scope
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_options) identifier_options
)not_operator
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_scope) identifier_scope
)not_operator
(block
(expression_statement
(assignment
(identifier_scope) identifier_scope
(concatenated_string
(string_"manage_accounts,collect_payments,") string_"manage_accounts,collect_payments,"
(string_"view_user,preapprove_payments,") string_"view_user,preapprove_payments,"
(string_"manage_subscriptions,send_money") string_"manage_subscriptions,send_money"
)concatenated_string
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'scope') string_'scope'
)subscript
(identifier_scope) identifier_scope
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'redirect_uri') string_'redirect_uri'
)subscript
(identifier_redirect_uri) identifier_redirect_uri
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'client_id') string_'client_id'
)subscript
(identifier_client_id) identifier_client_id
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_browser_endpoint) identifier_browser_endpoint
)attribute
(string_'/oauth2/authorize?') string_'/oauth2/authorize?'
)binary_operator
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_urlencode) identifier_urlencode
)attribute
(argument_list
(identifier_options) identifier_options
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Returns a URL to send the user to in order to get authorization.
After getting authorization the user will return to redirect_uri.
Optionally, scope can be set to limit permissions, and the options
dict can be loaded with any combination of state, user_name
or user_email.
:param str redirect_uri: The URI to redirect to after a authorization.
:param str client_id: The client ID issued by WePay to your app.
:keyword dict options: Allows for passing additional values to the
authorize call, aside from scope, redirect_uri, and etc.
:keyword str scope: A comma-separated string of permissions. |
(module
(function_definition
(function_name_get_data_context) function_name_get_data_context
(parameters
(identifier_context_type) identifier_context_type
(identifier_options) identifier_options
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_context_type) identifier_context_type
(string_"SqlAlchemy") string_"SqlAlchemy"
)comparison_operator
(block
(return_statement
(call
(identifier_SqlAlchemyDataContext) identifier_SqlAlchemyDataContext
(argument_list
(identifier_options) identifier_options
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_context_type) identifier_context_type
(string_"PandasCSV") string_"PandasCSV"
)comparison_operator
(block
(return_statement
(call
(identifier_PandasCSVDataContext) identifier_PandasCSVDataContext
(argument_list
(identifier_options) identifier_options
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Unknown data context.") string_"Unknown data context."
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a data_context object which exposes options to list datasets and get a dataset from
that context. This is a new API in Great Expectations 0.4, and is subject to rapid change.
:param context_type: (string) one of "SqlAlchemy" or "PandasCSV"
:param options: options to be passed to the data context's connect method.
:return: a new DataContext object |
(module
(function_definition
(function_name_payments) function_name_payments
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_payments) identifier_payments
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_subscription_payments) identifier_subscription_payments
)attribute
(identifier_on) identifier_on
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(identifier_list) identifier_list
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_payments) identifier_payments
)return_statement
)block
)function_definition
)module | Return a list of payments for this subscription. |
(module
(function_definition
(function_name_create_client_for_file) function_name_create_client_for_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_is_cython) identifier_is_cython
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_create_new_client) identifier_create_new_client
)attribute
(argument_list
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
(keyword_argument
(identifier_is_cython) identifier_is_cython
(identifier_is_cython) identifier_is_cython
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_master_clients) identifier_master_clients
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(identifier_self) identifier_self
(identifier_get_current_client) identifier_get_current_client
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_client) identifier_client
(identifier_allow_rename) identifier_allow_rename
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tab_text) identifier_tab_text
(call
(attribute
(identifier_self) identifier_self
(identifier_disambiguate_fname) identifier_disambiguate_fname
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rename_client_tab) identifier_rename_client_tab
)attribute
(argument_list
(identifier_client) identifier_client
(identifier_tab_text) identifier_tab_text
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create a client to execute code related to a file. |
(module
(function_definition
(function_name_consume) function_name_consume
(parameters
(identifier_self) identifier_self
(identifier_char) identifier_char
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_"stream") string_"stream"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__stream) identifier__stream
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_"escape") string_"escape"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__escape_sequence) identifier__escape_sequence
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_"escape-lb") string_"escape-lb"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__escape_parameters) identifier__escape_parameters
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_"mode") string_"mode"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__mode) identifier__mode
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_"charset-g0") string_"charset-g0"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__charset_g0) identifier__charset_g0
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_"charset-g1") string_"charset-g1"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__charset_g1) identifier__charset_g1
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Consume a single character and advance the state as necessary. |
(module
(function_definition
(function_name__apply_properties) function_name__apply_properties
(parameters
(identifier_widget) identifier_widget
(default_parameter
(identifier_properties) identifier_properties
(dictionary
)dictionary
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_widget) identifier_widget
(identifier_hold_sync) identifier_hold_sync
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_properties) identifier_properties
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_widget) identifier_widget
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Applies the specified properties to the widget.
`properties` is a dictionary with key value pairs corresponding
to the properties to be applied to the widget. |
(module
(function_definition
(function_name_asarray) function_name_asarray
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_dtype) identifier_dtype
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_iterable) identifier_iterable
(call
(identifier_scalarasiter) identifier_scalarasiter
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_iterable) identifier_iterable
(identifier_ndarray) identifier_ndarray
)argument_list
)call
(block
(return_statement
(identifier_iterable) identifier_iterable
)return_statement
)block
(else_clause
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_iterable) identifier_iterable
(string_'__len__') string_'__len__'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_iterable) identifier_iterable
(call
(identifier_list) identifier_list
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_dtype) identifier_dtype
(identifier_object_type) identifier_object_type
)comparison_operator
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(identifier_ndarray) identifier_ndarray
(argument_list
(tuple
(call
(identifier_len) identifier_len
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)tuple
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_v) identifier_v
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_a) identifier_a
(identifier_i) identifier_i
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_a) identifier_a
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_array) identifier_array
(argument_list
(identifier_iterable) identifier_iterable
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Convert ``x`` into a ``numpy.ndarray``. |
(module
(function_definition
(function_name__css_rules_to_string) function_name__css_rules_to_string
(parameters
(identifier_self) identifier_self
(identifier_rules) identifier_rules
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_rules) identifier_rules
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(identifier_item) identifier_item
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"%s {%s}") string_"%s {%s}"
(tuple
(identifier_k) identifier_k
(call
(identifier_make_important) identifier_make_important
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(for_statement
(identifier_rule) identifier_rule
(attribute
(identifier_item) identifier_item
(identifier_cssRules) identifier_cssRules
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_rule) identifier_rule
(tuple
(attribute
(attribute
(attribute
(identifier_cssutils) identifier_cssutils
(identifier_css) identifier_css
)attribute
(identifier_csscomment) identifier_csscomment
)attribute
(identifier_CSSComment) identifier_CSSComment
)attribute
(attribute
(attribute
(attribute
(identifier_cssutils) identifier_cssutils
(identifier_css) identifier_css
)attribute
(identifier_cssunknownrule) identifier_cssunknownrule
)attribute
(identifier_CSSUnknownRule) identifier_CSSUnknownRule
)attribute
)tuple
)argument_list
)call
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_key) identifier_key
(call
(attribute
(attribute
(identifier_rule) identifier_rule
(identifier_style) identifier_style
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_rule) identifier_rule
(identifier_style) identifier_style
)attribute
(identifier_key) identifier_key
)subscript
(tuple
(call
(attribute
(attribute
(identifier_rule) identifier_rule
(identifier_style) identifier_style
)attribute
(identifier_getPropertyValue) identifier_getPropertyValue
)attribute
(argument_list
(identifier_key) identifier_key
(False) False
)argument_list
)call
(string_"!important") string_"!important"
)tuple
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_item) identifier_item
(identifier_cssText) identifier_cssText
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_"\n") string_"\n"
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_lines) identifier_lines
)argument_list
)call
)return_statement
)block
)function_definition
)module | given a list of css rules returns a css string |
(module
(function_definition
(function_name_check_array_or_list) function_name_check_array_or_list
(parameters
(identifier_input) identifier_input
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_input) identifier_input
)argument_list
)call
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_input) identifier_input
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_input) identifier_input
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Expecting input type as ndarray or list.') string_'Expecting input type as ndarray or list.'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(identifier_input) identifier_input
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_output) identifier_output
(identifier_ndim) identifier_ndim
)attribute
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Input array must have 1 dimension.') string_'Input array must have 1 dimension.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(comparison_operator
(identifier_output) identifier_output
(float_0.) float_0.
)comparison_operator
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Input array values cannot be negative.") string_"Input array values cannot be negative."
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Return 1D ndarray, if input can be converted and elements are
non-negative. |
(module
(function_definition
(function_name_http) function_name_http
(parameters
(identifier_self) identifier_self
(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
(subscript
(identifier_kwargs) identifier_kwargs
(string_'api') string_'api'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_api) identifier_api
)attribute
)assignment
)expression_statement
(return_statement
(call
(identifier_http) identifier_http
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Starts the process of building a new HTTP route linked to this API instance |
(module
(function_definition
(function_name_plotGenCost) function_name_plotGenCost
(parameters
(identifier_generators) identifier_generators
)parameters
(block
(expression_statement
(call
(identifier_figure) identifier_figure
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_plots) identifier_plots
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_generator) identifier_generator
(identifier_generators) identifier_generators
(block
(if_statement
(comparison_operator
(attribute
(identifier_generator) identifier_generator
(identifier_pcost_model) identifier_pcost_model
)attribute
(identifier_PW_LINEAR) identifier_PW_LINEAR
)comparison_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(list_comprehension
(identifier_x) identifier_x
(for_in_clause
(pattern_list
(identifier_x) identifier_x
(identifier__) identifier__
)pattern_list
(attribute
(identifier_generator) identifier_generator
(identifier_p_cost) identifier_p_cost
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(list_comprehension
(identifier_y) identifier_y
(for_in_clause
(pattern_list
(identifier__) identifier__
(identifier_y) identifier_y
)pattern_list
(attribute
(identifier_generator) identifier_generator
(identifier_p_cost) identifier_p_cost
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_generator) identifier_generator
(identifier_pcost_model) identifier_pcost_model
)attribute
(identifier_POLYNOMIAL) identifier_POLYNOMIAL
)comparison_operator
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(attribute
(identifier_scipy) identifier_scipy
(identifier_arange) identifier_arange
)attribute
(argument_list
(attribute
(identifier_generator) identifier_generator
(identifier_p_min) identifier_p_min
)attribute
(attribute
(identifier_generator) identifier_generator
(identifier_p_max) identifier_p_max
)attribute
(integer_5) integer_5
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier_scipy) identifier_scipy
(identifier_polyval) identifier_polyval
)attribute
(argument_list
(call
(attribute
(identifier_scipy) identifier_scipy
(identifier_array) identifier_array
)attribute
(argument_list
(attribute
(identifier_generator) identifier_generator
(identifier_p_cost) identifier_p_cost
)attribute
)argument_list
)call
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_plots) identifier_plots
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_plot) identifier_plot
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_xlabel) identifier_xlabel
(argument_list
(string_"P (MW)") string_"P (MW)"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_ylabel) identifier_ylabel
(argument_list
(string_"Cost ($)") string_"Cost ($)"
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier_legend) identifier_legend
(argument_list
(identifier_plots) identifier_plots
(list_comprehension
(attribute
(identifier_g) identifier_g
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_g) identifier_g
(identifier_generators) identifier_generators
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_show) identifier_show
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Plots the costs of the given generators. |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_self) identifier_self
(identifier_inputs) identifier_inputs
(identifier_context) identifier_context
(default_parameter
(identifier_inference) identifier_inference
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_decoder) identifier_decoder
)attribute
(argument_list
(identifier_inputs) identifier_inputs
(identifier_context) identifier_context
(identifier_inference) identifier_inference
)argument_list
)call
)return_statement
)block
)function_definition
)module | Applies the decoder to inputs, given the context from the encoder.
:param inputs: tensor with inputs (batch, seq_len) if 'batch_first'
else (seq_len, batch)
:param context: context from the encoder
:param inference: if True inference mode, if False training mode |
(module
(function_definition
(function_name_on_for_seconds) function_name_on_for_seconds
(parameters
(identifier_self) identifier_self
(identifier_steering) identifier_steering
(identifier_speed) identifier_speed
(identifier_seconds) identifier_seconds
(default_parameter
(identifier_brake) identifier_brake
(True) True
)default_parameter
(default_parameter
(identifier_block) identifier_block
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_left_speed) identifier_left_speed
(identifier_right_speed) identifier_right_speed
)tuple_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_get_speed_steering) identifier_get_speed_steering
)attribute
(argument_list
(identifier_steering) identifier_steering
(identifier_speed) identifier_speed
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_MoveTank) identifier_MoveTank
(identifier_on_for_seconds) identifier_on_for_seconds
)attribute
(argument_list
(identifier_self) identifier_self
(call
(identifier_SpeedNativeUnits) identifier_SpeedNativeUnits
(argument_list
(identifier_left_speed) identifier_left_speed
)argument_list
)call
(call
(identifier_SpeedNativeUnits) identifier_SpeedNativeUnits
(argument_list
(identifier_right_speed) identifier_right_speed
)argument_list
)call
(identifier_seconds) identifier_seconds
(identifier_brake) identifier_brake
(identifier_block) identifier_block
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Rotate the motors according to the provided ``steering`` for ``seconds``. |
(module
(function_definition
(function_name_first_order_score) function_name_first_order_score
(parameters
(identifier_y) identifier_y
(identifier_mean) identifier_mean
(identifier_scale) identifier_scale
(identifier_shape) identifier_shape
(identifier_skewness) identifier_skewness
)parameters
(block
(expression_statement
(assignment
(identifier_m1) identifier_m1
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(identifier_shape) identifier_shape
)argument_list
)call
(call
(attribute
(identifier_sp) identifier_sp
(identifier_gamma) identifier_gamma
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_shape) identifier_shape
(float_1.0) float_1.0
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)argument_list
)call
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)argument_list
)call
(call
(attribute
(identifier_sp) identifier_sp
(identifier_gamma) identifier_gamma
)attribute
(argument_list
(binary_operator
(identifier_shape) identifier_shape
(float_2.0) float_2.0
)binary_operator
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mean) identifier_mean
(binary_operator
(identifier_mean) identifier_mean
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_skewness) identifier_skewness
(parenthesized_expression
(binary_operator
(float_1.0) float_1.0
(identifier_skewness) identifier_skewness
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
(identifier_scale) identifier_scale
)binary_operator
(identifier_m1) identifier_m1
)binary_operator
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_shape) identifier_shape
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_skewness) identifier_skewness
(identifier_scale) identifier_scale
)binary_operator
(integer_2) integer_2
)argument_list
)call
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
(integer_2) integer_2
)argument_list
)call
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_shape) identifier_shape
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(identifier_scale) identifier_scale
(integer_2) integer_2
)argument_list
)call
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_skewness) identifier_skewness
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
)binary_operator
(integer_2) integer_2
)argument_list
)call
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | GAS Skew t Update term using gradient only - native Python function
Parameters
----------
y : float
datapoint for the time series
mean : float
location parameter for the Skew t distribution
scale : float
scale parameter for the Skew t distribution
shape : float
tail thickness parameter for the Skew t distribution
skewness : float
skewness parameter for the Skew t distribution
Returns
----------
- Score of the Skew t family |
(module
(function_definition
(function_name_generate_content_encoding) function_name_generate_content_encoding
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__definition) identifier__definition
)attribute
(string_'contentEncoding') string_'contentEncoding'
)subscript
(string_'base64') string_'base64'
)comparison_operator
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'if isinstance({variable}, str):') string_'if isinstance({variable}, str):'
)argument_list
)call
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'try:') string_'try:'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'import base64') string_'import base64'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'{variable} = base64.b64decode({variable})') string_'{variable} = base64.b64decode({variable})'
)argument_list
)call
)expression_statement
)block
)with_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'except Exception:') string_'except Exception:'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'raise JsonSchemaException("{name} must be encoded by base64")') string_'raise JsonSchemaException("{name} must be encoded by base64")'
)argument_list
)call
)expression_statement
)block
)with_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'if {variable} == "":') string_'if {variable} == "":'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'raise JsonSchemaException("contentEncoding must be base64")') string_'raise JsonSchemaException("contentEncoding must be base64")'
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)with_statement
)block
)if_statement
)block
)function_definition
)module | Means decoding value when it's encoded by base64.
.. code-block:: python
{
'contentEncoding': 'base64',
} |
(module
(function_definition
(function_name_delegate) function_name_delegate
(parameters
(identifier_attribute_name) identifier_attribute_name
(identifier_method_names) identifier_method_names
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
(pair
(string_'attribute') string_'attribute'
(identifier_attribute_name) identifier_attribute_name
)pair
(pair
(string_'methods') string_'methods'
(identifier_method_names) identifier_method_names
)pair
)dictionary
)assignment
)expression_statement
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_attribute) identifier_attribute
(subscript
(identifier_info) identifier_info
(string_'attribute') string_'attribute'
)subscript
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_attribute) identifier_attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"__") string_"__"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_attribute) identifier_attribute
(binary_operator
(binary_operator
(string_"_") string_"_"
(attribute
(identifier_cls) identifier_cls
(identifier___name__) identifier___name__
)attribute
)binary_operator
(identifier_attribute) identifier_attribute
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_name) identifier_name
(subscript
(identifier_info) identifier_info
(string_'methods') string_'methods'
)subscript
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(call
(identifier_eval) identifier_eval
(argument_list
(call
(attribute
(concatenated_string
(string_"lambda self, *a, **kw: ") string_"lambda self, *a, **kw: "
(string_"self.{0}.{1}(*a, **kw)") string_"self.{0}.{1}(*a, **kw)"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_attribute) identifier_attribute
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_cls) identifier_cls
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Pass the call to the attribute called attribute_name for every method listed in method_names. |
(module
(function_definition
(function_name_get_distribution) function_name_get_distribution
(parameters
(identifier_dist) identifier_dist
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_dist) identifier_dist
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dist) identifier_dist
(call
(attribute
(identifier_Requirement) identifier_Requirement
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_dist) identifier_dist
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_dist) identifier_dist
(identifier_Requirement) identifier_Requirement
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dist) identifier_dist
(call
(identifier_get_provider) identifier_get_provider
(argument_list
(identifier_dist) identifier_dist
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_dist) identifier_dist
(identifier_Distribution) identifier_Distribution
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"Expected string, Requirement, or Distribution") string_"Expected string, Requirement, or Distribution"
(identifier_dist) identifier_dist
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_dist) identifier_dist
)return_statement
)block
)function_definition
)module | Return a current distribution object for a Requirement or string |
(module
(function_definition
(function_name_aggregate_series) function_name_aggregate_series
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(type
(identifier_InfoArray) identifier_InfoArray
)type
(block
(expression_statement
(assignment
(identifier_mode) identifier_mode
(attribute
(identifier_self) identifier_self
(identifier_aggregation_ext) identifier_aggregation_ext
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(string_'none') string_'none'
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_series) identifier_series
)attribute
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_mode) identifier_mode
(string_'mean') string_'mean'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_average_series) identifier_average_series
)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
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_'Unknown aggregation mode `%s` for sequence %s.') string_'Unknown aggregation mode `%s` for sequence %s.'
(tuple
(identifier_mode) identifier_mode
(call
(attribute
(identifier_objecttools) identifier_objecttools
(identifier_devicephrase) identifier_devicephrase
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Aggregates time series data based on the actual
|FluxSequence.aggregation_ext| attribute of |IOSequence|
subclasses.
We prepare some nodes and elements with the help of
method |prepare_io_example_1| and select a 1-dimensional
flux sequence of type |lland_fluxes.NKor| as an example:
>>> from hydpy.core.examples import prepare_io_example_1
>>> nodes, elements = prepare_io_example_1()
>>> seq = elements.element3.model.sequences.fluxes.nkor
If no |FluxSequence.aggregation_ext| is `none`, the
original time series values are returned:
>>> seq.aggregation_ext
'none'
>>> seq.aggregate_series()
InfoArray([[ 24., 25., 26.],
[ 27., 28., 29.],
[ 30., 31., 32.],
[ 33., 34., 35.]])
If no |FluxSequence.aggregation_ext| is `mean`, function
|IOSequence.aggregate_series| is called:
>>> seq.aggregation_ext = 'mean'
>>> seq.aggregate_series()
InfoArray([ 25., 28., 31., 34.])
In case the state of the sequence is invalid:
>>> seq.aggregation_ext = 'nonexistent'
>>> seq.aggregate_series()
Traceback (most recent call last):
...
RuntimeError: Unknown aggregation mode `nonexistent` for \
sequence `nkor` of element `element3`.
The following technical test confirms that all potential
positional and keyword arguments are passed properly:
>>> seq.aggregation_ext = 'mean'
>>> from unittest import mock
>>> seq.average_series = mock.MagicMock()
>>> _ = seq.aggregate_series(1, x=2)
>>> seq.average_series.assert_called_with(1, x=2) |
(module
(function_definition
(function_name_transformer_tpu_1b) function_name_transformer_tpu_1b
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_hparams) identifier_hparams
(call
(identifier_transformer_tpu) identifier_transformer_tpu
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_hidden_size) identifier_hidden_size
)attribute
(integer_2048) integer_2048
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_filter_size) identifier_filter_size
)attribute
(integer_8192) integer_8192
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_num_hidden_layers) identifier_num_hidden_layers
)attribute
(integer_8) integer_8
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_batch_size) identifier_batch_size
)attribute
(integer_1024) integer_1024
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_activation_dtype) identifier_activation_dtype
)attribute
(string_"bfloat16") string_"bfloat16"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_weight_dtype) identifier_weight_dtype
)attribute
(string_"bfloat16") string_"bfloat16"
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_hparams) identifier_hparams
(identifier_shared_embedding_and_softmax_weights) identifier_shared_embedding_and_softmax_weights
)attribute
(False) False
)assignment
)expression_statement
(return_statement
(identifier_hparams) identifier_hparams
)return_statement
)block
)function_definition
)module | Hparams for machine translation with ~1.1B parameters. |
(module
(function_definition
(function_name__handle_eor) function_name__handle_eor
(parameters
(identifier_self) identifier_self
(identifier_route_family) identifier_route_family
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Handling EOR for %s') string_'Handling EOR for %s'
(identifier_route_family) identifier_route_family
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_route_family) identifier_route_family
(identifier_RF_RTC_UC) identifier_RF_RTC_UC
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__unschedule_sending_init_updates) identifier__unschedule_sending_init_updates
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tm) identifier_tm
(attribute
(attribute
(identifier_self) identifier_self
(identifier__core_service) identifier__core_service
)attribute
(identifier_table_manager) identifier_table_manager
)attribute
)assignment
)expression_statement
(for_statement
(identifier_rt_nlri) identifier_rt_nlri
(attribute
(identifier_self) identifier_self
(identifier__init_rtc_nlri_path) identifier__init_rtc_nlri_path
)attribute
(block
(expression_statement
(call
(attribute
(identifier_tm) identifier_tm
(identifier_learn_path) identifier_learn_path
)attribute
(argument_list
(identifier_rt_nlri) identifier_rt_nlri
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pause) identifier_pause
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__init_rtc_nlri_path) identifier__init_rtc_nlri_path
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Currently we only handle EOR for RTC address-family.
We send non-rtc initial updates if not already sent. |
(module
(function_definition
(function_name_send_events) function_name_send_events
(parameters
(identifier_self) identifier_self
(identifier_events) identifier_events
)parameters
(block
(for_statement
(identifier_event) identifier_event
(identifier_events) identifier_events
(block
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(identifier_events) identifier_events
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
)argument_list
)call
(identifier_MergeFrom) identifier_MergeFrom
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Adds multiple events to the queued message
:returns: None - nothing has been sent to the Riemann server yet |
(module
(function_definition
(function_name_tx_output) function_name_tx_output
(parameters
(typed_parameter
(identifier_network) identifier_network
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_value) identifier_value
(type
(identifier_Decimal) identifier_Decimal
)type
)typed_parameter
(typed_parameter
(identifier_n) identifier_n
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_script) identifier_script
(type
(identifier_ScriptSig) identifier_ScriptSig
)type
)typed_parameter
)parameters
(type
(identifier_TxOut) identifier_TxOut
)type
(block
(expression_statement
(assignment
(identifier_network_params) identifier_network_params
(call
(identifier_net_query) identifier_net_query
(argument_list
(identifier_network) identifier_network
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_TxOut) identifier_TxOut
(argument_list
(keyword_argument
(identifier_network) identifier_network
(identifier_network_params) identifier_network_params
)keyword_argument
(keyword_argument
(identifier_value) identifier_value
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_value) identifier_value
(attribute
(identifier_network_params) identifier_network_params
(identifier_to_unit) identifier_to_unit
)attribute
)binary_operator
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_n) identifier_n
(identifier_n) identifier_n
)keyword_argument
(keyword_argument
(identifier_script_pubkey) identifier_script_pubkey
(identifier_script) identifier_script
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | create TxOut object |
(module
(function_definition
(function_name_get_message) function_name_get_message
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__message) identifier__message
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__populate_message_attributes) identifier__populate_message_attributes
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__message) identifier__message
)attribute
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__message) identifier__message
)attribute
)return_statement
)block
)function_definition
)module | Get the underlying C message from this object.
:rtype: uamqp.c_uamqp.cMessage |
(module
(function_definition
(function_name__put_many) function_name__put_many
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_items) identifier_items
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(identifier_DtoObject) identifier_DtoObject
)type
)type_parameter
)generic_type
)type
)typed_parameter
(identifier_cls) identifier_cls
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier__dto_type) identifier__dto_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier__expirations) identifier__expirations
)attribute
)comparison_operator
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__expirations) identifier__expirations
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier__dto_type) identifier__dto_type
)attribute
)subscript
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_session) identifier_session
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_items) identifier_items
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(identifier_cls) identifier_cls
(argument_list
(dictionary_splat
(identifier_item) identifier_item
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_item) identifier_item
(identifier_updated) identifier_updated
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_merge) identifier_merge
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Puts many items into the database. Updates lastUpdate column for each of them |
(module
(function_definition
(function_name__get_implied_apps) function_name__get_implied_apps
(parameters
(identifier_self) identifier_self
(identifier_detected_apps) identifier_detected_apps
)parameters
(block
(function_definition
(function_name___get_implied_apps) function_name___get_implied_apps
(parameters
(identifier_apps) identifier_apps
)parameters
(block
(expression_statement
(assignment
(identifier__implied_apps) identifier__implied_apps
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_app) identifier_app
(identifier_apps) identifier_apps
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier__implied_apps) identifier__implied_apps
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_apps) identifier_apps
)attribute
(identifier_app) identifier_app
)subscript
(string_'implies') string_'implies'
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier__implied_apps) identifier__implied_apps
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_implied_apps) identifier_implied_apps
(call
(identifier___get_implied_apps) identifier___get_implied_apps
(argument_list
(identifier_detected_apps) identifier_detected_apps
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_implied_apps) identifier_all_implied_apps
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(not_operator
(call
(attribute
(identifier_all_implied_apps) identifier_all_implied_apps
(identifier_issuperset) identifier_issuperset
)attribute
(argument_list
(identifier_implied_apps) identifier_implied_apps
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_all_implied_apps) identifier_all_implied_apps
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_implied_apps) identifier_implied_apps
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_implied_apps) identifier_implied_apps
(call
(identifier___get_implied_apps) identifier___get_implied_apps
(argument_list
(identifier_all_implied_apps) identifier_all_implied_apps
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_all_implied_apps) identifier_all_implied_apps
)return_statement
)block
)function_definition
)module | Get the set of apps implied by `detected_apps`. |
(module
(function_definition
(function_name__locate) function_name__locate
(parameters
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)parameters
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(binary_operator
(identifier_idx) identifier_idx
(attribute
(identifier_self) identifier_self
(identifier__width) identifier__width
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_idx) identifier_idx
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier__width) identifier__width
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_sbyte) identifier_sbyte
(identifier_sbit) identifier_sbit
)pattern_list
(call
(identifier_divmod) identifier_divmod
(argument_list
(identifier_start) identifier_start
(integer_8) integer_8
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ebyte) identifier_ebyte
(call
(attribute
(call
(identifier_BinInt) identifier_BinInt
(argument_list
(identifier_end) identifier_end
)argument_list
)call
(identifier_ceildiv) identifier_ceildiv
)attribute
(argument_list
(integer_8) integer_8
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_sbyte) identifier_sbyte
(identifier_sbit) identifier_sbit
(identifier_ebyte) identifier_ebyte
)expression_list
)return_statement
)block
)function_definition
)module | Locates an element in the internal data representation. Returns
starting byte index, starting bit index in the starting byte, and
one past the final byte index. |
(module
(function_definition
(function_name_shorten) function_name_shorten
(parameters
(identifier_string) identifier_string
(default_parameter
(identifier_max_length) identifier_max_length
(integer_80) integer_80
)default_parameter
(default_parameter
(identifier_trailing_chars) identifier_trailing_chars
(integer_3) integer_3
)default_parameter
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_string) identifier_string
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
(set
(string_'str') string_'str'
(string_'unicode') string_'unicode'
)set
)comparison_operator
(call
(attribute
(string_'shorten needs string to be a string, not {}') string_'shorten needs string to be a string, not {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)argument_list
)call
)assert_statement
(assert_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_max_length) identifier_max_length
)argument_list
)call
(identifier_int) identifier_int
)comparison_operator
(call
(attribute
(string_'shorten needs max_length to be an int, not {}') string_'shorten needs max_length to be an int, not {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_max_length) identifier_max_length
)argument_list
)call
)argument_list
)call
)assert_statement
(assert_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_trailing_chars) identifier_trailing_chars
)argument_list
)call
(identifier_int) identifier_int
)comparison_operator
(call
(attribute
(string_'shorten needs trailing_chars to be an int, not {}') string_'shorten needs trailing_chars to be an int, not {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_trailing_chars) identifier_trailing_chars
)argument_list
)call
)argument_list
)call
)assert_statement
(assert_statement
(comparison_operator
(identifier_max_length) identifier_max_length
(integer_0) integer_0
)comparison_operator
(call
(attribute
(string_'shorten needs max_length to be positive, not {}') string_'shorten needs max_length to be positive, not {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_max_length) identifier_max_length
)argument_list
)call
)assert_statement
(assert_statement
(comparison_operator
(identifier_trailing_chars) identifier_trailing_chars
(integer_0) integer_0
)comparison_operator
(call
(attribute
(string_'shorten needs trailing_chars to be greater than or equal to 0, not {}') string_'shorten needs trailing_chars to be greater than or equal to 0, not {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_trailing_chars) identifier_trailing_chars
)argument_list
)call
)assert_statement
(return_statement
(conditional_expression
(parenthesized_expression
(identifier_string) identifier_string
)parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_string) identifier_string
)argument_list
)call
(identifier_max_length) identifier_max_length
)comparison_operator
(parenthesized_expression
(call
(attribute
(string_'{before:}...{after:}') string_'{before:}...{after:}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_before) identifier_before
(subscript
(identifier_string) identifier_string
(slice
(colon) colon
(binary_operator
(identifier_max_length) identifier_max_length
(parenthesized_expression
(binary_operator
(identifier_trailing_chars) identifier_trailing_chars
(integer_3) integer_3
)binary_operator
)parenthesized_expression
)binary_operator
)slice
)subscript
)keyword_argument
(keyword_argument
(identifier_after) identifier_after
(conditional_expression
(subscript
(identifier_string) identifier_string
(slice
(unary_operator
(identifier_trailing_chars) identifier_trailing_chars
)unary_operator
(colon) colon
)slice
)subscript
(comparison_operator
(identifier_trailing_chars) identifier_trailing_chars
(integer_0) integer_0
)comparison_operator
(string_'') string_''
)conditional_expression
)keyword_argument
)argument_list
)call
)parenthesized_expression
)conditional_expression
)return_statement
)block
)function_definition
)module | trims the 'string' argument down to 'max_length' to make previews to long string values |
(module
(function_definition
(function_name_set_default_by_index) function_name_set_default_by_index
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(if_statement
(comparison_operator
(identifier_index) identifier_index
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__datasets) identifier__datasets
)attribute
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_DataInvalidIndex) identifier_DataInvalidIndex
(argument_list
(call
(attribute
(string_'A dataset with index {} does not exist') string_'A dataset with index {} does not exist'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__default_index) identifier__default_index
)attribute
(identifier_index) identifier_index
)assignment
)expression_statement
)block
)function_definition
)module | Set the default dataset by its index.
After changing the default dataset, all calls without explicitly specifying the
dataset by index or alias will be redirected to this dataset.
Args:
index (int): The index of the dataset that should be made the default.
Raises:
DataInvalidIndex: If the index does not represent a valid dataset. |
(module
(function_definition
(function_name_update_from_stripe_data) function_name_update_from_stripe_data
(parameters
(identifier_self) identifier_self
(identifier_stripe_coupon) identifier_stripe_coupon
(default_parameter
(identifier_exclude_fields) identifier_exclude_fields
(None) None
)default_parameter
(default_parameter
(identifier_commit) identifier_commit
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_fields_to_update) identifier_fields_to_update
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_STRIPE_FIELDS) identifier_STRIPE_FIELDS
)attribute
(call
(identifier_set) identifier_set
(argument_list
(boolean_operator
(identifier_exclude_fields) identifier_exclude_fields
(list
)list
)boolean_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_update_data) identifier_update_data
(dictionary_comprehension
(pair
(identifier_key) identifier_key
(subscript
(identifier_stripe_coupon) identifier_stripe_coupon
(identifier_key) identifier_key
)subscript
)pair
(for_in_clause
(identifier_key) identifier_key
(identifier_fields_to_update) identifier_fields_to_update
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(list
(string_"created") string_"created"
(string_"redeem_by") string_"redeem_by"
)list
(block
(if_statement
(call
(attribute
(identifier_update_data) identifier_update_data
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_update_data) identifier_update_data
(identifier_field) identifier_field
)subscript
(call
(identifier_timestamp_to_timezone_aware_date) identifier_timestamp_to_timezone_aware_date
(argument_list
(subscript
(identifier_update_data) identifier_update_data
(identifier_field) identifier_field
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(call
(attribute
(identifier_update_data) identifier_update_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_"amount_off") string_"amount_off"
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_update_data) identifier_update_data
(string_"amount_off") string_"amount_off"
)subscript
(binary_operator
(call
(identifier_Decimal) identifier_Decimal
(argument_list
(subscript
(identifier_update_data) identifier_update_data
(string_"amount_off") string_"amount_off"
)subscript
)argument_list
)call
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_update_data) identifier_update_data
)argument_list
)call
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(identifier_commit) identifier_commit
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_StripeCoupon) identifier_StripeCoupon
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_pk) identifier_pk
(attribute
(identifier_self) identifier_self
(identifier_pk) identifier_pk
)attribute
)keyword_argument
)argument_list
)call
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary_splat
(identifier_update_data) identifier_update_data
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Update StripeCoupon object with data from stripe.Coupon without calling stripe.Coupon.retrieve.
To only update the object, set the commit param to False.
Returns the number of rows altered or None if commit is False. |
(module
(function_definition
(function_name_serialize) function_name_serialize
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_private) identifier_private
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_priv_key) identifier_priv_key
)attribute
)not_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_pub_key) identifier_pub_key
)attribute
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_SerializationNotPossible) identifier_SerializationNotPossible
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_common) identifier_common
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_public_longs) identifier_public_longs
(call
(identifier_list) identifier_list
(argument_list
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_public_members) identifier_public_members
)attribute
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_longs) identifier_longs
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_param) identifier_param
(identifier_public_longs) identifier_public_longs
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_param) identifier_param
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_item) identifier_item
(block
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(identifier_param) identifier_param
)subscript
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_private) identifier_private
(block
(for_statement
(identifier_param) identifier_param
(attribute
(identifier_self) identifier_self
(identifier_longs) identifier_longs
)attribute
(block
(if_statement
(boolean_operator
(not_operator
(identifier_private) identifier_private
)not_operator
(comparison_operator
(identifier_param) identifier_param
(list
(string_"d") string_"d"
(string_"p") string_"p"
(string_"q") string_"q"
(string_"dp") string_"dp"
(string_"dq") string_"dq"
(string_"di") string_"di"
(string_"qi") string_"qi"
)list
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_param) identifier_param
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_item) identifier_item
(block
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(identifier_param) identifier_param
)subscript
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_x5c) identifier_x5c
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(string_'x5c') string_'x5c'
)subscript
(list_comprehension
(call
(attribute
(identifier_x) identifier_x
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier_x5c) identifier_x5c
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Given a cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey or
RSAPublicKey instance construct the JWK representation.
:param private: Should I do the private part or not
:return: A JWK as a dictionary |
(module
(function_definition
(function_name_get_leaf_node_path_list) function_name_get_leaf_node_path_list
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_sep) identifier_sep
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_sep) identifier_sep
)attribute
)default_parameter
(default_parameter
(identifier_type_str) identifier_type_str
(None) None
)default_parameter
)parameters
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_v) identifier_v
(identifier_get_path_str) identifier_get_path_str
)attribute
(argument_list
(identifier_sep) identifier_sep
(identifier_type_str) identifier_type_str
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(attribute
(identifier_self) identifier_self
(identifier_leaf_node_gen) identifier_leaf_node_gen
)attribute
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Get paths for all leaf nodes for the tree rooted at this node.
Args:
sep: str
One or more characters to insert between each element in the path.
Defaults to "/" on Unix and "\" on Windows.
type_str:
SUBJECT_NODE_TAG, TYPE_NODE_TAG or None. If set, only include
information from nodes of that type.
Returns:
list of str: The paths to the leaf nodes for the tree rooted at this node. |
(module
(function_definition
(function_name_get_logged_in_account) function_name_get_logged_in_account
(parameters
(default_parameter
(identifier_token_manager) identifier_token_manager
(None) None
)default_parameter
(default_parameter
(identifier_app_url) identifier_app_url
(attribute
(identifier_defaults) identifier_defaults
(identifier_APP_URL) identifier_APP_URL
)attribute
)default_parameter
)parameters
(block
(return_statement
(subscript
(call
(identifier_get_logged_in_account) identifier_get_logged_in_account
(argument_list
(keyword_argument
(identifier_token_manager) identifier_token_manager
(identifier_token_manager) identifier_token_manager
)keyword_argument
(keyword_argument
(identifier_app_url) identifier_app_url
(identifier_app_url) identifier_app_url
)keyword_argument
)argument_list
)call
(string_'id') string_'id'
)subscript
)return_statement
)block
)function_definition
)module | get the account details for logged in account of the auth token_manager |
(module
(function_definition
(function_name_Command) function_name_Command
(parameters
(identifier_self) identifier_self
(identifier_Command) identifier_Command
(default_parameter
(identifier_Reply) identifier_Reply
(string_u'') string_u''
)default_parameter
(default_parameter
(identifier_Block) identifier_Block
(False) False
)default_parameter
(default_parameter
(identifier_Timeout) identifier_Timeout
(integer_30000) integer_30000
)default_parameter
(default_parameter
(identifier_Id) identifier_Id
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_api) identifier_api
)dotted_name
(aliased_import
(dotted_name
(identifier_Command) identifier_Command
)dotted_name
(identifier_CommandClass) identifier_CommandClass
)aliased_import
)import_from_statement
(return_statement
(call
(identifier_CommandClass) identifier_CommandClass
(argument_list
(identifier_Command) identifier_Command
(identifier_Reply) identifier_Reply
(identifier_Block) identifier_Block
(identifier_Timeout) identifier_Timeout
(identifier_Id) identifier_Id
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates an API command object.
:Parameters:
Command : unicode
Command string.
Reply : unicode
Expected reply. By default any reply is accepted (except errors which raise an
`SkypeError` exception).
Block : bool
If set to True, `SendCommand` method waits for a response from Skype API before
returning.
Timeout : float, int or long
Timeout. Used if Block == True. Timeout may be expressed in milliseconds if the type
is int or long or in seconds (or fractions thereof) if the type is float.
Id : int
Command Id. The default (-1) means it will be assigned automatically as soon as the
command is sent.
:return: A command object.
:rtype: `Command`
:see: `SendCommand` |
(module
(function_definition
(function_name_pf_to_n) function_name_pf_to_n
(parameters
(identifier_L) identifier_L
(identifier_pf) identifier_pf
(identifier_R) identifier_R
)parameters
(block
(expression_statement
(assignment
(identifier_dim) identifier_dim
(subscript
(attribute
(identifier_L) identifier_L
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_round) identifier_round
(argument_list
(binary_operator
(binary_operator
(identifier_pf) identifier_pf
(call
(attribute
(identifier_np) identifier_np
(identifier_product) identifier_product
)attribute
(argument_list
(identifier_L) identifier_L
)argument_list
)call
)binary_operator
(call
(identifier_sphere_volume) identifier_sphere_volume
(argument_list
(identifier_R) identifier_R
(identifier_dim) identifier_dim
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pf_actual) identifier_pf_actual
(call
(identifier_n_to_pf) identifier_n_to_pf
(argument_list
(identifier_L) identifier_L
(identifier_n) identifier_n
(identifier_R) identifier_R
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_n) identifier_n
(identifier_pf_actual) identifier_pf_actual
)expression_list
)return_statement
)block
)function_definition
)module | Returns the number of non-intersecting spheres required to achieve
as close to a given packing fraction as possible, along with the actual
achieved packing fraction. for a number of non-intersecting spheres.
Parameters
----------
L: float array, shape (d,)
System lengths.
pf: float
Fraction of space to be occupied by the spheres.
R: float
Sphere radius.
Returns
-------
n: integer
Number of spheres required to achieve a packing fraction `pf_actual`
pf_actual:
Fraction of space occupied by `n` spheres.
This is the closest possible fraction achievable to `pf`. |
(module
(function_definition
(function_name_move_to) function_name_move_to
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_start) identifier_start
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_end) identifier_end
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_allclose) identifier_allclose
)attribute
(argument_list
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'start and end must NOT be identical') string_'start and end must NOT be identical'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_translation) identifier_translation
(identifier_angle) identifier_angle
(identifier_axis) identifier_axis
(identifier_point) identifier_point
)pattern_list
(call
(identifier_find_transformations) identifier_find_transformations
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_helix_start) identifier_helix_start
)attribute
(attribute
(identifier_self) identifier_self
(identifier_helix_end) identifier_helix_end
)attribute
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_isclose) identifier_isclose
)attribute
(argument_list
(identifier_angle) identifier_angle
(float_0.0) float_0.0
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rotate) identifier_rotate
)attribute
(argument_list
(keyword_argument
(identifier_angle) identifier_angle
(identifier_angle) identifier_angle
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(identifier_axis) identifier_axis
)keyword_argument
(keyword_argument
(identifier_point) identifier_point
(identifier_point) identifier_point
)keyword_argument
(keyword_argument
(identifier_radians) identifier_radians
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_translate) identifier_translate
)attribute
(argument_list
(keyword_argument
(identifier_vector) identifier_vector
(identifier_translation) identifier_translation
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Moves the `Polynucleotide` to lie on the `start` and `end` vector.
Parameters
----------
start : 3D Vector (tuple or list or numpy.array)
The coordinate of the start of the helix primitive.
end : 3D Vector (tuple or list or numpy.array)
The coordinate of the end of the helix primitive.
Raises
------
ValueError
Raised if `start` and `end` are very close together. |
(module
(function_definition
(function_name_try_to_restart_deads) function_name_try_to_restart_deads
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_to_restart) identifier_to_restart
(subscript
(attribute
(identifier_self) identifier_self
(identifier_to_restart) identifier_to_restart
)attribute
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_to_restart) identifier_to_restart
)attribute
(slice
(colon) colon
)slice
)subscript
)delete_statement
(for_statement
(identifier_instance) identifier_instance
(identifier_to_restart) identifier_to_restart
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Trying to restart module: %s") string_"Trying to restart module: %s"
(attribute
(identifier_instance) identifier_instance
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_try_instance_init) identifier_try_instance_init
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Restarting %s...") string_"Restarting %s..."
(attribute
(identifier_instance) identifier_instance
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_instance) identifier_instance
(identifier_process) identifier_process
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_instance) identifier_instance
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_to_restart) identifier_to_restart
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Try to reinit and restart dead instances
:return: None |
(module
(function_definition
(function_name__eval_call) function_name__eval_call
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(subscript
(attribute
(identifier_self) identifier_self
(identifier_functions) identifier_functions
)attribute
(attribute
(attribute
(identifier_node) identifier_node
(identifier_func) identifier_func
)attribute
(identifier_id) identifier_id
)attribute
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_NameError) identifier_NameError
(argument_list
(attribute
(attribute
(identifier_node) identifier_node
(identifier_func) identifier_func
)attribute
(identifier_id) identifier_id
)attribute
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(generator_expression
(call
(attribute
(identifier_self) identifier_self
(identifier__eval) identifier__eval
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(for_in_clause
(identifier_a) identifier_a
(attribute
(identifier_node) identifier_node
(identifier_args) identifier_args
)attribute
)for_in_clause
)generator_expression
)list_splat
(dictionary_splat
(call
(identifier_dict) identifier_dict
(generator_expression
(call
(attribute
(identifier_self) identifier_self
(identifier__eval) identifier__eval
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(for_in_clause
(identifier_k) identifier_k
(attribute
(identifier_node) identifier_node
(identifier_keywords) identifier_keywords
)attribute
)for_in_clause
)generator_expression
)call
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(True) True
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_value) identifier_value
(False) False
)comparison_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Evaluate a function call
:param node: Node to eval
:return: Result of node |
(module
(function_definition
(function_name_reset_ilo) function_name_reset_ilo
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_manager) identifier_manager
(identifier_reset_uri) identifier_reset_uri
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_ilo_details) identifier__get_ilo_details
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_action) identifier_action
(dictionary
(pair
(string_'Action') string_'Action'
(string_'Reset') string_'Reset'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_status) identifier_status
(identifier_headers) identifier_headers
(identifier_response) identifier_response
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__rest_post) identifier__rest_post
)attribute
(argument_list
(identifier_reset_uri) identifier_reset_uri
(None) None
(identifier_action) identifier_action
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_status) identifier_status
(integer_200) integer_200
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(identifier_self) identifier_self
(identifier__get_extended_error) identifier__get_extended_error
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_exception) identifier_exception
(identifier_IloError) identifier_IloError
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_common) identifier_common
(identifier_wait_for_ilo_after_reset) identifier_wait_for_ilo_after_reset
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Resets the iLO.
:raises: IloError, on an error from iLO.
:raises: IloConnectionError, if iLO is not up after reset.
:raises: IloCommandNotSupportedError, if the command is not supported
on the server. |
(module
(function_definition
(function_name_translate_update) function_name_translate_update
(parameters
(identifier_blob) identifier_blob
)parameters
(block
(expression_statement
(string_"converts JSON parse output to self-aware objects") string_"converts JSON parse output to self-aware objects"
)expression_statement
(return_statement
(dictionary_comprehension
(pair
(call
(identifier_translate_key) identifier_translate_key
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(call
(identifier_parse_serialdiff) identifier_parse_serialdiff
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_blob) identifier_blob
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | converts JSON parse output to self-aware objects |
(module
(function_definition
(function_name_add_file_metadata) function_name_add_file_metadata
(parameters
(identifier_self) identifier_self
(identifier_fname) identifier_fname
)parameters
(block
(expression_statement
(assignment
(identifier_file_dict) identifier_file_dict
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_file_dict) identifier_file_dict
(string_"fullfilename") string_"fullfilename"
)subscript
(identifier_fname) identifier_fname
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_file_dict) identifier_file_dict
(string_"name") string_"name"
)subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_file_dict) identifier_file_dict
(string_"date") string_"date"
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_GetDateAsString) identifier_GetDateAsString
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_file_dict) identifier_file_dict
(string_"size") string_"size"
)subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getsize) identifier_getsize
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_file_dict) identifier_file_dict
(string_"path") string_"path"
)subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Error getting metadata for file') string_'Error getting metadata for file'
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fl_metadata) identifier_fl_metadata
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_file_dict) identifier_file_dict
)argument_list
)call
)expression_statement
)block
)function_definition
)module | collects the files metadata - note that this will fail
with strange errors if network connection drops out to
shared folder, but it is better to stop the program
rather than do a try except otherwise you will get an
incomplete set of files. |
(module
(function_definition
(function_name_pull) function_name_pull
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_lock_acquired) identifier_lock_acquired
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pull_lock) identifier__pull_lock
)attribute
(identifier_acquire) identifier_acquire
)attribute
(argument_list
(keyword_argument
(identifier_blocking) identifier_blocking
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_lock_acquired) identifier_lock_acquired
)not_operator
(block
(raise_statement
(call
(identifier_PullOrderException) identifier_PullOrderException
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__results_generator) identifier__results_generator
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a generator containing the results of the next query in the pipeline |
(module
(function_definition
(function_name__qteMouseClicked) function_name__qteMouseClicked
(parameters
(identifier_self) identifier_self
(identifier_widgetObj) identifier_widgetObj
)parameters
(block
(expression_statement
(assignment
(identifier_app) identifier_app
(call
(identifier_qteGetAppletFromWidget) identifier_qteGetAppletFromWidget
(argument_list
(identifier_widgetObj) identifier_widgetObj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_app) identifier_app
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__qteActiveApplet) identifier__qteActiveApplet
)attribute
(identifier_app) identifier_app
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_widgetObj) identifier_widgetObj
(string_'_qteAdmin') string_'_qteAdmin'
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__qteActiveApplet) identifier__qteActiveApplet
)attribute
(identifier_qteMakeWidgetActive) identifier_qteMakeWidgetActive
)attribute
(argument_list
(identifier_widgetObj) identifier_widgetObj
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(if_statement
(attribute
(attribute
(identifier_app) identifier_app
(identifier__qteAdmin) identifier__qteAdmin
)attribute
(identifier_isQtmacsApplet) identifier_isQtmacsApplet
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__qteActiveApplet) identifier__qteActiveApplet
)attribute
(identifier_qteMakeWidgetActive) identifier_qteMakeWidgetActive
)attribute
(argument_list
(None) None
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__qteActiveApplet) identifier__qteActiveApplet
)attribute
(identifier_qteMakeWidgetActive) identifier_qteMakeWidgetActive
)attribute
(argument_list
(identifier_widgetObj) identifier_widgetObj
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__qteFocusManager) identifier__qteFocusManager
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update the Qtmacs internal focus state as the result of a mouse click.
|Args|
* ``new`` (**QWidget**): the widget that received the focus.
|Returns|
* **None**
|Raises|
* **None** |
(module
(function_definition
(function_name_run_cmd) function_name_run_cmd
(parameters
(identifier_command) identifier_command
(default_parameter
(identifier_verbose) identifier_verbose
(True) True
)default_parameter
(default_parameter
(identifier_shell) identifier_shell
(string_'/bin/bash') string_'/bin/bash'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_process) identifier_process
(call
(identifier_Popen) identifier_Popen
(argument_list
(identifier_command) identifier_command
(keyword_argument
(identifier_shell) identifier_shell
(True) True
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(identifier_PIPE) identifier_PIPE
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(identifier_STDOUT) identifier_STDOUT
)keyword_argument
(keyword_argument
(identifier_executable) identifier_executable
(identifier_shell) identifier_shell
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_process) identifier_process
(identifier_stdout) identifier_stdout
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_verbose) identifier_verbose
(block
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)if_statement
(return_statement
(list_comprehension
(identifier_line) identifier_line
(for_in_clause
(identifier_line) identifier_line
(identifier_output) identifier_output
)for_in_clause
(if_clause
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | internal helper function to run shell commands and get output |
(module
(function_definition
(function_name_set_root) function_name_set_root
(parameters
(identifier_self) identifier_self
(identifier_root) identifier_root
)parameters
(block
(if_statement
(comparison_operator
(identifier_root) identifier_root
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(identifier_plot) identifier_plot
(call
(attribute
(identifier_self) identifier_self
(identifier_traverse) identifier_traverse
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(identifier_x) identifier_x
)lambda
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_plot) identifier_plot
(identifier__root) identifier__root
)attribute
(identifier_root) identifier_root
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Sets the root model on all subplots. |
(module
(function_definition
(function_name_terms) function_name_terms
(parameters
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
(identifier_field) identifier_field
(default_parameter
(identifier_size) identifier_size
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_order) identifier_order
(None) None
)default_parameter
(default_parameter
(identifier_all_terms) identifier_all_terms
(False) False
)default_parameter
(default_parameter
(identifier_exclude) identifier_exclude
(list
)list
)default_parameter
(default_parameter
(identifier_regex) identifier_regex
(string_'') string_''
)default_parameter
(default_parameter
(identifier_regex_flags) identifier_regex_flags
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
)subscript
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_terms) identifier_terms
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_field) identifier_field
(identifier_field) identifier_field
)keyword_argument
(keyword_argument
(identifier_size) identifier_size
(identifier_size) identifier_size
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_order) identifier_order
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
)subscript
(identifier_terms) identifier_terms
)subscript
(string_'order') string_'order'
)subscript
(identifier_order) identifier_order
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_all_terms) identifier_all_terms
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
)subscript
(identifier_terms) identifier_terms
)subscript
(string_'all_terms') string_'all_terms'
)subscript
(True) True
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_exclude) identifier_exclude
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
)subscript
(identifier_terms) identifier_terms
)subscript
(string_'exclude') string_'exclude'
)subscript
(identifier_exclude) identifier_exclude
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_regex) identifier_regex
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
)subscript
(identifier_terms) identifier_terms
)subscript
(string_'regex') string_'regex'
)subscript
(identifier_regex) identifier_regex
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_regex_flags) identifier_regex_flags
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(identifier_self) identifier_self
(identifier_facet_name) identifier_facet_name
)subscript
(identifier_terms) identifier_terms
)subscript
(string_'regex_flags') string_'regex_flags'
)subscript
(identifier_regex_flags) identifier_regex_flags
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Allow to specify field facets that return the N most frequent terms.
Ordering: Allow to control the ordering of the terms facets, to be ordered by count, term, reverse_count or reverse_term. The default is count.
All Terms: Allow to get all the terms in the terms facet, ones that do not match a hit, will have a count of 0. Note, this should not be used with fields that have many terms.
Excluding Terms: It is possible to specify a set of terms that should be excluded from the terms facet request result.
Regex Patterns: The terms API allows to define regex expression that will control which terms will be included in the faceted list. |
(module
(function_definition
(function_name_delete_events) function_name_delete_events
(parameters
(identifier_self) identifier_self
(identifier_event_collection) identifier_event_collection
(identifier_params) identifier_params
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"{0}/{1}/projects/{2}/events/{3}") string_"{0}/{1}/projects/{2}/events/{3}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_version) identifier_api_version
)attribute
(attribute
(identifier_self) identifier_self
(identifier_project_id) identifier_project_id
)attribute
(identifier_event_collection) identifier_event_collection
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(attribute
(identifier_utilities) identifier_utilities
(identifier_headers) identifier_headers
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_master_key) identifier_master_key
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_fulfill) identifier_fulfill
)attribute
(argument_list
(attribute
(identifier_HTTPMethods) identifier_HTTPMethods
(identifier_DELETE) identifier_DELETE
)attribute
(identifier_url) identifier_url
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_post_timeout) identifier_post_timeout
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__error_handling) identifier__error_handling
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Deletes events via the Keen IO API. A master key must be set first.
:param event_collection: string, the event collection from which event are being deleted |
(module
(function_definition
(function_name_nlmsg_find_attr) function_name_nlmsg_find_attr
(parameters
(identifier_nlh) identifier_nlh
(identifier_hdrlen) identifier_hdrlen
(identifier_attrtype) identifier_attrtype
)parameters
(block
(return_statement
(call
(identifier_nla_find) identifier_nla_find
(argument_list
(call
(identifier_nlmsg_attrdata) identifier_nlmsg_attrdata
(argument_list
(identifier_nlh) identifier_nlh
(identifier_hdrlen) identifier_hdrlen
)argument_list
)call
(call
(identifier_nlmsg_attrlen) identifier_nlmsg_attrlen
(argument_list
(identifier_nlh) identifier_nlh
(identifier_hdrlen) identifier_hdrlen
)argument_list
)call
(identifier_attrtype) identifier_attrtype
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find a specific attribute in a Netlink message.
https://github.com/thom311/libnl/blob/libnl3_2_25/lib/msg.c#L231
Positional arguments:
nlh -- Netlink message header (nlmsghdr class instance).
hdrlen -- length of family specific header (integer).
attrtype -- type of attribute to look for (integer).
Returns:
The first attribute which matches the specified type (nlattr class instance). |
(module
(function_definition
(function_name__get_field_doc) function_name__get_field_doc
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
)parameters
(block
(expression_statement
(assignment
(identifier_fieldspec) identifier_fieldspec
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_fieldspec) identifier_fieldspec
(string_'type') string_'type'
)subscript
(attribute
(attribute
(identifier_field) identifier_field
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_fieldspec) identifier_fieldspec
(string_'required') string_'required'
)subscript
(attribute
(identifier_field) identifier_field
(identifier_required) identifier_required
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_fieldspec) identifier_fieldspec
(string_'validators') string_'validators'
)subscript
(list_comprehension
(dictionary
(pair
(attribute
(attribute
(identifier_validator) identifier_validator
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_validator) identifier_validator
(identifier___dict__) identifier___dict__
)attribute
)pair
)dictionary
(for_in_clause
(identifier_validator) identifier_validator
(attribute
(identifier_field) identifier_field
(identifier_validators) identifier_validators
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_fieldspec) identifier_fieldspec
)return_statement
)block
)function_definition
)module | Return documentation for a field in the representation. |
(module
(function_definition
(function_name_routeByMonthAbbr) function_name_routeByMonthAbbr
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_year) identifier_year
(identifier_monthAbbr) identifier_monthAbbr
)parameters
(block
(expression_statement
(assignment
(identifier_month) identifier_month
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(subscript
(identifier_DatePictures) identifier_DatePictures
(string_'Mon') string_'Mon'
)subscript
(identifier_index) identifier_index
)attribute
(argument_list
(call
(attribute
(identifier_monthAbbr) identifier_monthAbbr
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_4) integer_4
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_serveMonth) identifier_serveMonth
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_year) identifier_year
(identifier_month) identifier_month
)argument_list
)call
)return_statement
)block
)function_definition
)module | Route a request with a month abbreviation to the monthly view. |
(module
(function_definition
(function_name_normalize_mesh) function_name_normalize_mesh
(parameters
(identifier_mesh) identifier_mesh
)parameters
(block
(expression_statement
(assignment
(identifier_mesh) identifier_mesh
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_mesh) identifier_mesh
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(call
(attribute
(subscript
(subscript
(identifier_mesh) identifier_mesh
(string_'position') string_'position'
)subscript
(slice
(colon) colon
)slice
(slice
(colon) colon
(integer_3) integer_3
)slice
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_pos) identifier_pos
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_pos) identifier_pos
(identifier_max) identifier_max
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
(call
(attribute
(identifier_pos) identifier_pos
(identifier_min) identifier_min
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_pos) identifier_pos
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(identifier_pos) identifier_pos
)argument_list
)call
(identifier_max) identifier_max
)attribute
(argument_list
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_mesh) identifier_mesh
(string_'position') string_'position'
)subscript
(identifier_pos) identifier_pos
)assignment
)expression_statement
(return_statement
(identifier_mesh) identifier_mesh
)return_statement
)block
)function_definition
)module | Scale mesh to fit into -1..1 cube |
(module
(function_definition
(function_name_retrieve_matching_jwk) function_name_retrieve_matching_jwk
(parameters
(identifier_self) identifier_self
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(assignment
(identifier_response_jwks) identifier_response_jwks
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_OIDC_OP_JWKS_ENDPOINT) identifier_OIDC_OP_JWKS_ENDPOINT
)attribute
(keyword_argument
(identifier_verify) identifier_verify
(call
(attribute
(identifier_self) identifier_self
(identifier_get_settings) identifier_get_settings
)attribute
(argument_list
(string_'OIDC_VERIFY_SSL') string_'OIDC_VERIFY_SSL'
(True) True
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response_jwks) identifier_response_jwks
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_jwks) identifier_jwks
(call
(attribute
(identifier_response_jwks) identifier_response_jwks
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_jws) identifier_jws
(call
(attribute
(identifier_JWS) identifier_JWS
(identifier_from_compact) identifier_from_compact
)attribute
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json_header) identifier_json_header
(attribute
(attribute
(identifier_jws) identifier_jws
(identifier_signature) identifier_signature
)attribute
(identifier_protected) identifier_protected
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(identifier_Header) identifier_Header
(identifier_json_loads) identifier_json_loads
)attribute
(argument_list
(identifier_json_header) identifier_json_header
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(None) None
)assignment
)expression_statement
(for_statement
(identifier_jwk) identifier_jwk
(subscript
(identifier_jwks) identifier_jwks
(string_'keys') string_'keys'
)subscript
(block
(if_statement
(comparison_operator
(subscript
(identifier_jwk) identifier_jwk
(string_'kid') string_'kid'
)subscript
(call
(identifier_smart_text) identifier_smart_text
(argument_list
(attribute
(identifier_header) identifier_header
(identifier_kid) identifier_kid
)attribute
)argument_list
)call
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'alg') string_'alg'
(identifier_jwk) identifier_jwk
)comparison_operator
(comparison_operator
(subscript
(identifier_jwk) identifier_jwk
(string_'alg') string_'alg'
)subscript
(call
(identifier_smart_text) identifier_smart_text
(argument_list
(attribute
(identifier_header) identifier_header
(identifier_alg) identifier_alg
)attribute
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_SuspiciousOperation) identifier_SuspiciousOperation
(argument_list
(string_'alg values do not match.') string_'alg values do not match.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(identifier_jwk) identifier_jwk
)assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_SuspiciousOperation) identifier_SuspiciousOperation
(argument_list
(string_'Could not find a valid JWKS.') string_'Could not find a valid JWKS.'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_key) identifier_key
)return_statement
)block
)function_definition
)module | Get the signing key by exploring the JWKS endpoint of the OP. |
(module
(function_definition
(function_name_save_response_content) function_name_save_response_content
(parameters
(identifier_response) identifier_response
(default_parameter
(identifier_filename) identifier_filename
(string_'data.csv') string_'data.csv'
)default_parameter
(default_parameter
(identifier_destination) identifier_destination
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_curdir) identifier_curdir
)attribute
)default_parameter
(default_parameter
(identifier_chunksize) identifier_chunksize
(integer_32768) integer_32768
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_chunksize) identifier_chunksize
(boolean_operator
(identifier_chunksize) identifier_chunksize
(integer_32768) integer_32768
)boolean_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_sep) identifier_sep
)attribute
(identifier_filename) identifier_filename
)comparison_operator
(block
(expression_statement
(assignment
(identifier_full_destination_path) identifier_full_destination_path
(identifier_filename) identifier_filename
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_full_destination_path) identifier_full_destination_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_destination) identifier_destination
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_full_destination_path) identifier_full_destination_path
(call
(identifier_expand_filepath) identifier_expand_filepath
(argument_list
(identifier_full_destination_path) identifier_full_destination_path
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_full_destination_path) identifier_full_destination_path
(string_"wb") string_"wb"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_chunk) identifier_chunk
(call
(identifier_tqdm) identifier_tqdm
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_iter_content) identifier_iter_content
)attribute
(argument_list
(identifier_CHUNK_SIZE) identifier_CHUNK_SIZE
)argument_list
)call
)argument_list
)call
(block
(if_statement
(identifier_chunk) identifier_chunk
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
(return_statement
(identifier_full_destination_path) identifier_full_destination_path
)return_statement
)block
)function_definition
)module | For streaming response from requests, download the content one CHUNK at a time |
(module
(function_definition
(function_name_makeCredentials) function_name_makeCredentials
(parameters
(identifier_path) identifier_path
(identifier_email) identifier_email
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(identifier__generateKey) identifier__generateKey
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cert) identifier_cert
(call
(identifier__makeCertificate) identifier__makeCertificate
(argument_list
(identifier_key) identifier_key
(identifier_email) identifier_email
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_certPath) identifier_certPath
(call
(attribute
(identifier_path) identifier_path
(identifier_child) identifier_child
)attribute
(argument_list
(string_"client.pem") string_"client.pem"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_certPath) identifier_certPath
(identifier_alwaysCreate) identifier_alwaysCreate
)attribute
(True) True
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_certPath) identifier_certPath
(identifier_open) identifier_open
)attribute
(argument_list
(string_"wb") string_"wb"
)argument_list
)call
(as_pattern_target
(identifier_pemFile) identifier_pemFile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_pemFile) identifier_pemFile
(identifier_write) identifier_write
)attribute
(argument_list
(call
(identifier_dump_privatekey) identifier_dump_privatekey
(argument_list
(identifier_FILETYPE_PEM) identifier_FILETYPE_PEM
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_pemFile) identifier_pemFile
(identifier_write) identifier_write
)attribute
(argument_list
(call
(identifier_dump_certificate) identifier_dump_certificate
(argument_list
(identifier_FILETYPE_PEM) identifier_FILETYPE_PEM
(identifier_cert) identifier_cert
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Make credentials for the client from given e-mail address and store
them in the directory at path. |
(module
(function_definition
(function_name_use_value) function_name_use_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check_value) identifier_check_value
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_value) identifier_convert_value
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts value to field type or use original |
(module
(function_definition
(function_name_get_arbiter_broks) function_name_get_arbiter_broks
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier_arbiter_broks_lock) identifier_arbiter_broks_lock
)attribute
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_statsmgr) identifier_statsmgr
(identifier_gauge) identifier_gauge
)attribute
(argument_list
(string_'get-new-broks-count.arbiter') string_'get-new-broks-count.arbiter'
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_arbiter_broks) identifier_arbiter_broks
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_external_broks) identifier_external_broks
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_arbiter_broks) identifier_arbiter_broks
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_arbiter_broks) identifier_arbiter_broks
)attribute
(list
)list
)assignment
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Get the broks from the arbiters,
but as the arbiter_broks list can be push by arbiter without Global lock,
we must protect this with a lock
TODO: really? check this arbiter behavior!
:return: None |
(module
(function_definition
(function_name_init_nautilus) function_name_init_nautilus
(parameters
(identifier_method) identifier_method
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Preference elicitation options:") string_"Preference elicitation options:"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"\t1 - Percentages") string_"\t1 - Percentages"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"\t2 - Relative ranks") string_"\t2 - Relative ranks"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"\t3 - Direct") string_"\t3 - Direct"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_PREFCLASSES) identifier_PREFCLASSES
(list
(identifier_PercentageSpecifictation) identifier_PercentageSpecifictation
(identifier_RelativeRanking) identifier_RelativeRanking
(identifier_DirectSpecification) identifier_DirectSpecification
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pref_sel) identifier_pref_sel
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier__prompt_wrapper) identifier__prompt_wrapper
(argument_list
(string_"Reference elicitation ") string_"Reference elicitation "
(keyword_argument
(identifier_default) identifier_default
(binary_operator
(string_u"%s") string_u"%s"
(parenthesized_expression
(integer_1) integer_1
)parenthesized_expression
)binary_operator
)keyword_argument
(keyword_argument
(identifier_validator) identifier_validator
(call
(identifier_NumberValidator) identifier_NumberValidator
(argument_list
(list
(integer_1) integer_1
(integer_3) integer_3
)list
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_preference_class) identifier_preference_class
(subscript
(identifier_PREFCLASSES) identifier_PREFCLASSES
(binary_operator
(identifier_pref_sel) identifier_pref_sel
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"Nadir: %s") string_"Nadir: %s"
(attribute
(attribute
(identifier_method) identifier_method
(identifier_problem) identifier_problem
)attribute
(identifier_nadir) identifier_nadir
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"Ideal: %s") string_"Ideal: %s"
(attribute
(attribute
(identifier_method) identifier_method
(identifier_problem) identifier_problem
)attribute
(identifier_ideal) identifier_ideal
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(binary_operator
(attribute
(identifier_method) identifier_method
(identifier_current_iter) identifier_current_iter
)attribute
(attribute
(identifier_method) identifier_method
(identifier_user_iters) identifier_user_iters
)attribute
)binary_operator
(block
(expression_statement
(assignment
(identifier_finished_iter) identifier_finished_iter
(binary_operator
(attribute
(identifier_method) identifier_method
(identifier_user_iters) identifier_user_iters
)attribute
(attribute
(identifier_method) identifier_method
(identifier_current_iter) identifier_current_iter
)attribute
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_finished_iter) identifier_finished_iter
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_new_iters) identifier_new_iters
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier__prompt_wrapper) identifier__prompt_wrapper
(argument_list
(string_u"Ni: ") string_u"Ni: "
(keyword_argument
(identifier_default) identifier_default
(binary_operator
(string_u"%s") string_u"%s"
(parenthesized_expression
(attribute
(identifier_method) identifier_method
(identifier_current_iter) identifier_current_iter
)attribute
)parenthesized_expression
)binary_operator
)keyword_argument
(keyword_argument
(identifier_validator) identifier_validator
(call
(identifier_NumberValidator) identifier_NumberValidator
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_method) identifier_method
(identifier_current_iter) identifier_current_iter
)attribute
(identifier_new_iters) identifier_new_iters
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_method) identifier_method
(identifier_user_iters) identifier_user_iters
)attribute
(binary_operator
(identifier_finished_iter) identifier_finished_iter
(identifier_new_iters) identifier_new_iters
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_preference_class) identifier_preference_class
)return_statement
)block
)function_definition
)module | Initialize nautilus method
Parameters
----------
method
Interactive method used for the process
Returns
-------
PreferenceInformation subclass to be initialized |
(module
(function_definition
(function_name_handle_memory) function_name_handle_memory
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_obj) identifier_obj
(identifier_subject) identifier_subject
)attribute
(None) None
)comparison_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(attribute
(identifier_self) identifier_self
(identifier_con) identifier_con
)attribute
(as_pattern_target
(identifier_db) identifier_db
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_SchemaBase) identifier_SchemaBase
(identifier_note) identifier_note
)attribute
(argument_list
(identifier_db) identifier_db
(attribute
(identifier_obj) identifier_obj
(identifier_subject) identifier_subject
)attribute
(attribute
(identifier_obj) identifier_obj
(identifier_state) identifier_state
)attribute
(attribute
(identifier_obj) identifier_obj
(identifier_object) identifier_object
)attribute
(keyword_argument
(identifier_text) identifier_text
(attribute
(identifier_obj) identifier_obj
(identifier_text) identifier_text
)attribute
)keyword_argument
(keyword_argument
(identifier_html) identifier_html
(attribute
(identifier_obj) identifier_obj
(identifier_html) identifier_html
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Handle a memory event.
This function accesses the internal database. It writes a record
containing state information and an optional note.
:param obj: A :py:class:`~turberfield.dialogue.model.Model.Memory`
object.
:return: The supplied object. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_path) identifier_path
)parameters
(block
(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_rfile) identifier_rfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_steps) identifier_steps
(call
(attribute
(identifier_MODEL) identifier_MODEL
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(attribute
(identifier_rfile) identifier_rfile
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_new_steps) identifier_new_steps
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_step) identifier_step
(identifier_steps) identifier_steps
(block
(expression_statement
(augmented_assignment
(identifier_new_steps) identifier_new_steps
(call
(identifier_expand_includes) identifier_expand_includes
(argument_list
(identifier_step) identifier_step
(identifier_path) identifier_path
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_new_steps) identifier_new_steps
)return_statement
)block
)function_definition
)module | Load |path| and recursively expand any includes. |
(module
(function_definition
(function_name_is_result_edition_allowed) function_name_is_result_edition_allowed
(parameters
(identifier_self) identifier_self
(identifier_analysis_brain) identifier_analysis_brain
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_analysis_edition_allowed) identifier_is_analysis_edition_allowed
)attribute
(argument_list
(identifier_analysis_brain) identifier_analysis_brain
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_api) identifier_api
(identifier_get_object) identifier_get_object
)attribute
(argument_list
(identifier_analysis_brain) identifier_analysis_brain
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_obj) identifier_obj
(identifier_getDetectionLimitOperand) identifier_getDetectionLimitOperand
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier_getDetectionLimitSelector) identifier_getDetectionLimitSelector
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_obj) identifier_obj
(identifier_getAllowManualDetectionLimit) identifier_getAllowManualDetectionLimit
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Checks if the edition of the result field is allowed
:param analysis_brain: Brain that represents an analysis
:return: True if the user can edit the result field, otherwise False |
(module
(function_definition
(function_name_set_progress_brackets) function_name_set_progress_brackets
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sep_start) identifier_sep_start
)attribute
(identifier_start) identifier_start
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sep_end) identifier_sep_end
)attribute
(identifier_end) identifier_end
)assignment
)expression_statement
)block
)function_definition
)module | Set brackets to set around a progress bar. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.