sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_warehouse_query) function_name_warehouse_query
(parameters
(identifier_line) identifier_line
(identifier_cell) identifier_cell
)parameters
(block
(expression_statement
(string_"my cell magic") string_"my cell magic"
)expression_statement
(import_from_statement
(dotted_name
(identifier_IPython) identifier_IPython
)dotted_name
(dotted_name
(identifier_get_ipython) identifier_get_ipython
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_w_var_name) identifier_w_var_name
(call
(attribute
(identifier_parts) identifier_parts
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(attribute
(call
(identifier_get_ipython) identifier_get_ipython
(argument_list
)argument_list
)call
(identifier_ev) identifier_ev
)attribute
(argument_list
(identifier_w_var_name) identifier_w_var_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_w) identifier_w
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_cell) identifier_cell
)argument_list
)call
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | my cell magic |
(module
(function_definition
(function_name_umi_histogram) function_name_umi_histogram
(parameters
(identifier_fastq) identifier_fastq
)parameters
(block
(expression_statement
(assignment
(identifier_annotations) identifier_annotations
(call
(identifier_detect_fastq_annotations) identifier_detect_fastq_annotations
(argument_list
(identifier_fastq) identifier_fastq
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_re_string) identifier_re_string
(call
(identifier_construct_transformed_regex) identifier_construct_transformed_regex
(argument_list
(identifier_annotations) identifier_annotations
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parser_re) identifier_parser_re
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_re_string) identifier_re_string
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_counter) identifier_counter
(call
(attribute
(identifier_collections) identifier_collections
(identifier_Counter) identifier_Counter
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_read) identifier_read
(call
(identifier_read_fastq) identifier_read_fastq
(argument_list
(identifier_fastq) identifier_fastq
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(call
(attribute
(identifier_parser_re) identifier_parser_re
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_read) identifier_read
)argument_list
)call
(identifier_groupdict) identifier_groupdict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(subscript
(identifier_counter) identifier_counter
(subscript
(identifier_match) identifier_match
(string_'MB') string_'MB'
)subscript
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_bc) identifier_bc
(identifier_count) identifier_count
)pattern_list
(call
(attribute
(identifier_counter) identifier_counter
(identifier_most_common) identifier_most_common
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(string_'{}\t{}\n') string_'{}\t{}\n'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_bc) identifier_bc
(identifier_count) identifier_count
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Counts the number of reads for each UMI
Expects formatted fastq files. |
(module
(function_definition
(function_name_readSB) function_name_readSB
(parameters
(identifier_self) identifier_self
(identifier_bits) identifier_bits
)parameters
(block
(expression_statement
(assignment
(identifier_shift) identifier_shift
(binary_operator
(integer_32) integer_32
(identifier_bits) identifier_bits
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(identifier_int32) identifier_int32
(argument_list
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_readbits) identifier_readbits
)attribute
(argument_list
(identifier_bits) identifier_bits
)argument_list
)call
(identifier_shift) identifier_shift
)binary_operator
)argument_list
)call
(identifier_shift) identifier_shift
)binary_operator
)return_statement
)block
)function_definition
)module | Read a signed int using the specified number of bits |
(module
(function_definition
(function_name_unmarshaller) function_name_unmarshaller
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_typed) identifier_typed
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_typed) identifier_typed
(block
(return_statement
(call
(identifier_UmxEncoded) identifier_UmxEncoded
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_schema) identifier_schema
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_RPC) identifier_RPC
(identifier_unmarshaller) identifier_unmarshaller
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_typed) identifier_typed
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get the appropriate XML decoder.
@return: Either the (basic|typed) unmarshaller.
@rtype: L{UmxTyped} |
(module
(function_definition
(function_name_write_frame) function_name_write_frame
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'mwriter') string_'mwriter'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(string_'This plotter has not opened a movie or GIF file.') string_'This plotter has not opened a movie or GIF file.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mwriter) identifier_mwriter
)attribute
(identifier_append_data) identifier_append_data
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_image) identifier_image
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Writes a single frame to the movie file |
(module
(function_definition
(function_name_get_assessment_metadata) function_name_get_assessment_metadata
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(identifier_dict) identifier_dict
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__mdata) identifier__mdata
)attribute
(string_'assessment') string_'assessment'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'existing_id_values') string_'existing_id_values'
(subscript
(attribute
(identifier_self) identifier_self
(identifier__my_map) identifier__my_map
)attribute
(string_'assessmentId') string_'assessmentId'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_Metadata) identifier_Metadata
(argument_list
(dictionary_splat
(identifier_metadata) identifier_metadata
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the metadata for an assessment.
return: (osid.Metadata) - metadata for the assessment
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_upload_submit) function_name_upload_submit
(parameters
(identifier_self) identifier_self
(identifier_upload_request) identifier_upload_request
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(string_'/api/1.0/upload/save') string_'/api/1.0/upload/save'
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__api_post) identifier__api_post
)attribute
(argument_list
(attribute
(identifier_definition) identifier_definition
(identifier_DatasetUploadResponse) identifier_DatasetUploadResponse
)attribute
(identifier_path) identifier_path
(identifier_upload_request) identifier_upload_request
)argument_list
)call
)return_statement
)block
)function_definition
)module | The method is submitting dataset upload |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_show_progress) identifier_show_progress
(False) False
)default_parameter
(default_parameter
(identifier_invalid_data_behavior) identifier_invalid_data_behavior
(string_'warn') string_'warn'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ctx) identifier_ctx
(call
(identifier_maybe_show_progress) identifier_maybe_show_progress
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_show_progress) identifier_show_progress
(identifier_show_progress) identifier_show_progress
)keyword_argument
(keyword_argument
(identifier_item_show_func) identifier_item_show_func
(lambda
(lambda_parameters
(identifier_e) identifier_e
)lambda_parameters
(conditional_expression
(identifier_e) identifier_e
(comparison_operator
(identifier_e) identifier_e
(None) None
)comparison_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_e) identifier_e
(integer_0) integer_0
)subscript
)argument_list
)call
)conditional_expression
)lambda
)keyword_argument
(keyword_argument
(identifier_label) identifier_label
(string_"Merging minute equity files:") string_"Merging minute equity files:"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_write_sid) identifier_write_sid
(attribute
(identifier_self) identifier_self
(identifier_write_sid) identifier_write_sid
)attribute
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(identifier_ctx) identifier_ctx
(as_pattern_target
(identifier_it) identifier_it
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_e) identifier_e
(identifier_it) identifier_it
(block
(expression_statement
(call
(identifier_write_sid) identifier_write_sid
(argument_list
(list_splat
(identifier_e) identifier_e
)list_splat
(keyword_argument
(identifier_invalid_data_behavior) identifier_invalid_data_behavior
(identifier_invalid_data_behavior) identifier_invalid_data_behavior
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Write a stream of minute data.
Parameters
----------
data : iterable[(int, pd.DataFrame)]
The data to write. Each element should be a tuple of sid, data
where data has the following format:
columns : ('open', 'high', 'low', 'close', 'volume')
open : float64
high : float64
low : float64
close : float64
volume : float64|int64
index : DatetimeIndex of market minutes.
A given sid may appear more than once in ``data``; however,
the dates must be strictly increasing.
show_progress : bool, optional
Whether or not to show a progress bar while writing. |
(module
(function_definition
(function_name_formfield) function_name_formfield
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_defaults) identifier_defaults
(dictionary
(pair
(string_'form_class') string_'form_class'
(attribute
(identifier_forms) identifier_forms
(identifier_TimeZoneField) identifier_TimeZoneField
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_defaults) identifier_defaults
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_TimeZoneField) identifier_TimeZoneField
(identifier_self) identifier_self
)argument_list
)call
(identifier_formfield) identifier_formfield
)attribute
(argument_list
(dictionary_splat
(identifier_defaults) identifier_defaults
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a custom form field for the TimeZoneField. |
(module
(function_definition
(function_name_get_resource_bin_session) function_name_get_resource_bin_session
(parameters
(identifier_self) identifier_self
(identifier_proxy) identifier_proxy
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_supports_resource_bin) identifier_supports_resource_bin
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_Unimplemented) identifier_Unimplemented
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_sessions) identifier_sessions
(identifier_ResourceBinSession) identifier_ResourceBinSession
)attribute
(argument_list
(keyword_argument
(identifier_proxy) identifier_proxy
(identifier_proxy) identifier_proxy
)keyword_argument
(keyword_argument
(identifier_runtime) identifier_runtime
(attribute
(identifier_self) identifier_self
(identifier__runtime) identifier__runtime
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the session for retrieving resource to bin mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.resource.ResourceBinSession) - a
``ResourceBinSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_resource_bin()`` is ``false``
*compliance: optional -- This method must be implemented if
``supports_resource_bin()`` is ``true``.* |
(module
(function_definition
(function_name_server_poweroff) function_name_server_poweroff
(parameters
(default_parameter
(identifier_host) identifier_host
(None) None
)default_parameter
(default_parameter
(identifier_admin_username) identifier_admin_username
(None) None
)default_parameter
(default_parameter
(identifier_admin_password) identifier_admin_password
(None) None
)default_parameter
(default_parameter
(identifier_module) identifier_module
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier___execute_cmd) identifier___execute_cmd
(argument_list
(string_'serveraction powerdown') string_'serveraction powerdown'
(keyword_argument
(identifier_host) identifier_host
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_admin_username) identifier_admin_username
(identifier_admin_username) identifier_admin_username
)keyword_argument
(keyword_argument
(identifier_admin_password) identifier_admin_password
(identifier_admin_password) identifier_admin_password
)keyword_argument
(keyword_argument
(identifier_module) identifier_module
(identifier_module) identifier_module
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Powers down the managed server.
host
The chassis host.
admin_username
The username used to access the chassis.
admin_password
The password used to access the chassis.
module
The element to power off on the chassis such as a blade.
If not provided, the chassis will be powered off.
CLI Example:
.. code-block:: bash
salt dell dracr.server_poweroff
salt dell dracr.server_poweroff module=server-1 |
(module
(function_definition
(function_name_pause) function_name_pause
(parameters
(identifier_self) identifier_self
(identifier_scaling_group) identifier_scaling_group
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(string_"/%s/%s/pause") string_"/%s/%s/pause"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_uri_base) identifier_uri_base
)attribute
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_id) identifier_get_id
)attribute
(argument_list
(identifier_scaling_group) identifier_scaling_group
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_resp) identifier_resp
(identifier_resp_body) identifier_resp_body
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_api) identifier_api
)attribute
(identifier_method_post) identifier_method_post
)attribute
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)assignment
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Pauses all execution of the policies for the specified scaling group. |
(module
(function_definition
(function_name__install_hiero) function_name__install_hiero
(parameters
(identifier_use_threaded_wrapper) identifier_use_threaded_wrapper
)parameters
(block
(import_statement
(dotted_name
(identifier_hiero) identifier_hiero
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_nuke) identifier_nuke
)dotted_name
)import_statement
(if_statement
(comparison_operator
(string_"--hiero") string_"--hiero"
(attribute
(identifier_nuke) identifier_nuke
(identifier_rawArgs) identifier_rawArgs
)attribute
)comparison_operator
(block
(raise_statement
(identifier_ImportError) identifier_ImportError
)raise_statement
)block
)if_statement
(function_definition
(function_name_threaded_wrapper) function_name_threaded_wrapper
(parameters
(identifier_func) identifier_func
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_hiero) identifier_hiero
(identifier_core) identifier_core
)attribute
(identifier_executeInMainThreadWithResult) identifier_executeInMainThreadWithResult
)attribute
(argument_list
(identifier_func) identifier_func
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)return_statement
)block
)function_definition
(expression_statement
(call
(identifier__common_setup) identifier__common_setup
(argument_list
(string_"Hiero") string_"Hiero"
(identifier_threaded_wrapper) identifier_threaded_wrapper
(identifier_use_threaded_wrapper) identifier_use_threaded_wrapper
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Helper function to The Foundry Hiero support |
(module
(function_definition
(function_name_calc_point_distance) function_name_calc_point_distance
(parameters
(identifier_self) identifier_self
(identifier_chi_coords) identifier_chi_coords
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_chi1_bin) identifier_chi1_bin
(identifier_chi2_bin) identifier_chi2_bin
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_find_point_bin) identifier_find_point_bin
)attribute
(argument_list
(identifier_chi_coords) identifier_chi_coords
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_dist) identifier_min_dist
(integer_1000000000) integer_1000000000
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_indexes) identifier_indexes
(None) None
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_chi1_bin_offset) identifier_chi1_bin_offset
(identifier_chi2_bin_offset) identifier_chi2_bin_offset
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier_bin_loop_order) identifier_bin_loop_order
)attribute
(block
(expression_statement
(assignment
(identifier_curr_chi1_bin) identifier_curr_chi1_bin
(binary_operator
(identifier_chi1_bin) identifier_chi1_bin
(identifier_chi1_bin_offset) identifier_chi1_bin_offset
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_curr_chi2_bin) identifier_curr_chi2_bin
(binary_operator
(identifier_chi2_bin) identifier_chi2_bin
(identifier_chi2_bin_offset) identifier_chi2_bin_offset
)binary_operator
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_idx) identifier_idx
(identifier_bank_chis) identifier_bank_chis
)pattern_list
(line_continuation_\) line_continuation_\
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_bank) identifier_bank
)attribute
(identifier_curr_chi1_bin) identifier_curr_chi1_bin
)subscript
(identifier_curr_chi2_bin) identifier_curr_chi2_bin
)subscript
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dist) identifier_dist
(call
(attribute
(identifier_coord_utils) identifier_coord_utils
(identifier_calc_point_dist) identifier_calc_point_dist
)attribute
(argument_list
(identifier_chi_coords) identifier_chi_coords
(identifier_bank_chis) identifier_bank_chis
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dist) identifier_dist
(identifier_min_dist) identifier_min_dist
)comparison_operator
(block
(expression_statement
(assignment
(identifier_min_dist) identifier_min_dist
(identifier_dist) identifier_dist
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_indexes) identifier_indexes
(tuple
(identifier_curr_chi1_bin) identifier_curr_chi1_bin
(identifier_curr_chi2_bin) identifier_curr_chi2_bin
(identifier_idx) identifier_idx
)tuple
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_min_dist) identifier_min_dist
(identifier_indexes) identifier_indexes
)expression_list
)return_statement
)block
)function_definition
)module | Calculate distance between point and the bank. Return the closest
distance.
Parameters
-----------
chi_coords : numpy.array
The position of the point in the chi coordinates.
Returns
--------
min_dist : float
The smallest **SQUARED** metric distance between the test point and
the bank.
indexes : The chi1_bin, chi2_bin and position within that bin at which
the closest matching point lies. |
(module
(function_definition
(function_name_find_field_by_name) function_name_find_field_by_name
(parameters
(identifier_browser) identifier_browser
(identifier_field_type) identifier_field_type
(identifier_name) identifier_name
)parameters
(block
(return_statement
(call
(identifier_ElementSelector) identifier_ElementSelector
(argument_list
(identifier_browser) identifier_browser
(binary_operator
(call
(identifier_field_xpath) identifier_field_xpath
(argument_list
(identifier_field_type) identifier_field_type
(string_'name') string_'name'
)argument_list
)call
(call
(identifier_string_literal) identifier_string_literal
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)binary_operator
(keyword_argument
(identifier_filter_displayed) identifier_filter_displayed
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Locate the control input with the given ``name``.
:param browser: ``world.browser``
:param string field_type: a field type (i.e. `button`)
:param string name: ``name`` attribute
Returns: an :class:`ElementSelector` |
(module
(function_definition
(function_name_get_changelog_file_for_database) function_name_get_changelog_file_for_database
(parameters
(default_parameter
(identifier_database) identifier_database
(identifier_DEFAULT_DB_ALIAS) identifier_DEFAULT_DB_ALIAS
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_conf) identifier_conf
)dotted_name
(dotted_name
(identifier_settings) identifier_settings
)dotted_name
)import_from_statement
(try_statement
(block
(return_statement
(subscript
(attribute
(identifier_settings) identifier_settings
(identifier_LIQUIMIGRATE_CHANGELOG_FILES) identifier_LIQUIMIGRATE_CHANGELOG_FILES
)attribute
(identifier_database) identifier_database
)subscript
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(if_statement
(comparison_operator
(identifier_database) identifier_database
(identifier_DEFAULT_DB_ALIAS) identifier_DEFAULT_DB_ALIAS
)comparison_operator
(block
(try_statement
(block
(return_statement
(attribute
(identifier_settings) identifier_settings
(identifier_LIQUIMIGRATE_CHANGELOG_FILE) identifier_LIQUIMIGRATE_CHANGELOG_FILE
)attribute
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(concatenated_string
(string_'Please set LIQUIMIGRATE_CHANGELOG_FILE or ') string_'Please set LIQUIMIGRATE_CHANGELOG_FILE or '
(string_'LIQUIMIGRATE_CHANGELOG_FILES in your ') string_'LIQUIMIGRATE_CHANGELOG_FILES in your '
(string_'project settings') string_'project settings'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(concatenated_string
(string_'LIQUIMIGRATE_CHANGELOG_FILES dictionary setting ') string_'LIQUIMIGRATE_CHANGELOG_FILES dictionary setting '
(string_'is required for multiple databases support') string_'is required for multiple databases support'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(binary_operator
(string_"Liquibase changelog file is not set for database: %s") string_"Liquibase changelog file is not set for database: %s"
(identifier_database) identifier_database
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | get changelog filename for given `database` DB alias |
(module
(function_definition
(function_name__group_sql) function_name__group_sql
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_quote_char) identifier_quote_char
(None) None
)default_parameter
(default_parameter
(identifier_groupby_alias) identifier_groupby_alias
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_clauses) identifier_clauses
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_selected_aliases) identifier_selected_aliases
(set_comprehension
(attribute
(identifier_s) identifier_s
(identifier_alias) identifier_alias
)attribute
(for_in_clause
(identifier_s) identifier_s
(attribute
(identifier_self) identifier_self
(identifier__selects) identifier__selects
)attribute
)for_in_clause
)set_comprehension
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(attribute
(identifier_self) identifier_self
(identifier__groupbys) identifier__groupbys
)attribute
(block
(if_statement
(boolean_operator
(boolean_operator
(identifier_groupby_alias) identifier_groupby_alias
(attribute
(identifier_field) identifier_field
(identifier_alias) identifier_alias
)attribute
)boolean_operator
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_alias) identifier_alias
)attribute
(identifier_selected_aliases) identifier_selected_aliases
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_clauses) identifier_clauses
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"{quote}{alias}{quote}") string_"{quote}{alias}{quote}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_alias) identifier_alias
(attribute
(identifier_field) identifier_field
(identifier_alias) identifier_alias
)attribute
)keyword_argument
(keyword_argument
(identifier_quote) identifier_quote
(boolean_operator
(identifier_quote_char) identifier_quote_char
(string_'') string_''
)boolean_operator
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_clauses) identifier_clauses
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_field) identifier_field
(identifier_get_sql) identifier_get_sql
)attribute
(argument_list
(keyword_argument
(identifier_quote_char) identifier_quote_char
(identifier_quote_char) identifier_quote_char
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(call
(attribute
(string_' GROUP BY {groupby}') string_' GROUP BY {groupby}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_groupby) identifier_groupby
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_clauses) identifier_clauses
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__with_totals) identifier__with_totals
)attribute
(block
(return_statement
(binary_operator
(identifier_sql) identifier_sql
(string_' WITH TOTALS') string_' WITH TOTALS'
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(identifier_sql) identifier_sql
)return_statement
)block
)function_definition
)module | Produces the GROUP BY part of the query. This is a list of fields. The clauses are stored in the query under
self._groupbys as a list fields.
If an groupby field is used in the select clause,
determined by a matching alias, and the groupby_alias is set True
then the GROUP BY clause will use the alias,
otherwise the entire field will be rendered as SQL. |
(module
(function_definition
(function_name_build_target_areas) function_name_build_target_areas
(parameters
(identifier_entry) identifier_entry
)parameters
(block
(expression_statement
(assignment
(identifier_target_areas) identifier_target_areas
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_areas) identifier_areas
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_entry) identifier_entry
(string_'cap:areaDesc') string_'cap:areaDesc'
)subscript
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_';') string_';'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_area) identifier_area
(identifier_areas) identifier_areas
(block
(expression_statement
(call
(attribute
(identifier_target_areas) identifier_target_areas
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_area) identifier_area
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_target_areas) identifier_target_areas
)return_statement
)block
)function_definition
)module | Cleanup the raw target areas description string |
(module
(function_definition
(function_name_minutes) function_name_minutes
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_start_date) identifier_start_date
(None) None
)default_parameter
(default_parameter
(identifier_end_date) identifier_end_date
(None) None
)default_parameter
(default_parameter
(identifier_grouping) identifier_grouping
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier___format) identifier___format
)attribute
(argument_list
(identifier_start_date) identifier_start_date
(identifier_end_date) identifier_end_date
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
(string_'/minutes') string_'/minutes'
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets a detailed Report of encoded minutes and billable minutes for a
date range.
**Warning**: ``start_date`` and ``end_date`` must be ``datetime.date`` objects.
Example::
import datetime
start = datetime.date(2012, 12, 31)
end = datetime.today()
data = z.report.minutes(start, end)
https://app.zencoder.com/docs/api/reports/minutes |
(module
(function_definition
(function_name__get_pattern) function_name__get_pattern
(parameters
(identifier_self) identifier_self
(identifier_pys_style) identifier_pys_style
)parameters
(block
(if_statement
(comparison_operator
(string_"bgcolor") string_"bgcolor"
(identifier_pys_style) identifier_pys_style
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(attribute
(identifier_xlwt) identifier_xlwt
(identifier_Pattern) identifier_Pattern
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pattern) identifier_pattern
(identifier_pattern) identifier_pattern
)attribute
(attribute
(attribute
(identifier_xlwt) identifier_xlwt
(identifier_Pattern) identifier_Pattern
)attribute
(identifier_SOLID_PATTERN) identifier_SOLID_PATTERN
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bgcolor) identifier_bgcolor
(call
(attribute
(identifier_wx) identifier_wx
(identifier_Colour) identifier_Colour
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_bgcolor) identifier_bgcolor
(identifier_SetRGB) identifier_SetRGB
)attribute
(argument_list
(subscript
(identifier_pys_style) identifier_pys_style
(string_"bgcolor") string_"bgcolor"
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_pattern) identifier_pattern
(identifier_pattern_fore_colour) identifier_pattern_fore_colour
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_color2idx) identifier_color2idx
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_bgcolor) identifier_bgcolor
(identifier_Get) identifier_Get
)attribute
(argument_list
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_pattern) identifier_pattern
)return_statement
)block
)function_definition
)module | Returns xlwt.pattern for pyspread style |
(module
(function_definition
(function_name__check_if_must_download) function_name__check_if_must_download
(parameters
(identifier_request_list) identifier_request_list
(identifier_redownload) identifier_redownload
)parameters
(block
(for_statement
(identifier_request) identifier_request
(identifier_request_list) identifier_request_list
(block
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_will_download) identifier_will_download
)attribute
(boolean_operator
(parenthesized_expression
(boolean_operator
(attribute
(identifier_request) identifier_request
(identifier_save_response) identifier_save_response
)attribute
(attribute
(identifier_request) identifier_request
(identifier_return_data) identifier_return_data
)attribute
)boolean_operator
)parenthesized_expression
(line_continuation_\) line_continuation_\
(parenthesized_expression
(boolean_operator
(not_operator
(call
(attribute
(identifier_request) identifier_request
(identifier_is_downloaded) identifier_is_downloaded
)attribute
(argument_list
)argument_list
)call
)not_operator
(identifier_redownload) identifier_redownload
)boolean_operator
)parenthesized_expression
)boolean_operator
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Updates request.will_download attribute of each request in request_list.
**Note:** the function mutates the elements of the list!
:param request_list: a list of ``DownloadRequest`` instances
:type: list[DownloadRequest]
:param redownload: tells whether to download the data again or not
:type: bool |
(module
(function_definition
(function_name_replace_media) function_name_replace_media
(parameters
(identifier_self) identifier_self
(identifier_src_file) identifier_src_file
(identifier_dst_file) identifier_dst_file
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_dst_file) identifier_dst_file
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_fh) identifier_fh
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_crc) identifier_crc
(call
(attribute
(identifier_self) identifier_self
(identifier_get_file_crc) identifier_get_file_crc
)attribute
(argument_list
(identifier_src_file) identifier_src_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_crc_to_new_media) identifier_crc_to_new_media
)attribute
(identifier_crc) identifier_crc
)subscript
(call
(attribute
(identifier_fh) identifier_fh
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Replace one media by another one into a docx
This has been done mainly because it is not possible to add images in
docx header/footer.
With this function, put a dummy picture in your header/footer,
then specify it with its replacement in this function
Syntax: tpl.replace_media('dummy_media_to_replace.png','media_to_paste.jpg')
Note: for images, the aspect ratio will be the same as the replaced image
Note2 : it is important to have the source media file as it is required
to calculate its CRC to find them in the docx |
(module
(function_definition
(function_name_try_storage) function_name_try_storage
(parameters
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
(identifier_req) identifier_req
(identifier_resp) identifier_resp
(identifier_resource) identifier_resource
(identifier_uri_kwargs) identifier_uri_kwargs
)parameters
(block
(if_statement
(comparison_operator
(identifier_identifier) identifier_identifier
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(None) None
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_user_storage) identifier_user_storage
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_user_storage) identifier_user_storage
)attribute
(identifier_get_user) identifier_get_user
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
(identifier_req) identifier_req
(identifier_resp) identifier_resp
(identifier_resource) identifier_resource
(identifier_uri_kwargs) identifier_uri_kwargs
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_user_storage) identifier_user_storage
)attribute
(None) None
)comparison_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_only_with_storage) identifier_only_with_storage
)attribute
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(dictionary
(pair
(string_'identified_with') string_'identified_with'
(identifier_self) identifier_self
)pair
(pair
(string_'identifier') string_'identifier'
(identifier_identifier) identifier_identifier
)pair
)dictionary
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_user) identifier_user
)return_statement
)block
)function_definition
)module | Try to find user in configured user storage object.
Args:
identifier: User identifier.
Returns:
user object. |
(module
(function_definition
(function_name__handle_tag_removeobject) function_name__handle_tag_removeobject
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier__make_object) identifier__make_object
(argument_list
(string_"RemoveObject") string_"RemoveObject"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier_CharacterId) identifier_CharacterId
)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
(attribute
(identifier_obj) identifier_obj
(identifier_Depth) identifier_Depth
)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
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Handle the RemoveObject tag. |
(module
(function_definition
(function_name_change_exteditor) function_name_change_exteditor
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_path) identifier_path
(identifier_valid) identifier_valid
)pattern_list
(call
(attribute
(identifier_QInputDialog) identifier_QInputDialog
(identifier_getText) identifier_getText
)attribute
(argument_list
(identifier_self) identifier_self
(call
(identifier__) identifier__
(argument_list
(string_'External editor') string_'External editor'
)argument_list
)call
(call
(identifier__) identifier__
(argument_list
(string_'External editor executable path:') string_'External editor executable path:'
)argument_list
)call
(attribute
(identifier_QLineEdit) identifier_QLineEdit
(identifier_Normal) identifier_Normal
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'external_editor/path') string_'external_editor/path'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_valid) identifier_valid
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_option) identifier_set_option
)attribute
(argument_list
(string_'external_editor/path') string_'external_editor/path'
(call
(identifier_to_text_string) identifier_to_text_string
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Change external editor path |
(module
(function_definition
(function_name__save_token_cache) function_name__save_token_cache
(parameters
(identifier_self) identifier_self
(identifier_new_cache) identifier_new_cache
)parameters
(block
(expression_statement
(string_'Write out to the filesystem a cache of the OAuth2 information.') string_'Write out to the filesystem a cache of the OAuth2 information.'
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Looking to write to local authentication cache...') string_'Looking to write to local authentication cache...'
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__check_token_cache_type) identifier__check_token_cache_type
)attribute
(argument_list
(identifier_new_cache) identifier_new_cache
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Attempt to save a bad value: %s') string_'Attempt to save a bad value: %s'
(identifier_new_cache) identifier_new_cache
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'About to write to fs cache file: %s') string_'About to write to fs cache file: %s'
(attribute
(identifier_self) identifier_self
(identifier_token_cache_file) identifier_token_cache_file
)attribute
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_token_cache_file) identifier_token_cache_file
)attribute
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_cPickle) identifier_cPickle
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_new_cache) identifier_new_cache
(identifier_f) identifier_f
(keyword_argument
(identifier_protocol) identifier_protocol
(attribute
(identifier_cPickle) identifier_cPickle
(identifier_HIGHEST_PROTOCOL) identifier_HIGHEST_PROTOCOL
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Finished dumping cache_value to fs cache file.') string_'Finished dumping cache_value to fs cache file.'
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_exception) identifier_exception
)attribute
(argument_list
(concatenated_string
(string_'Could not successfully cache OAuth2 secrets on the file ') string_'Could not successfully cache OAuth2 secrets on the file '
(string_'system.') string_'system.'
)concatenated_string
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Write out to the filesystem a cache of the OAuth2 information. |
(module
(function_definition
(function_name__post_clean) function_name__post_clean
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier__post_clean) identifier__post_clean
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_password) identifier_password
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'password1') string_'password1'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_password) identifier_password
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_password_validation) identifier_password_validation
(identifier_validate_password) identifier_validate_password
)attribute
(argument_list
(identifier_password) identifier_password
(attribute
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_ValidationError) identifier_ValidationError
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_error) identifier_add_error
)attribute
(argument_list
(string_'password1') string_'password1'
(identifier_error) identifier_error
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)function_definition
)module | Run password validaton after clean methods
When clean methods are run, the user instance does not yet
exist. To properly compare model values agains the password (in
the UserAttributeSimilarityValidator), we wait until we have an
instance to compare against.
https://code.djangoproject.com/ticket/28127
https://github.com/django/django/pull/8408
Has no effect in Django prior to 1.9
May become unnecessary in Django 2.0 (if this superclass changes) |
(module
(function_definition
(function_name_stop_threadsafe) function_name_stop_threadsafe
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_stopped) identifier_stopped
)attribute
(block
(return_statement
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__loop) identifier__loop
)attribute
(identifier_run_coroutine) identifier_run_coroutine
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_TimeoutError) identifier_TimeoutError
)attribute
(block
(raise_statement
(call
(identifier_TimeoutExpiredError) identifier_TimeoutExpiredError
(argument_list
(call
(attribute
(string_"Timeout stopping task {} with {} subtasks") string_"Timeout stopping task {} with {} subtasks"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_subtasks) identifier_subtasks
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Stop this task from another thread and wait for it to finish.
This method must not be called from within the BackgroundEventLoop but
will inject self.stop() into the event loop and block until it
returns.
Raises:
TimeoutExpiredError: If the task does not stop in the given
timeout specified in __init__() |
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_val) identifier_val
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_evolver) identifier_evolver
)attribute
(argument_list
)argument_list
)call
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)argument_list
)call
(identifier_persistent) identifier_persistent
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a new PMap with key and val inserted.
>>> m1 = m(a=1, b=2)
>>> m2 = m1.set('a', 3)
>>> m3 = m1.set('c' ,4)
>>> m1
pmap({'a': 1, 'b': 2})
>>> m2
pmap({'a': 3, 'b': 2})
>>> m3
pmap({'a': 1, 'c': 4, 'b': 2}) |
(module
(function_definition
(function_name_make_metatiles) function_name_make_metatiles
(parameters
(identifier_size) identifier_size
(identifier_tiles) identifier_tiles
(default_parameter
(identifier_date_time) identifier_date_time
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_groups) identifier_groups
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_tile) identifier_tile
(identifier_tiles) identifier_tiles
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(subscript
(identifier_tile) identifier_tile
(string_'layer') string_'layer'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(identifier_groups) identifier_groups
(identifier_key) identifier_key
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_tile) identifier_tile
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_metatiles) identifier_metatiles
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_group) identifier_group
(call
(attribute
(identifier_groups) identifier_groups
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(identifier__parent_tile) identifier__parent_tile
(generator_expression
(subscript
(identifier_t) identifier_t
(string_'coord') string_'coord'
)subscript
(for_in_clause
(identifier_t) identifier_t
(identifier_group) identifier_group
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_metatiles) identifier_metatiles
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_make_multi_metatile) identifier_make_multi_metatile
(argument_list
(identifier_parent) identifier_parent
(identifier_group) identifier_group
(identifier_date_time) identifier_date_time
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_metatiles) identifier_metatiles
)return_statement
)block
)function_definition
)module | Group by layers, and make metatiles out of all the tiles which share those
properties relative to the "top level" tile which is parent of them all.
Provide a 6-tuple date_time to set the timestamp on each tile within the
metatile, or leave it as None to use the current time. |
(module
(function_definition
(function_name_by_interval_lookup) function_name_by_interval_lookup
(parameters
(identifier_self) identifier_self
(identifier_style_key) identifier_style_key
(identifier_style_value) identifier_style_value
)parameters
(block
(expression_statement
(assignment
(identifier_style_attr) identifier_style_attr
(conditional_expression
(identifier_style_key) identifier_style_key
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_style_types) identifier_style_types
)attribute
(identifier_style_key) identifier_style_key
)subscript
(identifier_bool) identifier_bool
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_intervals) identifier_intervals
(subscript
(identifier_style_value) identifier_style_value
(string_"interval") string_"interval"
)subscript
)assignment
)expression_statement
(function_definition
(function_name_proc) function_name_proc
(parameters
(identifier_value) identifier_value
(identifier_result) identifier_result
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_float) identifier_float
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)except_clause
)try_statement
(for_statement
(pattern_list
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_lookup_value) identifier_lookup_value
)pattern_list
(identifier_intervals) identifier_intervals
(block
(if_statement
(comparison_operator
(identifier_start) identifier_start
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(identifier_float) identifier_float
(argument_list
(string_"-inf") string_"-inf"
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_end) identifier_end
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_end) identifier_end
(call
(identifier_float) identifier_float
(argument_list
(string_"inf") string_"inf"
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_start) identifier_start
(identifier_value) identifier_value
(identifier_end) identifier_end
)comparison_operator
(block
(if_statement
(not_operator
(identifier_lookup_value) identifier_lookup_value
)not_operator
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render) identifier_render
)attribute
(argument_list
(boolean_operator
(identifier_style_attr) identifier_style_attr
(identifier_lookup_value) identifier_lookup_value
)boolean_operator
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
(return_statement
(identifier_proc) identifier_proc
)return_statement
)block
)function_definition
)module | Return a processor for an "interval" style value.
Parameters
----------
style_key : str
A style key.
style_value : dict
A dictionary with an "interval" key whose value consists of a
sequence of tuples where each tuple should have the form `(start,
end, x)`, where start is the start of the interval (inclusive), end
is the end of the interval, and x is either a style attribute (str)
and a boolean flag indicating to use the style attribute named by
`style_key`.
Returns
-------
A function. |
(module
(function_definition
(function_name_get_scores) function_name_get_scores
(parameters
(identifier_self) identifier_self
(identifier_y_i) identifier_y_i
(identifier_y_j) identifier_y_j
)parameters
(block
(expression_statement
(assignment
(identifier_z_scores) identifier_z_scores
(call
(attribute
(identifier_self) identifier_self
(identifier_get_zeta_i_j_given_separate_counts) identifier_get_zeta_i_j_given_separate_counts
)attribute
(argument_list
(identifier_y_i) identifier_y_i
(identifier_y_j) identifier_y_j
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_z_scores) identifier_z_scores
)return_statement
)block
)function_definition
)module | Same function as get_zeta_i_j_given_separate_counts
Parameters
----------
y_i, np.array(int)
Arrays of word counts of words occurring in positive class
y_j, np.array(int)
Returns
-------
np.array of z-scores |
(module
(function_definition
(function_name_strip_py) function_name_strip_py
(parameters
(identifier_arg) identifier_arg
)parameters
(block
(for_statement
(identifier_ext) identifier_ext
(identifier_PY_EXTENSIONS) identifier_PY_EXTENSIONS
(block
(if_statement
(call
(attribute
(identifier_arg) identifier_arg
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(identifier_ext) identifier_ext
)argument_list
)call
(block
(return_statement
(subscript
(identifier_arg) identifier_arg
(slice
(colon) colon
(unary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_ext) identifier_ext
)argument_list
)call
)unary_operator
)slice
)subscript
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Strip a trailing .py or .pyi suffix.
Return None if no such suffix is found. |
(module
(function_definition
(function_name__get_representative) function_name__get_representative
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(comparison_operator
(identifier_obj) identifier_obj
(attribute
(identifier_self) identifier_self
(identifier__parents) identifier__parents
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__parents) identifier__parents
)attribute
(identifier_obj) identifier_obj
)subscript
(identifier_obj) identifier_obj
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__weights) identifier__weights
)attribute
(identifier_obj) identifier_obj
)subscript
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__prev_next) identifier__prev_next
)attribute
(identifier_obj) identifier_obj
)subscript
(list
(identifier_obj) identifier_obj
(identifier_obj) identifier_obj
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__min_values) identifier__min_values
)attribute
(identifier_obj) identifier_obj
)subscript
(identifier_obj) identifier_obj
)assignment
)expression_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(list
(identifier_obj) identifier_obj
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_root) identifier_root
(subscript
(attribute
(identifier_self) identifier_self
(identifier__parents) identifier__parents
)attribute
(identifier_obj) identifier_obj
)subscript
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_root) identifier_root
(subscript
(identifier_path) identifier_path
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_path) identifier_path
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_root) identifier_root
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_root) identifier_root
(subscript
(attribute
(identifier_self) identifier_self
(identifier__parents) identifier__parents
)attribute
(identifier_root) identifier_root
)subscript
)assignment
)expression_statement
)block
)while_statement
(for_statement
(identifier_ancestor) identifier_ancestor
(identifier_path) identifier_path
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__parents) identifier__parents
)attribute
(identifier_ancestor) identifier_ancestor
)subscript
(identifier_root) identifier_root
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_root) identifier_root
)return_statement
)block
)function_definition
)module | Finds and returns the root of the set containing `obj`. |
(module
(function_definition
(function_name_error_asymptotes) function_name_error_asymptotes
(parameters
(identifier_pca) identifier_pca
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ax) identifier_ax
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_"ax") string_"ax"
(call
(identifier_current_axes) identifier_current_axes
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_lon) identifier_lon
(identifier_lat) identifier_lat
)pattern_list
(call
(attribute
(identifier_pca) identifier_pca
(identifier_plane_errors) identifier_plane_errors
)attribute
(argument_list
(string_'upper') string_'upper'
(keyword_argument
(identifier_n) identifier_n
(integer_1000) integer_1000
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_plot) identifier_plot
)attribute
(argument_list
(identifier_lon) identifier_lon
(identifier_lat) identifier_lat
(string_'-') string_'-'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_lon) identifier_lon
(identifier_lat) identifier_lat
)pattern_list
(call
(attribute
(identifier_pca) identifier_pca
(identifier_plane_errors) identifier_plane_errors
)attribute
(argument_list
(string_'lower') string_'lower'
(keyword_argument
(identifier_n) identifier_n
(integer_1000) integer_1000
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_plot) identifier_plot
)attribute
(argument_list
(identifier_lon) identifier_lon
(identifier_lat) identifier_lat
(string_'-') string_'-'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_plane) identifier_plane
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_pca) identifier_pca
(identifier_strike_dip) identifier_strike_dip
)attribute
(argument_list
)argument_list
)call
)list_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Plots asymptotic error bounds for
hyperbola on a stereonet. |
(module
(function_definition
(function_name__collapse_state) function_name__collapse_state
(parameters
(typed_parameter
(identifier_args) identifier_args
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(subscript
(identifier_args) identifier_args
(string_'index') string_'index'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(identifier_args) identifier_args
(string_'result') string_'result'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prob_one) identifier_prob_one
(subscript
(identifier_args) identifier_args
(string_'prob_one') string_'prob_one'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(identifier__state_shard) identifier__state_shard
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_normalization) identifier_normalization
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(conditional_expression
(identifier_prob_one) identifier_prob_one
(identifier_result) identifier_result
(binary_operator
(integer_1) integer_1
(identifier_prob_one) identifier_prob_one
)binary_operator
)conditional_expression
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_state) identifier_state
(parenthesized_expression
(binary_operator
(binary_operator
(call
(identifier__one_projector) identifier__one_projector
(argument_list
(identifier_args) identifier_args
(identifier_index) identifier_index
)argument_list
)call
(identifier_result) identifier_result
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(call
(identifier__one_projector) identifier__one_projector
(argument_list
(identifier_args) identifier_args
(identifier_index) identifier_index
)argument_list
)call
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_result) identifier_result
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)parenthesized_expression
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_state) identifier_state
(identifier_normalization) identifier_normalization
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Projects state shards onto the appropriate post measurement state.
This function makes no assumptions about the interpretation of quantum
theory.
Args:
args: The args from shard_num_args. |
(module
(function_definition
(function_name__handle_author) function_name__handle_author
(parameters
(identifier_author) identifier_author
)parameters
(block
(expression_statement
(assignment
(identifier_lname) identifier_lname
(call
(attribute
(identifier_author) identifier_author
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_auinit) identifier_auinit
(subscript
(subscript
(identifier_lname) identifier_lname
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_final) identifier_final
(call
(attribute
(subscript
(identifier_lname) identifier_lname
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_final) identifier_final
(list
(string_'JR.') string_'JR.'
(string_'III') string_'III'
)list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_aulast) identifier_aulast
(binary_operator
(binary_operator
(call
(attribute
(subscript
(identifier_lname) identifier_lname
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(string_" ") string_" "
)binary_operator
(call
(attribute
(identifier_final) identifier_final
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_".") string_"."
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_aulast) identifier_aulast
(identifier_final) identifier_final
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"malformed author name") string_"malformed author name"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(identifier_aulast) identifier_aulast
(identifier_auinit) identifier_auinit
)expression_list
)return_statement
)block
)function_definition
)module | Yields aulast and auinit from an author's full name.
Parameters
----------
author : str or unicode
Author fullname, e.g. "Richard L. Nixon".
Returns
-------
aulast : str
Author surname.
auinit : str
Author first-initial. |
(module
(function_definition
(function_name_count_sci_extensions) function_name_count_sci_extensions
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_num_sci) identifier_num_sci
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extname) identifier_extname
(string_'SCI') string_'SCI'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hdu_list) identifier_hdu_list
(call
(attribute
(identifier_fileutil) identifier_fileutil
(identifier_openImage) identifier_openImage
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_memmap) identifier_memmap
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_extn) identifier_extn
(identifier_hdu_list) identifier_hdu_list
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'extname') string_'extname'
(attribute
(identifier_extn) identifier_extn
(identifier_header) identifier_header
)attribute
)comparison_operator
(comparison_operator
(subscript
(attribute
(identifier_extn) identifier_extn
(identifier_header) identifier_header
)attribute
(string_'extname') string_'extname'
)subscript
(identifier_extname) identifier_extname
)comparison_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_num_sci) identifier_num_sci
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_num_sci) identifier_num_sci
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_extname) identifier_extname
(string_'PRIMARY') string_'PRIMARY'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_num_sci) identifier_num_sci
(integer_1) integer_1
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_hdu_list) identifier_hdu_list
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_num_sci) identifier_num_sci
(identifier_extname) identifier_extname
)expression_list
)return_statement
)block
)function_definition
)module | Return the number of SCI extensions and the EXTNAME from a input MEF file. |
(module
(function_definition
(function_name_check_power) function_name_check_power
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_packet) identifier_packet
(call
(identifier_bytearray) identifier_bytearray
(argument_list
(integer_16) integer_16
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_packet) identifier_packet
(integer_0) integer_0
)subscript
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_send_packet) identifier_send_packet
)attribute
(argument_list
(integer_0x6a) integer_0x6a
(identifier_packet) identifier_packet
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_err) identifier_err
(binary_operator
(subscript
(identifier_response) identifier_response
(integer_0x22) integer_0x22
)subscript
(parenthesized_expression
(binary_operator
(subscript
(identifier_response) identifier_response
(integer_0x23) integer_0x23
)subscript
(integer_8) integer_8
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_err) identifier_err
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(attribute
(identifier_self) identifier_self
(identifier_decrypt) identifier_decrypt
)attribute
(argument_list
(call
(identifier_bytes) identifier_bytes
(argument_list
(subscript
(identifier_response) identifier_response
(slice
(integer_0x38) integer_0x38
(colon) colon
)slice
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
)argument_list
)call
(identifier_int) identifier_int
)comparison_operator
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
(integer_1) integer_1
)comparison_operator
(comparison_operator
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
(integer_3) integer_3
)comparison_operator
)boolean_operator
(comparison_operator
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
(integer_0xFD) integer_0xFD
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(call
(identifier_ord) identifier_ord
(argument_list
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(call
(identifier_ord) identifier_ord
(argument_list
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
)argument_list
)call
(integer_3) integer_3
)comparison_operator
)boolean_operator
(comparison_operator
(call
(identifier_ord) identifier_ord
(argument_list
(subscript
(identifier_payload) identifier_payload
(integer_0x4) integer_0x4
)subscript
)argument_list
)call
(integer_0xFD) integer_0xFD
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_state) identifier_state
)return_statement
)block
)if_statement
)block
)function_definition
)module | Returns the power state of the smart plug. |
(module
(function_definition
(function_name_OnContextMenu) function_name_OnContextMenu
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_PopupMenu) identifier_PopupMenu
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
(identifier_contextmenu) identifier_contextmenu
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_event) identifier_event
(identifier_Skip) identifier_Skip
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Context menu event handler |
(module
(function_definition
(function_name_get_default_keystore) function_name_get_default_keystore
(parameters
(default_parameter
(identifier_prefix) identifier_prefix
(string_'AG_') string_'AG_'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(string_'%s_KEYSTORE_PATH') string_'%s_KEYSTORE_PATH'
(identifier_prefix) identifier_prefix
)binary_operator
(attribute
(attribute
(identifier_config) identifier_config
(identifier_keystore) identifier_keystore
)attribute
(identifier_path) identifier_path
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_storepass) identifier_storepass
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(string_'%s_KEYSTORE_STOREPASS') string_'%s_KEYSTORE_STOREPASS'
(identifier_prefix) identifier_prefix
)binary_operator
(attribute
(attribute
(identifier_config) identifier_config
(identifier_keystore) identifier_keystore
)attribute
(identifier_storepass) identifier_storepass
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_keypass) identifier_keypass
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(string_'%s_KEYSTORE_KEYPASS') string_'%s_KEYSTORE_KEYPASS'
(identifier_prefix) identifier_prefix
)binary_operator
(attribute
(attribute
(identifier_config) identifier_config
(identifier_keystore) identifier_keystore
)attribute
(identifier_keypass) identifier_keypass
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_alias) identifier_alias
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(string_'%s_KEYSTORE_ALIAS') string_'%s_KEYSTORE_ALIAS'
(identifier_prefix) identifier_prefix
)binary_operator
(attribute
(attribute
(identifier_config) identifier_config
(identifier_keystore) identifier_keystore
)attribute
(identifier_alias) identifier_alias
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(tuple
(identifier_path) identifier_path
(identifier_storepass) identifier_storepass
(identifier_keypass) identifier_keypass
(identifier_alias) identifier_alias
)tuple
)return_statement
)block
)function_definition
)module | Gets the default keystore information based on environment variables and a prefix.
$PREFIX_KEYSTORE_PATH - keystore file path, default is opt/digger/debug.keystore
$PREFIX_KEYSTORE_STOREPASS - keystore storepass, default is android
$PREFIX_KEYSTORE_KEYPASS - keystore keypass, default is android
$PREFIX_KEYSTORE_ALIAS - keystore alias, default is androiddebug
:param prefix(str) - A prefix to be used for environment variables, default is AG_.
Returns:
A tuple containing the keystore information: (path, storepass, keypass, alias) |
(module
(function_definition
(function_name_from_text) function_name_from_text
(parameters
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier__by_text) identifier__by_text
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_text) identifier_text
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier__unknown_class_pattern) identifier__unknown_class_pattern
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_match) identifier_match
(None) None
)comparison_operator
(block
(raise_statement
(identifier_UnknownRdataclass) identifier_UnknownRdataclass
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(integer_65535) integer_65535
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"class must be between >= 0 and <= 65535") string_"class must be between >= 0 and <= 65535"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Convert text into a DNS rdata class value.
@param text: the text
@type text: string
@rtype: int
@raises dns.rdataclass.UnknownRdataClass: the class is unknown
@raises ValueError: the rdata class value is not >= 0 and <= 65535 |
(module
(function_definition
(function_name_get_precision) function_name_get_precision
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_config_str) identifier_config_str
(subscript
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_raw_sensor_strings) identifier_raw_sensor_strings
)attribute
(integer_1) integer_1
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(integer_4) integer_4
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bit_base) identifier_bit_base
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_config_str) identifier_config_str
(integer_16) integer_16
)argument_list
)call
(integer_5) integer_5
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_bit_base) identifier_bit_base
(integer_9) integer_9
)binary_operator
)return_statement
)block
)function_definition
)module | Get the current precision from the sensor.
:returns: sensor resolution from 9-12 bits
:rtype: int |
(module
(function_definition
(function_name_find_slot) function_name_find_slot
(parameters
(identifier_self) identifier_self
(identifier_wanted) identifier_wanted
(default_parameter
(identifier_slots) identifier_slots
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_slot) identifier_slot
(call
(attribute
(identifier_self) identifier_self
(identifier_find_slots) identifier_find_slots
)attribute
(argument_list
(identifier_wanted) identifier_wanted
(identifier_slots) identifier_slots
)argument_list
)call
(block
(return_statement
(identifier_slot) identifier_slot
)return_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Searches the given slots or, if not given,
active hotbar slot, hotbar, inventory, open window in this order.
Args:
wanted: function(Slot) or Slot or itemID or (itemID, metadata)
Returns:
Optional[Slot]: The first slot containing the item
or None if not found. |
(module
(function_definition
(function_name_read_file) function_name_read_file
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_gen) identifier_gen
(call
(attribute
(identifier_textfile) identifier_textfile
(identifier_read_separated_lines_generator) identifier_read_separated_lines_generator
)attribute
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_max_columns) identifier_max_columns
(integer_6) integer_6
)keyword_argument
(keyword_argument
(identifier_ignore_lines_starting_with) identifier_ignore_lines_starting_with
(list
(string_';;') string_';;'
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utterances) identifier_utterances
(call
(attribute
(identifier_collections) identifier_collections
(identifier_defaultdict) identifier_defaultdict
)attribute
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_record) identifier_record
(identifier_gen) identifier_gen
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(subscript
(identifier_record) identifier_record
(slice
(integer_1) integer_1
(colon) colon
(call
(identifier_len) identifier_len
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)argument_list
)call
(block
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_i) identifier_i
(integer_1) integer_1
)comparison_operator
(comparison_operator
(identifier_i) identifier_i
(integer_2) integer_2
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_i) identifier_i
(integer_4) integer_4
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_values) identifier_values
(identifier_i) identifier_i
)subscript
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_values) identifier_values
(identifier_i) identifier_i
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(subscript
(identifier_utterances) identifier_utterances
(subscript
(identifier_record) identifier_record
(integer_0) integer_0
)subscript
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_utterances) identifier_utterances
)return_statement
)block
)function_definition
)module | Reads a ctm file.
Args:
path (str): Path to the file
Returns:
(dict): Dictionary with entries.
Example::
>>> read_file('/path/to/file.txt')
{
'wave-ab': [
['1', 0.00, 0.07, 'HI', 1],
['1', 0.09, 0.08, 'AH', 1]
],
'wave-xy': [
['1', 0.00, 0.07, 'HI', 1],
['1', 0.09, 0.08, 'AH', 1]
]
} |
(module
(function_definition
(function_name_iter_files) function_name_iter_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_file_iter) identifier_file_iter
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_file_iter) identifier_file_iter
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_iter) identifier_iter
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_file_iter) identifier_file_iter
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Iterate over files. |
(module
(function_definition
(function_name_crossover) function_name_crossover
(parameters
(identifier_cross) identifier_cross
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_cross) identifier_cross
)argument_list
)call
)decorator
(function_definition
(function_name_inspyred_crossover) function_name_inspyred_crossover
(parameters
(identifier_random) identifier_random
(identifier_candidates) identifier_candidates
(identifier_args) identifier_args
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_candidates) identifier_candidates
)argument_list
)call
(integer_2) integer_2
)binary_operator
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_candidates) identifier_candidates
(subscript
(identifier_candidates) identifier_candidates
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_moms) identifier_moms
(subscript
(identifier_candidates) identifier_candidates
(slice
(colon) colon
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dads) identifier_dads
(subscript
(identifier_candidates) identifier_candidates
(slice
(integer_1) integer_1
(colon) colon
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_children) identifier_children
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(tuple_pattern
(identifier_mom) identifier_mom
(identifier_dad) identifier_dad
)tuple_pattern
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_moms) identifier_moms
(identifier_dads) identifier_dads
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_cross) identifier_cross
(identifier_index) identifier_index
)attribute
(identifier_i) identifier_i
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_offspring) identifier_offspring
(call
(identifier_cross) identifier_cross
(argument_list
(identifier_random) identifier_random
(identifier_mom) identifier_mom
(identifier_dad) identifier_dad
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_o) identifier_o
(identifier_offspring) identifier_offspring
(block
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_o) identifier_o
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_children) identifier_children
)return_statement
)block
)function_definition
)decorated_definition
(expression_statement
(assignment
(attribute
(identifier_inspyred_crossover) identifier_inspyred_crossover
(identifier_single_crossover) identifier_single_crossover
)attribute
(identifier_cross) identifier_cross
)assignment
)expression_statement
(return_statement
(identifier_inspyred_crossover) identifier_inspyred_crossover
)return_statement
)block
)function_definition
)module | Return an inspyred crossover function based on the given function.
This function generator takes a function that operates on only
two parent candidates to produce an iterable sequence of offspring
(typically two). The generator handles the pairing of selected
parents and collecting of all offspring.
The generated function chooses every odd candidate as a 'mom' and
every even as a 'dad' (discounting the last candidate if there is
an odd number). For each mom-dad pair, offspring are produced via
the `cross` function.
The given function ``cross`` must have the following signature::
offspring = cross(random, mom, dad, args)
This function is most commonly used as a function decorator with
the following usage::
@crossover
def cross(random, mom, dad, args):
# Implementation of paired crossing
pass
The generated function also contains an attribute named
``single_crossover`` which holds the original crossover function.
In this way, the original single-set-of-parents function can be
retrieved if necessary. |
(module
(function_definition
(function_name_struct) function_name_struct
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_var) identifier_var
(identifier_fmap) identifier_fmap
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__def) identifier__def
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(identifier_var) identifier_var
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_fmap) identifier_fmap
(identifier_get_outputs) identifier_get_outputs
)attribute
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_var) identifier_var
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | XML-RPC-friendly representation of the current object state |
(module
(function_definition
(function_name_jsonobjlen) function_name_jsonobjlen
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_path) identifier_path
(call
(attribute
(identifier_Path) identifier_Path
(identifier_rootPath) identifier_rootPath
)attribute
(argument_list
)argument_list
)call
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_'JSON.OBJLEN') string_'JSON.OBJLEN'
(identifier_name) identifier_name
(call
(identifier_str_path) identifier_str_path
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the length of the dictionary JSON value under ``path`` at key
``name`` |
(module
(function_definition
(function_name_send_mail) function_name_send_mail
(parameters
(identifier_subject) identifier_subject
(identifier_body) identifier_body
(identifier_email_from) identifier_email_from
(identifier_emails_to) identifier_emails_to
)parameters
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(identifier_MIMEText) identifier_MIMEText
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_msg) identifier_msg
(string_'Subject') string_'Subject'
)subscript
(identifier_subject) identifier_subject
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_msg) identifier_msg
(string_'From') string_'From'
)subscript
(identifier_email_from) identifier_email_from
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_msg) identifier_msg
(string_'To') string_'To'
)subscript
(call
(attribute
(string_", ") string_", "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_emails_to) identifier_emails_to
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_smtplib) identifier_smtplib
(identifier_SMTP) identifier_SMTP
)attribute
(argument_list
(string_'smtp.gmail.com') string_'smtp.gmail.com'
(integer_587) integer_587
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_ehlo) identifier_ehlo
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_starttls) identifier_starttls
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_ehlo) identifier_ehlo
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_login) identifier_login
)attribute
(argument_list
(identifier_SMTP_USERNAME) identifier_SMTP_USERNAME
(identifier_SMTP_PASSWORD) identifier_SMTP_PASSWORD
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_sendmail) identifier_sendmail
)attribute
(argument_list
(identifier_email_from) identifier_email_from
(identifier_emails_to) identifier_emails_to
(call
(attribute
(identifier_msg) identifier_msg
(identifier_as_string) identifier_as_string
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_quit) identifier_quit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Funxtion for sending email though gmail |
(module
(function_definition
(function_name_init_database) function_name_init_database
(parameters
(default_parameter
(identifier_connection) identifier_connection
(None) None
)default_parameter
(default_parameter
(identifier_dbname) identifier_dbname
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_connection) identifier_connection
(boolean_operator
(identifier_connection) identifier_connection
(call
(identifier_connect) identifier_connect
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dbname) identifier_dbname
(boolean_operator
(identifier_dbname) identifier_dbname
(subscript
(subscript
(attribute
(identifier_bigchaindb) identifier_bigchaindb
(identifier_config) identifier_config
)attribute
(string_'database') string_'database'
)subscript
(string_'name') string_'name'
)subscript
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_create_database) identifier_create_database
(argument_list
(identifier_connection) identifier_connection
(identifier_dbname) identifier_dbname
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_create_tables) identifier_create_tables
(argument_list
(identifier_connection) identifier_connection
(identifier_dbname) identifier_dbname
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initialize the configured backend for use with BigchainDB.
Creates a database with :attr:`dbname` with any required tables
and supporting indexes.
Args:
connection (:class:`~bigchaindb.backend.connection.Connection`): an
existing connection to use to initialize the database.
Creates one if not given.
dbname (str): the name of the database to create.
Defaults to the database name given in the BigchainDB
configuration. |
(module
(function_definition
(function_name_make_noise_surface) function_name_make_noise_surface
(parameters
(default_parameter
(identifier_dims) identifier_dims
(identifier_DEFAULT_DIMS) identifier_DEFAULT_DIMS
)default_parameter
(default_parameter
(identifier_blur) identifier_blur
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_seed) identifier_seed
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_seed) identifier_seed
)attribute
(argument_list
(identifier_seed) identifier_seed
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_gaussian_filter) identifier_gaussian_filter
(argument_list
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_random) identifier_random
)attribute
(identifier_normal) identifier_normal
)attribute
(argument_list
(keyword_argument
(identifier_size) identifier_size
(identifier_dims) identifier_dims
)keyword_argument
)argument_list
)call
(identifier_blur) identifier_blur
)argument_list
)call
)return_statement
)block
)function_definition
)module | Makes a surface by generating random noise and blurring it.
Args:
dims (pair): the dimensions of the surface to create
blur (float): the amount of Gaussian blur to apply
seed (int): a random seed to use (optional)
Returns:
surface: A surface. |
(module
(function_definition
(function_name_push_state) function_name_push_state
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_new_file) identifier_new_file
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(string_'Saves the current error state to parse subpackages') string_'Saves the current error state to parse subpackages'
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_subpackages) identifier_subpackages
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'detected_type') string_'detected_type'
(attribute
(identifier_self) identifier_self
(identifier_detected_type) identifier_detected_type
)attribute
)pair
(pair
(string_'message_tree') string_'message_tree'
(attribute
(identifier_self) identifier_self
(identifier_message_tree) identifier_message_tree
)attribute
)pair
(pair
(string_'resources') string_'resources'
(attribute
(identifier_self) identifier_self
(identifier_pushable_resources) identifier_pushable_resources
)attribute
)pair
(pair
(string_'metadata') string_'metadata'
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_message_tree) identifier_message_tree
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_pushable_resources) identifier_pushable_resources
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(dictionary
(pair
(string_'requires_chrome') string_'requires_chrome'
(False) False
)pair
(pair
(string_'listed') string_'listed'
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'listed') string_'listed'
)argument_list
)call
)pair
(pair
(string_'validator_version') string_'validator_version'
(attribute
(identifier_validator) identifier_validator
(identifier___version__) identifier___version__
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_package_stack) identifier_package_stack
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_file) identifier_new_file
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Saves the current error state to parse subpackages |
(module
(function_definition
(function_name_async_set_operation_mode) function_name_async_set_operation_mode
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_operation_mode) identifier_operation_mode
(type
(identifier_OperationMode) identifier_OperationMode
)type
)typed_parameter
(typed_default_parameter
(identifier_password) identifier_password
(type
(identifier_str) identifier_str
)type
(string_'') string_''
)typed_default_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__protocol) identifier__protocol
)attribute
(identifier_async_execute) identifier_async_execute
)attribute
(argument_list
(call
(identifier_SetOpModeCommand) identifier_SetOpModeCommand
(argument_list
(identifier_operation_mode) identifier_operation_mode
)argument_list
)call
(keyword_argument
(identifier_password) identifier_password
(identifier_password) identifier_password
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Set the operation mode on the base unit.
:param operation_mode: the operation mode to change to
:param password: if specified, will be used instead of the password
property when issuing the command |
(module
(function_definition
(function_name_startResponse) function_name_startResponse
(parameters
(identifier_self) identifier_self
(identifier_status) identifier_status
(identifier_headers) identifier_headers
(default_parameter
(identifier_excInfo) identifier_excInfo
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(identifier_status) identifier_status
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
(identifier_headers) identifier_headers
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reactor) identifier_reactor
)attribute
(identifier_callInThread) identifier_callInThread
)attribute
(argument_list
(identifier_responseInColor) identifier_responseInColor
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_status) identifier_status
(identifier_headers) identifier_headers
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_write) identifier_write
)attribute
)return_statement
)block
)function_definition
)module | extends startResponse to call speakerBox in a thread |
(module
(function_definition
(function_name___remove_activity) function_name___remove_activity
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(string_"select count(*) as count from facts where activity_id = ?") string_"select count(*) as count from facts where activity_id = ?"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bound_facts) identifier_bound_facts
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
(identifier_query) identifier_query
(tuple
(identifier_id) identifier_id
)tuple
)argument_list
)call
(string_'count') string_'count'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_bound_facts) identifier_bound_facts
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"UPDATE activities SET deleted = 1 WHERE id = ?") string_"UPDATE activities SET deleted = 1 WHERE id = ?"
(tuple
(identifier_id) identifier_id
)tuple
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"delete from activities where id = ?") string_"delete from activities where id = ?"
(tuple
(identifier_id) identifier_id
)tuple
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | check if we have any facts with this activity and behave accordingly
if there are facts - sets activity to deleted = True
else, just remove it |
(module
(function_definition
(function_name_orientnii) function_name_orientnii
(parameters
(identifier_imfile) identifier_imfile
)parameters
(block
(expression_statement
(assignment
(identifier_strorient) identifier_strorient
(list
(string_'L-R') string_'L-R'
(string_'S-I') string_'S-I'
(string_'A-P') string_'A-P'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_niiorient) identifier_niiorient
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_niixyz) identifier_niixyz
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(integer_3) integer_3
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_np) identifier_np
(identifier_int8) identifier_int8
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_imfile) identifier_imfile
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_nim) identifier_nim
(call
(attribute
(identifier_nib) identifier_nib
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_imfile) identifier_imfile
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pct) identifier_pct
(call
(attribute
(identifier_nim) identifier_nim
(identifier_get_data) identifier_get_data
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_A) identifier_A
(call
(attribute
(identifier_nim) identifier_nim
(identifier_get_sform) identifier_get_sform
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_3) integer_3
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_niixyz) identifier_niixyz
(identifier_i) identifier_i
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_argmax) identifier_argmax
)attribute
(argument_list
(call
(identifier_abs) identifier_abs
(argument_list
(subscript
(identifier_A) identifier_A
(identifier_i) identifier_i
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_niiorient) identifier_niiorient
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_strorient) identifier_strorient
(subscript
(identifier_niixyz) identifier_niixyz
(identifier_i) identifier_i
)subscript
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(print_statement
(identifier_niiorient) identifier_niiorient
)print_statement
)block
)if_statement
)block
)function_definition
)module | Get the orientation from NIfTI sform. Not fully functional yet. |
(module
(function_definition
(function_name_password_get) function_name_password_get
(parameters
(default_parameter
(identifier_username) identifier_username
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_password) identifier_password
(call
(attribute
(identifier_keyring) identifier_keyring
(identifier_get_password) identifier_get_password
)attribute
(argument_list
(string_'supernova') string_'supernova'
(identifier_username) identifier_username
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_password) identifier_password
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_split_username) identifier_split_username
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(attribute
(identifier_username) identifier_username
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(parenthesized_expression
(concatenated_string
(string_"Couldn't find a credential for {0}:{1}. You need to set one ") string_"Couldn't find a credential for {0}:{1}. You need to set one "
(string_"with: supernova-keyring -s {0} {1}") string_"with: supernova-keyring -s {0} {1}"
)concatenated_string
)parenthesized_expression
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(identifier_split_username) identifier_split_username
)list_splat
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_LookupError) identifier_LookupError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_password) identifier_password
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieves a password from the keychain based on the environment and
configuration parameter pair.
If this fails, None is returned. |
(module
(function_definition
(function_name_body) function_name_body
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__auto_decode) identifier__auto_decode
)attribute
)not_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__body) identifier__body
)attribute
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'body') string_'body'
(attribute
(identifier_self) identifier_self
(identifier__decode_cache) identifier__decode_cache
)attribute
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__decode_cache) identifier__decode_cache
)attribute
(string_'body') string_'body'
)subscript
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(identifier_try_utf8_decode) identifier_try_utf8_decode
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__body) identifier__body
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__decode_cache) identifier__decode_cache
)attribute
(string_'body') string_'body'
)subscript
(identifier_body) identifier_body
)assignment
)expression_statement
(return_statement
(identifier_body) identifier_body
)return_statement
)block
)function_definition
)module | Return the Message Body.
If auto_decode is enabled, the body will automatically be
decoded using decode('utf-8') if possible.
:rtype: bytes|str|unicode |
(module
(function_definition
(function_name_slice_indexer) function_name_slice_indexer
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_end) identifier_end
(None) None
)default_parameter
(default_parameter
(identifier_step) identifier_step
(None) None
)default_parameter
(default_parameter
(identifier_kind) identifier_kind
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_start_slice) identifier_start_slice
(identifier_end_slice) identifier_end_slice
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_slice_locs) identifier_slice_locs
)attribute
(argument_list
(identifier_start) identifier_start
(identifier_end) identifier_end
(keyword_argument
(identifier_step) identifier_step
(identifier_step) identifier_step
)keyword_argument
(keyword_argument
(identifier_kind) identifier_kind
(identifier_kind) identifier_kind
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_is_scalar) identifier_is_scalar
(argument_list
(identifier_start_slice) identifier_start_slice
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(string_"Start slice bound is non-scalar") string_"Start slice bound is non-scalar"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_is_scalar) identifier_is_scalar
(argument_list
(identifier_end_slice) identifier_end_slice
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(string_"End slice bound is non-scalar") string_"End slice bound is non-scalar"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_slice) identifier_slice
(argument_list
(identifier_start_slice) identifier_start_slice
(identifier_end_slice) identifier_end_slice
(identifier_step) identifier_step
)argument_list
)call
)return_statement
)block
)function_definition
)module | For an ordered or unique index, compute the slice indexer for input
labels and step.
Parameters
----------
start : label, default None
If None, defaults to the beginning
end : label, default None
If None, defaults to the end
step : int, default None
kind : string, default None
Returns
-------
indexer : slice
Raises
------
KeyError : If key does not exist, or key is not unique and index is
not ordered.
Notes
-----
This function assumes that the data is sorted, so use at your own peril
Examples
---------
This is a method on all index types. For example you can do:
>>> idx = pd.Index(list('abcd'))
>>> idx.slice_indexer(start='b', end='c')
slice(1, 3)
>>> idx = pd.MultiIndex.from_arrays([list('abcd'), list('efgh')])
>>> idx.slice_indexer(start='b', end=('c', 'g'))
slice(1, 3) |
(module
(function_definition
(function_name_add_parent) function_name_add_parent
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)parameters
(block
(expression_statement
(call
(attribute
(identifier_parent) identifier_parent
(identifier_add_child) identifier_add_child
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_parent) identifier_parent
)assignment
)expression_statement
(return_statement
(identifier_parent) identifier_parent
)return_statement
)block
)function_definition
)module | Adds self as child of parent, then adds parent. |
(module
(function_definition
(function_name_get_output) function_name_get_output
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_pdata) identifier_pdata
(call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_POINTER) identifier_POINTER
)attribute
(argument_list
(identifier_mx_uint) identifier_mx_uint
)argument_list
)call
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ndim) identifier_ndim
(call
(identifier_mx_uint) identifier_mx_uint
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__check_call) identifier__check_call
(argument_list
(call
(attribute
(identifier__LIB) identifier__LIB
(identifier_MXPredGetOutputShape) identifier_MXPredGetOutputShape
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)attribute
(identifier_index) identifier_index
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_pdata) identifier_pdata
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_ndim) identifier_ndim
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_shape) identifier_shape
(call
(identifier_tuple) identifier_tuple
(argument_list
(subscript
(identifier_pdata) identifier_pdata
(slice
(colon) colon
(attribute
(identifier_ndim) identifier_ndim
(identifier_value) identifier_value
)attribute
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(identifier_shape) identifier_shape
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_np) identifier_np
(identifier_float32) identifier_float32
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__check_call) identifier__check_call
(argument_list
(call
(attribute
(identifier__LIB) identifier__LIB
(identifier_MXPredGetOutput) identifier_MXPredGetOutput
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)attribute
(call
(identifier_mx_uint) identifier_mx_uint
(argument_list
(identifier_index) identifier_index
)argument_list
)call
(call
(attribute
(attribute
(identifier_data) identifier_data
(identifier_ctypes) identifier_ctypes
)attribute
(identifier_data_as) identifier_data_as
)attribute
(argument_list
(identifier_mx_float_p) identifier_mx_float_p
)argument_list
)call
(call
(identifier_mx_uint) identifier_mx_uint
(argument_list
(attribute
(identifier_data) identifier_data
(identifier_size) identifier_size
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Get the index-th output.
Parameters
----------
index : int
The index of output.
Returns
-------
out : numpy array.
The output array. |
(module
(function_definition
(function_name__quadratic_sum_cost) function_name__quadratic_sum_cost
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_state) identifier_state
(type
(identifier__STATE) identifier__STATE
)type
)typed_parameter
)parameters
(type
(identifier_float) identifier_float
)type
(block
(expression_statement
(assignment
(identifier_cost) identifier_cost
(float_0.0) float_0.0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_len) identifier_total_len
(call
(identifier_float) identifier_float
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__c) identifier__c
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_seqs) identifier_seqs
(identifier__) identifier__
)pattern_list
(identifier_state) identifier_state
)assignment
)expression_statement
(for_statement
(identifier_seq) identifier_seq
(identifier_seqs) identifier_seqs
(block
(expression_statement
(augmented_assignment
(identifier_cost) identifier_cost
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_seq) identifier_seq
)argument_list
)call
(identifier_total_len) identifier_total_len
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(unary_operator
(identifier_cost) identifier_cost
)unary_operator
)return_statement
)block
)function_definition
)module | Cost function that sums squares of lengths of sequences.
Args:
state: Search state, not mutated.
Returns:
Cost which is minus the normalized quadratic sum of each linear
sequence section in the state. This promotes single, long linear
sequence solutions and converges to number -1. The solution with a
lowest cost consists of every node being a single sequence and is
always less than 0. |
(module
(function_definition
(function_name_get_resource_url) function_name_get_resource_url
(parameters
(identifier_resource) identifier_resource
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_model_path) identifier_model_path
(argument_list
(identifier_resource) identifier_resource
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_urlparse) identifier_urlparse
(identifier_urlparse) identifier_urlparse
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_parsed) identifier_parsed
(integer_1) integer_1
)subscript
(string_"") string_""
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_urlparse) identifier_urlparse
(identifier_urlunparse) identifier_urlunparse
)attribute
(argument_list
(identifier_parsed) identifier_parsed
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the URL for the given resource. |
(module
(function_definition
(function_name_hpx_to_axes) function_name_hpx_to_axes
(parameters
(identifier_h) identifier_h
(identifier_npix) identifier_npix
)parameters
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(attribute
(identifier_h) identifier_h
(identifier_ebins) identifier_ebins
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_z) identifier_z
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(binary_operator
(subscript
(identifier_npix) identifier_npix
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_x) identifier_x
(identifier_z) identifier_z
)expression_list
)return_statement
)block
)function_definition
)module | Generate a sequence of bin edge vectors corresponding to the
axes of a HPX object. |
(module
(function_definition
(function_name_remove_droppable) function_name_remove_droppable
(parameters
(identifier_self) identifier_self
(identifier_droppable_id) identifier_droppable_id
)parameters
(block
(expression_statement
(assignment
(identifier_updated_droppables) identifier_updated_droppables
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_droppable) identifier_droppable
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_my_osid_object_form) identifier_my_osid_object_form
)attribute
(identifier__my_map) identifier__my_map
)attribute
(string_'droppables') string_'droppables'
)subscript
(block
(if_statement
(comparison_operator
(subscript
(identifier_droppable) identifier_droppable
(string_'id') string_'id'
)subscript
(identifier_droppable_id) identifier_droppable_id
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_updated_droppables) identifier_updated_droppables
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_droppable) identifier_droppable
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_my_osid_object_form) identifier_my_osid_object_form
)attribute
(identifier__my_map) identifier__my_map
)attribute
(string_'droppables') string_'droppables'
)subscript
(identifier_updated_droppables) identifier_updated_droppables
)assignment
)expression_statement
)block
)function_definition
)module | remove a droppable, given the id |
(module
(function_definition
(function_name_tail) function_name_tail
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_n) identifier_n
(integer_5) integer_5
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_MultiIndex) identifier_MultiIndex
(argument_list
(list_comprehension
(call
(attribute
(identifier_v) identifier_v
(identifier_tail) identifier_tail
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
)for_in_clause
)list_comprehension
(attribute
(identifier_self) identifier_self
(identifier_names) identifier_names
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return MultiIndex with the last n values in each column.
Parameters
----------
n : int
Number of values.
Returns
-------
MultiIndex
MultiIndex containing the last n values in each column. |
(module
(function_definition
(function_name__printUUID) function_name__printUUID
(parameters
(identifier_uuid) identifier_uuid
(default_parameter
(identifier_detail) identifier_detail
(string_'word') string_'word'
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_detail) identifier_detail
(identifier_int) identifier_int
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_detail) identifier_detail
(subscript
(identifier_detailNum) identifier_detailNum
(identifier_detail) identifier_detail
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_detail) identifier_detail
(subscript
(identifier_detailNum) identifier_detailNum
(string_'word') string_'word'
)subscript
)comparison_operator
(block
(return_statement
(identifier_uuid) identifier_uuid
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_uuid) identifier_uuid
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(string_"%s...%s") string_"%s...%s"
(tuple
(subscript
(identifier_uuid) identifier_uuid
(slice
(colon) colon
(integer_4) integer_4
)slice
)subscript
(subscript
(identifier_uuid) identifier_uuid
(slice
(unary_operator
(integer_4) integer_4
)unary_operator
(colon) colon
)slice
)subscript
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Return friendly abbreviated string for uuid. |
(module
(function_definition
(function_name_set_regressor_interface_params) function_name_set_regressor_interface_params
(parameters
(identifier_spec) identifier_spec
(identifier_features) identifier_features
(identifier_output_features) identifier_output_features
)parameters
(block
(if_statement
(comparison_operator
(identifier_output_features) identifier_output_features
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_output_features) identifier_output_features
(list
(tuple
(string_"predicted_class") string_"predicted_class"
(call
(attribute
(identifier_datatypes) identifier_datatypes
(identifier_Double) identifier_Double
)attribute
(argument_list
)argument_list
)call
)tuple
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_output_features) identifier_output_features
(call
(attribute
(identifier__fm) identifier__fm
(identifier_process_or_validate_features) identifier_process_or_validate_features
)attribute
(argument_list
(identifier_output_features) identifier_output_features
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_output_features) identifier_output_features
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"Provided output features for a regressor must be ") string_"Provided output features for a regressor must be "
(string_"one Double feature.") string_"one Double feature."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(subscript
(identifier_output_features) identifier_output_features
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
(call
(attribute
(identifier_datatypes) identifier_datatypes
(identifier_Double) identifier_Double
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Output type of a regressor must be a Double.") string_"Output type of a regressor must be a Double."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_prediction_name) identifier_prediction_name
(subscript
(subscript
(identifier_output_features) identifier_output_features
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_spec) identifier_spec
(identifier_description) identifier_description
)attribute
(identifier_predictedFeatureName) identifier_predictedFeatureName
)attribute
(identifier_prediction_name) identifier_prediction_name
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_features) identifier_features
(call
(attribute
(identifier__fm) identifier__fm
(identifier_process_or_validate_features) identifier_process_or_validate_features
)attribute
(argument_list
(identifier_features) identifier_features
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_cur_input_name) identifier_cur_input_name
(identifier_feature_type) identifier_feature_type
)pattern_list
(identifier_features) identifier_features
(block
(expression_statement
(assignment
(identifier_input_) identifier_input_
(call
(attribute
(attribute
(attribute
(identifier_spec) identifier_spec
(identifier_description) identifier_description
)attribute
(identifier_input) identifier_input
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_input_) identifier_input_
(identifier_name) identifier_name
)attribute
(identifier_cur_input_name) identifier_cur_input_name
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_datatypes) identifier_datatypes
(identifier__set_datatype) identifier__set_datatype
)attribute
(argument_list
(attribute
(identifier_input_) identifier_input_
(identifier_type) identifier_type
)attribute
(identifier_feature_type) identifier_feature_type
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_output_) identifier_output_
(call
(attribute
(attribute
(attribute
(identifier_spec) identifier_spec
(identifier_description) identifier_description
)attribute
(identifier_output) identifier_output
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_output_) identifier_output_
(identifier_name) identifier_name
)attribute
(identifier_prediction_name) identifier_prediction_name
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_datatypes) identifier_datatypes
(identifier__set_datatype) identifier__set_datatype
)attribute
(argument_list
(attribute
(identifier_output_) identifier_output_
(identifier_type) identifier_type
)attribute
(string_'Double') string_'Double'
)argument_list
)call
)expression_statement
(return_statement
(identifier_spec) identifier_spec
)return_statement
)block
)function_definition
)module | Common utilities to set the regressor interface params. |
(module
(function_definition
(function_name_find_parent_id_for_component) function_name_find_parent_id_for_component
(parameters
(identifier_self) identifier_self
(identifier_component_id) identifier_component_id
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_get_record) identifier_get_record
)attribute
(argument_list
(identifier_component_id) identifier_component_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_"parent") string_"parent"
(identifier_response) identifier_response
)comparison_operator
(block
(return_statement
(tuple
(attribute
(identifier_ArchivesSpaceClient) identifier_ArchivesSpaceClient
(identifier_RESOURCE_COMPONENT) identifier_RESOURCE_COMPONENT
)attribute
(subscript
(subscript
(identifier_response) identifier_response
(string_"parent") string_"parent"
)subscript
(string_"ref") string_"ref"
)subscript
)tuple
)return_statement
)block
(elif_clause
(comparison_operator
(string_"resource") string_"resource"
(identifier_response) identifier_response
)comparison_operator
(block
(return_statement
(tuple
(attribute
(identifier_ArchivesSpaceClient) identifier_ArchivesSpaceClient
(identifier_RESOURCE) identifier_RESOURCE
)attribute
(subscript
(subscript
(identifier_response) identifier_response
(string_"resource") string_"resource"
)subscript
(string_"ref") string_"ref"
)subscript
)tuple
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(tuple
(attribute
(identifier_ArchivesSpaceClient) identifier_ArchivesSpaceClient
(identifier_RESOURCE) identifier_RESOURCE
)attribute
(identifier_component_id) identifier_component_id
)tuple
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Given the URL to a component, returns the parent component's URL.
:param string component_id: The URL of the component.
:return: A tuple containing:
* The type of the parent record; valid values are ArchivesSpaceClient.RESOURCE and ArchivesSpaceClient.RESOURCE_COMPONENT.
* The URL of the parent record.
If the provided URL fragment references a resource, this method will simply return the same URL.
:rtype tuple: |
(module
(function_definition
(function_name__requires_refresh_token) function_name__requires_refresh_token
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_expires_on) identifier_expires_on
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_login_data) identifier_login_data
)attribute
(string_'token') string_'token'
)subscript
(string_'expiresOn') string_'expiresOn'
)subscript
(string_'%Y-%m-%dT%H:%M:%SZ') string_'%Y-%m-%dT%H:%M:%SZ'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_refresh) identifier_refresh
(binary_operator
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
(argument_list
(keyword_argument
(identifier_seconds) identifier_seconds
(integer_30) integer_30
)keyword_argument
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(comparison_operator
(identifier_expires_on) identifier_expires_on
(identifier_refresh) identifier_refresh
)comparison_operator
)return_statement
)block
)function_definition
)module | Check if a refresh of the token is needed |
(module
(function_definition
(function_name_queryWorkitems) function_name_queryWorkitems
(parameters
(identifier_self) identifier_self
(identifier_query_str) identifier_query_str
(default_parameter
(identifier_projectarea_id) identifier_projectarea_id
(None) None
)default_parameter
(default_parameter
(identifier_projectarea_name) identifier_projectarea_name
(None) None
)default_parameter
(default_parameter
(identifier_returned_properties) identifier_returned_properties
(None) None
)default_parameter
(default_parameter
(identifier_archived) identifier_archived
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rp) identifier_rp
(identifier_returned_properties) identifier_returned_properties
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_query) identifier_query
)attribute
(identifier_queryWorkitems) identifier_queryWorkitems
)attribute
(argument_list
(keyword_argument
(identifier_query_str) identifier_query_str
(identifier_query_str) identifier_query_str
)keyword_argument
(keyword_argument
(identifier_projectarea_id) identifier_projectarea_id
(identifier_projectarea_id) identifier_projectarea_id
)keyword_argument
(keyword_argument
(identifier_projectarea_name) identifier_projectarea_name
(identifier_projectarea_name) identifier_projectarea_name
)keyword_argument
(keyword_argument
(identifier_returned_properties) identifier_returned_properties
(identifier_rp) identifier_rp
)keyword_argument
(keyword_argument
(identifier_archived) identifier_archived
(identifier_archived) identifier_archived
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Query workitems with the query string in a certain project area
At least either of `projectarea_id` and `projectarea_name` is given
:param query_str: a valid query string
:param projectarea_id: the :class:`rtcclient.project_area.ProjectArea`
id
:param projectarea_name: the project area name
:param returned_properties: the returned properties that you want.
Refer to :class:`rtcclient.client.RTCClient` for more explanations
:param archived: (default is False) whether the workitems are archived
:return: a :class:`list` that contains the queried
:class:`rtcclient.workitem.Workitem` objects
:rtype: list |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_refobj) identifier_refobj
)parameters
(block
(expression_statement
(assignment
(identifier_i) identifier_i
(call
(attribute
(identifier_self) identifier_self
(identifier_get_typ_interface) identifier_get_typ_interface
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_typ) identifier_get_typ
)attribute
(argument_list
(identifier_refobj) identifier_refobj
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_i) identifier_i
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_refobj) identifier_refobj
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_delete_refobj) identifier_delete_refobj
)attribute
(argument_list
(identifier_refobj) identifier_refobj
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete the given refobj and the contents of the entity
:param refobj: the refobj to delete
:type refobj: refobj
:returns: None
:rtype: None
:raises: None |
(module
(function_definition
(function_name_restricted_to_files) function_name_restricted_to_files
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_filenames) identifier_filenames
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(string_'Spectra') string_'Spectra'
)type
(block
(expression_statement
(assignment
(identifier_tally_passing) identifier_tally_passing
(line_continuation_\) line_continuation_\
(dictionary_comprehension
(pair
(identifier_fn) identifier_fn
(identifier_entries) identifier_entries
)pair
(for_in_clause
(tuple_pattern
(identifier_fn) identifier_fn
(identifier_entries) identifier_entries
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___tally_passing) identifier___tally_passing
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(line_continuation_\) line_continuation_\
(if_clause
(comparison_operator
(identifier_fn) identifier_fn
(identifier_filenames) identifier_filenames
)comparison_operator
)if_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tally_failing) identifier_tally_failing
(line_continuation_\) line_continuation_\
(dictionary_comprehension
(pair
(identifier_fn) identifier_fn
(identifier_entries) identifier_entries
)pair
(for_in_clause
(tuple_pattern
(identifier_fn) identifier_fn
(identifier_entries) identifier_entries
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___tally_failing) identifier___tally_failing
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(line_continuation_\) line_continuation_\
(if_clause
(comparison_operator
(identifier_fn) identifier_fn
(identifier_filenames) identifier_filenames
)comparison_operator
)if_clause
)dictionary_comprehension
)assignment
)expression_statement
(return_statement
(call
(identifier_Spectra) identifier_Spectra
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___num_passing) identifier___num_passing
)attribute
(attribute
(identifier_self) identifier_self
(identifier___num_failing) identifier___num_failing
)attribute
(identifier_tally_passing) identifier_tally_passing
(identifier_tally_failing) identifier_tally_failing
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a variant of this spectra that only contains entries for
lines that appear in any of the files whose name appear in the
given list. |
(module
(function_definition
(function_name_add_campaign) function_name_add_campaign
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_device_filter) identifier_device_filter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_device_filter) identifier_device_filter
(call
(attribute
(identifier_filters) identifier_filters
(identifier_legacy_filter_formatter) identifier_legacy_filter_formatter
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_filter) identifier_filter
(identifier_device_filter) identifier_device_filter
)keyword_argument
)argument_list
)call
(call
(attribute
(identifier_Device) identifier_Device
(identifier__get_attributes_map) identifier__get_attributes_map
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_campaign) identifier_campaign
(call
(attribute
(identifier_Campaign) identifier_Campaign
(identifier__create_request_map) identifier__create_request_map
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'when') string_'when'
(identifier_campaign) identifier_campaign
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_campaign) identifier_campaign
(string_'when') string_'when'
)subscript
(call
(identifier_force_utc) identifier_force_utc
(argument_list
(subscript
(identifier_campaign) identifier_campaign
(string_'when') string_'when'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(identifier_UpdateCampaignPostRequest) identifier_UpdateCampaignPostRequest
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_device_filter) identifier_device_filter
(subscript
(identifier_device_filter) identifier_device_filter
(string_'filter') string_'filter'
)subscript
)keyword_argument
(dictionary_splat
(identifier_campaign) identifier_campaign
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_api) identifier_api
(call
(attribute
(identifier_self) identifier_self
(identifier__get_api) identifier__get_api
)attribute
(argument_list
(attribute
(identifier_update_service) identifier_update_service
(identifier_DefaultApi) identifier_DefaultApi
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Campaign) identifier_Campaign
(argument_list
(call
(attribute
(identifier_api) identifier_api
(identifier_update_campaign_create) identifier_update_campaign_create
)attribute
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add new update campaign.
Add an update campaign with a name and device filtering. Example:
.. code-block:: python
device_api, update_api = DeviceDirectoryAPI(), UpdateAPI()
# Get a filter to use for update campaign
query_obj = device_api.get_query(query_id="MYID")
# Create the campaign
new_campaign = update_api.add_campaign(
name="foo",
device_filter=query_obj.filter
)
:param str name: Name of the update campaign (Required)
:param str device_filter: The device filter to use (Required)
:param str manifest_id: ID of the manifest with description of the update
:param str description: Description of the campaign
:param int scheduled_at: The timestamp at which update campaign is scheduled to start
:param str state: The state of the campaign. Values:
"draft", "scheduled", "devicefetch", "devicecopy", "publishing",
"deploying", "deployed", "manifestremoved", "expired"
:return: newly created campaign object
:rtype: Campaign |
(module
(function_definition
(function_name_try_set_count) function_name_try_set_count
(parameters
(identifier_self) identifier_self
(identifier_count) identifier_count
)parameters
(block
(expression_statement
(call
(identifier_check_not_negative) identifier_check_not_negative
(argument_list
(identifier_count) identifier_count
(string_"count can't be negative") string_"count can't be negative"
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__encode_invoke) identifier__encode_invoke
)attribute
(argument_list
(identifier_count_down_latch_try_set_count_codec) identifier_count_down_latch_try_set_count_codec
(keyword_argument
(identifier_count) identifier_count
(identifier_count) identifier_count
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Sets the count to the given value if the current count is zero. If count is not zero, this method does nothing
and returns ``false``.
:param count: (int), the number of times count_down() must be invoked before threads can pass through await().
:return: (bool), ``true`` if the new count was set, ``false`` if the current count is not zero. |
(module
(function_definition
(function_name_get_product_url) function_name_get_product_url
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_http) identifier_force_http
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_base_url) identifier_base_url
(conditional_expression
(attribute
(identifier_self) identifier_self
(identifier_base_http_url) identifier_base_http_url
)attribute
(identifier_force_http) identifier_force_http
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
)conditional_expression
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'{}products/{}/{}') string_'{}products/{}/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_base_url) identifier_base_url
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_date) identifier_date
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_'/') string_'/'
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_product_id) identifier_product_id
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates base url of product location on AWS.
:param force_http: True if HTTP base URL should be used and False otherwise
:type force_http: str
:return: url of product location
:rtype: str |
(module
(function_definition
(function_name__update_hasher) function_name__update_hasher
(parameters
(identifier_hasher) identifier_hasher
(identifier_data) identifier_data
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(tuple
(identifier_tuple) identifier_tuple
(identifier_list) identifier_list
(identifier_zip) identifier_zip
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_needs_iteration) identifier_needs_iteration
(True) True
)assignment
)expression_statement
)block
(elif_clause
(parenthesized_expression
(boolean_operator
(boolean_operator
(attribute
(identifier_util_type) identifier_util_type
(identifier_HAVE_NUMPY) identifier_HAVE_NUMPY
)attribute
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)argument_list
)call
)boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_data) identifier_data
(identifier_dtype) identifier_dtype
)attribute
(identifier_kind) identifier_kind
)attribute
(string_'O') string_'O'
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_needs_iteration) identifier_needs_iteration
(True) True
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_needs_iteration) identifier_needs_iteration
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_needs_iteration) identifier_needs_iteration
(block
(expression_statement
(assignment
(identifier_SEP) identifier_SEP
(string_b'SEP') string_b'SEP'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iter_prefix) identifier_iter_prefix
(string_b'ITER') string_b'ITER'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iter_) identifier_iter_
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_hasher) identifier_hasher
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_iter_prefix) identifier_iter_prefix
)argument_list
)call
)expression_statement
(try_statement
(block
(for_statement
(identifier_item) identifier_item
(identifier_iter_) identifier_iter_
(block
(expression_statement
(assignment
(pattern_list
(identifier_prefix) identifier_prefix
(identifier_hashable) identifier_hashable
)pattern_list
(call
(identifier__covert_to_hashable) identifier__covert_to_hashable
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_binary_data) identifier_binary_data
(binary_operator
(binary_operator
(identifier_SEP) identifier_SEP
(identifier_prefix) identifier_prefix
)binary_operator
(identifier_hashable) identifier_hashable
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_hasher) identifier_hasher
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_binary_data) identifier_binary_data
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(expression_statement
(call
(identifier__update_hasher) identifier__update_hasher
(argument_list
(identifier_hasher) identifier_hasher
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_iter_) identifier_iter_
(block
(expression_statement
(call
(attribute
(identifier_hasher) identifier_hasher
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_SEP) identifier_SEP
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__update_hasher) identifier__update_hasher
(argument_list
(identifier_hasher) identifier_hasher
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_prefix) identifier_prefix
(identifier_hashable) identifier_hashable
)pattern_list
(call
(identifier__covert_to_hashable) identifier__covert_to_hashable
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_binary_data) identifier_binary_data
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_hashable) identifier_hashable
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_hasher) identifier_hasher
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_binary_data) identifier_binary_data
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | This is the clear winner over the generate version.
Used by hash_data
Ignore:
import utool
rng = np.random.RandomState(0)
# str1 = rng.rand(0).dumps()
str1 = b'SEP'
str2 = rng.rand(10000).dumps()
for timer in utool.Timerit(100, label='twocall'):
hasher = hashlib.sha256()
with timer:
hasher.update(str1)
hasher.update(str2)
a = hasher.hexdigest()
for timer in utool.Timerit(100, label='concat'):
hasher = hashlib.sha256()
with timer:
hasher.update(str1 + str2)
b = hasher.hexdigest()
assert a == b
# CONCLUSION: Faster to concat in case of prefixes and seps
nested_data = {'1': [rng.rand(100), '2', '3'],
'2': ['1', '2', '3', '4', '5'],
'3': [('1', '2'), ('3', '4'), ('5', '6')]}
data = list(nested_data.values())
for timer in utool.Timerit(1000, label='cat-generate'):
hasher = hashlib.sha256()
with timer:
hasher.update(b''.join(_bytes_generator(data)))
for timer in utool.Timerit(1000, label='inc-generate'):
hasher = hashlib.sha256()
with timer:
for b in _bytes_generator(data):
hasher.update(b)
for timer in utool.Timerit(1000, label='inc-generate'):
hasher = hashlib.sha256()
with timer:
for b in _bytes_generator(data):
hasher.update(b)
for timer in utool.Timerit(1000, label='chunk-inc-generate'):
hasher = hashlib.sha256()
import ubelt as ub
with timer:
for chunk in ub.chunks(_bytes_generator(data), 5):
hasher.update(b''.join(chunk))
for timer in utool.Timerit(1000, label='inc-update'):
hasher = hashlib.sha256()
with timer:
_update_hasher(hasher, data)
data = ut.lorium_ipsum()
hash_data(data)
ut.hashstr27(data)
%timeit hash_data(data)
%timeit ut.hashstr27(repr(data))
for timer in utool.Timerit(100, label='twocall'):
hasher = hashlib.sha256()
with timer:
hash_data(data)
hasher = hashlib.sha256()
hasher.update(memoryview(np.array([1])))
print(hasher.hexdigest())
hasher = hashlib.sha256()
hasher.update(np.array(['1'], dtype=object))
print(hasher.hexdigest()) |
(module
(function_definition
(function_name_safe_compare_digest) function_name_safe_compare_digest
(parameters
(identifier_val1) identifier_val1
(identifier_val2) identifier_val2
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_val1) identifier_val1
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_val2) identifier_val2
)argument_list
)call
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_PY3) identifier_PY3
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val1) identifier_val1
(identifier_bytes) identifier_bytes
)argument_list
)call
)boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val2) identifier_val2
(identifier_bytes) identifier_bytes
)argument_list
)call
)boolean_operator
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_j) identifier_j
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_val1) identifier_val1
(identifier_val2) identifier_val2
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(identifier_i) identifier_i
(identifier_j) identifier_j
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_j) identifier_j
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_val1) identifier_val1
(identifier_val2) identifier_val2
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(parenthesized_expression
(binary_operator
(call
(identifier_ord) identifier_ord
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(call
(identifier_ord) identifier_ord
(argument_list
(identifier_j) identifier_j
)argument_list
)call
)binary_operator
)parenthesized_expression
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(comparison_operator
(identifier_result) identifier_result
(integer_0) integer_0
)comparison_operator
)return_statement
)block
)function_definition
)module | safe_compare_digest method.
:param val1: string or bytes for compare
:type val1: str | bytes
:param val2: string or bytes for compare
:type val2: str | bytes |
(module
(function_definition
(function_name_normnorm) function_name_normnorm
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(attribute
(identifier_self) identifier_self
(identifier_norm) identifier_norm
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_V2) identifier_V2
(argument_list
(binary_operator
(unary_operator
(attribute
(identifier_self) identifier_self
(identifier_y) identifier_y
)attribute
)unary_operator
(identifier_n) identifier_n
)binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_x) identifier_x
)attribute
(identifier_n) identifier_n
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a vecor noraml to this one with a norm of one
:return: V2 |
(module
(function_definition
(function_name_get_default_base_name) function_name_get_default_base_name
(parameters
(identifier_self) identifier_self
(identifier_viewset) identifier_viewset
)parameters
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_viewset) identifier_viewset
(string_'queryset') string_'queryset'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_queryset) identifier_queryset
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_get_url_name) identifier_get_url_name
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_queryset) identifier_queryset
(identifier_model) identifier_model
)attribute
(string_'get_url_name') string_'get_url_name'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_get_url_name) identifier_get_url_name
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_get_url_name) identifier_get_url_name
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_SortedDefaultRouter) identifier_SortedDefaultRouter
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_default_base_name) identifier_get_default_base_name
)attribute
(argument_list
(identifier_viewset) identifier_viewset
)argument_list
)call
)return_statement
)block
)function_definition
)module | Attempt to automatically determine base name using `get_url_name`. |
(module
(function_definition
(function_name___step4) function_name___step4
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_step) identifier_step
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_done) identifier_done
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_row) identifier_row
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_col) identifier_col
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_star_col) identifier_star_col
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(while_statement
(not_operator
(identifier_done) identifier_done
)not_operator
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_row) identifier_row
(identifier_col) identifier_col
)tuple_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier___find_a_zero) identifier___find_a_zero
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_row) identifier_row
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_done) identifier_done
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_step) identifier_step
(integer_6) integer_6
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_marked) identifier_marked
)attribute
(identifier_row) identifier_row
)subscript
(identifier_col) identifier_col
)subscript
(integer_2) integer_2
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_star_col) identifier_star_col
(call
(attribute
(identifier_self) identifier_self
(identifier___find_star_in_row) identifier___find_star_in_row
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_star_col) identifier_star_col
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_col) identifier_col
(identifier_star_col) identifier_star_col
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_row_covered) identifier_row_covered
)attribute
(identifier_row) identifier_row
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_col_covered) identifier_col_covered
)attribute
(identifier_col) identifier_col
)subscript
(False) False
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_done) identifier_done
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Z0_r) identifier_Z0_r
)attribute
(identifier_row) identifier_row
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_Z0_c) identifier_Z0_c
)attribute
(identifier_col) identifier_col
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_step) identifier_step
(integer_5) integer_5
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)while_statement
(return_statement
(identifier_step) identifier_step
)return_statement
)block
)function_definition
)module | Find a noncovered zero and prime it. If there is no starred zero
in the row containing this primed zero, Go to Step 5. Otherwise,
cover this row and uncover the column containing the starred
zero. Continue in this manner until there are no uncovered zeros
left. Save the smallest uncovered value and Go to Step 6. |
(module
(function_definition
(function_name__unregister_service) function_name__unregister_service
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__registration) identifier__registration
)attribute
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__registration) identifier__registration
)attribute
(identifier_unregister) identifier_unregister
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_BundleException) identifier_BundleException
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_logger) identifier_logger
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(call
(attribute
(string_"-") string_"-"
(identifier_join) identifier_join
)attribute
(argument_list
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ipopo_instance) identifier__ipopo_instance
)attribute
(identifier_name) identifier_name
)attribute
(string_"ServiceRegistration") string_"ServiceRegistration"
)tuple
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Error unregistering a service: %s") string_"Error unregistering a service: %s"
(identifier_ex) identifier_ex
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ipopo_instance) identifier__ipopo_instance
)attribute
(identifier_safe_callback) identifier_safe_callback
)attribute
(argument_list
(attribute
(identifier_ipopo_constants) identifier_ipopo_constants
(identifier_IPOPO_CALLBACK_POST_UNREGISTRATION) identifier_IPOPO_CALLBACK_POST_UNREGISTRATION
)attribute
(attribute
(identifier_self) identifier_self
(identifier__svc_reference) identifier__svc_reference
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__registration) identifier__registration
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__svc_reference) identifier__svc_reference
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Unregisters the provided service, if needed |
(module
(function_definition
(function_name_backness) function_name_backness
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(not_operator
(comparison_operator
(identifier_value) identifier_value
(identifier_DG_V_BACKNESS) identifier_DG_V_BACKNESS
)comparison_operator
)not_operator
)parenthesized_expression
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Unrecognized value for backness: '%s'") string_"Unrecognized value for backness: '%s'"
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___backness) identifier___backness
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Set the backness of the vowel.
:param str value: the value to be set |
(module
(function_definition
(function_name__op) function_name__op
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
(default_parameter
(identifier_op) identifier_op
(None) None
)default_parameter
(default_parameter
(identifier_offset) identifier_offset
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_op) identifier_op
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_op) identifier_op
(subscript
(attribute
(identifier_self) identifier_self
(identifier_op_count) identifier_op_count
)attribute
(identifier_line) identifier_line
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_"line{}_gate{}") string_"line{}_gate{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_line) identifier_line
(binary_operator
(identifier_op) identifier_op
(identifier_offset) identifier_offset
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the gate name for placing a gate on a line.
:param int line: Line number.
:param int op: Operation number or, by default, uses the current op count.
:return: Gate name.
:rtype: string |
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
)parameters
(block
(if_statement
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
(block
(return_statement
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
(string_"Unknown") string_"Unknown"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_file) identifier_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_folder) identifier_folder
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_semver) identifier_semver
(call
(identifier_open) identifier_open
(argument_list
(binary_operator
(identifier_folder) identifier_folder
(string_"/../../.semver") string_"/../../.semver"
)binary_operator
(string_"r") string_"r"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
(call
(attribute
(call
(attribute
(identifier_semver) identifier_semver
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_semver) identifier_semver
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
)return_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_distribution) identifier_distribution
(call
(attribute
(identifier_pkg_resources) identifier_pkg_resources
(identifier_get_distribution) identifier_get_distribution
)attribute
(argument_list
(call
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier_get_alias) identifier_get_alias
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_distribution) identifier_distribution
(identifier_version) identifier_version
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
(attribute
(identifier_distribution) identifier_distribution
(identifier_version) identifier_version
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
)return_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(attribute
(identifier_PackageHelper) identifier_PackageHelper
(identifier___version) identifier___version
)attribute
)return_statement
)block
)function_definition
)module | Get the version number of this package.
Returns:
str: The version number (marjor.minor.patch).
Note:
When this package is installed, the version number will be available through the
package resource details. Otherwise this method will look for a ``.semver`` file.
Note:
In rare cases corrupt installs can cause the version number to be unknown. In this case
the version number will be set to the string "Unknown". |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_query_name) identifier_query_name
(identifier_saved_query) identifier_saved_query
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"{0}/{1}") string_"{0}/{1}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_saved_query_url) identifier_saved_query_url
)attribute
(identifier_query_name) identifier_query_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(identifier_saved_query) identifier_saved_query
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_payload) identifier_payload
(identifier_str) identifier_str
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_saved_query) identifier_saved_query
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__get_json) identifier__get_json
)attribute
(argument_list
(attribute
(identifier_HTTPMethods) identifier_HTTPMethods
(identifier_PUT) identifier_PUT
)attribute
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__get_master_key) identifier__get_master_key
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_data) identifier_data
(identifier_payload) identifier_payload
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Creates the saved query via a PUT request to Keen IO Saved Query endpoint.
Master key must be set. |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_insert) identifier_force_insert
(False) False
)default_parameter
(default_parameter
(identifier_force_update) identifier_force_update
(False) False
)default_parameter
(default_parameter
(identifier_using) identifier_using
(None) None
)default_parameter
(default_parameter
(identifier_update_fields) identifier_update_fields
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_save) identifier_save
)attribute
(argument_list
(identifier_force_insert) identifier_force_insert
(identifier_force_update) identifier_force_update
(identifier_using) identifier_using
(identifier_update_fields) identifier_update_fields
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_main_language) identifier_main_language
)attribute
(block
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_TransLanguage) identifier_TransLanguage
(identifier_objects) identifier_objects
)attribute
(identifier_exclude) identifier_exclude
)attribute
(argument_list
(keyword_argument
(identifier_pk) identifier_pk
(attribute
(identifier_self) identifier_self
(identifier_pk) identifier_pk
)attribute
)keyword_argument
)argument_list
)call
(identifier_update) identifier_update
)attribute
(argument_list
(keyword_argument
(identifier_main_language) identifier_main_language
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Overwrite of the save method in order that when setting the language
as main we deactivate any other model selected as main before
:param force_insert:
:param force_update:
:param using:
:param update_fields:
:return: |
(module
(function_definition
(function_name_get_outputs) function_name_get_outputs
(parameters
(identifier_self) identifier_self
(identifier_input_value) identifier_input_value
)parameters
(block
(expression_statement
(assignment
(identifier_output_value) identifier_output_value
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_to_xmlrpc) identifier_convert_to_xmlrpc
)attribute
(argument_list
(identifier_input_value) identifier_input_value
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_output_names) identifier_output_names
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_output) identifier_output
(identifier_name) identifier_name
)subscript
(identifier_output_value) identifier_output_value
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Generate a set of output values for a given input. |
(module
(function_definition
(function_name_which) function_name_which
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_binary) identifier_binary
)attribute
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_which) identifier_which
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_binary) identifier_binary
)attribute
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_env_path) identifier_env_path
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Figure out which binary this will execute.
Returns None if the binary is not found. |
(module
(function_definition
(function_name_get_access_control_function) function_name_get_access_control_function
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_fn_path) identifier_fn_path
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_settings) identifier_settings
(string_'ROSETTA_ACCESS_CONTROL_FUNCTION') string_'ROSETTA_ACCESS_CONTROL_FUNCTION'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_fn_path) identifier_fn_path
(None) None
)comparison_operator
(block
(return_statement
(identifier_is_superuser_staff_or_in_translators_group) identifier_is_superuser_staff_or_in_translators_group
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_perm_module) identifier_perm_module
(identifier_perm_func) identifier_perm_func
)pattern_list
(call
(attribute
(identifier_fn_path) identifier_fn_path
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'.') string_'.'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_perm_module) identifier_perm_module
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_import_module) identifier_import_module
)attribute
(argument_list
(identifier_perm_module) identifier_perm_module
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_perm_module) identifier_perm_module
(identifier_perm_func) identifier_perm_func
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a predicate for determining if a user can
access the Rosetta views |
(module
(function_definition
(function_name_tag_dssp_solvent_accessibility) function_name_tag_dssp_solvent_accessibility
(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_'dssp_acc') string_'dssp_acc'
(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_dssp_out) identifier_dssp_out
(call
(identifier_run_dssp) identifier_run_dssp
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pdb) identifier_pdb
)attribute
(keyword_argument
(identifier_path) identifier_path
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dssp_out) identifier_dssp_out
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dssp_acc_list) identifier_dssp_acc_list
(call
(identifier_extract_solvent_accessibility_dssp) identifier_extract_solvent_accessibility_dssp
(argument_list
(identifier_dssp_out) identifier_dssp_out
(keyword_argument
(identifier_path) identifier_path
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_monomer) identifier_monomer
(identifier_dssp_acc) identifier_dssp_acc
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__monomers) identifier__monomers
)attribute
(identifier_dssp_acc_list) identifier_dssp_acc_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_monomer) identifier_monomer
(identifier_tags) identifier_tags
)attribute
(string_'dssp_acc') string_'dssp_acc'
)subscript
(subscript
(identifier_dssp_acc) identifier_dssp_acc
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
)return_statement
)block
)function_definition
)module | Tags each `Residues` Polymer with its solvent accessibility.
Notes
-----
For more about DSSP's solvent accessibilty metric, see:
http://swift.cmbi.ru.nl/gv/dssp/HTML/descrip.html#ACC
References
----------
.. [1] Kabsch W, Sander C (1983) "Dictionary of protein
secondary structure: pattern recognition of hydrogen-bonded
and geometrical features", Biopolymers, 22, 2577-637.
Parameters
----------
force : bool, optional
If `True` the tag will be run even if `Residues` are
already tagged. |
(module
(function_definition
(function_name_alloc_vpcid) function_name_alloc_vpcid
(parameters
(identifier_nexus_ips) identifier_nexus_ips
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"alloc_vpc() called") string_"alloc_vpc() called"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_vpc_id) identifier_vpc_id
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_intersect) identifier_intersect
(call
(identifier__get_free_vpcids_on_switches) identifier__get_free_vpcids_on_switches
(argument_list
(identifier_nexus_ips) identifier_nexus_ips
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_intersect_tuple) identifier_intersect_tuple
(identifier_intersect) identifier_intersect
(block
(try_statement
(block
(expression_statement
(call
(identifier_update_vpc_entry) identifier_update_vpc_entry
(argument_list
(identifier_nexus_ips) identifier_nexus_ips
(attribute
(identifier_intersect_tuple) identifier_intersect_tuple
(identifier_vpc_id) identifier_vpc_id
)attribute
(False) False
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_vpc_id) identifier_vpc_id
(attribute
(identifier_intersect_tuple) identifier_intersect_tuple
(identifier_vpc_id) identifier_vpc_id
)attribute
)assignment
)expression_statement
(break_statement
)break_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_exception) identifier_exception
)attribute
(argument_list
(concatenated_string
(string_"This exception is expected if another controller ") string_"This exception is expected if another controller "
(string_"beat us to vpcid %(vpcid)s for nexus %(ip)s") string_"beat us to vpcid %(vpcid)s for nexus %(ip)s"
)concatenated_string
(dictionary
(pair
(string_'vpcid') string_'vpcid'
(attribute
(identifier_intersect_tuple) identifier_intersect_tuple
(identifier_vpc_id) identifier_vpc_id
)attribute
)pair
(pair
(string_'ip') string_'ip'
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_str) identifier_str
(identifier_nexus_ips) identifier_nexus_ips
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_vpc_id) identifier_vpc_id
)return_statement
)block
)function_definition
)module | Allocate a vpc id for the given list of switch_ips. |
(module
(function_definition
(function_name_temperature_data_from_csv) function_name_temperature_data_from_csv
(parameters
(identifier_filepath_or_buffer) identifier_filepath_or_buffer
(default_parameter
(identifier_tz) identifier_tz
(None) None
)default_parameter
(default_parameter
(identifier_date_col) identifier_date_col
(string_"dt") string_"dt"
)default_parameter
(default_parameter
(identifier_temp_col) identifier_temp_col
(string_"tempF") string_"tempF"
)default_parameter
(default_parameter
(identifier_gzipped) identifier_gzipped
(False) False
)default_parameter
(default_parameter
(identifier_freq) identifier_freq
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_read_csv_kwargs) identifier_read_csv_kwargs
(dictionary
(pair
(string_"usecols") string_"usecols"
(list
(identifier_date_col) identifier_date_col
(identifier_temp_col) identifier_temp_col
)list
)pair
(pair
(string_"dtype") string_"dtype"
(dictionary
(pair
(identifier_temp_col) identifier_temp_col
(attribute
(identifier_np) identifier_np
(identifier_float64) identifier_float64
)attribute
)pair
)dictionary
)pair
(pair
(string_"parse_dates") string_"parse_dates"
(list
(identifier_date_col) identifier_date_col
)list
)pair
(pair
(string_"index_col") string_"index_col"
(identifier_date_col) identifier_date_col
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_gzipped) identifier_gzipped
(block
(expression_statement
(call
(attribute
(identifier_read_csv_kwargs) identifier_read_csv_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_"compression") string_"compression"
(string_"gzip") string_"gzip"
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_read_csv_kwargs) identifier_read_csv_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tz) identifier_tz
(string_"UTC") string_"UTC"
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(call
(attribute
(identifier_pd) identifier_pd
(identifier_read_csv) identifier_read_csv
)attribute
(argument_list
(identifier_filepath_or_buffer) identifier_filepath_or_buffer
(dictionary_splat
(identifier_read_csv_kwargs) identifier_read_csv_kwargs
)dictionary_splat
)argument_list
)call
(identifier_tz_localize) identifier_tz_localize
)attribute
(argument_list
(identifier_tz) identifier_tz
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_freq) identifier_freq
(string_"hourly") string_"hourly"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(call
(attribute
(identifier_df) identifier_df
(identifier_resample) identifier_resample
)attribute
(argument_list
(string_"H") string_"H"
)argument_list
)call
(identifier_sum) identifier_sum
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(identifier_df) identifier_df
(identifier_temp_col) identifier_temp_col
)subscript
)return_statement
)block
)function_definition
)module | Load temperature data from a CSV file.
Default format::
dt,tempF
2017-01-01T00:00:00+00:00,21
2017-01-01T01:00:00+00:00,22.5
2017-01-01T02:00:00+00:00,23.5
Parameters
----------
filepath_or_buffer : :any:`str` or file-handle
File path or object.
tz : :any:`str`, optional
E.g., ``'UTC'`` or ``'US/Pacific'``
date_col : :any:`str`, optional, default ``'dt'``
Date period start column.
temp_col : :any:`str`, optional, default ``'tempF'``
Temperature column.
gzipped : :any:`bool`, optional
Whether file is gzipped.
freq : :any:`str`, optional
If given, apply frequency to data using :any:`pandas.Series.resample`.
**kwargs
Extra keyword arguments to pass to :any:`pandas.read_csv`, such as
``sep='|'``. |
(module
(function_definition
(function_name_get_task_module) function_name_get_task_module
(parameters
(identifier_feature) identifier_feature
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_import_module) identifier_import_module
)attribute
(argument_list
(identifier_feature) identifier_feature
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(raise_statement
(call
(identifier_FeatureNotFound) identifier_FeatureNotFound
(argument_list
(identifier_feature) identifier_feature
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_tasks_module) identifier_tasks_module
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_tasks_module) identifier_tasks_module
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_import_module) identifier_import_module
)attribute
(argument_list
(binary_operator
(identifier_feature) identifier_feature
(string_'.apetasks') string_'.apetasks'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_tasks_module) identifier_tasks_module
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_import_module) identifier_import_module
)attribute
(argument_list
(binary_operator
(identifier_feature) identifier_feature
(string_'.tasks') string_'.tasks'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_tasks_module) identifier_tasks_module
)return_statement
)block
)function_definition
)module | Return imported task module of feature.
This function first tries to import the feature and raises FeatureNotFound
if that is not possible.
Thereafter, it looks for a submodules called ``apetasks`` and ``tasks`` in that order.
If such a submodule exists, it is imported and returned.
:param feature: name of feature to fet task module for.
:raises: FeatureNotFound if feature_module could not be imported.
:return: imported module containing the ape tasks of feature or None,
if module cannot be imported. |
(module
(function_definition
(function_name_save_html) function_name_save_html
(parameters
(identifier_out_file) identifier_out_file
(identifier_plot_html) identifier_plot_html
)parameters
(block
(expression_statement
(assignment
(identifier_internal_open) identifier_internal_open
(False) False
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
(identifier_str) identifier_str
)comparison_operator
(block
(expression_statement
(assignment
(identifier_out_file) identifier_out_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_out_file) identifier_out_file
(string_"w") string_"w"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_internal_open) identifier_internal_open
(True) True
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_"<html><head><script>\n") string_"<html><head><script>\n"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_bundle_path) identifier_bundle_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
(integer_0) integer_0
)subscript
(string_"resources") string_"resources"
(string_"bundle.js") string_"bundle.js"
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_bundle_path) identifier_bundle_path
(keyword_argument
(identifier_encoding) identifier_encoding
(string_"utf-8") string_"utf-8"
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_bundle_data) identifier_bundle_data
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_bundle_data) identifier_bundle_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_"</script></head><body>\n") string_"</script></head><body>\n"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_plot_html) identifier_plot_html
(identifier_data) identifier_data
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_"</body></html>\n") string_"</body></html>\n"
)argument_list
)call
)expression_statement
(if_statement
(identifier_internal_open) identifier_internal_open
(block
(expression_statement
(call
(attribute
(identifier_out_file) identifier_out_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Save html plots to an output file. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_rc_file) identifier_rc_file
(string_'~/.odoorpcrc') string_'~/.odoorpcrc'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conf) identifier_conf
(call
(identifier_ConfigParser) identifier_ConfigParser
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_conf) identifier_conf
(identifier_read) identifier_read
)attribute
(argument_list
(list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(identifier_rc_file) identifier_rc_file
)argument_list
)call
)list
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_conf) identifier_conf
(identifier_has_section) identifier_has_section
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"'%s' session does not exist in %s") string_"'%s' session does not exist in %s"
(tuple
(identifier_name) identifier_name
(identifier_rc_file) identifier_rc_file
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_conf) identifier_conf
(identifier_remove_section) identifier_remove_section
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)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_expanduser) identifier_expanduser
)attribute
(argument_list
(identifier_rc_file) identifier_rc_file
)argument_list
)call
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_file_) identifier_file_
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_conf) identifier_conf
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_file_) identifier_file_
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Remove the session configuration identified by `name`
from the `rc_file` file.
>>> import odoorpc
>>> odoorpc.session.remove('foo') # doctest: +SKIP
.. doctest::
:hide:
>>> import odoorpc
>>> session = '%s_session' % DB
>>> odoorpc.session.remove(session)
:raise: `ValueError` (wrong session name) |
(module
(function_definition
(function_name_results_history) function_name_results_history
(parameters
(identifier_history_log) identifier_history_log
(identifier_no_color) identifier_no_color
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_history_log) identifier_history_log
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_f) identifier_f
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_echo_style) identifier_echo_style
(argument_list
(binary_operator
(string_'Unable to process results history log: %s') string_'Unable to process results history log: %s'
(identifier_error) identifier_error
)binary_operator
(identifier_no_color) identifier_no_color
(keyword_argument
(identifier_fg) identifier_fg
(string_'red') string_'red'
)keyword_argument
)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
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(identifier_len) identifier_len
(argument_list
(identifier_lines) identifier_lines
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_lines) identifier_lines
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(call
(attribute
(string_'{} {}') string_'{} {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_index) identifier_index
(identifier_item) identifier_item
)argument_list
)call
(keyword_argument
(identifier_nl) identifier_nl
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_index) identifier_index
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Display a list of ipa test results history. |
(module
(function_definition
(function_name_to_bytes) function_name_to_bytes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_raw) identifier_raw
(string_b'') string_b''
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__options) identifier__options
)attribute
)not_operator
(block
(return_statement
(identifier_raw) identifier_raw
)return_statement
)block
)if_statement
(for_statement
(identifier_ipopt) identifier_ipopt
(attribute
(identifier_self) identifier_self
(identifier__options) identifier__options
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_raw) identifier_raw
(call
(attribute
(identifier_ipopt) identifier_ipopt
(identifier_to_bytes) identifier_to_bytes
)attribute
(argument_list
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_padbytes) identifier_padbytes
(binary_operator
(integer_4) integer_4
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_raw) identifier_raw
)argument_list
)call
(integer_4) integer_4
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_raw) identifier_raw
(binary_operator
(string_b'\x00') string_b'\x00'
(identifier_padbytes) identifier_padbytes
)binary_operator
)augmented_assignment
)expression_statement
(return_statement
(identifier_raw) identifier_raw
)return_statement
)block
)function_definition
)module | Takes a list of IPOption objects and returns a packed byte string
of options, appropriately padded if necessary. |
(module
(function_definition
(function_name_changed) function_name_changed
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_message) identifier_message
(None) None
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_message) identifier_message
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'%s: %s') string_'%s: %s'
(call
(attribute
(identifier_self) identifier_self
(identifier__repr) identifier__repr
)attribute
(argument_list
)argument_list
)call
(binary_operator
(identifier_message) identifier_message
(identifier_args) identifier_args
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'%s: changed') string_'%s: changed'
(call
(attribute
(identifier_self) identifier_self
(identifier__repr) identifier__repr
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_changed) identifier_changed
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_self) identifier_self
(identifier_Mutable) identifier_Mutable
)argument_list
)call
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_TrackedObject) identifier_TrackedObject
(identifier_self) identifier_self
)argument_list
)call
(identifier_changed) identifier_changed
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Marks the object as changed.
If a `parent` attribute is set, the `changed()` method on the parent
will be called, propagating the change notification up the chain.
The message (if provided) will be debug logged. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.