sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__print_fields) function_name__print_fields
(parameters
(identifier_self) identifier_self
(identifier_fields) identifier_fields
)parameters
(block
(expression_statement
(assignment
(identifier_longest_name) identifier_longest_name
(subscript
(call
(identifier_max) identifier_max
(argument_list
(identifier_fields) identifier_fields
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_f) identifier_f
(integer_1) integer_1
)subscript
)argument_list
)call
)lambda
)keyword_argument
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_longest_type) identifier_longest_type
(subscript
(call
(identifier_max) identifier_max
(argument_list
(identifier_fields) identifier_fields
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_f) identifier_f
(integer_2) integer_2
)subscript
)argument_list
)call
)lambda
)keyword_argument
)argument_list
)call
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_field_format) identifier_field_format
(call
(attribute
(string_'%s%-{}s %-{}s %s') string_'%s%-{}s %-{}s %s'
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_longest_name) identifier_longest_name
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__padding_after_name) identifier__padding_after_name
)attribute
)binary_operator
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_longest_type) identifier_longest_type
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__padding_after_type) identifier__padding_after_type
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(identifier_fields) identifier_fields
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__print) identifier__print
)attribute
(argument_list
(binary_operator
(identifier_field_format) identifier_field_format
(identifier_field) identifier_field
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Print the fields, padding the names as necessary to align them. |
(module
(function_definition
(function_name_mark_fit_good) function_name_mark_fit_good
(parameters
(identifier_self) identifier_self
(identifier_fit) identifier_fit
(default_parameter
(identifier_spec) identifier_spec
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_spec) identifier_spec
(None) None
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_spec) identifier_spec
(identifier_fits) identifier_fits
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pmag_results_data) identifier_pmag_results_data
)attribute
(string_'specimens') string_'specimens'
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_fit) identifier_fit
(identifier_fits) identifier_fits
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_samp) identifier_samp
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Data_hierarchy) identifier_Data_hierarchy
)attribute
(string_'sample_of_specimen') string_'sample_of_specimen'
)subscript
(identifier_spec) identifier_spec
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'sample_orientation_flag') string_'sample_orientation_flag'
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Data_info) identifier_Data_info
)attribute
(string_'er_samples') string_'er_samples'
)subscript
(identifier_samp) identifier_samp
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Data_info) identifier_Data_info
)attribute
(string_'er_samples') string_'er_samples'
)subscript
(identifier_samp) identifier_samp
)subscript
(string_'sample_orientation_flag') string_'sample_orientation_flag'
)subscript
(string_'g') string_'g'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_samp_flag) identifier_samp_flag
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Data_info) identifier_Data_info
)attribute
(string_'er_samples') string_'er_samples'
)subscript
(identifier_samp) identifier_samp
)subscript
(string_'sample_orientation_flag') string_'sample_orientation_flag'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_samp_flag) identifier_samp_flag
(string_'g') string_'g'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bad_fits) identifier_bad_fits
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_fit) identifier_fit
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_user_warning) identifier_user_warning
)attribute
(argument_list
(string_"Cannot mark this interpretation good its sample orientation has been marked bad") string_"Cannot mark this interpretation good its sample orientation has been marked bad"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Marks fit good so it is used in high level means
Parameters
----------
fit : fit to mark good
spec : specimen of fit to mark good (optional though runtime will
increase if not provided) |
(module
(function_definition
(function_name_mean_by_panel) function_name_mean_by_panel
(parameters
(identifier_self) identifier_self
(identifier_length) identifier_length
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_panel) identifier__check_panel
)attribute
(argument_list
(identifier_length) identifier_length
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_func) identifier_func
(lambda
(lambda_parameters
(identifier_v) identifier_v
)lambda_parameters
(call
(attribute
(call
(attribute
(identifier_v) identifier_v
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
(identifier_length) identifier_length
)argument_list
)call
(identifier_mean) identifier_mean
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)lambda
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_newindex) identifier_newindex
(call
(identifier_arange) identifier_arange
(argument_list
(identifier_length) identifier_length
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_map) identifier_map
)attribute
(argument_list
(identifier_func) identifier_func
(keyword_argument
(identifier_index) identifier_index
(identifier_newindex) identifier_newindex
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute the mean across fixed sized panels of each record.
Splits each record into panels of size `length`,
and then computes the mean across panels.
Panel length must subdivide record exactly.
Parameters
----------
length : int
Fixed length with which to subdivide. |
(module
(function_definition
(function_name_process_object) function_name_process_object
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(string_"Hook to process the object currently being displayed.") string_"Hook to process the object currently being displayed."
)expression_statement
(expression_statement
(assignment
(identifier_invalid_options) identifier_invalid_options
(call
(attribute
(identifier_OptsMagic) identifier_OptsMagic
(identifier_process_element) identifier_process_element
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_invalid_options) identifier_invalid_options
(block
(return_statement
(identifier_invalid_options) identifier_invalid_options
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_OutputMagic) identifier_OutputMagic
(identifier_info) identifier_info
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Hook to process the object currently being displayed. |
(module
(function_definition
(function_name_creditusage) function_name_creditusage
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_rating) identifier_rating
(call
(attribute
(identifier_cls) identifier_cls
(identifier_call) identifier_call
)attribute
(argument_list
(string_'hosting.rating.list') string_'hosting.rating.list'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_rating) identifier_rating
)not_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rating) identifier_rating
(call
(attribute
(identifier_rating) identifier_rating
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_usage) identifier_usage
(list_comprehension
(call
(identifier_sum) identifier_sum
(argument_list
(call
(attribute
(identifier_resource) identifier_resource
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_resource) identifier_resource
(call
(attribute
(identifier_rating) identifier_rating
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_resource) identifier_resource
(identifier_dict) identifier_dict
)argument_list
)call
)if_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(identifier_sum) identifier_sum
(argument_list
(identifier_usage) identifier_usage
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get credit usage per hour |
(module
(function_definition
(function_name_update_subject_identifier_on_save) function_name_update_subject_identifier_on_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_subject_identifier) identifier_subject_identifier
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_subject_identifier) identifier_subject_identifier
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_subject_identifier_as_pk) identifier_subject_identifier_as_pk
)attribute
(identifier_hex) identifier_hex
)attribute
)assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_UUID_PATTERN) identifier_UUID_PATTERN
(attribute
(identifier_self) identifier_self
(identifier_subject_identifier) identifier_subject_identifier
)attribute
)argument_list
)call
(block
(pass_statement
)pass_statement
)block
)elif_clause
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_subject_identifier) identifier_subject_identifier
)attribute
)return_statement
)block
)function_definition
)module | Overridden to not set the subject identifier on save. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentParser) identifier_ArgumentParser
)attribute
(argument_list
(keyword_argument
(identifier_description) identifier_description
(string_'Tool for testing caffe to mxnet conversion layer by layer') string_'Tool for testing caffe to mxnet conversion layer by layer'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--image_url') string_'--image_url'
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(concatenated_string
(string_'https://github.com/dmlc/web-data/raw/master/mxnet/doc/') string_'https://github.com/dmlc/web-data/raw/master/mxnet/doc/'
(string_'tutorials/python/predict_image/cat.jpg') string_'tutorials/python/predict_image/cat.jpg'
)concatenated_string
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'input image to test inference, can be either file path or url') string_'input image to test inference, can be either file path or url'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--caffe_prototxt_path') string_'--caffe_prototxt_path'
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(string_'./model.prototxt') string_'./model.prototxt'
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'path to caffe prototxt') string_'path to caffe prototxt'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--caffe_model_path') string_'--caffe_model_path'
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(string_'./model.caffemodel') string_'./model.caffemodel'
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'path to caffe weights') string_'path to caffe weights'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--caffe_mean') string_'--caffe_mean'
(keyword_argument
(identifier_type) identifier_type
(identifier_str) identifier_str
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(string_'./model_mean.binaryproto') string_'./model_mean.binaryproto'
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'path to caffe mean file') string_'path to caffe mean file'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--mean_diff_allowed') string_'--mean_diff_allowed'
(keyword_argument
(identifier_type) identifier_type
(identifier_int) identifier_int
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(float_1e-03) float_1e-03
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'mean difference allowed between caffe blob and mxnet blob') string_'mean difference allowed between caffe blob and mxnet blob'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--max_diff_allowed') string_'--max_diff_allowed'
(keyword_argument
(identifier_type) identifier_type
(identifier_int) identifier_int
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(float_1e-01) float_1e-01
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'max difference allowed between caffe blob and mxnet blob') string_'max difference allowed between caffe blob and mxnet blob'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--gpu') string_'--gpu'
(keyword_argument
(identifier_type) identifier_type
(identifier_int) identifier_int
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(unary_operator
(integer_1) integer_1
)unary_operator
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'the gpu id used for predict') string_'the gpu id used for predict'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_convert_and_compare_caffe_to_mxnet) identifier_convert_and_compare_caffe_to_mxnet
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_image_url) identifier_image_url
)attribute
(attribute
(identifier_args) identifier_args
(identifier_gpu) identifier_gpu
)attribute
(attribute
(identifier_args) identifier_args
(identifier_caffe_prototxt_path) identifier_caffe_prototxt_path
)attribute
(attribute
(identifier_args) identifier_args
(identifier_caffe_model_path) identifier_caffe_model_path
)attribute
(attribute
(identifier_args) identifier_args
(identifier_caffe_mean) identifier_caffe_mean
)attribute
(attribute
(identifier_args) identifier_args
(identifier_mean_diff_allowed) identifier_mean_diff_allowed
)attribute
(attribute
(identifier_args) identifier_args
(identifier_max_diff_allowed) identifier_max_diff_allowed
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Entrypoint for compare_layers |
(module
(function_definition
(function_name_export_to_directory_crtomo) function_name_export_to_directory_crtomo
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
(default_parameter
(identifier_norrec) identifier_norrec
(string_'norrec') string_'norrec'
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_exporter_crtomo) identifier_exporter_crtomo
(identifier_write_files_to_directory) identifier_write_files_to_directory
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_directory) identifier_directory
(keyword_argument
(identifier_norrec) identifier_norrec
(identifier_norrec) identifier_norrec
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Export the sEIT data into data files that can be read by CRTomo.
Parameters
----------
directory : string
output directory. will be created if required
norrec : string (nor|rec|norrec)
Which data to export. Default: norrec |
(module
(function_definition
(function_name__validateSetting) function_name__validateSetting
(parameters
(identifier_value) identifier_value
(identifier_policy) identifier_policy
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'validating %s for policy %s') string_'validating %s for policy %s'
(identifier_value) identifier_value
(identifier_policy) identifier_policy
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_'Settings') string_'Settings'
(identifier_policy) identifier_policy
)comparison_operator
(block
(if_statement
(subscript
(identifier_policy) identifier_policy
(string_'Settings') string_'Settings'
)subscript
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_policy) identifier_policy
(string_'Settings') string_'Settings'
)subscript
(identifier_list) identifier_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(subscript
(identifier_policy) identifier_policy
(string_'Settings') string_'Settings'
)subscript
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_policy) identifier_policy
(string_'Settings') string_'Settings'
)subscript
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier__policydata) identifier__policydata
(call
(identifier__policy_info) identifier__policy_info
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier__policydata) identifier__policydata
(subscript
(subscript
(identifier_policy) identifier_policy
(string_'Settings') string_'Settings'
)subscript
(string_'Function') string_'Function'
)subscript
)argument_list
)call
(argument_list
(identifier_value) identifier_value
(dictionary_splat
(subscript
(subscript
(identifier_policy) identifier_policy
(string_'Settings') string_'Settings'
)subscript
(string_'Args') string_'Args'
)subscript
)dictionary_splat
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | helper function to validate specified value is appropriate for the policy
if the 'Settings' key is a list, the value will check that it is in the list
if the 'Settings' key is a dict we will try to execute the function name
from the 'Function' key, passing the value and additional arguments from
the 'Args' dict
if the 'Settings' key is None, we won't do any validation and just return
True
if the Policy has 'Children', we'll validate their settings too |
(module
(function_definition
(function_name__maybe_add_conditions_to_implicit_api_paths) function_name__maybe_add_conditions_to_implicit_api_paths
(parameters
(identifier_self) identifier_self
(identifier_template) identifier_template
)parameters
(block
(for_statement
(pattern_list
(identifier_api_id) identifier_api_id
(identifier_api) identifier_api
)pattern_list
(call
(attribute
(identifier_template) identifier_template
(identifier_iterate) identifier_iterate
)attribute
(argument_list
(attribute
(attribute
(identifier_SamResourceType) identifier_SamResourceType
(identifier_Api) identifier_Api
)attribute
(identifier_value) identifier_value
)attribute
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_api) identifier_api
(identifier_properties) identifier_properties
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'__MANAGE_SWAGGER') string_'__MANAGE_SWAGGER'
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_swagger) identifier_swagger
(call
(attribute
(attribute
(identifier_api) identifier_api
(identifier_properties) identifier_properties
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"DefinitionBody") string_"DefinitionBody"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_editor) identifier_editor
(call
(identifier_SwaggerEditor) identifier_SwaggerEditor
(argument_list
(identifier_swagger) identifier_swagger
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_path) identifier_path
(call
(attribute
(identifier_editor) identifier_editor
(identifier_iter_on_path) identifier_iter_on_path
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_all_method_conditions) identifier_all_method_conditions
(call
(identifier_set) identifier_set
(argument_list
(list_comprehension
(identifier_condition) identifier_condition
(for_in_clause
(pattern_list
(identifier_method) identifier_method
(identifier_condition) identifier_condition
)pattern_list
(call
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_api_conditions) identifier_api_conditions
)attribute
(identifier_api_id) identifier_api_id
)subscript
(identifier_path) identifier_path
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_at_least_one_method) identifier_at_least_one_method
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_all_method_conditions) identifier_all_method_conditions
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_methods_contain_conditions) identifier_all_methods_contain_conditions
(comparison_operator
(None) None
(identifier_all_method_conditions) identifier_all_method_conditions
)comparison_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_at_least_one_method) identifier_at_least_one_method
(identifier_all_methods_contain_conditions) identifier_all_methods_contain_conditions
)boolean_operator
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_all_method_conditions) identifier_all_method_conditions
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_editor) identifier_editor
(identifier_make_path_conditional) identifier_make_path_conditional
)attribute
(argument_list
(identifier_path) identifier_path
(call
(attribute
(identifier_all_method_conditions) identifier_all_method_conditions
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_path_condition_name) identifier_path_condition_name
(call
(attribute
(identifier_self) identifier_self
(identifier__path_condition_name) identifier__path_condition_name
)attribute
(argument_list
(identifier_api_id) identifier_api_id
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_combined_condition_to_template) identifier__add_combined_condition_to_template
)attribute
(argument_list
(attribute
(identifier_template) identifier_template
(identifier_template_dict) identifier_template_dict
)attribute
(identifier_path_condition_name) identifier_path_condition_name
(identifier_all_method_conditions) identifier_all_method_conditions
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_editor) identifier_editor
(identifier_make_path_conditional) identifier_make_path_conditional
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_path_condition_name) identifier_path_condition_name
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_api) identifier_api
(identifier_properties) identifier_properties
)attribute
(string_"DefinitionBody") string_"DefinitionBody"
)subscript
(attribute
(identifier_editor) identifier_editor
(identifier_swagger) identifier_swagger
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_template) identifier_template
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_api_id) identifier_api_id
(identifier_api) identifier_api
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Add conditions to implicit API paths if necessary.
Implicit API resource methods are constructed from API events on individual serverless functions within the SAM
template. Since serverless functions can have conditions on them, it's possible to have a case where all methods
under a resource path have conditions on them. If all of these conditions evaluate to false, the entire resource
path should not be defined either. This method checks all resource paths' methods and if all methods under a
given path contain a condition, a composite condition is added to the overall template Conditions section and
that composite condition is added to the resource path. |
(module
(function_definition
(function_name_salt_run) function_name_salt_run
(parameters
)parameters
(block
(import_statement
(dotted_name
(identifier_salt) identifier_salt
(identifier_cli) identifier_cli
(identifier_run) identifier_run
)dotted_name
)import_statement
(if_statement
(comparison_operator
(string_'') string_''
(attribute
(identifier_sys) identifier_sys
(identifier_path) identifier_path
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_path) identifier_path
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_cli) identifier_cli
)attribute
(identifier_run) identifier_run
)attribute
(identifier_SaltRun) identifier_SaltRun
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__install_signal_handlers) identifier__install_signal_handlers
(argument_list
(identifier_client) identifier_client
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_client) identifier_client
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Execute a salt convenience routine. |
(module
(function_definition
(function_name_load_library_handle) function_name_load_library_handle
(parameters
(identifier_libname) identifier_libname
(identifier_path) identifier_path
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(comparison_operator
(identifier_path) identifier_path
(list
(string_'None') string_'None'
(string_'none') string_'none'
)list
)comparison_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(try_statement
(block
(if_statement
(comparison_operator
(attribute
(identifier_os) identifier_os
(identifier_name) identifier_name
)attribute
(string_"nt") string_"nt"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_opj_lib) identifier_opj_lib
(call
(attribute
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_windll) identifier_windll
)attribute
(identifier_LoadLibrary) identifier_LoadLibrary
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_opj_lib) identifier_opj_lib
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_CDLL) identifier_CDLL
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_OSError) identifier_OSError
)tuple
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_'The {libname} library at {path} could not be loaded.') string_'The {libname} library at {path} could not be loaded.'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(identifier_msg) identifier_msg
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
(keyword_argument
(identifier_libname) identifier_libname
(identifier_libname) identifier_libname
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_msg) identifier_msg
(identifier_UserWarning) identifier_UserWarning
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_opj_lib) identifier_opj_lib
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_opj_lib) identifier_opj_lib
)return_statement
)block
)function_definition
)module | Load the library, return the ctypes handle. |
(module
(function_definition
(function_name__frame_generator) function_name__frame_generator
(parameters
(identifier_self) identifier_self
(identifier_frame_duration_ms) identifier_frame_duration_ms
(identifier_audio) identifier_audio
(identifier_sample_rate) identifier_sample_rate
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(binary_operator
(identifier_sample_rate) identifier_sample_rate
(parenthesized_expression
(binary_operator
(identifier_frame_duration_ms) identifier_frame_duration_ms
(float_1000.0) float_1000.0
)binary_operator
)parenthesized_expression
)binary_operator
(integer_2) integer_2
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_offset) identifier_offset
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(float_0.0) float_0.0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_duration) identifier_duration
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_n) identifier_n
)argument_list
)call
(identifier_sample_rate) identifier_sample_rate
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)assignment
)expression_statement
(while_statement
(comparison_operator
(binary_operator
(identifier_offset) identifier_offset
(identifier_n) identifier_n
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_audio) identifier_audio
)argument_list
)call
)comparison_operator
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_Frame) identifier_Frame
)attribute
(argument_list
(subscript
(identifier_audio) identifier_audio
(slice
(identifier_offset) identifier_offset
(colon) colon
(binary_operator
(identifier_offset) identifier_offset
(identifier_n) identifier_n
)binary_operator
)slice
)subscript
(identifier_timestamp) identifier_timestamp
(identifier_duration) identifier_duration
)argument_list
)call
)yield
)expression_statement
(expression_statement
(augmented_assignment
(identifier_timestamp) identifier_timestamp
(identifier_duration) identifier_duration
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_offset) identifier_offset
(identifier_n) identifier_n
)augmented_assignment
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Generates audio frames from PCM audio data.
Takes the desired frame duration in milliseconds, the PCM data, and
the sample rate.
Yields Frames of the requested duration. |
(module
(function_definition
(function_name_round_to_nearest) function_name_round_to_nearest
(parameters
(identifier_number) identifier_number
(default_parameter
(identifier_nearest) identifier_nearest
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(binary_operator
(identifier_nearest) identifier_nearest
(call
(identifier_round) identifier_round
(argument_list
(binary_operator
(identifier_number) identifier_number
(identifier_nearest) identifier_nearest
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_result) identifier_result
(integer_1) integer_1
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_nearest) identifier_nearest
(integer_1) integer_1
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_nearest) identifier_nearest
(float_0.1) float_0.1
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(identifier_result) identifier_result
(integer_1) integer_1
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_nearest) identifier_nearest
(float_0.01) float_0.01
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(identifier_result) identifier_result
(integer_2) integer_2
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Round 'number' to the nearest multiple of 'nearest'.
Parameters
----------
number
A real number to round.
nearest
Number to round to closes multiple of.
Returns
-------
rounded
A rounded number.
Examples
-------
>>> round_to_nearest(6.8, nearest = 2.5)
7.5 |
(module
(function_definition
(function_name_read_pid_stat) function_name_read_pid_stat
(parameters
(identifier_pid) identifier_pid
)parameters
(block
(return_statement
(dictionary
(pair
(string_"utime") string_"utime"
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(integer_999999999) integer_999999999
)argument_list
)call
)pair
(pair
(string_"stime") string_"stime"
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(integer_999999999) integer_999999999
)argument_list
)call
)pair
(pair
(string_"cutime") string_"cutime"
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(integer_999999999) integer_999999999
)argument_list
)call
)pair
(pair
(string_"cstime") string_"cstime"
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(integer_999999999) integer_999999999
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Mocks read_pid_stat as this is a Linux-specific operation. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_util) identifier_util
(identifier_timed_block) identifier_timed_block
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_t) identifier_t
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(attribute
(identifier_self) identifier_self
(identifier__collect_files) identifier__collect_files
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Collected <33>{} <32>files in <33>{}s") string_"Collected <33>{} <32>files in <33>{}s"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_files) identifier_files
)argument_list
)call
(attribute
(identifier_t) identifier_t
(identifier_elapsed_s) identifier_elapsed_s
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
(block
(for_statement
(identifier_p) identifier_p
(identifier_files) identifier_files
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_" <0>{}") string_" <0>{}"
(identifier_p) identifier_p
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_files) identifier_files
)not_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_allow_empty) identifier_allow_empty
)attribute
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_util) identifier_util
(identifier_timed_block) identifier_timed_block
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_t) identifier_t
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(identifier_self) identifier_self
(identifier__run_checks) identifier__run_checks
)attribute
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Code checked in <33>{}s") string_"Code checked in <33>{}s"
(attribute
(identifier_t) identifier_t
(identifier_elapsed_s) identifier_elapsed_s
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_success) identifier_success
(True) True
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_retcodes) identifier_retcodes
)pattern_list
(call
(attribute
(identifier_results) identifier_results
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(comparison_operator
(identifier_x) identifier_x
(integer_0) integer_0
)comparison_operator
(for_in_clause
(identifier_x) identifier_x
(identifier_retcodes) identifier_retcodes
)for_in_clause
)generator_expression
)call
(block
(expression_statement
(assignment
(identifier_success) identifier_success
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_err) identifier_err
)attribute
(argument_list
(call
(attribute
(string_"<35>{} <31>failed with: <33>{}") string_"<35>{} <31>failed with: <33>{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_retcodes) identifier_retcodes
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_success) identifier_success
)return_statement
)block
)function_definition
)module | Run all linters and report results.
Returns:
bool: **True** if all checks were successful, **False** otherwise. |
(module
(function_definition
(function_name_download_file_with_progress_bar) function_name_download_file_with_progress_bar
(parameters
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_stream) identifier_stream
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_status_code) identifier_status_code
)attribute
(integer_404) integer_404
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(parenthesized_expression
(call
(attribute
(concatenated_string
(string_'there was a 404 error trying to reach {} \nThis probably ') string_'there was a 404 error trying to reach {} \nThis probably '
(string_'means the requested version does not exist.') string_'means the requested version does not exist.'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_total_size) identifier_total_size
(call
(identifier_int) identifier_int
(argument_list
(subscript
(attribute
(identifier_request) identifier_request
(identifier_headers) identifier_headers
)attribute
(string_"Content-Length") string_"Content-Length"
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chunk_size) identifier_chunk_size
(integer_1024) integer_1024
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bars) identifier_bars
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_total_size) identifier_total_size
(identifier_chunk_size) identifier_chunk_size
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bytes_io) identifier_bytes_io
(call
(attribute
(identifier_io) identifier_io
(identifier_BytesIO) identifier_BytesIO
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pbar) identifier_pbar
(call
(identifier_tqdm) identifier_tqdm
(argument_list
(call
(attribute
(identifier_request) identifier_request
(identifier_iter_content) identifier_iter_content
)attribute
(argument_list
(keyword_argument
(identifier_chunk_size) identifier_chunk_size
(identifier_chunk_size) identifier_chunk_size
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_total) identifier_total
(identifier_bars) identifier_bars
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(string_"kb") string_"kb"
)keyword_argument
(keyword_argument
(identifier_leave) identifier_leave
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_chunk) identifier_chunk
(identifier_pbar) identifier_pbar
(block
(expression_statement
(call
(attribute
(identifier_bytes_io) identifier_bytes_io
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_bytes_io) identifier_bytes_io
)return_statement
)block
)function_definition
)module | Downloads a file from the given url, displays
a progress bar.
Returns a io.BytesIO object |
(module
(function_definition
(function_name_focus0) function_name_focus0
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_Point) identifier_Point
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_center) identifier_center
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_xAxisIsMajor) identifier_xAxisIsMajor
)attribute
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_f) identifier_f
(identifier_x) identifier_x
)attribute
(attribute
(identifier_self) identifier_self
(identifier_linearEccentricity) identifier_linearEccentricity
)attribute
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_f) identifier_f
(identifier_y) identifier_y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_linearEccentricity) identifier_linearEccentricity
)attribute
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
)module | First focus of the ellipse, Point class. |
(module
(function_definition
(function_name_increment_name) function_name_increment_name
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_i) identifier_i
)parameters
(block
(if_statement
(comparison_operator
(identifier_i) identifier_i
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'.') string_'.'
(identifier_name) identifier_name
)comparison_operator
(block
(expression_statement
(assignment
(identifier_split) identifier_split
(call
(attribute
(identifier_name) identifier_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_split) identifier_split
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
(binary_operator
(subscript
(identifier_split) identifier_split
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_split) identifier_split
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(identifier_name) identifier_name
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | takes something like
test.txt
and returns
test1.txt |
(module
(function_definition
(function_name_children) function_name_children
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_NodeList) identifier_NodeList
)type
(block
(return_statement
(call
(identifier_NodeList) identifier_NodeList
(argument_list
(list_comprehension
(identifier_e) identifier_e
(for_in_clause
(identifier_e) identifier_e
(attribute
(identifier_self) identifier_self
(identifier_childNodes) identifier_childNodes
)attribute
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_nodeType) identifier_nodeType
)attribute
(attribute
(identifier_Node) identifier_Node
(identifier_ELEMENT_NODE) identifier_ELEMENT_NODE
)attribute
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return list of child nodes.
Currently this is not a live object. |
(module
(function_definition
(function_name_name_to_int) function_name_name_to_int
(parameters
(identifier_name) identifier_name
)parameters
(block
(if_statement
(not_operator
(identifier_name) identifier_name
)not_operator
(block
(return_statement
(call
(identifier_float) identifier_float
(argument_list
(string_'nan') string_'nan'
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_lower) identifier_lower
(call
(attribute
(identifier_name) identifier_name
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cga_names) identifier_cga_names
(dictionary_comprehension
(pair
(identifier_s) identifier_s
(identifier_i) identifier_i
)pair
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_s) identifier_s
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(attribute
(identifier_colour_names) identifier_colour_names
(identifier_cga) identifier_cga
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(return_statement
(boolean_operator
(call
(attribute
(identifier_cga_names) identifier_cga_names
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_lower) identifier_lower
)argument_list
)call
(call
(identifier_html_to_small_ansi) identifier_html_to_small_ansi
(argument_list
(identifier_lower) identifier_lower
)argument_list
)call
)boolean_operator
)return_statement
)block
)function_definition
)module | Get a number for that colour name
if not a name, then not a number |
(module
(function_definition
(function_name_twitter_credential) function_name_twitter_credential
(parameters
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_credential_name) identifier_credential_name
(binary_operator
(string_'TWITTER_') string_'TWITTER_'
(call
(attribute
(identifier_name) identifier_name
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_settings) identifier_settings
(identifier_credential_name) identifier_credential_name
)argument_list
)call
(block
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_settings) identifier_settings
(identifier_credential_name) identifier_credential_name
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_AttributeError) identifier_AttributeError
(argument_list
(binary_operator
(string_'Missing twitter credential in settings: ') string_'Missing twitter credential in settings: '
(identifier_credential_name) identifier_credential_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Grab twitter credential from settings |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_filelike) identifier_filelike
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(identifier_log) identifier_log
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_source) identifier_source
)attribute
(call
(attribute
(identifier_filelike) identifier_filelike
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_src) identifier_src
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_source) identifier_source
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier_compile) identifier_compile
(argument_list
(identifier_src) identifier_src
(identifier_filename) identifier_filename
(string_'exec') string_'exec'
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_SyntaxError) identifier_SyntaxError
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ParseError) identifier_ParseError
(argument_list
)argument_list
)call
(identifier_error) identifier_error
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(call
(identifier_TokenStream) identifier_TokenStream
(argument_list
(call
(identifier_StringIO) identifier_StringIO
(argument_list
(identifier_src) identifier_src
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
(identifier_filename) identifier_filename
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dunder_all) identifier_dunder_all
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dunder_all_error) identifier_dunder_all_error
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_future_imports) identifier_future_imports
)attribute
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__accumulated_decorators) identifier__accumulated_decorators
)attribute
(list
)list
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_module) identifier_parse_module
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parse the given file-like object and return its Module object. |
(module
(function_definition
(function_name_validate_link) function_name_validate_link
(parameters
(identifier_link_data) identifier_link_data
)parameters
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_apps) identifier_apps
)dotted_name
(dotted_name
(identifier_apps) identifier_apps
)dotted_name
)import_from_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_Model) identifier_Model
(call
(attribute
(identifier_apps) identifier_apps
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(list_splat
(call
(attribute
(subscript
(identifier_link_data) identifier_link_data
(string_'model') string_'model'
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_Model) identifier_Model
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_pk) identifier_pk
(subscript
(identifier_link_data) identifier_link_data
(string_'pk') string_'pk'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_Model) identifier_Model
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(raise_statement
(call
(identifier_ValidationError) identifier_ValidationError
(argument_list
(call
(attribute
(call
(identifier__) identifier__
(argument_list
(string_"Unable to link onto '{0}'.") string_"Unable to link onto '{0}'."
)argument_list
)call
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_Model) identifier_Model
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check if the given model exists, otherwise raise a Validation error |
(module
(function_definition
(function_name_list_build_records) function_name_list_build_records
(parameters
(default_parameter
(identifier_page_size) identifier_page_size
(integer_200) integer_200
)default_parameter
(default_parameter
(identifier_page_index) identifier_page_index
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_sort) identifier_sort
(string_"") string_""
)default_parameter
(default_parameter
(identifier_q) identifier_q
(string_"") string_""
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_list_build_records_raw) identifier_list_build_records_raw
(argument_list
(identifier_page_size) identifier_page_size
(identifier_page_index) identifier_page_index
(identifier_sort) identifier_sort
(identifier_q) identifier_q
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_data) identifier_data
(block
(return_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_format_json_list) identifier_format_json_list
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | List all BuildRecords |
(module
(function_definition
(function_name_vote) function_name_vote
(parameters
(identifier_self) identifier_self
(identifier_candidates) identifier_candidates
)parameters
(block
(expression_statement
(assignment
(identifier_ranks) identifier_ranks
(list_comprehension
(tuple
(identifier_c) identifier_c
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_evaluate) identifier_evaluate
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(integer_0) integer_0
)subscript
)tuple
(for_in_clause
(identifier_c) identifier_c
(identifier_candidates) identifier_candidates
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ranks) identifier_ranks
(identifier_sort) identifier_sort
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(call
(attribute
(identifier_operator) identifier_operator
(identifier_itemgetter) identifier_itemgetter
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_ranks) identifier_ranks
)return_statement
)block
)function_definition
)module | Rank artifact candidates.
The voting is needed for the agents living in societies using
social decision making. The function should return a sorted list
of (candidate, evaluation)-tuples. Depending on the social choice
function used, the evaluation might be omitted from the actual decision
making, or only a number of (the highest ranking) candidates may be
used.
This basic implementation ranks candidates based on
:meth:`~creamas.core.agent.CreativeAgent.evaluate`.
:param candidates:
list of :py:class:`~creamas.core.artifact.Artifact` objects to be
ranked
:returns:
Ordered list of (candidate, evaluation)-tuples |
(module
(function_definition
(function_name_service_response) function_name_service_response
(parameters
(identifier_body) identifier_body
(identifier_headers) identifier_headers
(identifier_status_code) identifier_status_code
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_Response) identifier_Response
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_response) identifier_response
(identifier_headers) identifier_headers
)attribute
(identifier_headers) identifier_headers
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(identifier_status_code) identifier_status_code
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Constructs a Flask Response from the body, headers, and status_code.
:param str body: Response body as a string
:param dict headers: headers for the response
:param int status_code: status_code for response
:return: Flask Response |
(module
(function_definition
(function_name_set_refresh_rate) function_name_set_refresh_rate
(parameters
(identifier_self) identifier_self
(identifier_fps) identifier_fps
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rf_fps) identifier_rf_fps
)attribute
(identifier_fps) identifier_fps
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rf_rate) identifier_rf_rate
)attribute
(binary_operator
(float_1.0) float_1.0
(attribute
(identifier_self) identifier_self
(identifier_rf_fps) identifier_rf_fps
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"set a refresh rate of %.2f fps") string_"set a refresh rate of %.2f fps"
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_rf_fps) identifier_rf_fps
)attribute
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the refresh rate for redrawing the canvas at a timed interval.
Parameters
----------
fps : float
Desired rate in frames per second. |
(module
(function_definition
(function_name_merge_from) function_name_merge_from
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_other) identifier_other
(identifier_pattern) identifier_pattern
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
)attribute
(attribute
(identifier_other) identifier_other
(identifier_pattern) identifier_pattern
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_other) identifier_other
(identifier_format) identifier_format
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_format) identifier_format
)attribute
(attribute
(identifier_other) identifier_other
(identifier_format) identifier_format
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_leading_digits_pattern) identifier_leading_digits_pattern
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(attribute
(identifier_other) identifier_other
(identifier_leading_digits_pattern) identifier_leading_digits_pattern
)attribute
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_other) identifier_other
(identifier_national_prefix_formatting_rule) identifier_national_prefix_formatting_rule
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_national_prefix_formatting_rule) identifier_national_prefix_formatting_rule
)attribute
(attribute
(identifier_other) identifier_other
(identifier_national_prefix_formatting_rule) identifier_national_prefix_formatting_rule
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_other) identifier_other
(identifier_national_prefix_optional_when_formatting) identifier_national_prefix_optional_when_formatting
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_national_prefix_optional_when_formatting) identifier_national_prefix_optional_when_formatting
)attribute
(attribute
(identifier_other) identifier_other
(identifier_national_prefix_optional_when_formatting) identifier_national_prefix_optional_when_formatting
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_other) identifier_other
(identifier_domestic_carrier_code_formatting_rule) identifier_domestic_carrier_code_formatting_rule
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_domestic_carrier_code_formatting_rule) identifier_domestic_carrier_code_formatting_rule
)attribute
(attribute
(identifier_other) identifier_other
(identifier_domestic_carrier_code_formatting_rule) identifier_domestic_carrier_code_formatting_rule
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Merge information from another NumberFormat object into this one. |
(module
(function_definition
(function_name__handle_tag_csmtextsettings) function_name__handle_tag_csmtextsettings
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier__make_object) identifier__make_object
(argument_list
(string_"CSMTextSettings") string_"CSMTextSettings"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_TextId) identifier_TextId
)attribute
(call
(identifier_unpack_ui16) identifier_unpack_ui16
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__src) identifier__src
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bc) identifier_bc
(call
(identifier_BitConsumer) identifier_BitConsumer
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__src) identifier__src
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_UseFlashType) identifier_UseFlashType
)attribute
(call
(attribute
(identifier_bc) identifier_bc
(identifier_u_get) identifier_u_get
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_GridFit) identifier_GridFit
)attribute
(call
(attribute
(identifier_bc) identifier_bc
(identifier_u_get) identifier_u_get
)attribute
(argument_list
(integer_3) integer_3
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_Reserved1) identifier_Reserved1
)attribute
(call
(attribute
(identifier_bc) identifier_bc
(identifier_u_get) identifier_u_get
)attribute
(argument_list
(integer_3) integer_3
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_Thickness) identifier_Thickness
)attribute
(call
(identifier_unpack_float) identifier_unpack_float
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__src) identifier__src
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_Sharpness) identifier_Sharpness
)attribute
(call
(identifier_unpack_float) identifier_unpack_float
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__src) identifier__src
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_Reserved2) identifier_Reserved2
)attribute
(call
(identifier_unpack_ui8) identifier_unpack_ui8
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__src) identifier__src
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Handle the CSMTextSettings tag. |
(module
(function_definition
(function_name_get_logs) function_name_get_logs
(parameters
(identifier_self) identifier_self
(identifier_jobs) identifier_jobs
(default_parameter
(identifier_log_file) identifier_log_file
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(identifier_jobs) identifier_jobs
(attribute
(identifier_self) identifier_self
(identifier_log_url) identifier_log_url
)attribute
)boolean_operator
)parenthesized_expression
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(identifier_job) identifier_job
(identifier_jobs) identifier_jobs
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"{}?jobId={}") string_"{}?jobId={}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_log_url) identifier_log_url
)attribute
(call
(attribute
(identifier_job) identifier_job
(identifier_get) identifier_get
)attribute
(argument_list
(string_"id") string_"id"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_log_file) identifier_log_file
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__download_log) identifier__download_log
)attribute
(argument_list
(call
(attribute
(string_"{}&download") string_"{}&download"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
(identifier_log_file) identifier_log_file
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Submit log for job %s: %s") string_"Submit log for job %s: %s"
(call
(attribute
(identifier_job) identifier_job
(identifier_get) identifier_get
)attribute
(argument_list
(string_"id") string_"id"
)argument_list
)call
(identifier_url) identifier_url
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Get log or log url of the jobs. |
(module
(function_definition
(function_name_indicator_pivot) function_name_indicator_pivot
(parameters
(identifier_self) identifier_self
(identifier_indicator_resource) identifier_indicator_resource
)parameters
(block
(expression_statement
(assignment
(identifier_resource) identifier_resource
(call
(attribute
(identifier_self) identifier_self
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_resource) identifier_resource
(identifier__request_uri) identifier__request_uri
)attribute
(call
(attribute
(string_'{}/{}') string_'{}/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_indicator_resource) identifier_indicator_resource
(identifier_request_uri) identifier_request_uri
)attribute
(attribute
(identifier_resource) identifier_resource
(identifier__request_uri) identifier__request_uri
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_resource) identifier_resource
)return_statement
)block
)function_definition
)module | Pivot point on indicators for this resource.
This method will return all *resources* (groups, tasks, victims, etc)
for this resource that are associated with the provided resource id
(indicator value).
**Example Endpoints URI's**
+--------+---------------------------------------------------------------------------------+
| Method | API Endpoint URI's |
+========+=================================================================================+
| GET | /v2/indicators/{resourceType}/{resourceId}/groups/{resourceType} |
+--------+---------------------------------------------------------------------------------+
| GET | /v2/indicators/{resourceType}/{resourceId}/groups/{resourceType}/{uniqueId} |
+--------+---------------------------------------------------------------------------------+
| GET | /v2/indicators/{resourceType}/{resourceId}/tasks/ |
+--------+---------------------------------------------------------------------------------+
| GET | /v2/indicators/{resourceType}/{resourceId}/tasks/{uniqueId} |
+--------+---------------------------------------------------------------------------------+
| GET | /v2/indicators/{resourceType}/{resourceId}/victims/ |
+--------+---------------------------------------------------------------------------------+
| GET | /v2/indicators/{resourceType}/{resourceId}/victims/{uniqueId} |
+--------+---------------------------------------------------------------------------------+
Args:
resource_type (string): The resource pivot resource type (indicator type).
resource_id (integer): The resource pivot id (indicator value). |
(module
(function_definition
(function_name_travis) function_name_travis
(parameters
(typed_parameter
(identifier_branch) identifier_branch
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(assert_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'TRAVIS_BRANCH') string_'TRAVIS_BRANCH'
)argument_list
)call
(identifier_branch) identifier_branch
)comparison_operator
)assert_statement
(assert_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'TRAVIS_PULL_REQUEST') string_'TRAVIS_PULL_REQUEST'
)argument_list
)call
(string_'false') string_'false'
)comparison_operator
)assert_statement
)block
)function_definition
)module | Performs necessary checks to ensure that the travis build is one
that should create releases.
:param branch: The branch the environment should be running against. |
(module
(function_definition
(function_name_publish) function_name_publish
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(default_parameter
(identifier_tag) identifier_tag
(string_b'') string_b''
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send) identifier_send
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_tag) identifier_tag
(string_b'\0') string_b'\0'
)binary_operator
(identifier_message) identifier_message
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Publish `message` with specified `tag`.
:param message: message data
:type message: str
:param tag: message tag
:type tag: str |
(module
(function_definition
(function_name_writeSampleIndex) function_name_writeSampleIndex
(parameters
(identifier_self) identifier_self
(identifier_fp) identifier_fp
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(generator_expression
(binary_operator
(string_'%d %s') string_'%d %s'
(tuple
(identifier_index) identifier_index
(identifier_name) identifier_name
)tuple
)binary_operator
(for_in_clause
(tuple_pattern
(identifier_index) identifier_index
(identifier_name) identifier_name
)tuple_pattern
(call
(identifier_sorted) identifier_sorted
(generator_expression
(tuple
(identifier_index) identifier_index
(identifier_name) identifier_name
)tuple
(for_in_clause
(tuple_pattern
(identifier_name) identifier_name
(identifier_index) identifier_index
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__samples) identifier__samples
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)for_in_clause
)generator_expression
)call
(keyword_argument
(identifier_file) identifier_file
(identifier_fp) identifier_fp
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write a file of sample indices and names, sorted by index.
@param fp: A file-like object, opened for writing. |
(module
(function_definition
(function_name_replayOne) function_name_replayOne
(parameters
(identifier_self) identifier_self
(identifier_r) identifier_r
)parameters
(block
(expression_statement
(string_'Replay the command in one given row.') string_'Replay the command in one given row.'
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_CommandLog) identifier_CommandLog
(identifier_currentReplayRow) identifier_currentReplayRow
)attribute
(identifier_r) identifier_r
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_longname) identifier_longname
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_r) identifier_r
(string_'longname') string_'longname'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_longname) identifier_longname
(string_'set-option') string_'set-option'
)comparison_operator
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_options) identifier_options
(identifier_set) identifier_set
)attribute
(argument_list
(attribute
(identifier_r) identifier_r
(identifier_row) identifier_row
)attribute
(attribute
(identifier_r) identifier_r
(identifier_input) identifier_input
)attribute
(call
(attribute
(attribute
(identifier_options) identifier_options
(identifier__opts) identifier__opts
)attribute
(identifier_getobj) identifier_getobj
)attribute
(argument_list
(attribute
(identifier_r) identifier_r
(identifier_col) identifier_col
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_escaped) identifier_escaped
(False) False
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_exceptionCaught) identifier_exceptionCaught
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_escaped) identifier_escaped
(True) True
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_vs) identifier_vs
(call
(attribute
(identifier_self) identifier_self
(identifier_moveToReplayContext) identifier_moveToReplayContext
)attribute
(argument_list
(identifier_r) identifier_r
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(call
(identifier_vd) identifier_vd
(argument_list
)argument_list
)call
(identifier_keystrokes) identifier_keystrokes
)attribute
(attribute
(identifier_r) identifier_r
(identifier_keystrokes) identifier_keystrokes
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_escaped) identifier_escaped
(call
(attribute
(identifier_vs) identifier_vs
(identifier_exec_command) identifier_exec_command
)attribute
(argument_list
(call
(attribute
(identifier_vs) identifier_vs
(identifier_getCommand) identifier_getCommand
)attribute
(argument_list
(conditional_expression
(identifier_longname) identifier_longname
(identifier_longname) identifier_longname
(attribute
(identifier_r) identifier_r
(identifier_keystrokes) identifier_keystrokes
)attribute
)conditional_expression
)argument_list
)call
(keyword_argument
(identifier_keystrokes) identifier_keystrokes
(attribute
(identifier_r) identifier_r
(identifier_keystrokes) identifier_keystrokes
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_CommandLog) identifier_CommandLog
(identifier_currentReplayRow) identifier_currentReplayRow
)attribute
(None) None
)assignment
)expression_statement
(if_statement
(identifier_escaped) identifier_escaped
(block
(expression_statement
(call
(identifier_warning) identifier_warning
(argument_list
(string_'replay aborted') string_'replay aborted'
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_escaped) identifier_escaped
)return_statement
)block
)function_definition
)module | Replay the command in one given row. |
(module
(function_definition
(function_name_extract) function_name_extract
(parameters
(identifier_self) identifier_self
(identifier_pbf) identifier_pbf
(identifier_output) identifier_output
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Extracting POI nodes from {0} to {1}") string_"Extracting POI nodes from {0} to {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_pbf) identifier_pbf
(identifier_output) identifier_output
)argument_list
)call
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_output) identifier_output
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(function_definition
(function_name_nodes_callback) function_name_nodes_callback
(parameters
(identifier_nodes) identifier_nodes
)parameters
(block
(for_statement
(identifier_node) identifier_node
(identifier_nodes) identifier_nodes
(block
(expression_statement
(assignment
(pattern_list
(identifier_node_id) identifier_node_id
(identifier_tags) identifier_tags
(identifier_coordinates) identifier_coordinates
)pattern_list
(identifier_node) identifier_node
)assignment
)expression_statement
(if_statement
(call
(identifier_any) identifier_any
(argument_list
(list_comprehension
(comparison_operator
(identifier_t) identifier_t
(identifier_tags) identifier_tags
)comparison_operator
(for_in_clause
(identifier_t) identifier_t
(identifier_POI_TAGS) identifier_POI_TAGS
)for_in_clause
)list_comprehension
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_tags) identifier_tags
(identifier_tags) identifier_tags
)keyword_argument
(keyword_argument
(identifier_coordinates) identifier_coordinates
(identifier_coordinates) identifier_coordinates
)keyword_argument
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_OSMParser) identifier_OSMParser
(argument_list
(keyword_argument
(identifier_concurrency) identifier_concurrency
(integer_4) integer_4
)keyword_argument
(keyword_argument
(identifier_nodes_callback) identifier_nodes_callback
(identifier_nodes_callback) identifier_nodes_callback
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_pbf) identifier_pbf
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | extract POI nodes from osm pbf extract |
(module
(function_definition
(function_name__read24) function_name__read24
(parameters
(identifier_self) identifier_self
(identifier_register) identifier_register
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(float_0.0) float_0.0
)assignment
)expression_statement
(for_statement
(identifier_b) identifier_b
(call
(attribute
(identifier_self) identifier_self
(identifier__read_register) identifier__read_register
)attribute
(argument_list
(identifier_register) identifier_register
(integer_3) integer_3
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(float_256.0) float_256.0
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(call
(identifier_float) identifier_float
(argument_list
(binary_operator
(identifier_b) identifier_b
(integer_0xFF) integer_0xFF
)binary_operator
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Read an unsigned 24-bit value as a floating point and return it. |
(module
(function_definition
(function_name_clearText) function_name_clearText
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_keepFocus) identifier_keepFocus
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_text) identifier_text
)attribute
(string_'') string_''
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_focus) identifier_focus
)attribute
(identifier_keepFocus) identifier_keepFocus
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__updateImage) identifier__updateImage
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Clear the text in the field |
(module
(function_definition
(function_name_page_revisions) function_name_page_revisions
(parameters
(identifier_request) identifier_request
(identifier_page_id) identifier_page_id
(default_parameter
(identifier_template_name) identifier_template_name
(string_'wagtailrollbacks/edit_handlers/revisions.html') string_'wagtailrollbacks/edit_handlers/revisions.html'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_page) identifier_page
(call
(identifier_get_object_or_404) identifier_get_object_or_404
(argument_list
(identifier_Page) identifier_Page
(keyword_argument
(identifier_pk) identifier_pk
(identifier_page_id) identifier_page_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_page_perms) identifier_page_perms
(call
(attribute
(identifier_page) identifier_page
(identifier_permissions_for_user) identifier_permissions_for_user
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_page_perms) identifier_page_perms
(identifier_can_edit) identifier_can_edit
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(identifier_PermissionDenied) identifier_PermissionDenied
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_page_num) identifier_page_num
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'p') string_'p'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_revisions) identifier_revisions
(call
(identifier_get_revisions) identifier_get_revisions
(argument_list
(identifier_page) identifier_page
(identifier_page_num) identifier_page_num
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_render) identifier_render
(argument_list
(identifier_request) identifier_request
(identifier_template_name) identifier_template_name
(dictionary
(pair
(string_'page') string_'page'
(identifier_page) identifier_page
)pair
(pair
(string_'revisions') string_'revisions'
(identifier_revisions) identifier_revisions
)pair
(pair
(string_'p') string_'p'
(identifier_page_num) identifier_page_num
)pair
)dictionary
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns GET response for specified page revisions.
:param request: the request instance.
:param page_id: the page ID.
:param template_name: the template name.
:rtype: django.http.HttpResponse. |
(module
(function_definition
(function_name_get_model_home) function_name_get_model_home
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_get_data_home) identifier_get_data_home
(argument_list
)argument_list
)call
(string_'nnp_models') string_'nnp_models'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | Returns a root folder path for downloading models. |
(module
(function_definition
(function_name__reuse_pre_installed_setuptools) function_name__reuse_pre_installed_setuptools
(parameters
(identifier_env) identifier_env
(identifier_installer) identifier_installer
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_env) identifier_env
(identifier_setuptools_version) identifier_setuptools_version
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_reuse_old) identifier_reuse_old
(attribute
(identifier_config) identifier_config
(identifier_reuse_old_setuptools) identifier_reuse_old_setuptools
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reuse_best) identifier_reuse_best
(attribute
(identifier_config) identifier_config
(identifier_reuse_best_setuptools) identifier_reuse_best_setuptools
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reuse_future) identifier_reuse_future
(attribute
(identifier_config) identifier_config
(identifier_reuse_future_setuptools) identifier_reuse_future_setuptools
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reuse_comment) identifier_reuse_comment
(None) None
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_reuse_old) identifier_reuse_old
(identifier_reuse_best) identifier_reuse_best
)boolean_operator
(identifier_reuse_future) identifier_reuse_future
)boolean_operator
(block
(expression_statement
(assignment
(identifier_pv_old) identifier_pv_old
(call
(identifier_parse_version) identifier_parse_version
(argument_list
(attribute
(identifier_env) identifier_env
(identifier_setuptools_version) identifier_setuptools_version
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pv_new) identifier_pv_new
(call
(identifier_parse_version) identifier_parse_version
(argument_list
(call
(attribute
(identifier_installer) identifier_installer
(identifier_setuptools_version) identifier_setuptools_version
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pv_old) identifier_pv_old
(identifier_pv_new) identifier_pv_new
)comparison_operator
(block
(if_statement
(identifier_reuse_old) identifier_reuse_old
(block
(expression_statement
(assignment
(identifier_reuse_comment) identifier_reuse_comment
(binary_operator
(string_"%s+ recommended") string_"%s+ recommended"
(tuple
(call
(attribute
(identifier_installer) identifier_installer
(identifier_setuptools_version) identifier_setuptools_version
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
)block
)if_statement
)block
(elif_clause
(comparison_operator
(identifier_pv_old) identifier_pv_old
(identifier_pv_new) identifier_pv_new
)comparison_operator
(block
(if_statement
(identifier_reuse_future) identifier_reuse_future
(block
(expression_statement
(assignment
(identifier_reuse_comment) identifier_reuse_comment
(binary_operator
(string_"%s+ required") string_"%s+ required"
(tuple
(call
(attribute
(identifier_installer) identifier_installer
(identifier_setuptools_version) identifier_setuptools_version
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(identifier_reuse_best) identifier_reuse_best
(block
(expression_statement
(assignment
(identifier_reuse_comment) identifier_reuse_comment
(string_"") string_""
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_reuse_comment) identifier_reuse_comment
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(identifier_reuse_comment) identifier_reuse_comment
(block
(expression_statement
(assignment
(identifier_reuse_comment) identifier_reuse_comment
(binary_operator
(string_" (%s)") string_" (%s)"
(tuple
(identifier_reuse_comment) identifier_reuse_comment
)tuple
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"Reusing pre-installed setuptools %s distribution%s.") string_"Reusing pre-installed setuptools %s distribution%s."
(tuple
(attribute
(identifier_env) identifier_env
(identifier_setuptools_version) identifier_setuptools_version
)attribute
(identifier_reuse_comment) identifier_reuse_comment
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Return whether a pre-installed setuptools distribution should be reused. |
(module
(function_definition
(function_name_stats) function_name_stats
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_statement
(dotted_name
(identifier_ns1) identifier_ns1
(identifier_rest) identifier_rest
(identifier_stats) identifier_stats
)dotted_name
)import_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_ns1) identifier_ns1
(identifier_rest) identifier_rest
)attribute
(identifier_stats) identifier_stats
)attribute
(identifier_Stats) identifier_Stats
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a new raw REST interface to stats resources
:rtype: :py:class:`ns1.rest.stats.Stats` |
(module
(function_definition
(function_name__compress) function_name__compress
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_rank) identifier_rank
(float_0.0) float_0.0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current) identifier_current
(attribute
(identifier_self) identifier_self
(identifier__head) identifier__head
)attribute
)assignment
)expression_statement
(while_statement
(boolean_operator
(identifier_current) identifier_current
(attribute
(identifier_current) identifier_current
(identifier__successor) identifier__successor
)attribute
)boolean_operator
(block
(if_statement
(comparison_operator
(binary_operator
(binary_operator
(attribute
(identifier_current) identifier_current
(identifier__rank) identifier__rank
)attribute
(attribute
(attribute
(identifier_current) identifier_current
(identifier__successor) identifier__successor
)attribute
(identifier__rank) identifier__rank
)attribute
)binary_operator
(attribute
(attribute
(identifier_current) identifier_current
(identifier__successor) identifier__successor
)attribute
(identifier__delta) identifier__delta
)attribute
)binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__invariant) identifier__invariant
)attribute
(argument_list
(identifier_rank) identifier_rank
(attribute
(identifier_self) identifier_self
(identifier__observations) identifier__observations
)attribute
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_removed) identifier_removed
(attribute
(identifier_current) identifier_current
(identifier__successor) identifier__successor
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier__value) identifier__value
)attribute
(attribute
(identifier_removed) identifier_removed
(identifier__value) identifier__value
)attribute
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_current) identifier_current
(identifier__rank) identifier__rank
)attribute
(attribute
(identifier_removed) identifier_removed
(identifier__rank) identifier__rank
)attribute
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier__delta) identifier__delta
)attribute
(attribute
(identifier_removed) identifier_removed
(identifier__delta) identifier__delta
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier__successor) identifier__successor
)attribute
(attribute
(identifier_removed) identifier_removed
(identifier__successor) identifier__successor
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_rank) identifier_rank
(attribute
(identifier_current) identifier_current
(identifier__rank) identifier__rank
)attribute
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_current) identifier_current
(attribute
(identifier_current) identifier_current
(identifier__successor) identifier__successor
)attribute
)assignment
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Prunes the cataloged observations. |
(module
(function_definition
(function_name_short_repr) function_name_short_repr
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_max_len) identifier_max_len
(integer_40) integer_40
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_obj_repr) identifier_obj_repr
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_obj_repr) identifier_obj_repr
)argument_list
)call
(identifier_max_len) identifier_max_len
)comparison_operator
(block
(return_statement
(identifier_obj_repr) identifier_obj_repr
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_'<{} of length {}>') string_'<{} of length {}>'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_obj_repr) identifier_obj_repr
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a short, term-friendly string representation of the object.
Args:
obj: An object for which to return a string representation.
max_len: Maximum length of the returned string. Longer reprs will be turned
into a brief descriptive string giving the type and length of obj. |
(module
(function_definition
(function_name_hdf5_storable) function_name_hdf5_storable
(parameters
(identifier_type_or_storable) identifier_type_or_storable
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_type_or_storable) identifier_type_or_storable
(identifier_Storable) identifier_Storable
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_type_or_storable) identifier_type_or_storable
(call
(identifier_default_storable) identifier_default_storable
(argument_list
(identifier_type_or_storable) identifier_type_or_storable
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_hdf5_service) identifier_hdf5_service
(identifier_registerStorable) identifier_registerStorable
)attribute
(argument_list
(identifier_type_or_storable) identifier_type_or_storable
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Registers a `Storable` instance in the global service. |
(module
(function_definition
(function_name_get_default_voices) function_name_get_default_voices
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_voices) identifier_voices
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_app) identifier_app
(attribute
(identifier_self) identifier_self
(identifier_app_list) identifier_app_list
)attribute
(block
(expression_statement
(assignment
(identifier_children) identifier_children
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_model) identifier_model
(call
(attribute
(identifier_app) identifier_app
(identifier_get) identifier_get
)attribute
(argument_list
(string_'models') string_'models'
(list
)list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_child) identifier_child
(dictionary
(pair
(string_'type') string_'type'
(string_'model') string_'model'
)pair
(pair
(string_'label') string_'label'
(call
(attribute
(identifier_model) identifier_model
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
(string_'') string_''
)argument_list
)call
)pair
(pair
(string_'url') string_'url'
(call
(attribute
(identifier_model) identifier_model
(identifier_get) identifier_get
)attribute
(argument_list
(string_'admin_url') string_'admin_url'
(string_'') string_''
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_child) identifier_child
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_voice) identifier_voice
(dictionary
(pair
(string_'type') string_'type'
(string_'app') string_'app'
)pair
(pair
(string_'label') string_'label'
(call
(attribute
(identifier_app) identifier_app
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
(string_'') string_''
)argument_list
)call
)pair
(pair
(string_'url') string_'url'
(call
(attribute
(identifier_app) identifier_app
(identifier_get) identifier_get
)attribute
(argument_list
(string_'app_url') string_'app_url'
(string_'') string_''
)argument_list
)call
)pair
(pair
(string_'children') string_'children'
(identifier_children) identifier_children
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_voices) identifier_voices
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_voice) identifier_voice
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_voices) identifier_voices
)return_statement
)block
)function_definition
)module | When no custom menu is defined in settings
Retrieves a js menu ready dict from the django admin app list |
(module
(function_definition
(function_name_prj_resolution_data) function_name_prj_resolution_data
(parameters
(identifier_project) identifier_project
(identifier_role) identifier_role
)parameters
(block
(if_statement
(comparison_operator
(identifier_role) identifier_role
(attribute
(attribute
(identifier_QtCore) identifier_QtCore
(identifier_Qt) identifier_Qt
)attribute
(identifier_DisplayRole) identifier_DisplayRole
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_'%s x %s') string_'%s x %s'
(tuple
(attribute
(identifier_project) identifier_project
(identifier_resx) identifier_resx
)attribute
(attribute
(identifier_project) identifier_project
(identifier_resy) identifier_resy
)attribute
)tuple
)binary_operator
)return_statement
)block
)if_statement
)block
)function_definition
)module | Return the data for resolution
:param project: the project that holds the data
:type project: :class:`jukeboxcore.djadapter.models.Project`
:param role: item data role
:type role: QtCore.Qt.ItemDataRole
:returns: data for the resolution
:rtype: depending on role
:raises: None |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_column_family) identifier_column_family
(call
(attribute
(identifier_self) identifier_self
(identifier_to_pb) identifier_to_pb
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_modification) identifier_modification
(call
(attribute
(attribute
(identifier_table_admin_v2_pb2) identifier_table_admin_v2_pb2
(identifier_ModifyColumnFamiliesRequest) identifier_ModifyColumnFamiliesRequest
)attribute
(identifier_Modification) identifier_Modification
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(attribute
(identifier_self) identifier_self
(identifier_column_family_id) identifier_column_family_id
)attribute
)keyword_argument
(keyword_argument
(identifier_create) identifier_create
(identifier_column_family) identifier_column_family
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_client) identifier_client
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__table) identifier__table
)attribute
(identifier__instance) identifier__instance
)attribute
(identifier__client) identifier__client
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_client) identifier_client
(identifier_table_admin_client) identifier_table_admin_client
)attribute
(identifier_modify_column_families) identifier_modify_column_families
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__table) identifier__table
)attribute
(identifier_name) identifier_name
)attribute
(list
(identifier_modification) identifier_modification
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create this column family.
For example:
.. literalinclude:: snippets_table.py
:start-after: [START bigtable_create_column_family]
:end-before: [END bigtable_create_column_family] |
(module
(function_definition
(function_name_check_ten_percent_voltage_deviation) function_name_check_ten_percent_voltage_deviation
(parameters
(identifier_network) identifier_network
)parameters
(block
(expression_statement
(assignment
(identifier_v_mag_pu_pfa) identifier_v_mag_pu_pfa
(call
(attribute
(attribute
(identifier_network) identifier_network
(identifier_results) identifier_results
)attribute
(identifier_v_res) identifier_v_res
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(call
(attribute
(parenthesized_expression
(comparison_operator
(identifier_v_mag_pu_pfa) identifier_v_mag_pu_pfa
(float_1.1) float_1.1
)comparison_operator
)parenthesized_expression
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(call
(attribute
(parenthesized_expression
(comparison_operator
(identifier_v_mag_pu_pfa) identifier_v_mag_pu_pfa
(float_0.9) float_0.9
)comparison_operator
)parenthesized_expression
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(string_"Maximum allowed voltage deviation of 10% exceeded.") string_"Maximum allowed voltage deviation of 10% exceeded."
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Checks if 10% criteria is exceeded.
Parameters
----------
network : :class:`~.grid.network.Network` |
(module
(function_definition
(function_name_get_inventory) function_name_get_inventory
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_oem_init) identifier_oem_init
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(yield
(tuple
(string_"System") string_"System"
(call
(attribute
(identifier_self) identifier_self
(identifier__get_zero_fru) identifier__get_zero_fru
)attribute
(argument_list
)argument_list
)call
)tuple
)yield
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_init_sdr) identifier_init_sdr
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_fruid) identifier_fruid
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sdr) identifier__sdr
)attribute
(identifier_fru) identifier_fru
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_fruinf) identifier_fruinf
(attribute
(call
(attribute
(identifier_fru) identifier_fru
(identifier_FRU) identifier_FRU
)attribute
(argument_list
(keyword_argument
(identifier_ipmicmd) identifier_ipmicmd
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_fruid) identifier_fruid
(identifier_fruid) identifier_fruid
)keyword_argument
(keyword_argument
(identifier_sdr) identifier_sdr
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sdr) identifier__sdr
)attribute
(identifier_fru) identifier_fru
)attribute
(identifier_fruid) identifier_fruid
)subscript
)keyword_argument
)argument_list
)call
(identifier_info) identifier_info
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_fruinf) identifier_fruinf
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_fruinf) identifier_fruinf
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__oem) identifier__oem
)attribute
(identifier_process_fru) identifier_process_fru
)attribute
(argument_list
(identifier_fruinf) identifier_fruinf
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sdr) identifier__sdr
)attribute
(identifier_fru) identifier_fru
)attribute
(identifier_fruid) identifier_fruid
)subscript
(identifier_fru_name) identifier_fru_name
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(yield
(tuple
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sdr) identifier__sdr
)attribute
(identifier_fru) identifier_fru
)attribute
(identifier_fruid) identifier_fruid
)subscript
(identifier_fru_name) identifier_fru_name
)attribute
(identifier_fruinf) identifier_fruinf
)tuple
)yield
)expression_statement
)block
)for_statement
(for_statement
(identifier_componentpair) identifier_componentpair
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__oem) identifier__oem
)attribute
(identifier_get_oem_inventory) identifier_get_oem_inventory
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(yield
(identifier_componentpair) identifier_componentpair
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Retrieve inventory of system
Retrieve inventory of the targeted system. This frequently includes
serial numbers, sometimes hardware addresses, sometimes memory modules
This function will retrieve whatever the underlying platform provides
and apply some structure. Iterating over the return yields tuples
of a name for the inventoried item and dictionary of descriptions
or None for items not present. |
(module
(function_definition
(function_name_name2rgb) function_name_name2rgb
(parameters
(identifier_name) identifier_name
)parameters
(block
(try_statement
(block
(import_statement
(dotted_name
(identifier_colour) identifier_colour
)dotted_name
)import_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(raise_statement
(call
(identifier_ImportError) identifier_ImportError
(argument_list
(string_'You need colour to be installed: pip install colour') string_'You need colour to be installed: pip install colour'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_colour) identifier_colour
(identifier_Color) identifier_Color
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_color) identifier_color
(expression_list
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(identifier_c) identifier_c
(identifier_red) identifier_red
)attribute
(integer_255) integer_255
)binary_operator
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(identifier_c) identifier_c
(identifier_green) identifier_green
)attribute
(integer_255) integer_255
)binary_operator
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(identifier_c) identifier_c
(identifier_blue) identifier_blue
)attribute
(integer_255) integer_255
)binary_operator
)argument_list
)call
)expression_list
)assignment
)expression_statement
(return_statement
(identifier_color) identifier_color
)return_statement
)block
)function_definition
)module | Convert the name of a color into its RGB value |
(module
(function_definition
(function_name_relabel) function_name_relabel
(parameters
(identifier_self) identifier_self
(identifier_change) identifier_change
)parameters
(block
(expression_statement
(string_"Relabel images by moving from parent dir with old label `class_old` to parent dir with new label `class_new`.") string_"Relabel images by moving from parent dir with old label `class_old` to parent dir with new label `class_new`."
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_class_new) identifier_class_new
(identifier_class_old) identifier_class_old
(identifier_file_path) identifier_file_path
)pattern_list
(expression_list
(attribute
(identifier_change) identifier_change
(identifier_new) identifier_new
)attribute
(attribute
(identifier_change) identifier_change
(identifier_old) identifier_old
)attribute
(attribute
(attribute
(identifier_change) identifier_change
(identifier_owner) identifier_owner
)attribute
(identifier_file_path) identifier_file_path
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fp) identifier_fp
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_file_path) identifier_file_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parent) identifier_parent
(subscript
(attribute
(identifier_fp) identifier_fp
(identifier_parents) identifier_parents
)attribute
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__csv_dict) identifier__csv_dict
)attribute
(identifier_fp) identifier_fp
)subscript
(identifier_class_new) identifier_class_new
)assignment
)expression_statement
)block
)function_definition
)module | Relabel images by moving from parent dir with old label `class_old` to parent dir with new label `class_new`. |
(module
(function_definition
(function_name_write_training_data) function_name_write_training_data
(parameters
(identifier_self) identifier_self
(identifier_features) identifier_features
(identifier_targets) identifier_targets
)parameters
(block
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_features) identifier_features
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_targets) identifier_targets
)argument_list
)call
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_features) identifier_features
(identifier_targets) identifier_targets
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(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_repopath) identifier_repopath
)attribute
(string_'training.pkl') string_'training.pkl'
)argument_list
)call
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_fp) identifier_fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_fp) identifier_fp
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Writes data dictionary to filename |
(module
(function_definition
(function_name_app_authenticate) function_name_app_authenticate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_account) identifier_account
(None) None
)default_parameter
(default_parameter
(identifier_flush) identifier_flush
(True) True
)default_parameter
(default_parameter
(identifier_bailout) identifier_bailout
(False) False
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier__get_account) identifier__get_account
)attribute
(argument_list
(identifier_account) identifier_account
)argument_list
)call
(as_pattern_target
(identifier_account) identifier_account
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(identifier_account) identifier_account
(identifier_get_name) identifier_get_name
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_password) identifier_password
(call
(attribute
(identifier_account) identifier_account
(identifier_get_password) identifier_get_password
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__dbg) identifier__dbg
)attribute
(argument_list
(integer_1) integer_1
(binary_operator
(string_"Attempting to app-authenticate %s.") string_"Attempting to app-authenticate %s."
(identifier_user) identifier_user
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__app_authenticate) identifier__app_authenticate
)attribute
(argument_list
(identifier_account) identifier_account
(identifier_password) identifier_password
(identifier_flush) identifier_flush
(identifier_bailout) identifier_bailout
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_app_authenticated) identifier_app_authenticated
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Attempt to perform application-level authentication. Application
level authentication is needed on devices where the username and
password are requested from the user after the connection was
already accepted by the remote device.
The difference between app-level authentication and protocol-level
authentication is that in the latter case, the prompting is handled
by the client, whereas app-level authentication is handled by the
remote device.
App-level authentication comes in a large variety of forms, and
while this method tries hard to support them all, there is no
guarantee that it will always work.
We attempt to smartly recognize the user and password prompts;
for a list of supported operating systems please check the
Exscript.protocols.drivers module.
Returns upon finding the first command line prompt. Depending
on whether the flush argument is True, it also removes the
prompt from the incoming buffer.
:type account: Account
:param account: An account object, like login().
:type flush: bool
:param flush: Whether to flush the last prompt from the buffer.
:type bailout: bool
:param bailout: Whether to wait for a prompt after sending the password. |
(module
(function_definition
(function_name_copy_file) function_name_copy_file
(parameters
(identifier_source) identifier_source
(identifier_destination) identifier_destination
(default_parameter
(identifier_unique) identifier_unique
(False) False
)default_parameter
(default_parameter
(identifier_sort) identifier_sort
(False) False
)default_parameter
(default_parameter
(identifier_case_sensitive) identifier_case_sensitive
(True) True
)default_parameter
(default_parameter
(identifier_create_path) identifier_create_path
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier__File) identifier__File
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_source) identifier_source
(identifier_destination) identifier_destination
(identifier_unique) identifier_unique
(identifier_sort) identifier_sort
(identifier_case_sensitive) identifier_case_sensitive
(identifier_create_path) identifier_create_path
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Python utility to create file
Args:
source: absolute/relative path of source file
destination: absolute/relative path of destination file.
Use same as source for replacing the content of existing file.
unique: Copy only unique lines from file
sort: Sort the content of file
case_sensitive: unique/sort operations to be performed case-sensitive string
create_path: Recursively create the path to destination directory in case not found
Returns: None |
(module
(function_definition
(function_name_selected) function_name_selected
(parameters
(identifier_self) identifier_self
(identifier_new) identifier_new
)parameters
(block
(function_definition
(function_name_preprocess) function_name_preprocess
(parameters
(identifier_item) identifier_item
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_item) identifier_item
)subscript
)return_statement
)block
)if_statement
(return_statement
(identifier_item) identifier_item
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_items) identifier_items
(call
(identifier_coerce_to_list) identifier_coerce_to_list
(argument_list
(identifier_new) identifier_new
(identifier_preprocess) identifier_preprocess
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_widget) identifier_widget
)attribute
(identifier_value) identifier_value
)attribute
(identifier_items) identifier_items
)assignment
)expression_statement
)block
)function_definition
)module | Set selected from list or instance of object or name.
Over-writes existing selection |
(module
(function_definition
(function_name_snapshot) function_name_snapshot
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_snap) identifier_snap
(call
(identifier_connState) identifier_connState
(argument_list
(keyword_argument
(identifier_connection_end) identifier_connection_end
(attribute
(identifier_self) identifier_self
(identifier_connection_end) identifier_connection_end
)attribute
)keyword_argument
(keyword_argument
(identifier_read_or_write) identifier_read_or_write
(attribute
(identifier_self) identifier_self
(identifier_row) identifier_row
)attribute
)keyword_argument
(keyword_argument
(identifier_seq_num) identifier_seq_num
(attribute
(identifier_self) identifier_self
(identifier_seq_num) identifier_seq_num
)attribute
)keyword_argument
(keyword_argument
(identifier_compression_alg) identifier_compression_alg
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_compression) identifier_compression
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_ciphersuite) identifier_ciphersuite
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ciphersuite) identifier_ciphersuite
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_tls_version) identifier_tls_version
(attribute
(identifier_self) identifier_self
(identifier_tls_version) identifier_tls_version
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_snap) identifier_snap
(identifier_cipher) identifier_cipher
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cipher) identifier_cipher
)attribute
(identifier_snapshot) identifier_snapshot
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_hmac) identifier_hmac
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_snap) identifier_snap
(identifier_hmac) identifier_hmac
)attribute
(identifier_key) identifier_key
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_hmac) identifier_hmac
)attribute
(identifier_key) identifier_key
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_snap) identifier_snap
)return_statement
)block
)function_definition
)module | This is used mostly as a way to keep the cipher state and the seq_num. |
(module
(function_definition
(function_name_summarizeResults) function_name_summarizeResults
(parameters
(identifier_expName) identifier_expName
(identifier_suite) identifier_suite
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"\n================") string_"\n================"
(identifier_expName) identifier_expName
(string_"=====================") string_"====================="
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_values) identifier_values
(identifier_params) identifier_params
)pattern_list
(call
(attribute
(identifier_suite) identifier_suite
(identifier_get_values_fix_params) identifier_get_values_fix_params
)attribute
(argument_list
(identifier_expName) identifier_expName
(integer_0) integer_0
(string_"totalCorrect") string_"totalCorrect"
(string_"last") string_"last"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sortedIndices) identifier_sortedIndices
(call
(attribute
(identifier_v) identifier_v
(identifier_argsort) identifier_argsort
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(subscript
(identifier_sortedIndices) identifier_sortedIndices
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(subscript
(identifier_v) identifier_v
(identifier_i) identifier_i
)subscript
(subscript
(subscript
(identifier_params) identifier_params
(identifier_i) identifier_i
)subscript
(string_"name") string_"name"
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Couldn't analyze experiment") string_"Couldn't analyze experiment"
(identifier_expName) identifier_expName
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_values) identifier_values
(identifier_params) identifier_params
)pattern_list
(call
(attribute
(identifier_suite) identifier_suite
(identifier_get_values_fix_params) identifier_get_values_fix_params
)attribute
(argument_list
(identifier_expName) identifier_expName
(integer_0) integer_0
(string_"testerror") string_"testerror"
(string_"last") string_"last"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sortedIndices) identifier_sortedIndices
(call
(attribute
(identifier_v) identifier_v
(identifier_argsort) identifier_argsort
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(subscript
(identifier_sortedIndices) identifier_sortedIndices
(slice
(colon) colon
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(subscript
(identifier_v) identifier_v
(identifier_i) identifier_i
)subscript
(subscript
(subscript
(identifier_params) identifier_params
(identifier_i) identifier_i
)subscript
(string_"name") string_"name"
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Couldn't analyze experiment") string_"Couldn't analyze experiment"
(identifier_expName) identifier_expName
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Summarize the totalCorrect value from the last iteration for each experiment
in the directory tree. |
(module
(function_definition
(function_name_describe_guest) function_name_describe_guest
(parameters
(identifier_userid) identifier_userid
)parameters
(block
(expression_statement
(assignment
(identifier_guest_list_info) identifier_guest_list_info
(call
(attribute
(identifier_client) identifier_client
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(string_'guest_list') string_'guest_list'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_userid_1) identifier_userid_1
(parenthesized_expression
(conditional_expression
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_userid) identifier_userid
(string_"utf-8") string_"utf-8"
)argument_list
)call
(comparison_operator
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version) identifier_version
)attribute
(integer_0) integer_0
)subscript
(string_'2') string_'2'
)comparison_operator
(identifier_userid) identifier_userid
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_userid_1) identifier_userid_1
(subscript
(identifier_guest_list_info) identifier_guest_list_info
(string_'output') string_'output'
)subscript
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_"Guest %s does not exist!") string_"Guest %s does not exist!"
(identifier_userid) identifier_userid
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_guest_describe_info) identifier_guest_describe_info
(call
(attribute
(identifier_client) identifier_client
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(string_'guest_get_definition_info') string_'guest_get_definition_info'
(identifier_userid) identifier_userid
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"\nThe created guest %s's info are: \n%s\n") string_"\nThe created guest %s's info are: \n%s\n"
(tuple
(identifier_userid) identifier_userid
(identifier_guest_describe_info) identifier_guest_describe_info
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Get the basic information of virtual machine.
Input parameters:
:userid: USERID of the guest, last 8 if length > 8 |
(module
(function_definition
(function_name_evalMetric) function_name_evalMetric
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(default_parameter
(identifier_method) identifier_method
(None) None
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'----------') string_'----------'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'At design: ') string_'At design: '
(call
(identifier_str) identifier_str
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_q_samples) identifier_q_samples
(identifier_grad_samples) identifier_grad_samples
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_evalSamples) identifier_evalSamples
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Evaluating metric') string_'Evaluating metric'
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_evalMetricFromSamples) identifier_evalMetricFromSamples
)attribute
(argument_list
(identifier_q_samples) identifier_q_samples
(identifier_grad_samples) identifier_grad_samples
(identifier_method) identifier_method
)argument_list
)call
)return_statement
)block
)function_definition
)module | Evaluates the horsetail matching metric at given values of the
design variables.
:param iterable x: values of the design variables, this is passed as
the first argument to the function fqoi
:param str method: method to use to evaluate the metric ('empirical' or
'kernel')
:return: metric_value - value of the metric evaluated at the design
point given by x
:rtype: float
*Example Usage*::
>>> def myFunc(x, u): return x[0]*x[1] + u
>>> u1 = UniformParameter()
>>> theHM = HorsetailMatching(myFunc, u)
>>> x0 = [1, 2]
>>> theHM.evalMetric(x0) |
(module
(function_definition
(function_name_set_mode) function_name_set_mode
(parameters
(identifier_self) identifier_self
(identifier_mode) identifier_mode
)parameters
(block
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(list
(attribute
(identifier_self) identifier_self
(identifier_TERMINATE) identifier_TERMINATE
)attribute
(attribute
(identifier_self) identifier_self
(identifier_RUN) identifier_RUN
)attribute
(attribute
(identifier_self) identifier_self
(identifier_IDLE) identifier_IDLE
)attribute
)list
)comparison_operator
(block
(raise_statement
(call
(identifier_ProgrammerError) identifier_ProgrammerError
(argument_list
(binary_operator
(string_'mode=%r is not recognized') string_'mode=%r is not recognized'
(identifier_mode) identifier_mode
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_registry) identifier_registry
)attribute
(identifier_lock) identifier_lock
)attribute
(argument_list
(keyword_argument
(identifier_identifier) identifier_identifier
(attribute
(identifier_self) identifier_self
(identifier_worker_id) identifier_worker_id
)attribute
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_session) identifier_session
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_set) identifier_set
)attribute
(argument_list
(string_'modes') string_'modes'
(string_'mode') string_'mode'
(identifier_mode) identifier_mode
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'set mode to %s') string_'set mode to %s'
(identifier_mode) identifier_mode
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the global mode of the rejester system.
This must be one of the constants :attr:`TERMINATE`,
:attr:`RUN`, or :attr:`IDLE`. :attr:`TERMINATE` instructs any
running workers to do an orderly shutdown, completing current
jobs then exiting. :attr:`IDLE` instructs workers to stay
running but not start new jobs. :attr:`RUN` tells workers to
do actual work.
:param str mode: new rejester mode
:raise rejester.exceptions.ProgrammerError: on invalid `mode` |
(module
(function_definition
(function_name_LAMBDA) function_name_LAMBDA
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_handleNode) identifier_handleNode
)attribute
(attribute
(identifier_self) identifier_self
(identifier_deferHandleNode) identifier_deferHandleNode
)attribute
)pattern_list
(expression_list
(attribute
(identifier_self) identifier_self
(identifier_deferHandleNode) identifier_deferHandleNode
)attribute
(attribute
(identifier_self) identifier_self
(identifier_handleNode) identifier_handleNode
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_LAMBDA) identifier_LAMBDA
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_handleNode) identifier_handleNode
)attribute
(attribute
(identifier_self) identifier_self
(identifier_deferHandleNode) identifier_deferHandleNode
)attribute
)pattern_list
(expression_list
(attribute
(identifier_self) identifier_self
(identifier_deferHandleNode) identifier_deferHandleNode
)attribute
(attribute
(identifier_self) identifier_self
(identifier_handleNode) identifier_handleNode
)attribute
)expression_list
)assignment
)expression_statement
)block
)function_definition
)module | This is likely very brittle, currently works for pyflakes 1.3.0.
Deferring annotation handling depends on the fact that during calls
to LAMBDA visiting the function's body is already deferred and the
only eager calls to `handleNode` are for annotations. |
(module
(function_definition
(function_name_copy_directory) function_name_copy_directory
(parameters
(identifier_src) identifier_src
(identifier_dest) identifier_dest
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_dest) identifier_dest
)argument_list
)call
(comparison_operator
(identifier_force) identifier_force
(True) True
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(identifier_dest) identifier_dest
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copytree) identifier_copytree
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_dest) identifier_dest
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_errno) identifier_errno
)attribute
(attribute
(identifier_errno) identifier_errno
(identifier_ENOTDIR) identifier_ENOTDIR
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_dest) identifier_dest
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_bot) identifier_bot
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_'Directory not copied. Error: %s') string_'Directory not copied. Error: %s'
(identifier_e) identifier_e
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Copy an entire directory recursively |
(module
(function_definition
(function_name_resize) function_name_resize
(parameters
(identifier_widthWindow) identifier_widthWindow
(identifier_heightWindow) identifier_heightWindow
)parameters
(block
(expression_statement
(call
(identifier_glEnable) identifier_glEnable
(argument_list
(identifier_GL_BLEND) identifier_GL_BLEND
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_glEnable) identifier_glEnable
(argument_list
(identifier_GL_POINT_SMOOTH) identifier_GL_POINT_SMOOTH
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_glShadeModel) identifier_glShadeModel
(argument_list
(identifier_GL_SMOOTH) identifier_GL_SMOOTH
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_glBlendFunc) identifier_glBlendFunc
(argument_list
(identifier_GL_SRC_ALPHA) identifier_GL_SRC_ALPHA
(identifier_GL_ONE) identifier_GL_ONE
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_glHint) identifier_glHint
(argument_list
(identifier_GL_PERSPECTIVE_CORRECTION_HINT) identifier_GL_PERSPECTIVE_CORRECTION_HINT
(identifier_GL_NICEST) identifier_GL_NICEST
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_glHint) identifier_glHint
(argument_list
(identifier_GL_POINT_SMOOTH_HINT) identifier_GL_POINT_SMOOTH_HINT
(identifier_GL_NICEST) identifier_GL_NICEST
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_glDisable) identifier_glDisable
(argument_list
(identifier_GL_DEPTH_TEST) identifier_GL_DEPTH_TEST
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initial settings for the OpenGL state machine, clear color, window size, etc |
(module
(function_definition
(function_name_mchirp_sampler_imf) function_name_mchirp_sampler_imf
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
)pattern_list
(call
(identifier_draw_imf_samples) identifier_draw_imf_samples
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mchirp_astro) identifier_mchirp_astro
(call
(identifier_mchirp_from_mass1_mass2) identifier_mchirp_from_mass1_mass2
(argument_list
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_mchirp_astro) identifier_mchirp_astro
)return_statement
)block
)function_definition
)module | Draw chirp mass samples for power-law model
Parameters
----------
**kwargs: string
Keyword arguments as model parameters and number of samples
Returns
-------
mchirp-astro: array
The chirp mass samples for the population |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_feature) identifier_feature
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_feature) identifier_feature
)argument_list
)call
(call
(identifier_type) identifier_type
(argument_list
(list
)list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_feature) identifier_feature
(subscript
(identifier_feature) identifier_feature
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_feature) identifier_feature
(attribute
(attribute
(attribute
(identifier_b2) identifier_b2
(identifier_build) identifier_build
)attribute
(identifier_feature) identifier_feature
)attribute
(identifier_Feature) identifier_Feature
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_feature) identifier_feature
(call
(attribute
(attribute
(attribute
(identifier_b2) identifier_b2
(identifier_build) identifier_build
)attribute
(identifier_feature) identifier_feature
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_feature) identifier_feature
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_feature) identifier_feature
(attribute
(attribute
(attribute
(identifier_b2) identifier_b2
(identifier_build) identifier_build
)attribute
(identifier_feature) identifier_feature
)attribute
(identifier_Feature) identifier_Feature
)attribute
)argument_list
)call
)assert_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_feature_map_) identifier_feature_map_
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_feature_map_) identifier_feature_map_
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_v) identifier_v
(attribute
(identifier_self) identifier_self
(identifier_all_) identifier_all_
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_v) identifier_v
(identifier_feature) identifier_feature
)attribute
(attribute
(identifier_self) identifier_self
(identifier_feature_map_) identifier_feature_map_
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_feature_map_) identifier_feature_map_
)attribute
(attribute
(identifier_v) identifier_v
(identifier_feature) identifier_feature
)attribute
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_feature_map_) identifier_feature_map_
)attribute
(attribute
(identifier_v) identifier_v
(identifier_feature) identifier_feature
)attribute
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_v) identifier_v
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_feature_map_) identifier_feature_map_
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_feature) identifier_feature
(list
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns all values of 'feature'. |
(module
(function_definition
(function_name_respond) function_name_respond
(parameters
(identifier_self) identifier_self
(identifier_result) identifier_result
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_one_way) identifier_one_way
)attribute
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_JSONRPCSuccessResponse) identifier_JSONRPCSuccessResponse
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_response) identifier_response
(identifier_result) identifier_result
)attribute
(identifier_result) identifier_result
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_response) identifier_response
(identifier_unique_id) identifier_unique_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Create a response to this request.
When processing the request completed successfully this method can be used to
create a response object.
:param result: The result of the invoked method.
:type result: Anything that can be encoded by JSON.
:returns: A response object that can be serialized and sent to the client.
:rtype: :py:class:`JSONRPCSuccessResponse` |
(module
(function_definition
(function_name_request_examples) function_name_request_examples
(parameters
(identifier_self) identifier_self
(identifier_attack_config) identifier_attack_config
(identifier_criteria) identifier_criteria
(identifier_run_counts) identifier_run_counts
(identifier_batch_size) identifier_batch_size
)parameters
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)argument_list
)call
(string_"needs to implement request_examples") string_"needs to implement request_examples"
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Returns a numpy array of integer example indices to run in the next batch. |
(module
(function_definition
(function_name_from_time) function_name_from_time
(parameters
(identifier_cls) identifier_cls
(identifier_source) identifier_source
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(keyword_argument
(identifier_hours) identifier_hours
(attribute
(identifier_source) identifier_source
(identifier_hour) identifier_hour
)attribute
)keyword_argument
(keyword_argument
(identifier_minutes) identifier_minutes
(attribute
(identifier_source) identifier_source
(identifier_minute) identifier_minute
)attribute
)keyword_argument
(keyword_argument
(identifier_seconds) identifier_seconds
(attribute
(identifier_source) identifier_source
(identifier_second) identifier_second
)attribute
)keyword_argument
(keyword_argument
(identifier_milliseconds) identifier_milliseconds
(binary_operator
(attribute
(identifier_source) identifier_source
(identifier_microsecond) identifier_microsecond
)attribute
(integer_1000) integer_1000
)binary_operator
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | datetime.time -> SubRipTime corresponding to time object |
(module
(function_definition
(function_name_rollapply) function_name_rollapply
(parameters
(identifier_data) identifier_data
(identifier_window) identifier_window
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_data) identifier_data
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(slice
(colon) colon
)slice
)subscript
(attribute
(identifier_np) identifier_np
(identifier_nan) identifier_nan
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_window) identifier_window
(identifier_n) identifier_n
)comparison_operator
(block
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)if_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(identifier_window) identifier_window
(integer_1) integer_1
)binary_operator
(identifier_n) identifier_n
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_res) identifier_res
(identifier_iloc) identifier_iloc
)attribute
(identifier_i) identifier_i
)subscript
(call
(identifier_fn) identifier_fn
(argument_list
(subscript
(attribute
(identifier_data) identifier_data
(identifier_iloc) identifier_iloc
)attribute
(slice
(binary_operator
(binary_operator
(identifier_i) identifier_i
(identifier_window) identifier_window
)binary_operator
(integer_1) integer_1
)binary_operator
(colon) colon
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Apply a function fn over a rolling window of size window.
Args:
* data (Series or DataFrame): Series or DataFrame
* window (int): Window size
* fn (function): Function to apply over the rolling window.
For a series, the return value is expected to be a single
number. For a DataFrame, it shuold return a new row.
Returns:
* Object of same dimensions as data |
(module
(function_definition
(function_name_self_check) function_name_self_check
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_platforms) identifier_platforms
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_platform) identifier_platform
(call
(identifier_get_platform_settings) identifier_get_platform_settings
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(identifier_platform) identifier_platform
(string_'class') string_'class'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cls) identifier_cls
(type
(generic_type
(identifier_Type) identifier_Type
(type_parameter
(type
(identifier_Platform) identifier_Platform
)type
)type_parameter
)generic_type
)type
(call
(identifier_import_class) identifier_import_class
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(yield
(call
(identifier_HealthCheckFail) identifier_HealthCheckFail
(argument_list
(string_'00004') string_'00004'
(string_'Missing platform `class` name in configuration.') string_'Missing platform `class` name in configuration.'
)argument_list
)call
)yield
)expression_statement
)block
)except_clause
(except_clause
(tuple
(identifier_AttributeError) identifier_AttributeError
(identifier_ImportError) identifier_ImportError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(expression_statement
(yield
(call
(identifier_HealthCheckFail) identifier_HealthCheckFail
(argument_list
(string_'00003') string_'00003'
(string_f'Platform "{name}" cannot be imported.') string_f'Platform "{name}" cannot be imported.'
)argument_list
)call
)yield
)expression_statement
)block
)except_clause
(else_clause
(block
(if_statement
(comparison_operator
(identifier_cls) identifier_cls
(identifier_platforms) identifier_platforms
)comparison_operator
(block
(expression_statement
(yield
(call
(identifier_HealthCheckFail) identifier_HealthCheckFail
(argument_list
(string_'00002') string_'00002'
(string_f'Platform "{name}" is imported more than once.') string_f'Platform "{name}" is imported more than once.'
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_platforms) identifier_platforms
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
)expression_statement
(for_statement
(identifier_check) identifier_check
(call
(attribute
(identifier_cls) identifier_cls
(identifier_self_check) identifier_self_check
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(yield
(identifier_check) identifier_check
)yield
)expression_statement
)block
)for_statement
)block
)else_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Checks that the platforms configuration is all right. |
(module
(function_definition
(function_name__get_default_mr_params) function_name__get_default_mr_params
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_cfg) identifier_cfg
(call
(identifier_cls) identifier_cls
(argument_list
(keyword_argument
(identifier__lenient) identifier__lenient
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mr_params) identifier_mr_params
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier__get_mr_params) identifier__get_mr_params
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_mr_params) identifier_mr_params
(string_"api_version") string_"api_version"
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(return_statement
(identifier_mr_params) identifier_mr_params
)return_statement
)block
)function_definition
)module | Gets default values for old API. |
(module
(function_definition
(function_name_config) function_name_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config_file) identifier_config_file
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config_file) identifier_config_file
)attribute
(identifier_as_posix) identifier_as_posix
)attribute
(argument_list
)argument_list
)call
(string_'rt') string_'rt'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(conditional_expression
(subscript
(attribute
(identifier_self) identifier_self
(identifier__override) identifier__override
)attribute
(identifier_k) identifier_k
)subscript
(comparison_operator
(identifier_k) identifier_k
(attribute
(identifier_self) identifier_self
(identifier__override) identifier__override
)attribute
)comparison_operator
(identifier_v) identifier_v
)conditional_expression
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_safe_load) identifier_safe_load
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
)block
)with_statement
)block
)if_statement
(return_statement
(identifier_config) identifier_config
)return_statement
)block
)function_definition
)module | Allows changing the config on the fly |
(module
(function_definition
(function_name_prerequisites) function_name_prerequisites
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(string_"http://home.gna.org/gaupol/download.html") string_"http://home.gna.org/gaupol/download.html"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_debian) identifier_debian
(string_"sudo apt-get install python3-aeidon") string_"sudo apt-get install python3-aeidon"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_other) identifier_other
(string_"python3 setup.py --user --without-gaupol clean install") string_"python3 setup.py --user --without-gaupol clean install"
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(concatenated_string
(string_"The aeidon module is missing!\n\n") string_"The aeidon module is missing!\n\n"
(string_"Try '{0}' or the appropriate command for your package manager.\n\n") string_"Try '{0}' or the appropriate command for your package manager.\n\n"
(string_"You can also download the tarball for gaupol (which includes ") string_"You can also download the tarball for gaupol (which includes "
(string_"aeidon) at {1}. After downloading, unpack and run '{2}'.") string_"aeidon) at {1}. After downloading, unpack and run '{2}'."
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_debian) identifier_debian
(identifier_url) identifier_url
(identifier_other) identifier_other
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Display information about obtaining the aeidon module. |
(module
(function_definition
(function_name_parse_diff_filenames) function_name_parse_diff_filenames
(parameters
(identifier_diff_files) identifier_diff_files
)parameters
(block
(expression_statement
(assignment
(identifier_files) identifier_files
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_diff_files) identifier_diff_files
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fn) identifier_fn
(call
(attribute
(identifier_re) identifier_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_'[^ ]+\s+(.*.py)') string_'[^ ]+\s+(.*.py)'
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_fn) identifier_fn
(not_operator
(call
(attribute
(identifier_line) identifier_line
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'?') string_'?'
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_files) identifier_files
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_fn) identifier_fn
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_files) identifier_files
)return_statement
)block
)function_definition
)module | Parse the output of filenames_diff_cmd. |
(module
(function_definition
(function_name_compile_theme) function_name_compile_theme
(parameters
(default_parameter
(identifier_theme_id) identifier_theme_id
(None) None
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_engineer) identifier_engineer
(identifier_processors) identifier_processors
)dotted_name
(dotted_name
(identifier_convert_less) identifier_convert_less
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_engineer) identifier_engineer
(identifier_themes) identifier_themes
)dotted_name
(dotted_name
(identifier_ThemeManager) identifier_ThemeManager
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(identifier_theme_id) identifier_theme_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_themes) identifier_themes
(call
(attribute
(call
(attribute
(identifier_ThemeManager) identifier_ThemeManager
(identifier_themes) identifier_themes
)attribute
(argument_list
)argument_list
)call
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_themes) identifier_themes
(list
(call
(attribute
(identifier_ThemeManager) identifier_ThemeManager
(identifier_theme) identifier_theme
)attribute
(argument_list
(identifier_theme_id) identifier_theme_id
)argument_list
)call
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(with_statement
(with_clause
(with_item
(parenthesized_expression
(call
(identifier_indent) identifier_indent
(argument_list
(integer_2) integer_2
)argument_list
)call
)parenthesized_expression
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_puts) identifier_puts
(argument_list
(call
(attribute
(identifier_colored) identifier_colored
(identifier_yellow) identifier_yellow
)attribute
(argument_list
(binary_operator
(string_"Compiling %s themes.") string_"Compiling %s themes."
(call
(identifier_len) identifier_len
(argument_list
(identifier_themes) identifier_themes
)argument_list
)call
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_theme) identifier_theme
(identifier_themes) identifier_themes
(block
(expression_statement
(assignment
(identifier_theme_output_path) identifier_theme_output_path
(call
(attribute
(parenthesized_expression
(binary_operator
(attribute
(identifier_theme) identifier_theme
(identifier_static_root) identifier_static_root
)attribute
(parenthesized_expression
(binary_operator
(string_'stylesheets/%s_precompiled.css') string_'stylesheets/%s_precompiled.css'
(attribute
(identifier_theme) identifier_theme
(identifier_id) identifier_id
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
(identifier_normpath) identifier_normpath
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_puts) identifier_puts
(argument_list
(call
(attribute
(identifier_colored) identifier_colored
(identifier_cyan) identifier_cyan
)attribute
(argument_list
(binary_operator
(string_"Compiling theme %s to %s") string_"Compiling theme %s to %s"
(tuple
(attribute
(identifier_theme) identifier_theme
(identifier_id) identifier_id
)attribute
(identifier_theme_output_path) identifier_theme_output_path
)tuple
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(call
(identifier_indent) identifier_indent
(argument_list
(integer_4) integer_4
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_puts) identifier_puts
(argument_list
(string_"Compiling...") string_"Compiling..."
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_convert_less) identifier_convert_less
(argument_list
(binary_operator
(attribute
(identifier_theme) identifier_theme
(identifier_static_root) identifier_static_root
)attribute
(parenthesized_expression
(binary_operator
(string_'stylesheets/%s.less') string_'stylesheets/%s.less'
(attribute
(identifier_theme) identifier_theme
(identifier_id) identifier_id
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_theme_output_path) identifier_theme_output_path
(keyword_argument
(identifier_minify) identifier_minify
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_puts) identifier_puts
(argument_list
(call
(attribute
(identifier_colored) identifier_colored
(identifier_green) identifier_green
)attribute
(argument_list
(string_"Done.") string_"Done."
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Compiles a theme. |
(module
(function_definition
(function_name_alter) function_name_alter
(parameters
(identifier_self) identifier_self
(identifier_function) identifier_function
)parameters
(block
(expression_statement
(call
(identifier_check_not_none) identifier_check_not_none
(argument_list
(identifier_function) identifier_function
(string_"function can't be None") string_"function can't be None"
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__encode_invoke) identifier__encode_invoke
)attribute
(argument_list
(identifier_atomic_long_alter_codec) identifier_atomic_long_alter_codec
(keyword_argument
(identifier_function) identifier_function
(call
(attribute
(identifier_self) identifier_self
(identifier__to_data) identifier__to_data
)attribute
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Alters the currently stored value by applying a function on it.
:param function: (Function), A stateful serializable object which represents the Function defined on
server side.
This object must have a serializable Function counter part registered on server side with the actual
``org.hazelcast.core.IFunction`` implementation. |
(module
(function_definition
(function_name_parse_deckspawn_metainfo) function_name_parse_deckspawn_metainfo
(parameters
(typed_parameter
(identifier_protobuf) identifier_protobuf
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
(typed_parameter
(identifier_version) identifier_version
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(expression_statement
(assignment
(identifier_deck) identifier_deck
(call
(identifier_DeckSpawnProto) identifier_DeckSpawnProto
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_deck) identifier_deck
(identifier_ParseFromString) identifier_ParseFromString
)attribute
(argument_list
(identifier_protobuf) identifier_protobuf
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_error) identifier_error
(dictionary
(pair
(string_"error") string_"error"
(call
(attribute
(string_"Deck ({deck}) metainfo incomplete, deck must have a name.") string_"Deck ({deck}) metainfo incomplete, deck must have a name."
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_deck) identifier_deck
(attribute
(identifier_deck) identifier_deck
(identifier_name) identifier_name
)attribute
)keyword_argument
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_deck) identifier_deck
(identifier_name) identifier_name
)attribute
(string_"") string_""
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidDeckMetainfo) identifier_InvalidDeckMetainfo
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_deck) identifier_deck
(identifier_version) identifier_version
)attribute
(identifier_version) identifier_version
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidDeckVersion) identifier_InvalidDeckVersion
(argument_list
(set
(string_"error") string_"error"
(string_"Deck version mismatch.") string_"Deck version mismatch."
)set
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(dictionary
(pair
(string_"version") string_"version"
(attribute
(identifier_deck) identifier_deck
(identifier_version) identifier_version
)attribute
)pair
(pair
(string_"name") string_"name"
(attribute
(identifier_deck) identifier_deck
(identifier_name) identifier_name
)attribute
)pair
(pair
(string_"issue_mode") string_"issue_mode"
(attribute
(identifier_deck) identifier_deck
(identifier_issue_mode) identifier_issue_mode
)attribute
)pair
(pair
(string_"number_of_decimals") string_"number_of_decimals"
(attribute
(identifier_deck) identifier_deck
(identifier_number_of_decimals) identifier_number_of_decimals
)attribute
)pair
(pair
(string_"asset_specific_data") string_"asset_specific_data"
(attribute
(identifier_deck) identifier_deck
(identifier_asset_specific_data) identifier_asset_specific_data
)attribute
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Decode deck_spawn tx op_return protobuf message and validate it,
Raise error if deck_spawn metainfo incomplete or version mistmatch. |
(module
(function_definition
(function_name__check_read) function_name__check_read
(parameters
(identifier_self) identifier_self
(identifier_fd) identifier_fd
(identifier_nbytes) identifier_nbytes
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_fd) identifier_fd
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_nbytes) identifier_nbytes
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_result) identifier_result
)not_operator
(comparison_operator
(identifier_nbytes) identifier_nbytes
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(identifier_nbytes) identifier_nbytes
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_InvalidZoneinfoFile) identifier_InvalidZoneinfoFile
(argument_list
(call
(attribute
(concatenated_string
(string_"Expected {} bytes reading {}, ") string_"Expected {} bytes reading {}, "
(string_"but got {}") string_"but got {}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_nbytes) identifier_nbytes
(attribute
(identifier_fd) identifier_fd
(identifier_name) identifier_name
)attribute
(conditional_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(identifier_result) identifier_result
(integer_0) integer_0
)conditional_expression
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(identifier_PY2) identifier_PY2
(block
(return_statement
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Reads the given number of bytes from the given file
and checks that the correct number of bytes could be read. |
(module
(function_definition
(function_name_pt_scale) function_name_pt_scale
(parameters
(default_parameter
(identifier_pt) identifier_pt
(tuple
(float_0.0) float_0.0
(float_0.0) float_0.0
)tuple
)default_parameter
(default_parameter
(identifier_f) identifier_f
(float_1.0) float_1.0
)default_parameter
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pt) identifier_pt
(identifier_tuple) identifier_tuple
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(identifier_l_pt) identifier_l_pt
(call
(identifier_len) identifier_len
(argument_list
(identifier_pt) identifier_pt
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_l_pt) identifier_l_pt
(integer_1) integer_1
)comparison_operator
)assert_statement
(for_statement
(identifier_i) identifier_i
(identifier_pt) identifier_pt
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_i) identifier_i
(identifier_float) identifier_float
)argument_list
)call
)assert_statement
)block
)for_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_f) identifier_f
(identifier_float) identifier_float
)argument_list
)call
)assert_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(list_comprehension
(binary_operator
(subscript
(identifier_pt) identifier_pt
(identifier_i) identifier_i
)subscript
(identifier_f) identifier_f
)binary_operator
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_l_pt) identifier_l_pt
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return given point scaled by factor f from origin. |
(module
(function_definition
(function_name_fromdelta) function_name_fromdelta
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_OptionParser) identifier_OptionParser
(argument_list
(attribute
(identifier_fromdelta) identifier_fromdelta
(identifier___doc__) identifier___doc__
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_opts) identifier_opts
(identifier_args) identifier_args
)pattern_list
(call
(attribute
(identifier_p) identifier_p
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(not_operator
(call
(attribute
(identifier_p) identifier_p
(identifier_print_help) identifier_print_help
)attribute
(argument_list
)argument_list
)call
)not_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_deltafile) identifier_deltafile
)pattern_list
(identifier_args) identifier_args
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_coordsfile) identifier_coordsfile
(binary_operator
(subscript
(call
(attribute
(identifier_deltafile) identifier_deltafile
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_".") string_"."
(integer_1) integer_1
)argument_list
)call
(integer_0) integer_0
)subscript
(string_".coords") string_".coords"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(string_"show-coords -rclH {0}") string_"show-coords -rclH {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_deltafile) identifier_deltafile
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_sh) identifier_sh
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_outfile) identifier_outfile
(identifier_coordsfile) identifier_coordsfile
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_coordsfile) identifier_coordsfile
)return_statement
)block
)function_definition
)module | %prog fromdelta deltafile
Convert deltafile to coordsfile. |
(module
(function_definition
(function_name___definitions_descriptor) function_name___definitions_descriptor
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_def_key) identifier_def_key
(identifier_def_value) identifier_def_value
)pattern_list
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___parser) identifier___parser
)attribute
(identifier_schemas) identifier_schemas
)attribute
(argument_list
)argument_list
)call
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'properties') string_'properties'
(identifier_def_value) identifier_def_value
)comparison_operator
(comparison_operator
(string_'type') string_'type'
(identifier_def_value) identifier_def_value
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_key_result) identifier_key_result
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_required_keys) identifier_required_keys
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'type') string_'type'
(identifier_def_value) identifier_def_value
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_key_result) identifier_key_result
(string_'type') string_'type'
)subscript
(subscript
(identifier_def_value) identifier_def_value
(string_'type') string_'type'
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'properties') string_'properties'
(identifier_def_value) identifier_def_value
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_prop_key) identifier_prop_key
(identifier_prop_value) identifier_prop_value
)pattern_list
(call
(attribute
(subscript
(identifier_def_value) identifier_def_value
(string_'properties') string_'properties'
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_prop_value) identifier_prop_value
(identifier_dict) identifier_dict
)argument_list
)call
(comparison_operator
(string_'required') string_'required'
(identifier_prop_value) identifier_prop_value
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_required_keys) identifier_required_keys
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_prop_key) identifier_prop_key
)argument_list
)call
)expression_statement
(delete_statement
(subscript
(identifier_prop_value) identifier_prop_value
(string_'required') string_'required'
)subscript
)delete_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_key_result) identifier_key_result
(string_'properties') string_'properties'
)subscript
(subscript
(identifier_def_value) identifier_def_value
(string_'properties') string_'properties'
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_required_keys) identifier_required_keys
(block
(expression_statement
(assignment
(subscript
(identifier_key_result) identifier_key_result
(string_'required') string_'required'
)subscript
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_required_keys) identifier_required_keys
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_def_key) identifier_def_key
)subscript
(identifier_key_result) identifier_key_result
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_def_value) identifier_def_value
(call
(attribute
(identifier_result) identifier_result
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_prop_value) identifier_prop_value
(call
(attribute
(identifier_def_value) identifier_def_value
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_prop_value) identifier_prop_value
(identifier_dict) identifier_dict
)argument_list
)call
(block
(if_statement
(comparison_operator
(string_'$ref') string_'$ref'
(identifier_prop_value) identifier_prop_value
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_prop_value) identifier_prop_value
(string_'type') string_'type'
)subscript
(string_'object') string_'object'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_def_paths) identifier__add_def_paths
)attribute
(argument_list
(identifier_prop_value) identifier_prop_value
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Describes the definitions section of the OpenAPI spec.
Returns:
Dictionary describing the definitions of the spec. |
(module
(function_definition
(function_name_tag_torsion_angles) function_name_tag_torsion_angles
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tagged) identifier_tagged
(list_comprehension
(comparison_operator
(string_'omega') string_'omega'
(call
(attribute
(attribute
(identifier_x) identifier_x
(identifier_tags) identifier_tags
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier__monomers) identifier__monomers
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(not_operator
(call
(identifier_all) identifier_all
(argument_list
(identifier_tagged) identifier_tagged
)argument_list
)call
)not_operator
)parenthesized_expression
(identifier_force) identifier_force
)boolean_operator
(block
(expression_statement
(assignment
(identifier_tas) identifier_tas
(call
(identifier_measure_torsion_angles) identifier_measure_torsion_angles
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__monomers) identifier__monomers
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_monomer) identifier_monomer
(tuple_pattern
(identifier_omega) identifier_omega
(identifier_phi) identifier_phi
(identifier_psi) identifier_psi
)tuple_pattern
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__monomers) identifier__monomers
)attribute
(identifier_tas) identifier_tas
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_monomer) identifier_monomer
(identifier_tags) identifier_tags
)attribute
(string_'omega') string_'omega'
)subscript
(identifier_omega) identifier_omega
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_monomer) identifier_monomer
(identifier_tags) identifier_tags
)attribute
(string_'phi') string_'phi'
)subscript
(identifier_phi) identifier_phi
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_monomer) identifier_monomer
(identifier_tags) identifier_tags
)attribute
(string_'psi') string_'psi'
)subscript
(identifier_psi) identifier_psi
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_monomer) identifier_monomer
(identifier_tags) identifier_tags
)attribute
(string_'tas') string_'tas'
)subscript
(tuple
(identifier_omega) identifier_omega
(identifier_phi) identifier_phi
(identifier_psi) identifier_psi
)tuple
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
)return_statement
)block
)function_definition
)module | Tags each Monomer of the Polymer with its omega, phi and psi torsion angle.
Parameters
----------
force : bool, optional
If `True` the tag will be run even if `Residues` are
already tagged. |
(module
(function_definition
(function_name___remove_pyc_pyo) function_name___remove_pyc_pyo
(parameters
(identifier_fname) identifier_fname
)parameters
(block
(if_statement
(comparison_operator
(subscript
(call
(attribute
(identifier_osp) identifier_osp
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(integer_1) integer_1
)subscript
(string_'.py') string_'.py'
)comparison_operator
(block
(for_statement
(identifier_ending) identifier_ending
(tuple
(string_'c') string_'c'
(string_'o') string_'o'
)tuple
(block
(if_statement
(call
(attribute
(identifier_osp) identifier_osp
(identifier_exists) identifier_exists
)attribute
(argument_list
(binary_operator
(identifier_fname) identifier_fname
(identifier_ending) identifier_ending
)binary_operator
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(binary_operator
(identifier_fname) identifier_fname
(identifier_ending) identifier_ending
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Eventually remove .pyc and .pyo files associated to a Python script |
(module
(function_definition
(function_name_write_json) function_name_write_json
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
(string_"\n") string_"\n"
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stdout) identifier_stdout
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write an JSON object on a single line.
The keyword arguments are interpreted as a single JSON object.
It's not possible with this method to write non-objects. |
(module
(function_definition
(function_name_do_reload) function_name_do_reload
(parameters
(typed_parameter
(identifier_module) identifier_module
(type
(attribute
(identifier_types) identifier_types
(identifier_ModuleType) identifier_ModuleType
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_newer_than) identifier_newer_than
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_module) identifier_module
(string_'__file__') string_'__file__'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_directory) identifier_directory
(subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_module) identifier_module
(string_'__path__') string_'__path__'
(list
(None) None
)list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(identifier_directory) identifier_directory
)boolean_operator
(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_directory) identifier_directory
(string_'__init__.py') string_'__init__.py'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_last_modified) identifier_last_modified
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getmtime) identifier_getmtime
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_last_modified) identifier_last_modified
(identifier_newer_than) identifier_newer_than
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_reload) identifier_reload
)attribute
(argument_list
(identifier_module) identifier_module
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Executes the reload of the specified module if the source file that it was
loaded from was updated more recently than the specified time
:param module:
A module object to be reloaded
:param newer_than:
The time in seconds since epoch that should be used to determine if
the module needs to be reloaded. If the module source was modified
more recently than this time, the module will be refreshed.
:return:
Whether or not the module was reloaded |
(module
(function_definition
(function_name_GetRelativePath) function_name_GetRelativePath
(parameters
(identifier_self) identifier_self
(identifier_path_spec) identifier_path_spec
)parameters
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_path_spec) identifier_path_spec
(string_'location') string_'location'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_location) identifier_location
(None) None
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_PathSpecError) identifier_PathSpecError
)attribute
(argument_list
(string_'Path specification missing location.') string_'Path specification missing location.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_path_spec_factory) identifier_path_spec_factory
(identifier_Factory) identifier_Factory
)attribute
(identifier_IsSystemLevelTypeIndicator) identifier_IsSystemLevelTypeIndicator
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__file_system) identifier__file_system
)attribute
(identifier_type_indicator) identifier_type_indicator
)attribute
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_location) identifier_location
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__mount_point) identifier__mount_point
)attribute
(identifier_location) identifier_location
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_PathSpecError) identifier_PathSpecError
)attribute
(argument_list
(string_'Path specification does not contain mount point.') string_'Path specification does not contain mount point.'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
(else_clause
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_path_spec) identifier_path_spec
(string_'parent') string_'parent'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_PathSpecError) identifier_PathSpecError
)attribute
(argument_list
(string_'Path specification missing parent.') string_'Path specification missing parent.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_path_spec) identifier_path_spec
(identifier_parent) identifier_parent
)attribute
(attribute
(identifier_self) identifier_self
(identifier__mount_point) identifier__mount_point
)attribute
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_PathSpecError) identifier_PathSpecError
)attribute
(argument_list
(string_'Path specification does not contain mount point.') string_'Path specification does not contain mount point.'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_path_segments) identifier_path_segments
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__file_system) identifier__file_system
)attribute
(identifier_SplitPath) identifier_SplitPath
)attribute
(argument_list
(identifier_location) identifier_location
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_path_spec_factory) identifier_path_spec_factory
(identifier_Factory) identifier_Factory
)attribute
(identifier_IsSystemLevelTypeIndicator) identifier_IsSystemLevelTypeIndicator
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__file_system) identifier__file_system
)attribute
(identifier_type_indicator) identifier_type_indicator
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mount_point_path_segments) identifier_mount_point_path_segments
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__file_system) identifier__file_system
)attribute
(identifier_SplitPath) identifier_SplitPath
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__mount_point) identifier__mount_point
)attribute
(identifier_location) identifier_location
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_path_segments) identifier_path_segments
(subscript
(identifier_path_segments) identifier_path_segments
(slice
(call
(identifier_len) identifier_len
(argument_list
(identifier_mount_point_path_segments) identifier_mount_point_path_segments
)argument_list
)call
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_'{0:s}{1:s}') string_'{0:s}{1:s}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__file_system) identifier__file_system
)attribute
(identifier_PATH_SEPARATOR) identifier_PATH_SEPARATOR
)attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__file_system) identifier__file_system
)attribute
(identifier_PATH_SEPARATOR) identifier_PATH_SEPARATOR
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path_segments) identifier_path_segments
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the relative path based on a resolved path specification.
The relative path is the location of the upper most path specification.
The the location of the mount point is stripped off if relevant.
Args:
path_spec (PathSpec): path specification.
Returns:
str: corresponding relative path or None if the relative path could not
be determined.
Raises:
PathSpecError: if the path specification is incorrect. |
(module
(function_definition
(function_name_encode_request) function_name_encode_request
(parameters
(identifier_self) identifier_self
(identifier_fields) identifier_fields
(identifier_files) identifier_files
)parameters
(block
(expression_statement
(assignment
(identifier_parts) identifier_parts
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_boundary) identifier_boundary
(attribute
(identifier_self) identifier_self
(identifier_boundary) identifier_boundary
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_values) identifier_values
)pattern_list
(identifier_fields) identifier_fields
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_values) identifier_values
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(list
(identifier_values) identifier_values
)list
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_v) identifier_v
(identifier_values) identifier_values
(block
(expression_statement
(call
(attribute
(identifier_parts) identifier_parts
(identifier_extend) identifier_extend
)attribute
(argument_list
(tuple
(binary_operator
(string_b'--') string_b'--'
(identifier_boundary) identifier_boundary
)binary_operator
(call
(attribute
(parenthesized_expression
(binary_operator
(string_'Content-Disposition: form-data; name="%s"') string_'Content-Disposition: form-data; name="%s"'
(identifier_k) identifier_k
)binary_operator
)parenthesized_expression
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(string_b'') string_b''
(call
(attribute
(identifier_v) identifier_v
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_filename) identifier_filename
(identifier_value) identifier_value
)pattern_list
(identifier_files) identifier_files
(block
(expression_statement
(call
(attribute
(identifier_parts) identifier_parts
(identifier_extend) identifier_extend
)attribute
(argument_list
(tuple
(binary_operator
(string_b'--') string_b'--'
(identifier_boundary) identifier_boundary
)binary_operator
(call
(attribute
(parenthesized_expression
(binary_operator
(string_'Content-Disposition: form-data; name="%s"; filename="%s"') string_'Content-Disposition: form-data; name="%s"; filename="%s"'
(tuple
(identifier_key) identifier_key
(identifier_filename) identifier_filename
)tuple
)binary_operator
)parenthesized_expression
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(string_b'') string_b''
(identifier_value) identifier_value
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_parts) identifier_parts
(identifier_extend) identifier_extend
)attribute
(argument_list
(tuple
(binary_operator
(binary_operator
(string_b'--') string_b'--'
(identifier_boundary) identifier_boundary
)binary_operator
(string_b'--') string_b'--'
)binary_operator
(string_b'') string_b''
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(string_b'\r\n') string_b'\r\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ct) identifier_ct
(binary_operator
(string_b'multipart/form-data; boundary=') string_b'multipart/form-data; boundary='
(identifier_boundary) identifier_boundary
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Content-type') string_'Content-type'
(identifier_ct) identifier_ct
)pair
(pair
(string_'Content-length') string_'Content-length'
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(identifier_Request) identifier_Request
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_url) identifier_url
)attribute
(identifier_body) identifier_body
(identifier_headers) identifier_headers
)argument_list
)call
)return_statement
)block
)function_definition
)module | Encode fields and files for posting to an HTTP server.
:param fields: The fields to send as a list of (fieldname, value)
tuples.
:param files: The files to send as a list of (fieldname, filename,
file_bytes) tuple. |
(module
(function_definition
(function_name_validate_connector) function_name_validate_connector
(parameters
(identifier_self) identifier_self
(identifier_connector) identifier_connector
)parameters
(block
(if_statement
(not_operator
(comparison_operator
(string_'connector') string_'connector'
(identifier_connector) identifier_connector
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'missing connector name') string_'missing connector name'
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_connector) identifier_connector
(string_'connector') string_'connector'
)subscript
(identifier_CONNECTOR_RABBITMQ) identifier_CONNECTOR_RABBITMQ
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'unknown connector: ') string_'unknown connector: '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_connector) identifier_connector
(string_'connector') string_'connector'
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_RabbitMQConnector) identifier_RabbitMQConnector
(identifier_validate) identifier_validate
)attribute
(argument_list
(identifier_connector) identifier_connector
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Validate a given connector. Raises ValueError if the connector is not
valid.
Parameters
----------
connector : dict
Connection information |
(module
(function_definition
(function_name_denormalize) function_name_denormalize
(parameters
(typed_parameter
(identifier_x) identifier_x
(type
(identifier_TensorImage) identifier_TensorImage
)type
)typed_parameter
(typed_parameter
(identifier_mean) identifier_mean
(type
(identifier_FloatTensor) identifier_FloatTensor
)type
)typed_parameter
(typed_parameter
(identifier_std) identifier_std
(type
(identifier_FloatTensor) identifier_FloatTensor
)type
)typed_parameter
(typed_default_parameter
(identifier_do_x) identifier_do_x
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
)parameters
(type
(identifier_TensorImage) identifier_TensorImage
)type
(block
(expression_statement
(string_"Denormalize `x` with `mean` and `std`.") string_"Denormalize `x` with `mean` and `std`."
)expression_statement
(return_statement
(conditional_expression
(binary_operator
(binary_operator
(call
(attribute
(call
(attribute
(identifier_x) identifier_x
(identifier_cpu) identifier_cpu
)attribute
(argument_list
)argument_list
)call
(identifier_float) identifier_float
)attribute
(argument_list
)argument_list
)call
(subscript
(identifier_std) identifier_std
(ellipsis_...) ellipsis_...
(None) None
(None) None
)subscript
)binary_operator
(subscript
(identifier_mean) identifier_mean
(ellipsis_...) ellipsis_...
(None) None
(None) None
)subscript
)binary_operator
(identifier_do_x) identifier_do_x
(call
(attribute
(identifier_x) identifier_x
(identifier_cpu) identifier_cpu
)attribute
(argument_list
)argument_list
)call
)conditional_expression
)return_statement
)block
)function_definition
)module | Denormalize `x` with `mean` and `std`. |
(module
(function_definition
(function_name_newNodeEatName) function_name_newNodeEatName
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_libxml2mod) identifier_libxml2mod
(identifier_xmlNewNodeEatName) identifier_xmlNewNodeEatName
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__o) identifier__o
)attribute
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ret) identifier_ret
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_treeError) identifier_treeError
(argument_list
(string_'xmlNewNodeEatName() failed') string_'xmlNewNodeEatName() failed'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier___tmp) identifier___tmp
(call
(identifier_xmlNode) identifier_xmlNode
(argument_list
(keyword_argument
(identifier__obj) identifier__obj
(identifier_ret) identifier_ret
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier___tmp) identifier___tmp
)return_statement
)block
)function_definition
)module | Creation of a new node element. @ns is optional (None). |
(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_form_valid_from_parent) identifier_form_valid_from_parent
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_HostCreate) identifier_HostCreate
(identifier_self) identifier_self
)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_'Host {} Successfully Created') string_'Host {} 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_form_valid_from_parent) identifier_form_valid_from_parent
)return_statement
)block
)function_definition
)module | First call the parent's form valid then let the user know it worked. |
(module
(function_definition
(function_name_clearAdvancedActions) function_name_clearAdvancedActions
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__advancedMap) identifier__advancedMap
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_margins) identifier_margins
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_getContentsMargins) identifier_getContentsMargins
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_margins) identifier_margins
(integer_2) integer_2
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setContentsMargins) identifier_setContentsMargins
)attribute
(argument_list
(list_splat
(identifier_margins) identifier_margins
)list_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Clears out the advanced action map. |
(module
(function_definition
(function_name_remove_read_more_sep) function_name_remove_read_more_sep
(parameters
(identifier_self) identifier_self
(identifier_raw_content) identifier_raw_content
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__read_more_exp) identifier__read_more_exp
)attribute
(None) None
)comparison_operator
(block
(return_statement
(identifier_raw_content) identifier_raw_content
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sp) identifier_sp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__read_more_exp) identifier__read_more_exp
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_raw_content) identifier_raw_content
(keyword_argument
(identifier_maxsplit) identifier_maxsplit
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_sp) identifier_sp
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(subscript
(identifier_sp) identifier_sp
(integer_0) integer_0
)subscript
)boolean_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(string_'\n\n') string_'\n\n'
(identifier_join) identifier_join
)attribute
(argument_list
(tuple
(call
(attribute
(subscript
(identifier_sp) identifier_sp
(integer_0) integer_0
)subscript
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(subscript
(identifier_sp) identifier_sp
(integer_1) integer_1
)subscript
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
)argument_list
)call
)tuple
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(identifier_raw_content) identifier_raw_content
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Removes the first read_more_sep that occurs in raw_content.
Subclasses should call this method to preprocess raw_content. |
(module
(function_definition
(function_name_getVerifiers) function_name_getVerifiers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_contacts) identifier_contacts
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_verifier) identifier_verifier
(call
(attribute
(identifier_self) identifier_self
(identifier_getVerifiersIDs) identifier_getVerifiersIDs
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(identifier_api) identifier_api
(identifier_get_user) identifier_get_user
)attribute
(argument_list
(identifier_verifier) identifier_verifier
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_contact) identifier_contact
(call
(attribute
(identifier_api) identifier_api
(identifier_get_user_contact) identifier_get_user_contact
)attribute
(argument_list
(identifier_user) identifier_user
(list
(string_"LabContact") string_"LabContact"
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_contact) identifier_contact
(block
(expression_statement
(call
(attribute
(identifier_contacts) identifier_contacts
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_contact) identifier_contact
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_contacts) identifier_contacts
)return_statement
)block
)function_definition
)module | Returns the list of lab contacts that have verified at least one
analysis from this Analysis Request |
(module
(function_definition
(function_name_add_user) function_name_add_user
(parameters
(identifier_username) identifier_username
(identifier_deployment_name) identifier_deployment_name
(default_parameter
(identifier_token_manager) identifier_token_manager
(None) None
)default_parameter
(default_parameter
(identifier_app_url) identifier_app_url
(attribute
(identifier_defaults) identifier_defaults
(identifier_APP_URL) identifier_APP_URL
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_deployment_id) identifier_deployment_id
(call
(identifier_get_deployment_id) identifier_get_deployment_id
(argument_list
(identifier_deployment_name) identifier_deployment_name
(keyword_argument
(identifier_token_manager) identifier_token_manager
(identifier_token_manager) identifier_token_manager
)keyword_argument
(keyword_argument
(identifier_app_url) identifier_app_url
(identifier_app_url) identifier_app_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_account_id) identifier_account_id
(call
(attribute
(identifier_accounts) identifier_accounts
(identifier_get_account_id) identifier_get_account_id
)attribute
(argument_list
(identifier_username) identifier_username
(keyword_argument
(identifier_token_manager) identifier_token_manager
(identifier_token_manager) identifier_token_manager
)keyword_argument
(keyword_argument
(identifier_app_url) identifier_app_url
(identifier_app_url) identifier_app_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(attribute
(identifier_token_manager) identifier_token_manager
(identifier_get_access_token_headers) identifier_get_access_token_headers
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_deployment_url) identifier_deployment_url
(call
(attribute
(identifier_environment) identifier_environment
(identifier_get_deployment_url) identifier_get_deployment_url
)attribute
(argument_list
(keyword_argument
(identifier_app_url) identifier_app_url
(identifier_app_url) identifier_app_url
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_put) identifier_put
)attribute
(argument_list
(binary_operator
(string_'%s/api/v1/deployments/%s/accounts/%s') string_'%s/api/v1/deployments/%s/accounts/%s'
(tuple
(identifier_deployment_url) identifier_deployment_url
(identifier_deployment_id) identifier_deployment_id
(identifier_account_id) identifier_account_id
)tuple
)binary_operator
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_204) integer_204
)comparison_operator
(block
(return_statement
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_JutException) identifier_JutException
(argument_list
(binary_operator
(string_'Error %s: %s') string_'Error %s: %s'
(tuple
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | add user to deployment |
(module
(function_definition
(function_name_write_result) function_name_write_result
(parameters
(identifier_self) identifier_self
(identifier_result) identifier_result
)parameters
(block
(assert_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_finished) identifier_finished
)attribute
)not_operator
(string_"Already sent a response") string_"Already sent a response"
)assert_statement
(if_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(identifier_thrift_spec) identifier_thrift_spec
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_finished) identifier_finished
)attribute
(True) True
)assignment
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_spec) identifier_spec
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(identifier_thrift_spec) identifier_thrift_spec
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(assert_statement
(identifier_spec) identifier_spec
(string_"Tried to return a result for a void method.") string_"Tried to return a result for a void method."
)assert_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_result) identifier_result
)attribute
(subscript
(identifier_spec) identifier_spec
(integer_2) integer_2
)subscript
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_finished) identifier_finished
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Send back the result of this call.
Only one of this and `write_exc_info` may be called.
:param result:
Return value of the call |
(module
(function_definition
(function_name_user_photo_url) function_name_user_photo_url
(parameters
(identifier_user) identifier_user
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_endpoint) identifier_endpoint
(identifier_kwargs) identifier_kwargs
)pattern_list
(call
(identifier_user_url_args) identifier_user_url_args
(argument_list
(identifier_user) identifier_user
(identifier_size) identifier_size
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_url_for) identifier_url_for
(argument_list
(identifier_endpoint) identifier_endpoint
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return url to use for this user. |
(module
(function_definition
(function_name_serve_assets) function_name_serve_assets
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(string_'NIKOLA_ROOT') string_'NIKOLA_ROOT'
)subscript
(subscript
(attribute
(identifier__site) identifier__site
(identifier_config) identifier_config
)attribute
(string_"OUTPUT_FOLDER") string_"OUTPUT_FOLDER"
)subscript
(string_'assets') string_'assets'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_send_from_directory) identifier_send_from_directory
(argument_list
(identifier_res) identifier_res
(identifier_path) identifier_path
)argument_list
)call
)return_statement
)block
)function_definition
)module | Serve Nikola assets.
This is meant to be used ONLY by the internal dev server.
Please configure your web server to handle requests to this URL::
/assets/ => output/assets |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.