sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_set_secondary_state) function_name_set_secondary_state
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(tuple
(identifier__STATE_RUNNING) identifier__STATE_RUNNING
(identifier__STATE_SHUTDOWN) identifier__STATE_SHUTDOWN
(identifier__STATE_FORCED_SHUTDOWN) identifier__STATE_FORCED_SHUTDOWN
)tuple
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"State {!r} is invalid - needs to be one of _STATE_RUNNING, _STATE_SHUTDOWN, or _STATE_FORCED_SHUTDOWN") string_"State {!r} is invalid - needs to be one of _STATE_RUNNING, _STATE_SHUTDOWN, or _STATE_FORCED_SHUTDOWN"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Manager not started") string_"Manager not started"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_set_state) identifier_set_state
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets the value for 'secondary_state'. |
(module
(function_definition
(function_name_wait) function_name_wait
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_must_be_child) identifier_must_be_child
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_current) identifier_current
(call
(identifier_getcurrent) identifier_getcurrent
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parent) identifier_parent
(attribute
(identifier_current) identifier_current
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_must_be_child) identifier_must_be_child
(not_operator
(identifier_parent) identifier_parent
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_MustBeInChildGreenlet) identifier_MustBeInChildGreenlet
(argument_list
(string_'Cannot wait on main greenlet') string_'Cannot wait on main greenlet'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(conditional_expression
(call
(attribute
(identifier_parent) identifier_parent
(identifier_switch) identifier_switch
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_parent) identifier_parent
(identifier_value) identifier_value
)conditional_expression
)return_statement
)block
)function_definition
)module | Wait for a possible asynchronous value to complete. |
(module
(function_definition
(function_name_new_file) function_name_new_file
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_track_idx) identifier_track_idx
(default_parameter
(identifier_copy_file) identifier_copy_file
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_new_file_idx) identifier_new_file_idx
(identifier_track_idx) identifier_track_idx
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_file_path) identifier_new_file_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_new_file_idx) identifier_new_file_idx
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tracks) identifier__tracks
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_file_idx) identifier_new_file_idx
(call
(attribute
(identifier_naming) identifier_naming
(identifier_index_name_if_in_list) identifier_index_name_if_in_list
)attribute
(argument_list
(identifier_new_file_idx) identifier_new_file_idx
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tracks) identifier__tracks
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_copy_file) identifier_copy_file
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'To copy file the dataset needs to have a path.') string_'To copy file the dataset needs to have a path.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier___) identifier___
(identifier_ext) identifier_ext
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_file_folder) identifier_new_file_folder
(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_path) identifier_path
)attribute
(identifier_DEFAULT_FILE_SUBDIR) identifier_DEFAULT_FILE_SUBDIR
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_file_path) identifier_new_file_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_new_file_folder) identifier_new_file_folder
(call
(attribute
(string_'{}{}') string_'{}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_new_file_idx) identifier_new_file_idx
(identifier_ext) identifier_ext
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_new_file_folder) identifier_new_file_folder
(keyword_argument
(identifier_exist_ok) identifier_exist_ok
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_new_file_path) identifier_new_file_path
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_new_file) identifier_new_file
(call
(attribute
(identifier_tracks) identifier_tracks
(identifier_FileTrack) identifier_FileTrack
)attribute
(argument_list
(identifier_new_file_idx) identifier_new_file_idx
(identifier_new_file_path) identifier_new_file_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__tracks) identifier__tracks
)attribute
(identifier_new_file_idx) identifier_new_file_idx
)subscript
(identifier_new_file) identifier_new_file
)assignment
)expression_statement
(return_statement
(identifier_new_file) identifier_new_file
)return_statement
)block
)function_definition
)module | Adds a new audio file to the corpus with the given data.
Parameters:
path (str): Path of the file to add.
track_idx (str): The id to associate the file-track with.
copy_file (bool): If True the file is copied to the data set folder, otherwise the given
path is used directly.
Returns:
FileTrack: The newly added file. |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_self) identifier_self
(identifier_others) identifier_others
(identifier_merge_conditions) identifier_merge_conditions
(default_parameter
(identifier_common_ancestor) identifier_common_ancestor
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_merging_occurred) identifier_merging_occurred
(False) False
)assignment
)expression_statement
(for_statement
(identifier_o) identifier_o
(identifier_others) identifier_others
(block
(for_statement
(pattern_list
(identifier_region_id) identifier_region_id
(identifier_region) identifier_region
)pattern_list
(call
(attribute
(attribute
(identifier_o) identifier_o
(identifier__regions) identifier__regions
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_region_id) identifier_region_id
(attribute
(identifier_self) identifier_self
(identifier__regions) identifier__regions
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_merging_occurred) identifier_merging_occurred
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__regions) identifier__regions
)attribute
(identifier_region_id) identifier_region_id
)subscript
(identifier_merge) identifier_merge
)attribute
(argument_list
(list
(identifier_region) identifier_region
)list
(identifier_merge_conditions) identifier_merge_conditions
(keyword_argument
(identifier_common_ancestor) identifier_common_ancestor
(identifier_common_ancestor) identifier_common_ancestor
)keyword_argument
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_merging_occurred) identifier_merging_occurred
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__regions) identifier__regions
)attribute
(identifier_region_id) identifier_region_id
)subscript
(identifier_region) identifier_region
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_merging_occurred) identifier_merging_occurred
)return_statement
)block
)function_definition
)module | Merge this guy with another SimAbstractMemory instance |
(module
(function_definition
(function_name_detect_complexity) function_name_detect_complexity
(parameters
(identifier_bam_in) identifier_bam_in
(identifier_genome) identifier_genome
(identifier_out) identifier_out
)parameters
(block
(if_statement
(not_operator
(identifier_genome) identifier_genome
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"No genome given. skipping.") string_"No genome given. skipping."
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_out_file) identifier_out_file
(call
(attribute
(identifier_op) identifier_op
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_out) identifier_out
(binary_operator
(call
(attribute
(identifier_op) identifier_op
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_bam_in) identifier_bam_in
)argument_list
)call
(string_"_cov.tsv") string_"_cov.tsv"
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_file_exists) identifier_file_exists
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_fai) identifier_fai
(binary_operator
(identifier_genome) identifier_genome
(string_".fai") string_".fai"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cov) identifier_cov
(call
(attribute
(call
(attribute
(identifier_pybedtools) identifier_pybedtools
(identifier_BedTool) identifier_BedTool
)attribute
(argument_list
(identifier_bam_in) identifier_bam_in
)argument_list
)call
(identifier_genome_coverage) identifier_genome_coverage
)attribute
(argument_list
(keyword_argument
(identifier_g) identifier_g
(identifier_fai) identifier_fai
)keyword_argument
(keyword_argument
(identifier_max) identifier_max
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cov) identifier_cov
(identifier_saveas) identifier_saveas
)attribute
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_total) identifier_total
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_region) identifier_region
(identifier_cov) identifier_cov
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_region) identifier_region
(integer_0) integer_0
)subscript
(string_"genome") string_"genome"
)comparison_operator
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_region) identifier_region
(integer_1) integer_1
)subscript
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_total) identifier_total
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_region) identifier_region
(integer_4) integer_4
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"Total genome with sequences: %s ") string_"Total genome with sequences: %s "
(identifier_total) identifier_total
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | genome coverage of small RNA |
(module
(function_definition
(function_name_write_length_and_key) function_name_write_length_and_key
(parameters
(identifier_fp) identifier_fp
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_written) identifier_written
(call
(identifier_write_fmt) identifier_write_fmt
(argument_list
(identifier_fp) identifier_fp
(string_'I') string_'I'
(conditional_expression
(integer_0) integer_0
(comparison_operator
(identifier_value) identifier_value
(identifier__TERMS) identifier__TERMS
)comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)conditional_expression
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_written) identifier_written
(call
(identifier_write_bytes) identifier_write_bytes
(argument_list
(identifier_fp) identifier_fp
(identifier_value) identifier_value
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(identifier_written) identifier_written
)return_statement
)block
)function_definition
)module | Helper to write descriptor key. |
(module
(function_definition
(function_name_sorted_product_set) function_name_sorted_product_set
(parameters
(identifier_array_a) identifier_array_a
(identifier_array_b) identifier_array_b
)parameters
(block
(return_statement
(subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_sort) identifier_sort
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_concatenate) identifier_concatenate
)attribute
(argument_list
(list_comprehension
(binary_operator
(subscript
(identifier_array_a) identifier_array_a
(identifier_i) identifier_i
)subscript
(identifier_array_b) identifier_array_b
)binary_operator
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_xrange) identifier_xrange
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_array_a) identifier_array_a
)argument_list
)call
)argument_list
)call
)for_in_clause
)list_comprehension
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)argument_list
)call
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)return_statement
)block
)function_definition
)module | Compute the product set of array_a and array_b and sort it. |
(module
(function_definition
(function_name_upload) function_name_upload
(parameters
(identifier_target) identifier_target
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Uploading to pypi server <33>{}") string_"Uploading to pypi server <33>{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_conf) identifier_conf
(identifier_within_proj_dir) identifier_within_proj_dir
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_shell) identifier_shell
(identifier_run) identifier_run
)attribute
(argument_list
(call
(attribute
(string_'python setup.py sdist register -r "{}"') string_'python setup.py sdist register -r "{}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_shell) identifier_shell
(identifier_run) identifier_run
)attribute
(argument_list
(call
(attribute
(string_'python setup.py sdist upload -r "{}"') string_'python setup.py sdist upload -r "{}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Upload the release to a pypi server.
TODO: Make sure the git directory is clean before allowing a release.
Args:
target (str):
pypi target as defined in ~/.pypirc |
(module
(function_definition
(function_name_generate_checks) function_name_generate_checks
(parameters
(identifier_fact) identifier_fact
)parameters
(block
(expression_statement
(yield
(call
(identifier_TypeCheck) identifier_TypeCheck
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_fact) identifier_fact
)argument_list
)call
)argument_list
)call
)yield
)expression_statement
(expression_statement
(assignment
(identifier_fact_captured) identifier_fact_captured
(False) False
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_fact) identifier_fact
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_key) identifier_key
(identifier_str) identifier_str
)argument_list
)call
(call
(attribute
(identifier_key) identifier_key
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'__') string_'__'
)argument_list
)call
)boolean_operator
(call
(attribute
(identifier_key) identifier_key
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'__') string_'__'
)argument_list
)call
)boolean_operator
)parenthesized_expression
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(string_'__bind__') string_'__bind__'
)comparison_operator
(block
(expression_statement
(yield
(call
(identifier_FactCapture) identifier_FactCapture
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)yield
)expression_statement
(expression_statement
(assignment
(identifier_fact_captured) identifier_fact_captured
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(call
(identifier_FeatureCheck) identifier_FeatureCheck
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(yield
(call
(identifier_FeatureCheck) identifier_FeatureCheck
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_fact_captured) identifier_fact_captured
)not_operator
(block
(expression_statement
(yield
(call
(identifier_FactCapture) identifier_FactCapture
(argument_list
(binary_operator
(string_"__pattern_%s__") string_"__pattern_%s__"
(call
(identifier_id) identifier_id
(argument_list
(identifier_fact) identifier_fact
)argument_list
)call
)binary_operator
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Given a fact, generate a list of Check objects for checking it. |
(module
(function_definition
(function_name_persistent_load) function_name_persistent_load
(parameters
(identifier_self) identifier_self
(identifier_pid) identifier_pid
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_pid) identifier_pid
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_type_tag) identifier_type_tag
(identifier_filename) identifier_filename
)pattern_list
(identifier_pid) identifier_pid
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_abs_path) identifier_abs_path
(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_gl_temp_storage_path) identifier_gl_temp_storage_path
)attribute
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__get_gl_object_from_persistent_id) identifier__get_gl_object_from_persistent_id
(argument_list
(identifier_type_tag) identifier_type_tag
(identifier_abs_path) identifier_abs_path
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_type_tag) identifier_type_tag
(identifier_filename) identifier_filename
(identifier_object_id) identifier_object_id
)pattern_list
(identifier_pid) identifier_pid
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_object_id) identifier_object_id
(attribute
(identifier_self) identifier_self
(identifier_gl_object_memo) identifier_gl_object_memo
)attribute
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gl_object_memo) identifier_gl_object_memo
)attribute
(identifier_object_id) identifier_object_id
)subscript
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_abs_path) identifier_abs_path
(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_gl_temp_storage_path) identifier_gl_temp_storage_path
)attribute
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier__get_gl_object_from_persistent_id) identifier__get_gl_object_from_persistent_id
(argument_list
(identifier_type_tag) identifier_type_tag
(identifier_abs_path) identifier_abs_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gl_object_memo) identifier_gl_object_memo
)attribute
(identifier_object_id) identifier_object_id
)subscript
(identifier_obj) identifier_obj
)assignment
)expression_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Reconstruct a GLC object using the persistent ID.
This method should not be used externally. It is required by the unpickler super class.
Parameters
----------
pid : The persistent ID used in pickle file to save the GLC object.
Returns
----------
The GLC object. |
(module
(function_definition
(function_name__make_context) function_name__make_context
(parameters
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_namespace) identifier_namespace
(dictionary
(pair
(string_'db') string_'db'
(identifier_db) identifier_db
)pair
(pair
(string_'session') string_'session'
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_namespace) identifier_namespace
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier__iter_context) identifier__iter_context
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_context) identifier_context
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_namespace) identifier_namespace
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_namespace) identifier_namespace
)return_statement
)block
)function_definition
)module | Create the namespace of items already pre-imported when using shell.
Accepts a dict with the desired namespace as the key, and the object as the
value. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_EngagementContextContext) identifier_EngagementContextContext
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(keyword_argument
(identifier_flow_sid) identifier_flow_sid
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_'flow_sid') string_'flow_sid'
)subscript
)keyword_argument
(keyword_argument
(identifier_engagement_sid) identifier_engagement_sid
(subscript
(attribute
(identifier_self) identifier_self
(identifier__solution) identifier__solution
)attribute
(string_'engagement_sid') string_'engagement_sid'
)subscript
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Constructs a EngagementContextContext
:returns: twilio.rest.studio.v1.flow.engagement.engagement_context.EngagementContextContext
:rtype: twilio.rest.studio.v1.flow.engagement.engagement_context.EngagementContextContext |
(module
(function_definition
(function_name_format_BLB) function_name_format_BLB
(parameters
)parameters
(block
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_"figure") string_"figure"
(keyword_argument
(identifier_facecolor) identifier_facecolor
(string_"white") string_"white"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'font') string_'font'
(keyword_argument
(identifier_family) identifier_family
(string_'serif') string_'serif'
)keyword_argument
(keyword_argument
(identifier_size) identifier_size
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'xtick') string_'xtick'
(keyword_argument
(identifier_labelsize) identifier_labelsize
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'ytick') string_'ytick'
(keyword_argument
(identifier_labelsize) identifier_labelsize
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'axes') string_'axes'
(keyword_argument
(identifier_linewidth) identifier_linewidth
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'xtick.major') string_'xtick.major'
(keyword_argument
(identifier_size) identifier_size
(integer_4) integer_4
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'xtick.minor') string_'xtick.minor'
(keyword_argument
(identifier_size) identifier_size
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'ytick.major') string_'ytick.major'
(keyword_argument
(identifier_size) identifier_size
(integer_4) integer_4
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_'ytick.minor') string_'ytick.minor'
(keyword_argument
(identifier_size) identifier_size
(integer_2) integer_2
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets some formatting options in Matplotlib. |
(module
(function_definition
(function_name_described_as) function_name_described_as
(parameters
(identifier_self) identifier_self
(identifier_description) identifier_description
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_description) identifier_description
(call
(attribute
(identifier_description) identifier_description
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_description) identifier_description
)attribute
(identifier_description) identifier_description
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Specify a custom message for the matcher |
(module
(function_definition
(function_name_filter_by_device_owner) function_name_filter_by_device_owner
(parameters
(identifier_query) identifier_query
(default_parameter
(identifier_device_owners) identifier_device_owners
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_port_model) identifier_port_model
(attribute
(identifier_models_v2) identifier_models_v2
(identifier_Port) identifier_Port
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_device_owners) identifier_device_owners
)not_operator
(block
(expression_statement
(assignment
(identifier_device_owners) identifier_device_owners
(attribute
(identifier_utils) identifier_utils
(identifier_SUPPORTED_DEVICE_OWNERS) identifier_SUPPORTED_DEVICE_OWNERS
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_supported_device_owner_filter) identifier_supported_device_owner_filter
(list_comprehension
(call
(attribute
(attribute
(identifier_port_model) identifier_port_model
(identifier_device_owner) identifier_device_owner
)attribute
(identifier_ilike) identifier_ilike
)attribute
(argument_list
(binary_operator
(string_'%s%%') string_'%s%%'
(identifier_owner) identifier_owner
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_owner) identifier_owner
(identifier_device_owners) identifier_device_owners
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unsupported_device_owner_filter) identifier_unsupported_device_owner_filter
(list_comprehension
(call
(attribute
(attribute
(identifier_port_model) identifier_port_model
(identifier_device_owner) identifier_device_owner
)attribute
(identifier_notilike) identifier_notilike
)attribute
(argument_list
(binary_operator
(string_'%s%%') string_'%s%%'
(identifier_owner) identifier_owner
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_owner) identifier_owner
(attribute
(identifier_utils) identifier_utils
(identifier_UNSUPPORTED_DEVICE_OWNERS) identifier_UNSUPPORTED_DEVICE_OWNERS
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(parenthesized_expression
(call
(attribute
(identifier_query) identifier_query
(identifier_filter) identifier_filter
)attribute
(argument_list
(call
(identifier_and_) identifier_and_
(argument_list
(list_splat
(identifier_unsupported_device_owner_filter) identifier_unsupported_device_owner_filter
)list_splat
)argument_list
)call
(call
(identifier_or_) identifier_or_
(argument_list
(list_splat
(identifier_supported_device_owner_filter) identifier_supported_device_owner_filter
)list_splat
)argument_list
)call
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(identifier_query) identifier_query
)return_statement
)block
)function_definition
)module | Filter ports by device_owner
Either filter using specified device_owner or using the list of all
device_owners supported and unsupported by the arista ML2 plugin |
(module
(function_definition
(function_name__order_params) function_name__order_params
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_has_signature) identifier_has_signature
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_data) identifier_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(string_'signature') string_'signature'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_has_signature) identifier_has_signature
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_key) identifier_key
(identifier_value) identifier_value
)tuple
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(call
(identifier_itemgetter) identifier_itemgetter
(argument_list
(integer_0) integer_0
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(identifier_has_signature) identifier_has_signature
(block
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_'signature') string_'signature'
(subscript
(identifier_data) identifier_data
(string_'signature') string_'signature'
)subscript
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_params) identifier_params
)return_statement
)block
)function_definition
)module | Convert params to list with signature as last element
:param data:
:return: |
(module
(function_definition
(function_name_dupstack) function_name_dupstack
(parameters
(identifier_newtask) identifier_newtask
)parameters
(block
(expression_statement
(assignment
(identifier_stack) identifier_stack
(call
(attribute
(identifier_s_task) identifier_s_task
(identifier_varget) identifier_varget
)attribute
(argument_list
(string_'provstack') string_'provstack'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_s_task) identifier_s_task
(identifier_varset) identifier_varset
)attribute
(argument_list
(string_'provstack') string_'provstack'
(call
(attribute
(identifier_stack) identifier_stack
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
(identifier_newtask) identifier_newtask
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Duplicate the current provenance stack onto another task |
(module
(function_definition
(function_name_get_model) function_name_get_model
(parameters
(identifier_app_dot_model) identifier_app_dot_model
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_app) identifier_app
(identifier_model) identifier_model
)pattern_list
(call
(attribute
(identifier_app_dot_model) identifier_app_dot_model
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(parenthesized_expression
(concatenated_string
(string_f'Passed in value \'{app_dot_model}\' was not in the format ') string_f'Passed in value \'{app_dot_model}\' was not in the format '
(string_'`<app_name>.<model_name>`.') string_'`<app_name>.<model_name>`.'
)concatenated_string
)parenthesized_expression
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_apps) identifier_apps
(identifier_get_app_config) identifier_get_app_config
)attribute
(argument_list
(identifier_app) identifier_app
)argument_list
)call
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(identifier_model) identifier_model
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns Django model class corresponding to passed-in `app_dot_model`
string. This is helpful for preventing circular-import errors in a Django
project.
Positional Arguments:
=====================
- `app_dot_model`: Django's `<app_name>.<model_name>` syntax. For example,
the default Django User model would be `auth.User`,
where `auth` is the app and `User` is the model. |
(module
(function_definition
(function_name_aliasstr) function_name_aliasstr
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_repr) identifier_repr
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_ns) identifier_ns
)attribute
(identifier_x) identifier_x
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier_aliases) identifier_aliases
)attribute
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Concatenate the aliases tuple into a string. |
(module
(function_definition
(function_name_make_request_fn) function_name_make_request_fn
(parameters
)parameters
(block
(if_statement
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_cloud_mlengine_model_name) identifier_cloud_mlengine_model_name
)attribute
(block
(expression_statement
(assignment
(identifier_request_fn) identifier_request_fn
(call
(attribute
(identifier_serving_utils) identifier_serving_utils
(identifier_make_cloud_mlengine_request_fn) identifier_make_cloud_mlengine_request_fn
)attribute
(argument_list
(keyword_argument
(identifier_credentials) identifier_credentials
(call
(attribute
(identifier_GoogleCredentials) identifier_GoogleCredentials
(identifier_get_application_default) identifier_get_application_default
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_model_name) identifier_model_name
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_cloud_mlengine_model_name) identifier_cloud_mlengine_model_name
)attribute
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_cloud_mlengine_model_version) identifier_cloud_mlengine_model_version
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_request_fn) identifier_request_fn
(call
(attribute
(identifier_serving_utils) identifier_serving_utils
(identifier_make_grpc_request_fn) identifier_make_grpc_request_fn
)attribute
(argument_list
(keyword_argument
(identifier_servable_name) identifier_servable_name
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_servable_name) identifier_servable_name
)attribute
)keyword_argument
(keyword_argument
(identifier_server) identifier_server
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_server) identifier_server
)attribute
)keyword_argument
(keyword_argument
(identifier_timeout_secs) identifier_timeout_secs
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_timeout_secs) identifier_timeout_secs
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_request_fn) identifier_request_fn
)return_statement
)block
)function_definition
)module | Returns a request function. |
(module
(function_definition
(function_name__randomString) function_name__randomString
(parameters
)parameters
(block
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(attribute
(identifier_random) identifier_random
(identifier_choice) identifier_choice
)attribute
(argument_list
(binary_operator
(attribute
(identifier_string) identifier_string
(identifier_ascii_uppercase) identifier_ascii_uppercase
)attribute
(attribute
(identifier_string) identifier_string
(identifier_digits) identifier_digits
)attribute
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(identifier_range) identifier_range
(argument_list
(integer_10) integer_10
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Random string for message signing |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_node) identifier_node
)attribute
(identifier_move_to) identifier_move_to
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(string_'target') string_'target'
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(string_'position') string_'position'
)subscript
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_node) identifier_node
)attribute
)return_statement
)block
(except_clause
(identifier_InvalidMove) identifier_InvalidMove
(identifier_e) identifier_e
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_errors) identifier_errors
)attribute
(identifier_NON_FIELD_ERRORS) identifier_NON_FIELD_ERRORS
)subscript
(call
(identifier_ErrorList) identifier_ErrorList
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)assignment
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Attempts to move the node using the selected target and
position.
If an invalid move is attempted, the related error message will
be added to the form's non-field errors and the error will be
re-raised. Callers should attempt to catch ``InvalidNode`` to
redisplay the form with the error, should it occur. |
(module
(function_definition
(function_name__onOffset) function_name__onOffset
(parameters
(identifier_self) identifier_self
(identifier_dt) identifier_dt
(identifier_businesshours) identifier_businesshours
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_n) identifier_n
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_op) identifier_op
(call
(attribute
(identifier_self) identifier_self
(identifier__prev_opening_time) identifier__prev_opening_time
)attribute
(argument_list
(identifier_dt) identifier_dt
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_op) identifier_op
(call
(attribute
(identifier_self) identifier_self
(identifier__next_opening_time) identifier__next_opening_time
)attribute
(argument_list
(identifier_dt) identifier_dt
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_span) identifier_span
(call
(attribute
(parenthesized_expression
(binary_operator
(identifier_dt) identifier_dt
(identifier_op) identifier_op
)binary_operator
)parenthesized_expression
(identifier_total_seconds) identifier_total_seconds
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_span) identifier_span
(identifier_businesshours) identifier_businesshours
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Slight speedups using calculated values. |
(module
(function_definition
(function_name_OnTogglePlay) function_name_OnTogglePlay
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_player) identifier_player
)attribute
(identifier_get_state) identifier_get_state
)attribute
(argument_list
)argument_list
)call
(attribute
(attribute
(identifier_vlc) identifier_vlc
(identifier_State) identifier_State
)attribute
(identifier_Playing) identifier_Playing
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_player) identifier_player
)attribute
(identifier_pause) identifier_pause
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_player) identifier_player
)attribute
(identifier_play) identifier_play
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_event) identifier_event
(identifier_Skip) identifier_Skip
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Toggles the video status between play and hold |
(module
(function_definition
(function_name_add_item) function_name_add_item
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_beginInsertRows) identifier_beginInsertRows
)attribute
(argument_list
(call
(attribute
(identifier_QtCore) identifier_QtCore
(identifier_QModelIndex) identifier_QModelIndex
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_rowCount) identifier_rowCount
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_rowCount) identifier_rowCount
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_item) identifier_item
(string_"parent") string_"parent"
)subscript
(identifier_self) identifier_self
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(identifier_Item) identifier_Item
(argument_list
(dictionary_splat
(identifier_item) identifier_item
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_items) identifier_items
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_endInsertRows) identifier_endInsertRows
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_item) identifier_item
(identifier___datachanged__) identifier___datachanged__
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__dataChanged) identifier__dataChanged
)attribute
)argument_list
)call
)expression_statement
(return_statement
(identifier_item) identifier_item
)return_statement
)block
)function_definition
)module | Add new item to model
Each keyword argument is passed to the :func:Item
factory function. |
(module
(function_definition
(function_name_read_packets) function_name_read_packets
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(attribute
(identifier_self) identifier_self
(identifier_running) identifier_running
)attribute
(block
(expression_statement
(assignment
(identifier_packet_length) identifier_packet_length
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_recv) identifier_recv
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_packet_length) identifier_packet_length
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_packet_length) identifier_packet_length
(binary_operator
(subscript
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_"<h") string_"<h"
(identifier_packet_length) identifier_packet_length
)argument_list
)call
(integer_0) integer_0
)subscript
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_recv) identifier_recv
)attribute
(argument_list
(identifier_packet_length) identifier_packet_length
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_packno) identifier_packno
(subscript
(identifier_data) identifier_data
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(binary_operator
(binary_operator
(string_"Packet") string_"Packet"
(call
(attribute
(call
(identifier_format) identifier_format
(argument_list
(identifier_packno) identifier_packno
(string_'x') string_'x'
)argument_list
)call
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)binary_operator
(string_"Parser") string_"Parser"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_packet_class) identifier_packet_class
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_packets) identifier_packets
(identifier_parser) identifier_parser
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_packet_class) identifier_packet_class
(argument_list
)argument_list
)call
(identifier_parse) identifier_parse
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_world) identifier_world
)attribute
(attribute
(identifier_self) identifier_self
(identifier_player) identifier_player
)attribute
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier__evman) identifier__evman
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_AttributeError) identifier_AttributeError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_packno) identifier_packno
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module | Read packets from the socket and parse them |
(module
(function_definition
(function_name__lazy_listen) function_name__lazy_listen
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_all) identifier_all
(argument_list
(list
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_running) identifier_running
)attribute
)not_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__subscriptions) identifier__subscriptions
)attribute
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__pending) identifier__pending
)attribute
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pending) identifier__pending
)attribute
(identifier_empty) identifier_empty
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__task) identifier__task
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
(identifier_create_task) identifier_create_task
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__listen) identifier__listen
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Ensures that the listener task only runs when actually needed.
This function is a no-op if any of the preconditions is not met.
Preconditions are:
* The application is running (self._loop is set)
* The task is not already running
* There are subscriptions: either pending, or active |
(module
(function_definition
(function_name__write_gen_model_stats) function_name__write_gen_model_stats
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_iteration) identifier_iteration
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(string_"Writes gradient statistics for generator to Tensorboard.") string_"Writes gradient statistics for generator to Tensorboard."
)expression_statement
(expression_statement
(assignment
(identifier_generator) identifier_generator
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_learn) identifier_learn
)attribute
(identifier_gan_trainer) identifier_gan_trainer
)attribute
(identifier_generator) identifier_generator
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stats_writer) identifier_stats_writer
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(keyword_argument
(identifier_model) identifier_model
(identifier_generator) identifier_generator
)keyword_argument
(keyword_argument
(identifier_iteration) identifier_iteration
(identifier_iteration) identifier_iteration
)keyword_argument
(keyword_argument
(identifier_tbwriter) identifier_tbwriter
(attribute
(identifier_self) identifier_self
(identifier_tbwriter) identifier_tbwriter
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(string_'gen_model_stats') string_'gen_model_stats'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_gen_stats_updated) identifier_gen_stats_updated
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Writes gradient statistics for generator to Tensorboard. |
(module
(function_definition
(function_name_formatall) function_name_formatall
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kargs) identifier_kargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(string_" Add-on method for fits returned by chained_nonlinear_fit. ") string_" Add-on method for fits returned by chained_nonlinear_fit. "
)expression_statement
(expression_statement
(assignment
(identifier_ans) identifier_ans
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier_chained_fits) identifier_chained_fits
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ans) identifier_ans
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(integer_10) integer_10
(string_'=') string_'='
)binary_operator
(string_' ') string_' '
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)binary_operator
(string_'\n') string_'\n'
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ans) identifier_ans
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_chained_fits) identifier_chained_fits
)attribute
(identifier_x) identifier_x
)subscript
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kargs) identifier_kargs
)dictionary_splat
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ans) identifier_ans
(string_'\n') string_'\n'
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(subscript
(identifier_ans) identifier_ans
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)return_statement
)block
)function_definition
)module | Add-on method for fits returned by chained_nonlinear_fit. |
(module
(function_definition
(function_name__timeout_to_float) function_name__timeout_to_float
(parameters
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)parameters
(block
(if_statement
(comparison_operator
(identifier_timeout) identifier_timeout
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_timeout_float) identifier_timeout_float
(call
(identifier_float) identifier_float
(argument_list
(identifier_timeout) identifier_timeout
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'timeout_sec must be a valid number or None. timeout="{}"') string_'timeout_sec must be a valid number or None. timeout="{}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_timeout) identifier_timeout
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(identifier_timeout_float) identifier_timeout_float
(block
(return_statement
(identifier_timeout_float) identifier_timeout_float
)return_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Convert timeout to float.
Return None if timeout is None, 0 or 0.0. timeout=None disables timeouts in
Requests. |
(module
(function_definition
(function_name_get_features) function_name_get_features
(parameters
(identifier_cls) identifier_cls
(identifier_entry) identifier_entry
)parameters
(block
(expression_statement
(assignment
(identifier_features) identifier_features
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_feature) identifier_feature
(call
(attribute
(identifier_entry) identifier_entry
(identifier_iterfind) identifier_iterfind
)attribute
(argument_list
(string_"./feature") string_"./feature"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_feature_dict) identifier_feature_dict
(dictionary
(pair
(string_'description') string_'description'
(call
(attribute
(attribute
(identifier_feature) identifier_feature
(identifier_attrib) identifier_attrib
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'description') string_'description'
)argument_list
)call
)pair
(pair
(string_'type_') string_'type_'
(subscript
(attribute
(identifier_feature) identifier_feature
(identifier_attrib) identifier_attrib
)attribute
(string_'type') string_'type'
)subscript
)pair
(pair
(string_'identifier') string_'identifier'
(call
(attribute
(attribute
(identifier_feature) identifier_feature
(identifier_attrib) identifier_attrib
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_features) identifier_features
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_models) identifier_models
(identifier_Feature) identifier_Feature
)attribute
(argument_list
(dictionary_splat
(identifier_feature_dict) identifier_feature_dict
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_features) identifier_features
)return_statement
)block
)function_definition
)module | get list of `models.Feature` from XML node entry
:param entry: XML node entry
:return: list of :class:`pyuniprot.manager.models.Feature` |
(module
(function_definition
(function_name_parts) function_name_parts
(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
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_parts) identifier_parts
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(keyword_argument
(identifier_activity) identifier_activity
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve parts belonging to this activity.
Without any arguments it retrieves the Instances related to this task only.
This call only returns the configured properties in an activity. So properties that are not configured
are not in the returned parts.
See :class:`pykechain.Client.parts` for additional available parameters.
Example
-------
>>> task = project.activity('Specify Wheel Diameter')
>>> parts = task.parts()
To retrieve the models only.
>>> parts = task.parts(category=Category.MODEL) |
(module
(function_definition
(function_name_setEditorData) function_name_setEditorData
(parameters
(identifier_self) identifier_self
(identifier_spinBox) identifier_spinBox
(identifier_index) identifier_index
)parameters
(block
(if_statement
(call
(attribute
(identifier_index) identifier_index
(identifier_isValid) identifier_isValid
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(attribute
(identifier_index) identifier_index
(identifier_model) identifier_model
)attribute
(argument_list
)argument_list
)call
(identifier_data) identifier_data
)attribute
(argument_list
(identifier_index) identifier_index
(attribute
(attribute
(identifier_QtCore) identifier_QtCore
(identifier_Qt) identifier_Qt
)attribute
(identifier_EditRole) identifier_EditRole
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_spinBox) identifier_spinBox
(identifier_setValue) identifier_setValue
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Sets the data to be displayed and edited by the editor from the data model item specified by the model index.
Args:
spinBox (BigIntSpinbox): editor widget.
index (QModelIndex): model data index. |
(module
(function_definition
(function_name_LockRetryWrapper) function_name_LockRetryWrapper
(parameters
(identifier_self) identifier_self
(identifier_subject) identifier_subject
(default_parameter
(identifier_retrywrap_timeout) identifier_retrywrap_timeout
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_retrywrap_max_timeout) identifier_retrywrap_max_timeout
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_blocking) identifier_blocking
(True) True
)default_parameter
(default_parameter
(identifier_lease_time) identifier_lease_time
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_timeout) identifier_timeout
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_timeout) identifier_timeout
(identifier_retrywrap_max_timeout) identifier_retrywrap_max_timeout
)comparison_operator
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_DBSubjectLock) identifier_DBSubjectLock
)attribute
(argument_list
(identifier_subject) identifier_subject
(keyword_argument
(identifier_lease_time) identifier_lease_time
(identifier_lease_time) identifier_lease_time
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_DBSubjectLockError) identifier_DBSubjectLockError
(block
(if_statement
(not_operator
(identifier_blocking) identifier_blocking
)not_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_stats_collector_instance) identifier_stats_collector_instance
(identifier_Get) identifier_Get
)attribute
(argument_list
)argument_list
)call
(identifier_IncrementCounter) identifier_IncrementCounter
)attribute
(argument_list
(string_"datastore_retries") string_"datastore_retries"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(identifier_retrywrap_timeout) identifier_retrywrap_timeout
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_timeout) identifier_timeout
(identifier_retrywrap_timeout) identifier_retrywrap_timeout
)augmented_assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)while_statement
(raise_statement
(call
(identifier_DBSubjectLockError) identifier_DBSubjectLockError
(argument_list
(string_"Retry number exceeded.") string_"Retry number exceeded."
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Retry a DBSubjectLock until it succeeds.
Args:
subject: The subject which the lock applies to.
retrywrap_timeout: How long to wait before retrying the lock.
retrywrap_max_timeout: The maximum time to wait for a retry until we
raise.
blocking: If False, raise on first lock failure.
lease_time: lock lease time in seconds.
Returns:
The DBSubjectLock object
Raises:
DBSubjectLockError: If the maximum retry count has been reached. |
(module
(function_definition
(function_name_load_plugins) function_name_load_plugins
(parameters
(typed_parameter
(identifier_plugin_dir) identifier_plugin_dir
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_module_prefix) identifier_module_prefix
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_int) identifier_int
)type
(block
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_plugin_dir) identifier_plugin_dir
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_plugin_dir) identifier_plugin_dir
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'_') string_'_'
)argument_list
)call
(not_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.py') string_'.py'
)argument_list
)call
)not_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'_') string_'_'
)argument_list
)call
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(string_'__init__.py') string_'__init__.py'
)argument_list
)call
)argument_list
)call
)not_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_r'([_A-Z0-9a-z]+)(.py)?') string_r'([_A-Z0-9a-z]+)(.py)?'
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_m) identifier_m
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(call
(identifier_load_plugin) identifier_load_plugin
(argument_list
(string_f'{module_prefix}.{m.group(1)}') string_f'{module_prefix}.{m.group(1)}'
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_count) identifier_count
)return_statement
)block
)function_definition
)module | Find all non-hidden modules or packages in a given directory,
and import them with the given module prefix.
:param plugin_dir: plugin directory to search
:param module_prefix: module prefix used while importing
:return: number of plugins successfully loaded |
(module
(function_definition
(function_name_get_text) function_name_get_text
(parameters
(identifier_nodelist) identifier_nodelist
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(identifier_nodelist) identifier_nodelist
(block
(if_statement
(comparison_operator
(attribute
(identifier_node) identifier_node
(identifier_nodeType) identifier_nodeType
)attribute
(attribute
(identifier_node) identifier_node
(identifier_TEXT_NODE) identifier_TEXT_NODE
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_data) identifier_data
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the value from a text node. |
(module
(function_definition
(function_name_set_idle_priority) function_name_set_idle_priority
(parameters
(default_parameter
(identifier_pid) identifier_pid
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_pid) identifier_pid
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pid) identifier_pid
(call
(attribute
(identifier_os) identifier_os
(identifier_getpid) identifier_getpid
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_lib) identifier_lib
(identifier_ioprio_set) identifier_ioprio_set
)attribute
(argument_list
(attribute
(identifier_lib) identifier_lib
(identifier_IOPRIO_WHO_PROCESS) identifier_IOPRIO_WHO_PROCESS
)attribute
(identifier_pid) identifier_pid
(call
(attribute
(identifier_lib) identifier_lib
(identifier_IOPRIO_PRIO_VALUE) identifier_IOPRIO_PRIO_VALUE
)attribute
(argument_list
(attribute
(identifier_lib) identifier_lib
(identifier_IOPRIO_CLASS_IDLE) identifier_IOPRIO_CLASS_IDLE
)attribute
(integer_0) integer_0
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Puts a process in the idle io priority class.
If pid is omitted, applies to the current process. |
(module
(function_definition
(function_name_merge_context) function_name_merge_context
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_src) identifier_src
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_src) identifier_src
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(identifier_start_ts) identifier_start_ts
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(identifier_start_ts) identifier_start_ts
)attribute
(attribute
(identifier_src) identifier_src
(identifier_start_ts) identifier_start_ts
)attribute
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(identifier_start_ts) identifier_start_ts
)attribute
(attribute
(identifier_src) identifier_src
(identifier_start_ts) identifier_start_ts
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'StartTs mismatch') string_'StartTs mismatch'
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(identifier_keys) identifier_keys
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(attribute
(identifier_src) identifier_src
(identifier_keys) identifier_keys
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(identifier_preds) identifier_preds
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(attribute
(identifier_src) identifier_src
(identifier_preds) identifier_preds
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Merges context from this instance with src. |
(module
(function_definition
(function_name_draw_screen) function_name_draw_screen
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tui) identifier_tui
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_canvas) identifier_canvas
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_top) identifier_top
)attribute
(identifier_render) identifier_render
)attribute
(argument_list
(identifier_size) identifier_size
(keyword_argument
(identifier_focus) identifier_focus
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tui) identifier_tui
)attribute
(identifier_draw_screen) identifier_draw_screen
)attribute
(argument_list
(identifier_size) identifier_size
(identifier_canvas) identifier_canvas
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Render curses screen |
(module
(function_definition
(function_name_get_python) function_name_get_python
(parameters
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(string_'win32') string_'win32'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_python) identifier_python
(call
(attribute
(identifier_path) identifier_path
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_VE_ROOT) identifier_VE_ROOT
(string_'Scripts') string_'Scripts'
(string_'python.exe') string_'python.exe'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_python) identifier_python
(call
(attribute
(identifier_path) identifier_path
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_VE_ROOT) identifier_VE_ROOT
(string_'bin') string_'bin'
(string_'python') string_'python'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_python) identifier_python
)return_statement
)block
)function_definition
)module | Determine the path to the virtualenv python |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_resource) identifier_resource
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_resource) identifier_resource
(attribute
(identifier_collections) identifier_collections
(identifier_Iterable) identifier_Iterable
)attribute
)argument_list
)call
(block
(for_statement
(identifier_r) identifier_r
(identifier_resource) identifier_resource
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_if_changed) identifier_add_if_changed
)attribute
(argument_list
(identifier_r) identifier_r
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_if_changed) identifier_add_if_changed
)attribute
(argument_list
(identifier_resource) identifier_resource
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add a resource change or an iterable collection of them.
Allows multiple resource_change objects for the same
resource (ie. URI) and preserves the order of addition. |
(module
(function_definition
(function_name_build_publish_pkt) function_name_build_publish_pkt
(parameters
(identifier_self) identifier_self
(identifier_mid) identifier_mid
(identifier_topic) identifier_topic
(identifier_payload) identifier_payload
(identifier_qos) identifier_qos
(identifier_retain) identifier_retain
(identifier_dup) identifier_dup
)parameters
(block
(expression_statement
(assignment
(identifier_pkt) identifier_pkt
(call
(identifier_MqttPkt) identifier_MqttPkt
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_payloadlen) identifier_payloadlen
(call
(identifier_len) identifier_len
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_packetlen) identifier_packetlen
(binary_operator
(binary_operator
(integer_2) integer_2
(call
(identifier_len) identifier_len
(argument_list
(identifier_topic) identifier_topic
)argument_list
)call
)binary_operator
(identifier_payloadlen) identifier_payloadlen
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_qos) identifier_qos
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_packetlen) identifier_packetlen
(integer_2) integer_2
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_pkt) identifier_pkt
(identifier_mid) identifier_mid
)attribute
(identifier_mid) identifier_mid
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pkt) identifier_pkt
(identifier_command) identifier_command
)attribute
(binary_operator
(binary_operator
(binary_operator
(attribute
(identifier_NC) identifier_NC
(identifier_CMD_PUBLISH) identifier_CMD_PUBLISH
)attribute
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_dup) identifier_dup
(integer_0x1) integer_0x1
)binary_operator
)parenthesized_expression
(integer_3) integer_3
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_qos) identifier_qos
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_retain) identifier_retain
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pkt) identifier_pkt
(identifier_remaining_length) identifier_remaining_length
)attribute
(identifier_packetlen) identifier_packetlen
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_pkt) identifier_pkt
(identifier_alloc) identifier_alloc
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ret) identifier_ret
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_SUCCESS) identifier_ERR_SUCCESS
)attribute
)comparison_operator
(block
(return_statement
(expression_list
(identifier_ret) identifier_ret
(None) None
)expression_list
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_pkt) identifier_pkt
(identifier_write_string) identifier_write_string
)attribute
(argument_list
(identifier_topic) identifier_topic
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_qos) identifier_qos
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pkt) identifier_pkt
(identifier_write_uint16) identifier_write_uint16
)attribute
(argument_list
(identifier_mid) identifier_mid
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_payloadlen) identifier_payloadlen
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pkt) identifier_pkt
(identifier_write_bytes) identifier_write_bytes
)attribute
(argument_list
(identifier_payload) identifier_payload
(identifier_payloadlen) identifier_payloadlen
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(attribute
(identifier_NC) identifier_NC
(identifier_ERR_SUCCESS) identifier_ERR_SUCCESS
)attribute
(identifier_pkt) identifier_pkt
)expression_list
)return_statement
)block
)function_definition
)module | Build PUBLISH packet. |
(module
(function_definition
(function_name_from_lal) function_name_from_lal
(parameters
(identifier_cls) identifier_cls
(identifier_lalts) identifier_lalts
(default_parameter
(identifier_copy) identifier_copy
(True) True
)default_parameter
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_utils) identifier_utils
(identifier_lal) identifier_lal
)dotted_name
)relative_import
(dotted_name
(identifier_from_lal_unit) identifier_from_lal_unit
)dotted_name
)import_from_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_unit) identifier_unit
(call
(identifier_from_lal_unit) identifier_from_lal_unit
(argument_list
(attribute
(identifier_lalts) identifier_lalts
(identifier_sampleUnits) identifier_sampleUnits
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(binary_operator
(string_"%s, defaulting to 'dimensionless'") string_"%s, defaulting to 'dimensionless'"
(call
(identifier_str) identifier_str
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_unit) identifier_unit
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_channel) identifier_channel
(call
(identifier_Channel) identifier_Channel
(argument_list
(attribute
(identifier_lalts) identifier_lalts
(identifier_name) identifier_name
)attribute
(keyword_argument
(identifier_sample_rate) identifier_sample_rate
(binary_operator
(integer_1) integer_1
(attribute
(identifier_lalts) identifier_lalts
(identifier_deltaT) identifier_deltaT
)attribute
)binary_operator
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(identifier_unit) identifier_unit
)keyword_argument
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(attribute
(attribute
(identifier_lalts) identifier_lalts
(identifier_data) identifier_data
)attribute
(identifier_data) identifier_data
)attribute
(identifier_dtype) identifier_dtype
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(identifier_cls) identifier_cls
(argument_list
(attribute
(attribute
(identifier_lalts) identifier_lalts
(identifier_data) identifier_data
)attribute
(identifier_data) identifier_data
)attribute
(keyword_argument
(identifier_channel) identifier_channel
(identifier_channel) identifier_channel
)keyword_argument
(keyword_argument
(identifier_t0) identifier_t0
(attribute
(identifier_lalts) identifier_lalts
(identifier_epoch) identifier_epoch
)attribute
)keyword_argument
(keyword_argument
(identifier_dt) identifier_dt
(attribute
(identifier_lalts) identifier_lalts
(identifier_deltaT) identifier_deltaT
)attribute
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(identifier_unit) identifier_unit
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(attribute
(identifier_lalts) identifier_lalts
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_copy) identifier_copy
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_copy) identifier_copy
(block
(return_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Generate a new TimeSeries from a LAL TimeSeries of any type. |
(module
(function_definition
(function_name__sortValue_isMonospace) function_name__sortValue_isMonospace
(parameters
(identifier_font) identifier_font
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_font) identifier_font
(identifier_info) identifier_info
)attribute
(identifier_postscriptIsFixedPitch) identifier_postscriptIsFixedPitch
)attribute
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_font) identifier_font
)argument_list
)call
)not_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_testWidth) identifier_testWidth
(None) None
)assignment
)expression_statement
(for_statement
(identifier_glyph) identifier_glyph
(identifier_font) identifier_font
(block
(if_statement
(comparison_operator
(identifier_testWidth) identifier_testWidth
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_testWidth) identifier_testWidth
(attribute
(identifier_glyph) identifier_glyph
(identifier_width) identifier_width
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_testWidth) identifier_testWidth
(attribute
(identifier_glyph) identifier_glyph
(identifier_width) identifier_width
)attribute
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(integer_0) integer_0
)return_statement
)block
)function_definition
)module | Returns 0 if the font is monospace.
Returns 1 if the font is not monospace. |
(module
(function_definition
(function_name_contains_group) function_name_contains_group
(parameters
(identifier_store) identifier_store
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_normalize_storage_path) identifier_normalize_storage_path
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(call
(identifier__path_to_prefix) identifier__path_to_prefix
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_group_meta_key) identifier_group_meta_key
)binary_operator
)assignment
)expression_statement
(return_statement
(comparison_operator
(identifier_key) identifier_key
(identifier_store) identifier_store
)comparison_operator
)return_statement
)block
)function_definition
)module | Return True if the store contains a group at the given logical path. |
(module
(function_definition
(function_name__set_other) function_name__set_other
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dst) identifier_dst
)attribute
(identifier_style) identifier_style
)attribute
(string_'in') string_'in'
)subscript
(string_'numpydoc') string_'numpydoc'
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_docs) identifier_docs
)attribute
(string_'in') string_'in'
)subscript
(string_'raw') string_'raw'
)subscript
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_docs) identifier_docs
)attribute
(string_'out') string_'out'
)subscript
(string_'post') string_'post'
)subscript
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dst) identifier_dst
)attribute
(identifier_numpydoc) identifier_numpydoc
)attribute
(identifier_get_raw_not_managed) identifier_get_raw_not_managed
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_docs) identifier_docs
)attribute
(string_'in') string_'in'
)subscript
(string_'raw') string_'raw'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(string_'post') string_'post'
(subscript
(attribute
(identifier_self) identifier_self
(identifier_docs) identifier_docs
)attribute
(string_'out') string_'out'
)subscript
)comparison_operator
(comparison_operator
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_docs) identifier_docs
)attribute
(string_'out') string_'out'
)subscript
(string_'post') string_'post'
)subscript
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_docs) identifier_docs
)attribute
(string_'out') string_'out'
)subscript
(string_'post') string_'post'
)subscript
(string_'') string_''
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Sets other specific sections |
(module
(function_definition
(function_name_select_eep) function_name_select_eep
(parameters
(identifier_self) identifier_self
(identifier_rorg_func) identifier_rorg_func
(identifier_rorg_type) identifier_rorg_type
(default_parameter
(identifier_direction) identifier_direction
(None) None
)default_parameter
(default_parameter
(identifier_command) identifier_command
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rorg_func) identifier_rorg_func
)attribute
(identifier_rorg_func) identifier_rorg_func
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rorg_type) identifier_rorg_type
)attribute
(identifier_rorg_type) identifier_rorg_type
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__profile) identifier__profile
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_eep) identifier_eep
)attribute
(identifier_find_profile) identifier_find_profile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__bit_data) identifier__bit_data
)attribute
(attribute
(identifier_self) identifier_self
(identifier_rorg) identifier_rorg
)attribute
(identifier_rorg_func) identifier_rorg_func
(identifier_rorg_type) identifier_rorg_type
(identifier_direction) identifier_direction
(identifier_command) identifier_command
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__profile) identifier__profile
)attribute
(None) None
)comparison_operator
)return_statement
)block
)function_definition
)module | Set EEP based on FUNC and TYPE |
(module
(function_definition
(function_name_rewind) function_name_rewind
(parameters
(identifier_self) identifier_self
(identifier_count) identifier_count
)parameters
(block
(if_statement
(comparison_operator
(identifier_count) identifier_count
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Can't rewind past beginning!") string_"Can't rewind past beginning!"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
(identifier_count) identifier_count
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Rewind index. |
(module
(function_definition
(function_name_minusExtras) function_name_minusExtras
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_isOpen) identifier_isOpen
)attribute
(argument_list
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(identifier_trimmed) identifier_trimmed
(call
(attribute
(identifier_self) identifier_self
(identifier_clone) identifier_clone
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_equals) identifier_equals
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_test) identifier_test
(attribute
(identifier_trimmed) identifier_trimmed
(identifier_tests) identifier_tests
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_test) identifier_test
(identifier_op) identifier_op
)attribute
(string_'=') string_'='
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_equals) identifier_equals
(attribute
(identifier_test) identifier_test
(identifier_property) identifier_property
)attribute
)subscript
(attribute
(identifier_test) identifier_test
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_extras) identifier_extras
(list
)list
)assignment
)expression_statement
(for_statement
(tuple_pattern
(identifier_i) identifier_i
(identifier_test) identifier_test
)tuple_pattern
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(identifier_trimmed) identifier_trimmed
(identifier_tests) identifier_tests
)attribute
)argument_list
)call
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(attribute
(identifier_test) identifier_test
(identifier_op) identifier_op
)attribute
(string_'!=') string_'!='
)comparison_operator
(call
(attribute
(identifier_equals) identifier_equals
(identifier_has_key) identifier_has_key
)attribute
(argument_list
(attribute
(identifier_test) identifier_test
(identifier_property) identifier_property
)attribute
)argument_list
)call
)boolean_operator
(comparison_operator
(subscript
(identifier_equals) identifier_equals
(attribute
(identifier_test) identifier_test
(identifier_property) identifier_property
)attribute
)subscript
(attribute
(identifier_test) identifier_test
(identifier_value) identifier_value
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_extras) identifier_extras
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(while_statement
(identifier_extras) identifier_extras
(block
(expression_statement
(call
(attribute
(attribute
(identifier_trimmed) identifier_trimmed
(identifier_tests) identifier_tests
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(call
(attribute
(identifier_extras) identifier_extras
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)while_statement
(return_statement
(identifier_trimmed) identifier_trimmed
)return_statement
)block
)function_definition
)module | Return a new Filter that's equal to this one,
without extra terms that don't add meaning. |
(module
(function_definition
(function_name_func_dump) function_name_func_dump
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(call
(attribute
(identifier_marshal) identifier_marshal
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(attribute
(identifier_func) identifier_func
(identifier___code__) identifier___code__
)attribute
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'raw_unicode_escape') string_'raw_unicode_escape'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_defaults) identifier_defaults
(attribute
(identifier_func) identifier_func
(identifier___defaults__) identifier___defaults__
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_func) identifier_func
(identifier___closure__) identifier___closure__
)attribute
(block
(expression_statement
(assignment
(identifier_closure) identifier_closure
(call
(identifier_tuple) identifier_tuple
(generator_expression
(attribute
(identifier_c) identifier_c
(identifier_cell_contents) identifier_cell_contents
)attribute
(for_in_clause
(identifier_c) identifier_c
(attribute
(identifier_func) identifier_func
(identifier___closure__) identifier___closure__
)attribute
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_closure) identifier_closure
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_code) identifier_code
(identifier_defaults) identifier_defaults
(identifier_closure) identifier_closure
)expression_list
)return_statement
)block
)function_definition
)module | Serialize user defined function. |
(module
(function_definition
(function_name_save_to_mat_file) function_name_save_to_mat_file
(parameters
(identifier_self) identifier_self
(identifier_parameter_space) identifier_parameter_space
(identifier_result_parsing_function) identifier_result_parsing_function
(identifier_filename) identifier_filename
(identifier_runs) identifier_runs
)parameters
(block
(for_statement
(identifier_key) identifier_key
(identifier_parameter_space) identifier_parameter_space
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_parameter_space) identifier_parameter_space
(identifier_key) identifier_key
)subscript
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_parameter_space) identifier_parameter_space
(identifier_key) identifier_key
)subscript
(list
(subscript
(identifier_parameter_space) identifier_parameter_space
(identifier_key) identifier_key
)subscript
)list
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_dimension_labels) identifier_dimension_labels
(binary_operator
(list_comprehension
(dictionary
(pair
(identifier_key) identifier_key
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_parameter_space) identifier_parameter_space
(identifier_key) identifier_key
)subscript
)argument_list
)call
)pair
)dictionary
(for_in_clause
(identifier_key) identifier_key
(call
(attribute
(identifier_parameter_space) identifier_parameter_space
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_parameter_space) identifier_parameter_space
(identifier_key) identifier_key
)subscript
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)if_clause
)list_comprehension
(list
(dictionary
(pair
(string_'runs') string_'runs'
(call
(identifier_range) identifier_range
(argument_list
(identifier_runs) identifier_runs
)argument_list
)call
)pair
)dictionary
)list
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_savemat) identifier_savemat
(argument_list
(identifier_filename) identifier_filename
(dictionary
(pair
(string_'results') string_'results'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_results_as_numpy_array) identifier_get_results_as_numpy_array
)attribute
(argument_list
(identifier_parameter_space) identifier_parameter_space
(identifier_result_parsing_function) identifier_result_parsing_function
(keyword_argument
(identifier_runs) identifier_runs
(identifier_runs) identifier_runs
)keyword_argument
)argument_list
)call
)pair
(pair
(string_'dimension_labels') string_'dimension_labels'
(identifier_dimension_labels) identifier_dimension_labels
)pair
)dictionary
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the results relative to the desired parameter space in the form
of a .mat file.
Args:
parameter_space (dict): dictionary containing
parameter/list-of-values pairs.
result_parsing_function (function): user-defined function, taking a
result dictionary as argument, that can be used to parse the
result files and return a list of values.
filename (path): name of output .mat file.
runs (int): number of runs to gather for each parameter
combination. |
(module
(function_definition
(function_name_compute_err) function_name_compute_err
(parameters
(identifier_self) identifier_self
(identifier_solution_y) identifier_solution_y
(identifier_coefficients) identifier_coefficients
)parameters
(block
(expression_statement
(assignment
(identifier_error) identifier_error
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_modeled) identifier_modeled
(identifier_expected) identifier_expected
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_solution_y) identifier_solution_y
(attribute
(identifier_self) identifier_self
(identifier_expected_values) identifier_expected_values
)attribute
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_error) identifier_error
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(identifier_modeled) identifier_modeled
(identifier_expected) identifier_expected
)binary_operator
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(call
(identifier_any) identifier_any
(argument_list
(list_comprehension
(comparison_operator
(identifier_c) identifier_c
(integer_0) integer_0
)comparison_operator
(for_in_clause
(identifier_c) identifier_c
(identifier_coefficients) identifier_coefficients
)for_in_clause
)list_comprehension
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_error) identifier_error
(float_1.5) float_1.5
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_error) identifier_error
)return_statement
)block
)function_definition
)module | Return an error value by finding the absolute difference for each
element in a list of solution-generated y-values versus expected values.
Compounds error by 50% for each negative coefficient in the solution.
solution_y: list of y-values produced by a solution
coefficients: list of polynomial coefficients represented by the solution
return: error value |
(module
(function_definition
(function_name_set_probe_position) function_name_set_probe_position
(parameters
(identifier_self) identifier_self
(identifier_new_probe_position) identifier_new_probe_position
)parameters
(block
(if_statement
(comparison_operator
(identifier_new_probe_position) identifier_new_probe_position
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_probe_position) identifier_new_probe_position
(call
(attribute
(attribute
(identifier_Geometry) identifier_Geometry
(identifier_FloatPoint) identifier_FloatPoint
)attribute
(identifier_make) identifier_make
)attribute
(argument_list
(identifier_new_probe_position) identifier_new_probe_position
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_probe_position) identifier_new_probe_position
(call
(attribute
(identifier_Geometry) identifier_Geometry
(identifier_FloatPoint) identifier_FloatPoint
)attribute
(argument_list
(keyword_argument
(identifier_y) identifier_y
(call
(identifier_max) identifier_max
(argument_list
(call
(identifier_min) identifier_min
(argument_list
(attribute
(identifier_new_probe_position) identifier_new_probe_position
(identifier_y) identifier_y
)attribute
(float_1.0) float_1.0
)argument_list
)call
(float_0.0) float_0.0
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_x) identifier_x
(call
(identifier_max) identifier_max
(argument_list
(call
(identifier_min) identifier_min
(argument_list
(attribute
(identifier_new_probe_position) identifier_new_probe_position
(identifier_x) identifier_x
)attribute
(float_1.0) float_1.0
)argument_list
)call
(float_0.0) float_0.0
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_old_probe_position) identifier_old_probe_position
(attribute
(attribute
(identifier_self) identifier_self
(identifier___probe_position_value) identifier___probe_position_value
)attribute
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(parenthesized_expression
(comparison_operator
(identifier_old_probe_position) identifier_old_probe_position
(None) None
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_new_probe_position) identifier_new_probe_position
(None) None
)comparison_operator
)parenthesized_expression
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_old_probe_position) identifier_old_probe_position
(identifier_new_probe_position) identifier_new_probe_position
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier___probe_position_value) identifier___probe_position_value
)attribute
(identifier_value) identifier_value
)attribute
(identifier_new_probe_position) identifier_new_probe_position
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_probe_state_changed_event) identifier_probe_state_changed_event
)attribute
(identifier_fire) identifier_fire
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_probe_state) identifier_probe_state
)attribute
(attribute
(identifier_self) identifier_self
(identifier_probe_position) identifier_probe_position
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the probe position, in normalized coordinates with origin at top left. |
(module
(function_definition
(function_name_get_info_consistent) function_name_get_info_consistent
(parameters
(identifier_self) identifier_self
(identifier_ndim) identifier_ndim
)parameters
(block
(if_statement
(comparison_operator
(identifier_ndim) identifier_ndim
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_spacing) identifier_spacing
)attribute
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_spacing) identifier_spacing
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_spacing) identifier_spacing
)attribute
(binary_operator
(tuple
(float_1.0) float_1.0
)tuple
(parenthesized_expression
(binary_operator
(identifier_ndim) identifier_ndim
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_spacing) identifier_spacing
)attribute
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_spacing) identifier_spacing
(subscript
(attribute
(identifier_self) identifier_self
(identifier_spacing) identifier_spacing
)attribute
(slice
(colon) colon
(identifier_ndim) identifier_ndim
)slice
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_ndim) identifier_ndim
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_offset) identifier_offset
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(binary_operator
(tuple
(float_0.0) float_0.0
)tuple
(parenthesized_expression
(binary_operator
(identifier_ndim) identifier_ndim
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_offset) identifier_offset
(subscript
(attribute
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)attribute
(slice
(colon) colon
(identifier_ndim) identifier_ndim
)slice
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_ndim) identifier_ndim
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(identifier_direction) identifier_direction
(call
(attribute
(identifier_np) identifier_np
(identifier_identity) identifier_identity
)attribute
(argument_list
(identifier_ndim) identifier_ndim
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_direction) identifier_direction
(slice
(colon) colon
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)slice
(slice
(colon) colon
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)slice
)subscript
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_direction) identifier_direction
(subscript
(attribute
(identifier_self) identifier_self
(identifier_direction) identifier_direction
)attribute
(slice
(colon) colon
(identifier_ndim) identifier_ndim
)slice
(slice
(colon) colon
(identifier_ndim) identifier_ndim
)slice
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_spacing) identifier_spacing
(identifier_offset) identifier_offset
(identifier_direction) identifier_direction
)expression_list
)return_statement
)block
)function_definition
)module | Returns the main meta-data information adapted to the supplied
image dimensionality.
It will try to resolve inconsistencies and other conflicts,
altering the information avilable int he most plausible way.
Parameters
----------
ndim : int
image's dimensionality
Returns
-------
spacing : tuple of floats
offset : tuple of floats
direction : ndarray |
(module
(function_definition
(function_name_clean_new_password2) function_name_clean_new_password2
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_password1) identifier_password1
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'new_password1') string_'new_password1'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_password2) identifier_password2
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'new_password2') string_'new_password2'
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_directory) identifier_directory
(attribute
(attribute
(identifier_APPLICATION) identifier_APPLICATION
(identifier_default_account_store_mapping) identifier_default_account_store_mapping
)attribute
(identifier_account_store) identifier_account_store
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_directory) identifier_directory
(identifier_password_policy) identifier_password_policy
)attribute
(identifier_strength) identifier_strength
)attribute
(identifier_validate_password) identifier_validate_password
)attribute
(argument_list
(identifier_password2) identifier_password2
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_ValueError) identifier_ValueError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(attribute
(identifier_forms) identifier_forms
(identifier_ValidationError) identifier_ValidationError
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(identifier_password1) identifier_password1
(identifier_password2) identifier_password2
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_password1) identifier_password1
(identifier_password2) identifier_password2
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_forms) identifier_forms
(identifier_ValidationError) identifier_ValidationError
)attribute
(argument_list
(string_"The two passwords didn't match.") string_"The two passwords didn't match."
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_password2) identifier_password2
)return_statement
)block
)function_definition
)module | Check if passwords match and are valid. |
(module
(function_definition
(function_name_stemming_processor) function_name_stemming_processor
(parameters
(identifier_words) identifier_words
)parameters
(block
(expression_statement
(assignment
(identifier_stem) identifier_stem
(attribute
(call
(identifier_PorterStemmer) identifier_PorterStemmer
(argument_list
)argument_list
)call
(identifier_stem) identifier_stem
)attribute
)assignment
)expression_statement
(for_statement
(identifier_word) identifier_word
(identifier_words) identifier_words
(block
(expression_statement
(assignment
(identifier_word) identifier_word
(call
(identifier_stem) identifier_stem
(argument_list
(identifier_word) identifier_word
(integer_0) integer_0
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_word) identifier_word
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(identifier_word) identifier_word
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Porter Stemmer word processor |
(module
(function_definition
(function_name_ray_triangle_candidates) function_name_ray_triangle_candidates
(parameters
(identifier_ray_origins) identifier_ray_origins
(identifier_ray_directions) identifier_ray_directions
(identifier_tree) identifier_tree
)parameters
(block
(expression_statement
(assignment
(identifier_ray_bounding) identifier_ray_bounding
(call
(identifier_ray_bounds) identifier_ray_bounds
(argument_list
(keyword_argument
(identifier_ray_origins) identifier_ray_origins
(identifier_ray_origins) identifier_ray_origins
)keyword_argument
(keyword_argument
(identifier_ray_directions) identifier_ray_directions
(identifier_ray_directions) identifier_ray_directions
)keyword_argument
(keyword_argument
(identifier_bounds) identifier_bounds
(attribute
(identifier_tree) identifier_tree
(identifier_bounds) identifier_bounds
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ray_candidates) identifier_ray_candidates
(binary_operator
(list
(list
)list
)list
(call
(identifier_len) identifier_len
(argument_list
(identifier_ray_origins) identifier_ray_origins
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ray_id) identifier_ray_id
(binary_operator
(list
(list
)list
)list
(call
(identifier_len) identifier_len
(argument_list
(identifier_ray_origins) identifier_ray_origins
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_bounds) identifier_bounds
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_ray_bounding) identifier_ray_bounding
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_ray_candidates) identifier_ray_candidates
(identifier_i) identifier_i
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_tree) identifier_tree
(identifier_intersection) identifier_intersection
)attribute
(argument_list
(identifier_bounds) identifier_bounds
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ray_id) identifier_ray_id
(identifier_i) identifier_i
)subscript
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_ones) identifier_ones
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_ray_candidates) identifier_ray_candidates
(identifier_i) identifier_i
)subscript
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
)keyword_argument
)argument_list
)call
(identifier_i) identifier_i
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_ray_id) identifier_ray_id
(call
(attribute
(identifier_np) identifier_np
(identifier_hstack) identifier_hstack
)attribute
(argument_list
(identifier_ray_id) identifier_ray_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ray_candidates) identifier_ray_candidates
(call
(attribute
(identifier_np) identifier_np
(identifier_hstack) identifier_hstack
)attribute
(argument_list
(identifier_ray_candidates) identifier_ray_candidates
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_ray_candidates) identifier_ray_candidates
(identifier_ray_id) identifier_ray_id
)expression_list
)return_statement
)block
)function_definition
)module | Do broad- phase search for triangles that the rays
may intersect.
Does this by creating a bounding box for the ray as it
passes through the volume occupied by the tree
Parameters
------------
ray_origins: (m,3) float, ray origin points
ray_directions: (m,3) float, ray direction vectors
tree: rtree object, contains AABB of each triangle
Returns
----------
ray_candidates: (n,) int, triangle indexes
ray_id: (n,) int, corresponding ray index for a triangle candidate |
(module
(function_definition
(function_name_generate_uuid4) function_name_generate_uuid4
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_list) identifier_list
)type
(block
(expression_statement
(assignment
(identifier_hexstr) identifier_hexstr
(call
(identifier_randhex) identifier_randhex
(argument_list
(integer_30) integer_30
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uuid4) identifier_uuid4
(list
(subscript
(identifier_hexstr) identifier_hexstr
(slice
(colon) colon
(integer_8) integer_8
)slice
)subscript
(subscript
(identifier_hexstr) identifier_hexstr
(slice
(integer_8) integer_8
(colon) colon
(integer_12) integer_12
)slice
)subscript
(binary_operator
(string_'4') string_'4'
(subscript
(identifier_hexstr) identifier_hexstr
(slice
(integer_12) integer_12
(colon) colon
(integer_15) integer_15
)slice
)subscript
)binary_operator
(call
(attribute
(string_'{:x}{}') string_'{:x}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_randbetween) identifier_randbetween
(argument_list
(integer_8) integer_8
(integer_11) integer_11
)argument_list
)call
(subscript
(identifier_hexstr) identifier_hexstr
(slice
(integer_15) integer_15
(colon) colon
(integer_18) integer_18
)slice
)subscript
)argument_list
)call
(subscript
(identifier_hexstr) identifier_hexstr
(slice
(integer_18) integer_18
(colon) colon
)slice
)subscript
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_last_result) identifier_last_result
)attribute
(identifier_uuid4) identifier_uuid4
)assignment
)expression_statement
(return_statement
(identifier_uuid4) identifier_uuid4
)return_statement
)block
)function_definition
)module | Generate a list of parts of a UUID version 4 string.
Usually, these parts are concatenated together using dashes. |
(module
(function_definition
(function_name_create_network) function_name_create_network
(parameters
(identifier_userid) identifier_userid
(identifier_os_version) identifier_os_version
(identifier_network_info) identifier_network_info
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"\nConfiguring network interface for %s ...") string_"\nConfiguring network interface for %s ..."
(identifier_userid) identifier_userid
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_network_create_info) identifier_network_create_info
(call
(attribute
(identifier_client) identifier_client
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(string_'guest_create_network_interface') string_'guest_create_network_interface'
(identifier_userid) identifier_userid
(identifier_os_version) identifier_os_version
(identifier_network_info) identifier_network_info
)argument_list
)call
)assignment
)expression_statement
(if_statement
(subscript
(identifier_network_create_info) identifier_network_create_info
(string_'overallRC') string_'overallRC'
)subscript
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_"Failed to create network for guest %s!\n%s") string_"Failed to create network for guest %s!\n%s"
(tuple
(identifier_userid) identifier_userid
(identifier_network_create_info) identifier_network_create_info
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"Succeeded to create network for guest %s!") string_"Succeeded to create network for guest %s!"
(identifier_userid) identifier_userid
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Create network device and configure network interface.
Input parameters:
:userid: USERID of the guest, last 8 if length > 8
:os_version: os version of the image file
:network_info: dict of network info |
(module
(function_definition
(function_name_is_dir) function_name_is_dir
(parameters
(identifier_dirname) identifier_dirname
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_dirname) identifier_dirname
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"{0} is not a directory") string_"{0} is not a directory"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_dirname) identifier_dirname
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentTypeError) identifier_ArgumentTypeError
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(identifier_dirname) identifier_dirname
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Checks if a path is an actual directory that exists |
(module
(function_definition
(function_name_create_bwa_index_from_fasta_file) function_name_create_bwa_index_from_fasta_file
(parameters
(identifier_fasta_in) identifier_fasta_in
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_params) identifier_params
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(identifier_BWA_index) identifier_BWA_index
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(identifier_index) identifier_index
(argument_list
(dictionary
(pair
(string_'fasta_in') string_'fasta_in'
(identifier_fasta_in) identifier_fasta_in
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Create a BWA index from an input fasta file.
fasta_in: the input fasta file from which to create the index
params: dict of bwa index specific paramters
This method returns a dictionary where the keys are the various
output suffixes (.amb, .ann, .bwt, .pac, .sa) and the values
are open file objects.
The index prefix will be the same as fasta_in, unless the -p parameter
is passed in params. |
(module
(function_definition
(function_name_close_alert) function_name_close_alert
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_api_key) identifier_api_key
(None) None
)default_parameter
(default_parameter
(identifier_reason) identifier_reason
(string_"Conditions are met.") string_"Conditions are met."
)default_parameter
(default_parameter
(identifier_action_type) identifier_action_type
(string_"Close") string_"Close"
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(None) None
)comparison_operator
(block
(raise_statement
(call
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_SaltInvocationError) identifier_SaltInvocationError
)attribute
(argument_list
(string_'Name cannot be None.') string_'Name cannot be None.'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_create_alert) identifier_create_alert
(argument_list
(identifier_name) identifier_name
(identifier_api_key) identifier_api_key
(identifier_reason) identifier_reason
(identifier_action_type) identifier_action_type
)argument_list
)call
)return_statement
)block
)function_definition
)module | Close an alert in OpsGenie. It's a wrapper function for create_alert.
Example usage with Salt's requisites and other global state arguments
could be found above.
Required Parameters:
name
It will be used as alert's alias. If you want to use the close
functionality you must provide name field for both states like
in above case.
Optional Parameters:
api_key
It's the API Key you've copied while adding integration in OpsGenie.
reason
It will be used as alert's default message in OpsGenie.
action_type
OpsGenie supports the default values Create/Close for action_type.
You can customize this field with OpsGenie's custom actions for
other purposes like adding notes or acknowledging alerts. |
(module
(function_definition
(function_name_is_decimal) function_name_is_decimal
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(subscript
(identifier_DATA_TYPES) identifier_DATA_TYPES
(string_'decimal') string_'decimal'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)argument_list
)call
(subscript
(identifier_dt) identifier_dt
(string_'type') string_'type'
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
(string_'DECIMAL') string_'DECIMAL'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_num_split) identifier_num_split
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_len) identifier_len
)attribute
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_num_split) identifier_num_split
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_len_decimal) identifier_len_decimal
)attribute
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_num_split) identifier_num_split
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)function_definition
)module | Determine if a data record is of the type float. |
(module
(function_definition
(function_name_get_hostname_text) function_name_get_hostname_text
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_hostname_text) identifier_hostname_text
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_device) identifier_device
)attribute
(identifier_send) identifier_send
)attribute
(argument_list
(string_'hostname') string_'hostname'
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_hostname_text) identifier_hostname_text
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_device) identifier_device
)attribute
(identifier_hostname) identifier_hostname
)attribute
(subscript
(call
(attribute
(identifier_hostname_text) identifier_hostname_text
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(identifier_hostname_text) identifier_hostname_text
)return_statement
)block
)if_statement
)block
(except_clause
(identifier_CommandError) identifier_CommandError
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(string_"Non Unix jumphost type detected") string_"Non Unix jumphost type detected"
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return hostname information from the Unix host. |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_timeout) identifier_timeout
(integer_90) integer_90
)default_parameter
(default_parameter
(identifier_with_deps) identifier_with_deps
(False) False
)default_parameter
(default_parameter
(identifier_with_parents) identifier_with_parents
(False) False
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_disabled) identifier_disabled
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(block
(expression_statement
(call
(identifier_modify) identifier_modify
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_start_type) identifier_start_type
(string_'Manual') string_'Manual'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_services) identifier_services
(call
(identifier_ServiceDependencies) identifier_ServiceDependencies
(argument_list
(identifier_name) identifier_name
(identifier_get_all) identifier_get_all
(identifier_info) identifier_info
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(identifier_services) identifier_services
(identifier_start_order) identifier_start_order
)attribute
(argument_list
(keyword_argument
(identifier_with_deps) identifier_with_deps
(identifier_with_deps) identifier_with_deps
)keyword_argument
(keyword_argument
(identifier_with_parents) identifier_with_parents
(identifier_with_parents) identifier_with_parents
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Starting services %s") string_"Starting services %s"
(identifier_start) identifier_start
)argument_list
)call
)expression_statement
(for_statement
(identifier_name) identifier_name
(identifier_start) identifier_start
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_win32serviceutil) identifier_win32serviceutil
(identifier_StartService) identifier_StartService
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_pywintypes) identifier_pywintypes
(identifier_error) identifier_error
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_exc) identifier_exc
(identifier_winerror) identifier_winerror
)attribute
(integer_1056) integer_1056
)comparison_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_'Failed To Start {0}: {1}') string_'Failed To Start {0}: {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(attribute
(identifier_exc) identifier_exc
(identifier_strerror) identifier_strerror
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Service "%s" is running') string_'Service "%s" is running'
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_srv_status) identifier_srv_status
(call
(identifier__status_wait) identifier__status_wait
(argument_list
(keyword_argument
(identifier_service_name) identifier_service_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_end_time) identifier_end_time
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(identifier_timeout) identifier_timeout
)argument_list
)call
)binary_operator
)keyword_argument
(keyword_argument
(identifier_service_states) identifier_service_states
(list
(string_'Start Pending') string_'Start Pending'
(string_'Stopped') string_'Stopped'
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_add) identifier_add
)attribute
(argument_list
(comparison_operator
(subscript
(identifier_srv_status) identifier_srv_status
(string_'Status') string_'Status'
)subscript
(string_'Running') string_'Running'
)comparison_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(comparison_operator
(False) False
(identifier_ret) identifier_ret
)comparison_operator
)return_statement
)block
)function_definition
)module | Start the specified service.
.. warning::
You cannot start a disabled service in Windows. If the service is
disabled, it will be changed to ``Manual`` start.
Args:
name (str): The name of the service to start
timeout (int):
The time in seconds to wait for the service to start before
returning. Default is 90 seconds
.. versionadded:: 2017.7.9,2018.3.4
with_deps (bool):
If enabled start the given service and the services the current
service depends on.
with_parents (bool):
If enabled and in case other running services depend on the to be start
service, this flag indicates that those other services will be started
as well.
Returns:
bool: ``True`` if successful, otherwise ``False``. Also returns ``True``
if the service is already started
CLI Example:
.. code-block:: bash
salt '*' service.start <service name> |
(module
(function_definition
(function_name_evalsha) function_name_evalsha
(parameters
(identifier_self) identifier_self
(identifier_digest) identifier_digest
(default_parameter
(identifier_keys) identifier_keys
(list
)list
)default_parameter
(default_parameter
(identifier_args) identifier_args
(list
)list
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_b'EVALSHA') string_b'EVALSHA'
(identifier_digest) identifier_digest
(call
(identifier_len) identifier_len
(argument_list
(identifier_keys) identifier_keys
)argument_list
)call
(list_splat
(parenthesized_expression
(binary_operator
(identifier_keys) identifier_keys
(identifier_args) identifier_args
)binary_operator
)parenthesized_expression
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Execute a Lua script server side by its SHA1 digest. |
(module
(function_definition
(function_name_first_true) function_name_first_true
(parameters
(identifier_iterable) identifier_iterable
(default_parameter
(identifier_default) identifier_default
(False) False
)default_parameter
(default_parameter
(identifier_pred) identifier_pred
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(identifier_pred) identifier_pred
(identifier_iterable) identifier_iterable
)argument_list
)call
(identifier_default) identifier_default
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the first true value in the iterable.
If no true value is found, returns *default*
If *pred* is not None, returns the first item
for which pred(item) is true. |
(module
(function_definition
(function_name_redirect) function_name_redirect
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_where) identifier_where
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_default) identifier_default
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_override) identifier_override
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(dictionary_splat_pattern
(identifier_url_kwargs) identifier_url_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_redirect) identifier_redirect
(argument_list
(identifier_where) identifier_where
(identifier_default) identifier_default
(identifier_override) identifier_override
(keyword_argument
(identifier__cls) identifier__cls
(identifier_self) identifier_self
)keyword_argument
(dictionary_splat
(identifier_url_kwargs) identifier_url_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convenience method for returning redirect responses.
:param where: A URL, endpoint, or config key name to redirect to.
:param default: A URL, endpoint, or config key name to redirect to if
``where`` is invalid.
:param override: explicitly redirect to a URL, endpoint, or config key name
(takes precedence over the ``next`` value in query strings
or forms)
:param url_kwargs: the variable arguments of the URL rule
:param _anchor: if provided this is added as anchor to the URL.
:param _external: if set to ``True``, an absolute URL is generated. Server
address can be changed via ``SERVER_NAME`` configuration
variable which defaults to `localhost`.
:param _external_host: if specified, the host of an external server to
generate urls for (eg https://example.com or
localhost:8888)
:param _method: if provided this explicitly specifies an HTTP method.
:param _scheme: a string specifying the desired URL scheme. The `_external`
parameter must be set to ``True`` or a :exc:`ValueError`
is raised. The default behavior uses the same scheme as
the current request, or ``PREFERRED_URL_SCHEME`` from the
:ref:`app configuration <config>` if no request context is
available. As of Werkzeug 0.10, this also can be set
to an empty string to build protocol-relative URLs. |
(module
(function_definition
(function_name_link) function_name_link
(parameters
(identifier_self) identifier_self
(identifier_pid) identifier_pid
(identifier_to) identifier_to
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__assert_started) identifier__assert_started
)attribute
(argument_list
)argument_list
)call
)expression_statement
(function_definition
(function_name_really_link) function_name_really_link
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__links) identifier__links
)attribute
(identifier_pid) identifier_pid
)subscript
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_to) identifier_to
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Added link from %s to %s') string_'Added link from %s to %s'
(tuple
(identifier_pid) identifier_pid
(identifier_to) identifier_to
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
(function_definition
(function_name_on_connect) function_name_on_connect
(parameters
(identifier_stream) identifier_stream
)parameters
(block
(expression_statement
(call
(identifier_really_link) identifier_really_link
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__is_local) identifier__is_local
)attribute
(argument_list
(identifier_pid) identifier_pid
)argument_list
)call
(block
(expression_statement
(call
(identifier_really_link) identifier_really_link
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___loop) identifier___loop
)attribute
(identifier_add_callback) identifier_add_callback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__maybe_connect) identifier__maybe_connect
)attribute
(identifier_to) identifier_to
(identifier_on_connect) identifier_on_connect
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Link a local process to a possibly remote process.
Note: It is more idiomatic to call ``link`` directly on the bound Process
object instead.
When ``pid`` is linked to ``to``, the termination of the ``to`` process
(or the severing of its connection from the Process ``pid``) will result
in the local process' ``exited`` method to be called with ``to``.
This method returns immediately.
:param pid: The pid of the linking process.
:type pid: :class:`PID`
:param to: The pid of the linked process.
:type to: :class:`PID`
:returns: Nothing |
(module
(function_definition
(function_name_write_seq_as_temp_fasta) function_name_write_seq_as_temp_fasta
(parameters
(identifier_seq) identifier_seq
)parameters
(block
(expression_statement
(assignment
(identifier_sr) identifier_sr
(call
(attribute
(attribute
(attribute
(attribute
(identifier_ssbio) identifier_ssbio
(identifier_protein) identifier_protein
)attribute
(identifier_sequence) identifier_sequence
)attribute
(identifier_utils) identifier_utils
)attribute
(identifier_cast_to_seq_record) identifier_cast_to_seq_record
)attribute
(argument_list
(identifier_seq) identifier_seq
(keyword_argument
(identifier_id) identifier_id
(string_'tempfasta') string_'tempfasta'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_write_fasta_file) identifier_write_fasta_file
(argument_list
(keyword_argument
(identifier_seq_records) identifier_seq_records
(identifier_sr) identifier_sr
)keyword_argument
(keyword_argument
(identifier_outname) identifier_outname
(string_'temp') string_'temp'
)keyword_argument
(keyword_argument
(identifier_outdir) identifier_outdir
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_gettempdir) identifier_gettempdir
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_force_rerun) identifier_force_rerun
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Write a sequence as a temporary FASTA file
Args:
seq (str, Seq, SeqRecord): Sequence string, Biopython Seq or SeqRecord object
Returns:
str: Path to temporary FASTA file (located in system temporary files directory) |
(module
(function_definition
(function_name_set_value) function_name_set_value
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_to_text_string) identifier_to_text_string
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_code) identifier_code
(binary_operator
(string_u"get_ipython().kernel.set_value('%s', %s, %s)") string_u"get_ipython().kernel.set_value('%s', %s, %s)"
(tuple
(identifier_name) identifier_name
(identifier_value) identifier_value
(identifier_PY2) identifier_PY2
)tuple
)binary_operator
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__reading) identifier__reading
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kernel_client) identifier_kernel_client
)attribute
(identifier_input) identifier_input
)attribute
(argument_list
(binary_operator
(string_u'!') string_u'!'
(identifier_code) identifier_code
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_silent_execute) identifier_silent_execute
)attribute
(argument_list
(identifier_code) identifier_code
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Set value for a variable |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(identifier_sphinx) identifier_sphinx
)parameters
(block
(import_from_statement
(dotted_name
(identifier_flask) identifier_flask
)dotted_name
(dotted_name
(identifier_has_app_context) identifier_has_app_context
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_invenio_base) identifier_invenio_base
(identifier_factory) identifier_factory
)dotted_name
(dotted_name
(identifier_create_app) identifier_create_app
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_PACKAGES) identifier_PACKAGES
(list
(string_'invenio_base') string_'invenio_base'
(string_'invenio.modules.accounts') string_'invenio.modules.accounts'
(string_'invenio.modules.records') string_'invenio.modules.records'
(string_'invenio_knowledge') string_'invenio_knowledge'
)list
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_has_app_context) identifier_has_app_context
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_app) identifier_app
(call
(identifier_create_app) identifier_create_app
(argument_list
(keyword_argument
(identifier_PACKAGES) identifier_PACKAGES
(identifier_PACKAGES) identifier_PACKAGES
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ctx) identifier_ctx
(call
(attribute
(identifier_app) identifier_app
(identifier_test_request_context) identifier_test_request_context
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_push) identifier_push
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Setup Sphinx object. |
(module
(function_definition
(function_name_cor) function_name_cor
(parameters
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)pattern_list
(call
(identifier__mask_nan) identifier__mask_nan
(argument_list
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_corrcoef) identifier_corrcoef
)attribute
(argument_list
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)argument_list
)call
(integer_0) integer_0
(integer_1) integer_1
)subscript
)return_statement
)block
)function_definition
)module | Compute Pearson correlation coefficient. |
(module
(function_definition
(function_name_pdf_saver) function_name_pdf_saver
(parameters
(identifier_filehandle) identifier_filehandle
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(string_"Uses werkzeug.FileStorage instance to save the converted image.") string_"Uses werkzeug.FileStorage instance to save the converted image."
)expression_statement
(expression_statement
(assignment
(identifier_fullpath) identifier_fullpath
(call
(identifier_get_save_path) identifier_get_save_path
(argument_list
(attribute
(identifier_filehandle) identifier_filehandle
(identifier_filename) identifier_filename
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_filehandle) identifier_filehandle
(identifier_save) identifier_save
)attribute
(argument_list
(identifier_fullpath) identifier_fullpath
(keyword_argument
(identifier_buffer_size) identifier_buffer_size
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'buffer_size') string_'buffer_size'
(integer_16384) integer_16384
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Uses werkzeug.FileStorage instance to save the converted image. |
(module
(function_definition
(function_name_get_default_storage_policy_of_datastore) function_name_get_default_storage_policy_of_datastore
(parameters
(identifier_profile_manager) identifier_profile_manager
(identifier_datastore) identifier_datastore
)parameters
(block
(expression_statement
(assignment
(identifier_hub) identifier_hub
(call
(attribute
(attribute
(identifier_pbm) identifier_pbm
(identifier_placement) identifier_placement
)attribute
(identifier_PlacementHub) identifier_PlacementHub
)attribute
(argument_list
(keyword_argument
(identifier_hubId) identifier_hubId
(attribute
(identifier_datastore) identifier_datastore
(identifier__moId) identifier__moId
)attribute
)keyword_argument
(keyword_argument
(identifier_hubType) identifier_hubType
(string_'Datastore') string_'Datastore'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_trace) identifier_trace
)attribute
(argument_list
(string_'placement_hub = %s') string_'placement_hub = %s'
(identifier_hub) identifier_hub
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_policy_id) identifier_policy_id
(call
(attribute
(identifier_profile_manager) identifier_profile_manager
(identifier_QueryDefaultRequirementProfile) identifier_QueryDefaultRequirementProfile
)attribute
(argument_list
(identifier_hub) identifier_hub
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_vim) identifier_vim
(identifier_fault) identifier_fault
)attribute
(identifier_NoPermission) identifier_NoPermission
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_VMwareApiError) identifier_VMwareApiError
(argument_list
(call
(attribute
(concatenated_string
(string_'Not enough permissions. Required privilege: ') string_'Not enough permissions. Required privilege: '
(string_'{0}') string_'{0}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_privilegeId) identifier_privilegeId
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(attribute
(attribute
(identifier_vim) identifier_vim
(identifier_fault) identifier_fault
)attribute
(identifier_VimFault) identifier_VimFault
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_VMwareApiError) identifier_VMwareApiError
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_msg) identifier_msg
)attribute
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(attribute
(identifier_vmodl) identifier_vmodl
(identifier_RuntimeFault) identifier_RuntimeFault
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_VMwareRuntimeError) identifier_VMwareRuntimeError
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_msg) identifier_msg
)attribute
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_policy_refs) identifier_policy_refs
(call
(identifier_get_policies_by_id) identifier_get_policies_by_id
(argument_list
(identifier_profile_manager) identifier_profile_manager
(list
(identifier_policy_id) identifier_policy_id
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_policy_refs) identifier_policy_refs
)not_operator
(block
(raise_statement
(call
(identifier_VMwareObjectRetrievalError) identifier_VMwareObjectRetrievalError
(argument_list
(call
(attribute
(concatenated_string
(string_'Storage policy with id \'{0}\' was ') string_'Storage policy with id \'{0}\' was '
(string_'not found') string_'not found'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_policy_id) identifier_policy_id
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(identifier_policy_refs) identifier_policy_refs
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module | Returns the default storage policy reference assigned to a datastore.
profile_manager
Reference to the profile manager.
datastore
Reference to the datastore. |
(module
(function_definition
(function_name_on_delete) function_name_on_delete
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(for_statement
(identifier_tnode) identifier_tnode
(attribute
(identifier_node) identifier_node
(identifier_targets) identifier_targets
)attribute
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_tnode) identifier_tnode
(identifier_ctx) identifier_ctx
)attribute
(identifier___class__) identifier___class__
)attribute
(attribute
(identifier_ast) identifier_ast
(identifier_Del) identifier_Del
)attribute
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_children) identifier_children
(list
)list
)assignment
)expression_statement
(while_statement
(comparison_operator
(attribute
(identifier_tnode) identifier_tnode
(identifier___class__) identifier___class__
)attribute
(attribute
(identifier_ast) identifier_ast
(identifier_Attribute) identifier_Attribute
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_tnode) identifier_tnode
(identifier_attr) identifier_attr
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tnode) identifier_tnode
(attribute
(identifier_tnode) identifier_tnode
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
)block
)while_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_tnode) identifier_tnode
(identifier___class__) identifier___class__
)attribute
(attribute
(identifier_ast) identifier_ast
(identifier_Name) identifier_Name
)attribute
)comparison_operator
(comparison_operator
(attribute
(identifier_tnode) identifier_tnode
(identifier_id) identifier_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_readonly_symbols) identifier_readonly_symbols
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_tnode) identifier_tnode
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_symtable) identifier_symtable
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_children) identifier_children
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_"could not delete symbol") string_"could not delete symbol"
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_raise_exception) identifier_raise_exception
)attribute
(argument_list
(identifier_node) identifier_node
(keyword_argument
(identifier_msg) identifier_msg
(identifier_msg) identifier_msg
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Delete statement. |
(module
(function_definition
(function_name_to_op) function_name_to_op
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__adds) identifier__adds
)attribute
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_changes) identifier_changes
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__adds) identifier__adds
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_changes) identifier_changes
(string_'adds') string_'adds'
)subscript
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__adds) identifier__adds
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_changes) identifier_changes
)return_statement
)block
)function_definition
)module | Extracts the modification operation from the Hll.
:rtype: dict, None |
(module
(function_definition
(function_name_get_reverse_index) function_name_get_reverse_index
(parameters
(identifier_self) identifier_self
(identifier_base_index) identifier_base_index
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(subscript
(attribute
(identifier_self) identifier_self
(identifier_reverse_index_mapping) identifier_reverse_index_mapping
)attribute
(identifier_base_index) identifier_base_index
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_r) identifier_r
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_IndexError) identifier_IndexError
(argument_list
(binary_operator
(string_"index %d not mapped in this segment") string_"index %d not mapped in this segment"
(identifier_base_index) identifier_base_index
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)function_definition
)module | Get index into this segment's data given the index into the base data
Raises IndexError if the base index doesn't map to anything in this
segment's data |
(module
(function_definition
(function_name_Group) function_name_Group
(parameters
(identifier_params) identifier_params
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_type) identifier_type
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_atts) identifier_atts
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_name) identifier_name
(block
(expression_statement
(assignment
(subscript
(identifier_atts) identifier_atts
(string_'name') string_'name'
)subscript
(identifier_name) identifier_name
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_type) identifier_type
(block
(expression_statement
(assignment
(subscript
(identifier_atts) identifier_atts
(string_'type') string_'type'
)subscript
(identifier_type) identifier_type
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(attribute
(identifier_objectify) identifier_objectify
(identifier_Element) identifier_Element
)attribute
(argument_list
(string_'Group') string_'Group'
(keyword_argument
(identifier_attrib) identifier_attrib
(identifier_atts) identifier_atts
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_p) identifier_p
(identifier_params) identifier_params
(block
(expression_statement
(call
(attribute
(identifier_g) identifier_g
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_g) identifier_g
)return_statement
)block
)function_definition
)module | Groups together Params for adding under the 'What' section.
Args:
params(list of :func:`Param`): Parameter elements to go in this group.
name(str): Group name. NB ``None`` is valid, since the group may be
best identified by its type.
type(str): Type of group, e.g. 'complex' (for real and imaginary). |
(module
(function_definition
(function_name_collapse) function_name_collapse
(parameters
(identifier_cls) identifier_cls
(identifier_holomap) identifier_holomap
(default_parameter
(identifier_ranges) identifier_ranges
(None) None
)default_parameter
(default_parameter
(identifier_mode) identifier_mode
(string_'data') string_'data'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier_definitions) identifier_definitions
)attribute
(list
)list
)comparison_operator
(block
(return_statement
(identifier_holomap) identifier_holomap
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_clone) identifier_clone
(call
(attribute
(identifier_holomap) identifier_holomap
(identifier_clone) identifier_clone
)attribute
(argument_list
(keyword_argument
(identifier_shared_data) identifier_shared_data
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(conditional_expression
(call
(identifier_zip) identifier_zip
(argument_list
(subscript
(identifier_ranges) identifier_ranges
(integer_1) integer_1
)subscript
(call
(attribute
(attribute
(identifier_holomap) identifier_holomap
(identifier_data) identifier_data
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_ranges) identifier_ranges
(call
(attribute
(attribute
(identifier_holomap) identifier_holomap
(identifier_data) identifier_data
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_overlay) identifier_overlay
)pattern_list
(identifier_data) identifier_data
(block
(expression_statement
(assignment
(subscript
(identifier_clone) identifier_clone
(identifier_key) identifier_key
)subscript
(call
(attribute
(identifier_cls) identifier_cls
(identifier_collapse_element) identifier_collapse_element
)attribute
(argument_list
(identifier_overlay) identifier_overlay
(identifier_ranges) identifier_ranges
(identifier_mode) identifier_mode
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_clone) identifier_clone
)return_statement
)block
)function_definition
)module | Given a map of Overlays, apply all applicable compositors. |
(module
(function_definition
(function_name_guard) function_name_guard
(parameters
(identifier_params) identifier_params
(identifier_guardian) identifier_guardian
(default_parameter
(identifier_error_class) identifier_error_class
(identifier_GuardError) identifier_GuardError
)default_parameter
(default_parameter
(identifier_message) identifier_message
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(conditional_expression
(list
(identifier_params) identifier_params
)list
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_params) identifier_params
(identifier_string_types) identifier_string_types
)argument_list
)call
(identifier_params) identifier_params
)conditional_expression
)assignment
)expression_statement
(function_definition
(function_name_guard_decorate) function_name_guard_decorate
(parameters
(identifier_f) identifier_f
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)decorator
(function_definition
(function_name__guard_decorate) function_name__guard_decorate
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_guardian) identifier_guardian
(argument_list
(dictionary_splat
(call
(identifier__params) identifier__params
(argument_list
(identifier_f) identifier_f
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
(identifier_params) identifier_params
)argument_list
)call
)dictionary_splat
)argument_list
)call
(block
(return_statement
(call
(identifier_f) identifier_f
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_error_class) identifier_error_class
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier__guard_decorate) identifier__guard_decorate
)return_statement
)block
)function_definition
(return_statement
(identifier_guard_decorate) identifier_guard_decorate
)return_statement
)block
)function_definition
)module | A guard function - check parameters
with guardian function on decorated function
:param tuple or string params: guarded function parameter/s
:param function guardian: verifying the conditions for the selected parameter
:param Exception error_class: raised class when guardian return false
:param string message: error message |
(module
(function_definition
(function_name_all_devices) function_name_all_devices
(parameters
(default_parameter
(identifier_cl_device_type) identifier_cl_device_type
(None) None
)default_parameter
(default_parameter
(identifier_platform) identifier_platform
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_cl_device_type) identifier_cl_device_type
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_cl_device_type) identifier_cl_device_type
(call
(identifier_device_type_from_string) identifier_device_type_from_string
(argument_list
(identifier_cl_device_type) identifier_cl_device_type
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_runtime_list) identifier_runtime_list
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_platform) identifier_platform
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_platforms) identifier_platforms
(call
(attribute
(identifier_cl) identifier_cl
(identifier_get_platforms) identifier_get_platforms
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_platforms) identifier_platforms
(list
(identifier_platform) identifier_platform
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_platform) identifier_platform
(identifier_platforms) identifier_platforms
(block
(if_statement
(identifier_cl_device_type) identifier_cl_device_type
(block
(expression_statement
(assignment
(identifier_devices) identifier_devices
(call
(attribute
(identifier_platform) identifier_platform
(identifier_get_devices) identifier_get_devices
)attribute
(argument_list
(keyword_argument
(identifier_device_type) identifier_device_type
(identifier_cl_device_type) identifier_cl_device_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_devices) identifier_devices
(call
(attribute
(identifier_platform) identifier_platform
(identifier_get_devices) identifier_get_devices
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_device) identifier_device
(identifier_devices) identifier_devices
(block
(if_statement
(call
(identifier_device_supports_double) identifier_device_supports_double
(argument_list
(identifier_device) identifier_device
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(call
(identifier_CLEnvironment) identifier_CLEnvironment
(argument_list
(identifier_platform) identifier_platform
(identifier_device) identifier_device
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_runtime_list) identifier_runtime_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_env) identifier_env
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_runtime_list) identifier_runtime_list
)return_statement
)block
)function_definition
)module | Get multiple device environments, optionally only of the indicated type.
This will only fetch devices that support double point precision.
Args:
cl_device_type (cl.device_type.* or string): The type of the device we want,
can be a opencl device type or a string matching 'GPU' or 'CPU'.
platform (opencl platform): The opencl platform to select the devices from
Returns:
list of CLEnvironment: List with the CL device environments. |
(module
(function_definition
(function_name_generate_user_agent) function_name_generate_user_agent
(parameters
(default_parameter
(identifier_os) identifier_os
(None) None
)default_parameter
(default_parameter
(identifier_navigator) identifier_navigator
(None) None
)default_parameter
(default_parameter
(identifier_platform) identifier_platform
(None) None
)default_parameter
(default_parameter
(identifier_device_type) identifier_device_type
(None) None
)default_parameter
)parameters
(block
(return_statement
(subscript
(call
(identifier_generate_navigator) identifier_generate_navigator
(argument_list
(keyword_argument
(identifier_os) identifier_os
(identifier_os) identifier_os
)keyword_argument
(keyword_argument
(identifier_navigator) identifier_navigator
(identifier_navigator) identifier_navigator
)keyword_argument
(keyword_argument
(identifier_platform) identifier_platform
(identifier_platform) identifier_platform
)keyword_argument
(keyword_argument
(identifier_device_type) identifier_device_type
(identifier_device_type) identifier_device_type
)keyword_argument
)argument_list
)call
(string_'user_agent') string_'user_agent'
)subscript
)return_statement
)block
)function_definition
)module | Generates HTTP User-Agent header
:param os: limit list of os for generation
:type os: string or list/tuple or None
:param navigator: limit list of browser engines for generation
:type navigator: string or list/tuple or None
:param device_type: limit possible oses by device type
:type device_type: list/tuple or None, possible values:
"desktop", "smartphone", "tablet", "all"
:return: User-Agent string
:rtype: string
:raises InvalidOption: if could not generate user-agent for
any combination of allowed oses and navigators
:raise InvalidOption: if any of passed options is invalid |
(module
(function_definition
(function_name__ProcessCommandSource) function_name__ProcessCommandSource
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
)parameters
(block
(expression_statement
(assignment
(identifier_action) identifier_action
(attribute
(identifier_standard) identifier_standard
(identifier_ExecuteCommandFromClient) identifier_ExecuteCommandFromClient
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_rdf_client_action) identifier_rdf_client_action
(identifier_ExecuteRequest) identifier_ExecuteRequest
)attribute
(argument_list
(keyword_argument
(identifier_cmd) identifier_cmd
(subscript
(attribute
(attribute
(identifier_source) identifier_source
(identifier_base_source) identifier_base_source
)attribute
(identifier_attributes) identifier_attributes
)attribute
(string_"cmd") string_"cmd"
)subscript
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(subscript
(attribute
(attribute
(identifier_source) identifier_source
(identifier_base_source) identifier_base_source
)attribute
(identifier_attributes) identifier_attributes
)attribute
(string_"args") string_"args"
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(expression_list
(identifier_action) identifier_action
(identifier_request) identifier_request
)expression_list
)yield
)expression_statement
)block
)function_definition
)module | Prepare a request for calling the execute command action. |
(module
(function_definition
(function_name_set_queue_callback) function_name_set_queue_callback
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_func) identifier_func
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_acquisition_hooks) identifier_acquisition_hooks
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_acquisition_hooks) identifier_acquisition_hooks
)attribute
(identifier_name) identifier_name
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_acquisition_hooks) identifier_acquisition_hooks
)attribute
(identifier_name) identifier_name
)subscript
(list
(identifier_func) identifier_func
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Sets a function to execute when the named acquistion queue
has data placed in it.
:param name: name of the queue to pull data from
:type name: str
:param func: function reference to execute, expects queue contents as argument(s)
:type func: callable |
(module
(function_definition
(function_name_generate_format) function_name_generate_format
(parameters
(identifier_self) identifier_self
)parameters
(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
(expression_statement
(assignment
(identifier_format_) identifier_format_
(subscript
(attribute
(identifier_self) identifier_self
(identifier__definition) identifier__definition
)attribute
(string_'format') string_'format'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_format_) identifier_format_
(attribute
(identifier_self) identifier_self
(identifier_FORMAT_REGEXS) identifier_FORMAT_REGEXS
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_format_regex) identifier_format_regex
(subscript
(attribute
(identifier_self) identifier_self
(identifier_FORMAT_REGEXS) identifier_FORMAT_REGEXS
)attribute
(identifier_format_) identifier_format_
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__generate_format) identifier__generate_format
)attribute
(argument_list
(identifier_format_) identifier_format_
(binary_operator
(identifier_format_) identifier_format_
(string_'_re_pattern') string_'_re_pattern'
)binary_operator
(identifier_format_regex) identifier_format_regex
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_format_) identifier_format_
(string_'regex') string_'regex'
)comparison_operator
(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_'re.compile({variable})') string_'re.compile({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 a valid regex")') string_'raise JsonSchemaException("{name} must be a valid regex")'
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
(argument_list
(string_'pass') string_'pass'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)with_statement
)block
)function_definition
)module | Means that value have to be in specified format. For example date, email or other.
.. code-block:: python
{'format': 'email'}
Valid value for this definition is user@example.com but not @username |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_domain_accession) identifier_domain_accession
(identifier_domain_type) identifier_domain_type
(identifier_match_quality) identifier_match_quality
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_matches) identifier_matches
)attribute
(identifier_domain_type) identifier_domain_type
)subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_matches) identifier_matches
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_domain_type) identifier_domain_type
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_matches) identifier_matches
)attribute
(identifier_domain_type) identifier_domain_type
)subscript
(identifier_domain_accession) identifier_domain_accession
)subscript
(identifier_match_quality) identifier_match_quality
)assignment
)expression_statement
)block
)function_definition
)module | match_quality should be a value between 0 and 1. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_recursive) identifier_recursive
(True) True
)default_parameter
(default_parameter
(identifier_skip_trash) identifier_skip_trash
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_recursive) identifier_recursive
(block
(expression_statement
(assignment
(identifier_to_delete) identifier_to_delete
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_s) identifier_s
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_all_data) identifier_get_all_data
)attribute
(argument_list
)argument_list
)call
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_to_delete) identifier_to_delete
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_s) identifier_s
(identifier_to_delete) identifier_to_delete
(block
(expression_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_all_data) identifier_get_all_data
)attribute
(argument_list
)argument_list
)call
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_all_data) identifier_get_all_data
)attribute
(argument_list
)argument_list
)call
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Removes the given mockfile. skip_trash doesn't have any meaning. |
(module
(function_definition
(function_name_get_container_mapping) function_name_get_container_mapping
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_layout) identifier_layout
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_getLayout) identifier_getLayout
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_container_mapping) identifier_container_mapping
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_slot) identifier_slot
(identifier_layout) identifier_layout
(block
(if_statement
(comparison_operator
(subscript
(identifier_slot) identifier_slot
(string_"type") string_"type"
)subscript
(string_"a") string_"a"
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_position) identifier_position
(subscript
(identifier_slot) identifier_slot
(string_"position") string_"position"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_container_uid) identifier_container_uid
(subscript
(identifier_slot) identifier_slot
(string_"container_uid") string_"container_uid"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_container_mapping) identifier_container_mapping
(identifier_container_uid) identifier_container_uid
)subscript
(identifier_position) identifier_position
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_container_mapping) identifier_container_mapping
)return_statement
)block
)function_definition
)module | Returns a mapping of container -> postition |
(module
(function_definition
(function_name_enable_autocenter) function_name_enable_autocenter
(parameters
(identifier_self) identifier_self
(identifier_option) identifier_option
)parameters
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(call
(attribute
(identifier_option) identifier_option
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(parenthesized_expression
(comparison_operator
(identifier_option) identifier_option
(attribute
(identifier_self) identifier_self
(identifier_autocenter_options) identifier_autocenter_options
)attribute
)comparison_operator
)parenthesized_expression
(line_continuation_\) line_continuation_\
(call
(identifier_ImageViewError) identifier_ImageViewError
(argument_list
(binary_operator
(string_"Bad autocenter option '%s': must be one of %s") string_"Bad autocenter option '%s': must be one of %s"
(parenthesized_expression
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_autocenter_options) identifier_autocenter_options
)attribute
)argument_list
)call
)parenthesized_expression
)binary_operator
)argument_list
)call
)assert_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_t_) identifier_t_
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
(keyword_argument
(identifier_autocenter) identifier_autocenter
(identifier_option) identifier_option
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set ``autocenter`` behavior.
Parameters
----------
option : {'on', 'override', 'once', 'off'}
Option for auto-center behavior. A list of acceptable options can
also be obtained by :meth:`get_autocenter_options`.
Raises
------
ginga.ImageView.ImageViewError
Invalid option. |
(module
(function_definition
(function_name_eval_to_ast) function_name_eval_to_ast
(parameters
(identifier_self) identifier_self
(identifier_e) identifier_e
(identifier_n) identifier_n
(default_parameter
(identifier_extra_constraints) identifier_extra_constraints
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_exact) identifier_exact
(None) None
)default_parameter
)parameters
(block
(return_statement
(list_comprehension
(call
(attribute
(attribute
(identifier_ast) identifier_ast
(identifier_bv) identifier_bv
)attribute
(identifier_BVV) identifier_BVV
)attribute
(argument_list
(identifier_v) identifier_v
(call
(attribute
(identifier_e) identifier_e
(identifier_size) identifier_size
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(call
(attribute
(identifier_self) identifier_self
(identifier_eval) identifier_eval
)attribute
(argument_list
(identifier_e) identifier_e
(identifier_n) identifier_n
(keyword_argument
(identifier_extra_constraints) identifier_extra_constraints
(identifier_extra_constraints) identifier_extra_constraints
)keyword_argument
(keyword_argument
(identifier_exact) identifier_exact
(identifier_exact) identifier_exact
)keyword_argument
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Evaluates expression e, returning the results in the form of concrete ASTs. |
(module
(function_definition
(function_name_get_ca_certs) function_name_get_ca_certs
(parameters
(default_parameter
(identifier_environ) identifier_environ
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cert_paths) identifier_cert_paths
(call
(attribute
(call
(attribute
(identifier_environ) identifier_environ
(identifier_get) identifier_get
)attribute
(argument_list
(string_"TXAWS_CERTS_PATH") string_"TXAWS_CERTS_PATH"
(identifier_DEFAULT_CERTS_PATH) identifier_DEFAULT_CERTS_PATH
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_certificate_authority_map) identifier_certificate_authority_map
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_path) identifier_path
(identifier_cert_paths) identifier_cert_paths
(block
(if_statement
(not_operator
(identifier_path) identifier_path
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_cert_file_name) identifier_cert_file_name
(call
(identifier_glob) identifier_glob
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(string_"*.pem") string_"*.pem"
)argument_list
)call
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_cert_file_name) identifier_cert_file_name
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cert_file) identifier_cert_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_cert_file_name) identifier_cert_file_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_cert_file) identifier_cert_file
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cert_file) identifier_cert_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_x509) identifier_x509
(call
(identifier_load_certificate) identifier_load_certificate
(argument_list
(identifier_FILETYPE_PEM) identifier_FILETYPE_PEM
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_digest) identifier_digest
(call
(attribute
(identifier_x509) identifier_x509
(identifier_digest) identifier_digest
)attribute
(argument_list
(string_"sha1") string_"sha1"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_certificate_authority_map) identifier_certificate_authority_map
(identifier_digest) identifier_digest
)subscript
(identifier_x509) identifier_x509
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(attribute
(identifier_certificate_authority_map) identifier_certificate_authority_map
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_values) identifier_values
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_exception) identifier_exception
(identifier_CertsNotFoundError) identifier_CertsNotFoundError
)attribute
(argument_list
(string_"Could not find any .pem files.") string_"Could not find any .pem files."
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_values) identifier_values
)return_statement
)block
)function_definition
)module | Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env
override, TXAWS_CERTS_PATH.
In order to find .pem files, this function checks first for presence of the
TXAWS_CERTS_PATH environment variable that should point to a directory
containing cert files. In the absense of this variable, the module-level
DEFAULT_CERTS_PATH will be used instead.
Note that both of these variables have have multiple paths in them, just
like the familiar PATH environment variable (separated by colons). |
(module
(function_definition
(function_name_get_mors_with_properties) function_name_get_mors_with_properties
(parameters
(identifier_service_instance) identifier_service_instance
(identifier_object_type) identifier_object_type
(default_parameter
(identifier_property_list) identifier_property_list
(None) None
)default_parameter
(default_parameter
(identifier_container_ref) identifier_container_ref
(None) None
)default_parameter
(default_parameter
(identifier_traversal_spec) identifier_traversal_spec
(None) None
)default_parameter
(default_parameter
(identifier_local_properties) identifier_local_properties
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_content_args) identifier_content_args
(list
(identifier_service_instance) identifier_service_instance
(identifier_object_type) identifier_object_type
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_kwargs) identifier_content_kwargs
(dictionary
(pair
(string_'property_list') string_'property_list'
(identifier_property_list) identifier_property_list
)pair
(pair
(string_'container_ref') string_'container_ref'
(identifier_container_ref) identifier_container_ref
)pair
(pair
(string_'traversal_spec') string_'traversal_spec'
(identifier_traversal_spec) identifier_traversal_spec
)pair
(pair
(string_'local_properties') string_'local_properties'
(identifier_local_properties) identifier_local_properties
)pair
)dictionary
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(identifier_get_content) identifier_get_content
(argument_list
(list_splat
(identifier_content_args) identifier_content_args
)list_splat
(dictionary_splat
(identifier_content_kwargs) identifier_content_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_BadStatusLine) identifier_BadStatusLine
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(identifier_get_content) identifier_get_content
(argument_list
(list_splat
(identifier_content_args) identifier_content_args
)list_splat
(dictionary_splat
(identifier_content_kwargs) identifier_content_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_IOError) identifier_IOError
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_exc) identifier_exc
(identifier_errno) identifier_errno
)attribute
(attribute
(identifier_errno) identifier_errno
(identifier_EPIPE) identifier_EPIPE
)attribute
)comparison_operator
(block
(raise_statement
(identifier_exc) identifier_exc
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(identifier_get_content) identifier_get_content
(argument_list
(list_splat
(identifier_content_args) identifier_content_args
)list_splat
(dictionary_splat
(identifier_content_kwargs) identifier_content_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_object_list) identifier_object_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_obj) identifier_obj
(identifier_content) identifier_content
(block
(expression_statement
(assignment
(identifier_properties) identifier_properties
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_prop) identifier_prop
(attribute
(identifier_obj) identifier_obj
(identifier_propSet) identifier_propSet
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_properties) identifier_properties
(attribute
(identifier_prop) identifier_prop
(identifier_name) identifier_name
)attribute
)subscript
(attribute
(identifier_prop) identifier_prop
(identifier_val) identifier_val
)attribute
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_properties) identifier_properties
(string_'object') string_'object'
)subscript
(attribute
(identifier_obj) identifier_obj
(identifier_obj) identifier_obj
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_object_list) identifier_object_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_properties) identifier_properties
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_trace) identifier_trace
)attribute
(argument_list
(string_'Retrieved %s objects') string_'Retrieved %s objects'
(call
(identifier_len) identifier_len
(argument_list
(identifier_object_list) identifier_object_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_object_list) identifier_object_list
)return_statement
)block
)function_definition
)module | Returns a list containing properties and managed object references for the managed object.
service_instance
The Service Instance from which to obtain managed object references.
object_type
The type of content for which to obtain managed object references.
property_list
An optional list of object properties used to return even more filtered managed object reference results.
container_ref
An optional reference to the managed object to search under. Can either be an object of type Folder, Datacenter,
ComputeResource, Resource Pool or HostSystem. If not specified, default behaviour is to search under the inventory
rootFolder.
traversal_spec
An optional TraversalSpec to be used instead of the standard
``Traverse All`` spec
local_properties
Flag specigying whether the properties to be retrieved are local to the
container. If that is the case, the traversal spec needs to be None. |
(module
(function_definition
(function_name_ylabelsize) function_name_ylabelsize
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
(default_parameter
(identifier_index) identifier_index
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layout) identifier_layout
)attribute
(binary_operator
(string_'yaxis') string_'yaxis'
(call
(identifier_str) identifier_str
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)binary_operator
)subscript
(string_'titlefont') string_'titlefont'
)subscript
(string_'size') string_'size'
)subscript
(identifier_size) identifier_size
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Set the size of the label.
Parameters
----------
size : int
Returns
-------
Chart |
(module
(function_definition
(function_name_add_to_manifest) function_name_add_to_manifest
(parameters
(identifier_self) identifier_self
(identifier_manifest) identifier_manifest
)parameters
(block
(expression_statement
(call
(attribute
(identifier_manifest) identifier_manifest
(identifier_add_service) identifier_add_service
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_manifest) identifier_manifest
(identifier_write_manifest) identifier_write_manifest
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add to the manifest to make sure it is bound to the
application. |
(module
(function_definition
(function_name_create_table) function_name_create_table
(parameters
(identifier_table) identifier_table
(identifier_dbo) identifier_dbo
(identifier_tablename) identifier_tablename
(default_parameter
(identifier_schema) identifier_schema
(None) None
)default_parameter
(default_parameter
(identifier_commit) identifier_commit
(True) True
)default_parameter
(default_parameter
(identifier_constraints) identifier_constraints
(True) True
)default_parameter
(default_parameter
(identifier_metadata) identifier_metadata
(None) None
)default_parameter
(default_parameter
(identifier_dialect) identifier_dialect
(None) None
)default_parameter
(default_parameter
(identifier_sample) identifier_sample
(integer_1000) integer_1000
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_sample) identifier_sample
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(identifier_head) identifier_head
(argument_list
(identifier_table) identifier_table
(identifier_sample) identifier_sample
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(call
(identifier_make_create_table_statement) identifier_make_create_table_statement
(argument_list
(identifier_table) identifier_table
(identifier_tablename) identifier_tablename
(keyword_argument
(identifier_schema) identifier_schema
(identifier_schema) identifier_schema
)keyword_argument
(keyword_argument
(identifier_constraints) identifier_constraints
(identifier_constraints) identifier_constraints
)keyword_argument
(keyword_argument
(identifier_metadata) identifier_metadata
(identifier_metadata) identifier_metadata
)keyword_argument
(keyword_argument
(identifier_dialect) identifier_dialect
(identifier_dialect) identifier_dialect
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__execute) identifier__execute
(argument_list
(identifier_sql) identifier_sql
(identifier_dbo) identifier_dbo
(keyword_argument
(identifier_commit) identifier_commit
(identifier_commit) identifier_commit
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create a database table based on a sample of data in the given `table`.
Keyword arguments:
table : table container
Table data to load
dbo : database object
DB-API 2.0 connection, callable returning a DB-API 2.0 cursor, or
SQLAlchemy connection, engine or session
tablename : text
Name of the table
schema : text
Name of the database schema to create the table in
commit : bool
If True commit the changes
constraints : bool
If True use length and nullable constraints
metadata : sqlalchemy.MetaData
Custom table metadata
dialect : text
One of {'access', 'sybase', 'sqlite', 'informix', 'firebird', 'mysql',
'oracle', 'maxdb', 'postgresql', 'mssql'}
sample : int
Number of rows to sample when inferring types etc., set to 0 to use
the whole table |
(module
(function_definition
(function_name_sinc_window) function_name_sinc_window
(parameters
(default_parameter
(identifier_num_zeros) identifier_num_zeros
(integer_64) integer_64
)default_parameter
(default_parameter
(identifier_precision) identifier_precision
(integer_9) integer_9
)default_parameter
(default_parameter
(identifier_window) identifier_window
(None) None
)default_parameter
(default_parameter
(identifier_rolloff) identifier_rolloff
(float_0.945) float_0.945
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_window) identifier_window
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_window) identifier_window
(attribute
(attribute
(identifier_scipy) identifier_scipy
(identifier_signal) identifier_signal
)attribute
(identifier_blackmanharris) identifier_blackmanharris
)attribute
)assignment
)expression_statement
)block
(elif_clause
(not_operator
(call
(attribute
(identifier_six) identifier_six
(identifier_callable) identifier_callable
)attribute
(argument_list
(identifier_window) identifier_window
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_'window must be callable, not type(window)={}') string_'window must be callable, not type(window)={}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_window) identifier_window
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(if_statement
(not_operator
(comparison_operator
(integer_0) integer_0
(identifier_rolloff) identifier_rolloff
(integer_1) integer_1
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'Invalid roll-off: rolloff={}') string_'Invalid roll-off: rolloff={}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_rolloff) identifier_rolloff
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_num_zeros) identifier_num_zeros
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'Invalid num_zeros: num_zeros={}') string_'Invalid num_zeros: num_zeros={}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_num_zeros) identifier_num_zeros
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_precision) identifier_precision
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'Invalid precision: precision={}') string_'Invalid precision: precision={}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_precision) identifier_precision
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_num_bits) identifier_num_bits
(binary_operator
(integer_2) integer_2
(identifier_precision) identifier_precision
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(binary_operator
(identifier_num_bits) identifier_num_bits
(identifier_num_zeros) identifier_num_zeros
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sinc_win) identifier_sinc_win
(binary_operator
(identifier_rolloff) identifier_rolloff
(call
(attribute
(identifier_np) identifier_np
(identifier_sinc) identifier_sinc
)attribute
(argument_list
(binary_operator
(identifier_rolloff) identifier_rolloff
(call
(attribute
(identifier_np) identifier_np
(identifier_linspace) identifier_linspace
)attribute
(argument_list
(integer_0) integer_0
(identifier_num_zeros) identifier_num_zeros
(keyword_argument
(identifier_num) identifier_num
(binary_operator
(identifier_n) identifier_n
(integer_1) integer_1
)binary_operator
)keyword_argument
(keyword_argument
(identifier_endpoint) identifier_endpoint
(True) True
)keyword_argument
)argument_list
)call
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_taper) identifier_taper
(subscript
(call
(identifier_window) identifier_window
(argument_list
(binary_operator
(binary_operator
(integer_2) integer_2
(identifier_n) identifier_n
)binary_operator
(integer_1) integer_1
)binary_operator
)argument_list
)call
(slice
(identifier_n) identifier_n
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_interp_win) identifier_interp_win
(parenthesized_expression
(binary_operator
(identifier_taper) identifier_taper
(identifier_sinc_win) identifier_sinc_win
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_interp_win) identifier_interp_win
(identifier_num_bits) identifier_num_bits
(identifier_rolloff) identifier_rolloff
)expression_list
)return_statement
)block
)function_definition
)module | Construct a windowed sinc interpolation filter
Parameters
----------
num_zeros : int > 0
The number of zero-crossings to retain in the sinc filter
precision : int > 0
The number of filter coefficients to retain for each zero-crossing
window : callable
The window function. By default, uses Blackman-Harris.
rolloff : float > 0
The roll-off frequency (as a fraction of nyquist)
Returns
-------
interp_window: np.ndarray [shape=(num_zeros * num_table + 1)]
The interpolation window (right-hand side)
num_bits: int
The number of bits of precision to use in the filter table
rolloff : float > 0
The roll-off frequency of the filter, as a fraction of Nyquist
Raises
------
TypeError
if `window` is not callable or `None`
ValueError
if `num_zeros < 1`, `precision < 1`,
or `rolloff` is outside the range `(0, 1]`.
Examples
--------
>>> # A filter with 10 zero-crossings, 32 samples per crossing, and a
... # Hann window for tapering.
>>> halfwin, prec, rolloff = resampy.filters.sinc_window(num_zeros=10, precision=5,
... window=scipy.signal.hann)
>>> halfwin
array([ 9.450e-01, 9.436e-01, ..., -7.455e-07, -0.000e+00])
>>> prec
32
>>> rolloff
0.945
>>> # Or using sinc-window filter construction directly in resample
>>> y = resampy.resample(x, sr_orig, sr_new, filter='sinc_window',
... num_zeros=10, precision=5,
... window=scipy.signal.hann) |
(module
(function_definition
(function_name_form_valid) function_name_form_valid
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_form_valid) identifier_form_valid
)attribute
(argument_list
(identifier_form) identifier_form
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_success) identifier_success
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(call
(attribute
(string_"Successfully created ({})") string_"Successfully created ({})"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Add success message |
(module
(function_definition
(function_name_create_wiki) function_name_create_wiki
(parameters
(identifier_post_data) identifier_post_data
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Call create wiki') string_'Call create wiki'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_title) identifier_title
(call
(attribute
(subscript
(identifier_post_data) identifier_post_data
(string_'title') string_'title'
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_title) identifier_title
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(binary_operator
(string_' ') string_' '
(integer_4) integer_4
)binary_operator
(string_'The title is too short.') string_'The title is too short.'
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_the_wiki) identifier_the_wiki
(call
(attribute
(identifier_MWiki) identifier_MWiki
(identifier_get_by_wiki) identifier_get_by_wiki
)attribute
(argument_list
(identifier_title) identifier_title
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_the_wiki) identifier_the_wiki
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(binary_operator
(string_' ') string_' '
(integer_4) integer_4
)binary_operator
(string_'The title already exists.') string_'The title already exists.'
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_MWiki) identifier_MWiki
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_the_wiki) identifier_the_wiki
(identifier_uid) identifier_uid
)attribute
(identifier_post_data) identifier_post_data
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_uid) identifier_uid
(binary_operator
(string_'_') string_'_'
(call
(attribute
(identifier_tools) identifier_tools
(identifier_get_uu8d) identifier_get_uu8d
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_MWiki) identifier_MWiki
(identifier___create_rec) identifier___create_rec
)attribute
(argument_list
(identifier_uid) identifier_uid
(string_'1') string_'1'
(keyword_argument
(identifier_post_data) identifier_post_data
(identifier_post_data) identifier_post_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create the wiki. |
(module
(function_definition
(function_name_post_registration_redirect) function_name_post_registration_redirect
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_user) identifier_user
)parameters
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(string_"/registration/register/complete/") string_"/registration/register/complete/"
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_"next") string_"next"
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
)comparison_operator
(comparison_operator
(string_"next") string_"next"
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(boolean_operator
(boolean_operator
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"next") string_"next"
(None) None
)argument_list
)call
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"next") string_"next"
(None) None
)argument_list
)call
)boolean_operator
(string_"/") string_"/"
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(tuple
(identifier_next_url) identifier_next_url
(tuple
)tuple
(dictionary
)dictionary
)tuple
)return_statement
)block
)function_definition
)module | After registration, redirect to the home page or supplied "next"
query string or hidden field value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.