sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__get_more) function_name__get_more
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_alive) identifier_alive
)attribute
)not_operator
(block
(raise_statement
(call
(attribute
(attribute
(identifier_pymongo) identifier_pymongo
(identifier_errors) identifier_errors
)attribute
(identifier_InvalidOperation) identifier_InvalidOperation
)attribute
(argument_list
(concatenated_string
(string_"Can't call get_more() on a MotorCursor that has been") string_"Can't call get_more() on a MotorCursor that has been"
(string_" exhausted or killed.") string_" exhausted or killed."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_started) identifier_started
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__refresh) identifier__refresh
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Initial query or getMore. Returns a Future. |
(module
(function_definition
(function_name__parse_ntthal) function_name__parse_ntthal
(parameters
(identifier_ntthal_output) identifier_ntthal_output
)parameters
(block
(expression_statement
(assignment
(identifier_parsed_vals) identifier_parsed_vals
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(identifier__ntthal_re) identifier__ntthal_re
(identifier_ntthal_output) identifier_ntthal_output
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(identifier_THERMORESULT) identifier_THERMORESULT
(argument_list
(True) True
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_parsed_vals) identifier_parsed_vals
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_parsed_vals) identifier_parsed_vals
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_parsed_vals) identifier_parsed_vals
(identifier_group) identifier_group
)attribute
(argument_list
(integer_3) integer_3
)argument_list
)call
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_parsed_vals) identifier_parsed_vals
(identifier_group) identifier_group
)attribute
(argument_list
(integer_4) integer_4
)argument_list
)call
)argument_list
)call
)argument_list
)call
(identifier_parsed_vals) identifier_parsed_vals
(identifier_NULLTHERMORESULT) identifier_NULLTHERMORESULT
)conditional_expression
)return_statement
)block
)function_definition
)module | Helper method that uses regex to parse ntthal output. |
(module
(function_definition
(function_name_index) function_name_index
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(default_parameter
(identifier_start) identifier_start
(None) None
)default_parameter
(default_parameter
(identifier_stop) identifier_stop
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___alias__) identifier___alias__
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_start) identifier_start
(identifier_stop) identifier_stop
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return first index of value. |
(module
(function_definition
(function_name__process_maybe_work) function_name__process_maybe_work
(parameters
(identifier_self) identifier_self
(identifier_yes_work) identifier_yes_work
(identifier_maybe_work) identifier_maybe_work
(identifier_work_dir) identifier_work_dir
(identifier_yn_results_path) identifier_yn_results_path
(identifier_stats) identifier_stats
)parameters
(block
(if_statement
(comparison_operator
(identifier_maybe_work) identifier_maybe_work
(identifier_yes_work) identifier_yes_work
)comparison_operator
(block
(return_statement
(identifier_stats) identifier_stats
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Processing "maybe" work {} against "yes" work {}.') string_'Processing "maybe" work {} against "yes" work {}.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_maybe_work) identifier_maybe_work
(identifier_yes_work) identifier_yes_work
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_siglum) identifier_siglum
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__corpus) identifier__corpus
)attribute
(identifier_get_sigla) identifier_get_sigla
)attribute
(argument_list
(identifier_maybe_work) identifier_maybe_work
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_witness) identifier_witness
(tuple
(identifier_maybe_work) identifier_maybe_work
(identifier_siglum) identifier_siglum
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_stats) identifier_stats
(identifier_COMMON) identifier_COMMON
)subscript
(identifier_witness) identifier_witness
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_stats) identifier_stats
(identifier_SHARED) identifier_SHARED
)subscript
(identifier_witness) identifier_witness
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_stats) identifier_stats
(identifier_UNIQUE) identifier_UNIQUE
)subscript
(identifier_witness) identifier_witness
)subscript
(integer_100) integer_100
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_works) identifier_works
(list
(identifier_yes_work) identifier_yes_work
(identifier_maybe_work) identifier_maybe_work
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_works) identifier_works
(identifier_sort) identifier_sort
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ym_results_path) identifier_ym_results_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__ym_intersects_dir) identifier__ym_intersects_dir
)attribute
(call
(attribute
(string_'{}_intersect_{}.csv') string_'{}_intersect_{}.csv'
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(identifier_works) identifier_works
)list_splat
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stats) identifier_stats
(call
(attribute
(identifier_self) identifier_self
(identifier__process_intersection) identifier__process_intersection
)attribute
(argument_list
(identifier_yes_work) identifier_yes_work
(identifier_maybe_work) identifier_maybe_work
(identifier_work_dir) identifier_work_dir
(identifier_ym_results_path) identifier_ym_results_path
(identifier_stats) identifier_stats
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stats) identifier_stats
(call
(attribute
(identifier_self) identifier_self
(identifier__process_diff) identifier__process_diff
)attribute
(argument_list
(identifier_yes_work) identifier_yes_work
(identifier_maybe_work) identifier_maybe_work
(identifier_work_dir) identifier_work_dir
(identifier_ym_results_path) identifier_ym_results_path
(identifier_yn_results_path) identifier_yn_results_path
(identifier_stats) identifier_stats
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_stats) identifier_stats
)return_statement
)block
)function_definition
)module | Returns statistics of how `yes_work` compares with `maybe_work`.
:param yes_work: name of work for which stats are collected
:type yes_work: `str`
:param maybe_work: name of work being compared with `yes_work`
:type maybe_work: `str`
:param work_dir: directory where generated files are saved
:type work_dir: `str`
:param yn_results_path: path to results intersecting
`yes_work` with "no" works
:type yn_results_path: `str`
:param stats: data structure to hold statistical data of the
comparison
:type stats: `dict`
:rtype: `dict` |
(module
(function_definition
(function_name_iterfields) function_name_iterfields
(parameters
(identifier_klass) identifier_klass
)parameters
(block
(expression_statement
(assignment
(identifier_is_field) identifier_is_field
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_TypedField) identifier_TypedField
)argument_list
)call
)lambda
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_field) identifier_field
)pattern_list
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_getmembers) identifier_getmembers
)attribute
(argument_list
(identifier_klass) identifier_klass
(keyword_argument
(identifier_predicate) identifier_predicate
(identifier_is_field) identifier_is_field
)keyword_argument
)argument_list
)call
(block
(expression_statement
(yield
(expression_list
(identifier_name) identifier_name
(identifier_field) identifier_field
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Iterate over the input class members and yield its TypedFields.
Args:
klass: A class (usually an Entity subclass).
Yields:
(class attribute name, TypedField instance) tuples. |
(module
(function_definition
(function_name_status) function_name_status
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_rqst) identifier_rqst
(call
(identifier_Request) identifier_Request
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_session) identifier_session
)attribute
(string_'GET') string_'GET'
(string_'/manager/status') string_'/manager/status'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rqst) identifier_rqst
(identifier_set_json) identifier_set_json
)attribute
(argument_list
(dictionary
(pair
(string_'status') string_'status'
(string_'running') string_'running'
)pair
)dictionary
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_rqst) identifier_rqst
(identifier_fetch) identifier_fetch
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_resp) identifier_resp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(await
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)await
)return_statement
)block
)with_statement
)block
)function_definition
)module | Returns the current status of the configured API server. |
(module
(function_definition
(function_name_insertAdjacentHTML) function_name_insertAdjacentHTML
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_position) identifier_position
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_html) identifier_html
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_html) identifier__parse_html
)attribute
(argument_list
(identifier_html) identifier_html
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(call
(attribute
(identifier_position) identifier_position
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pos) identifier_pos
(string_'beforebegin') string_'beforebegin'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_before) identifier_before
)attribute
(argument_list
(identifier_df) identifier_df
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_pos) identifier_pos
(string_'afterbegin') string_'afterbegin'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_prepend) identifier_prepend
)attribute
(argument_list
(identifier_df) identifier_df
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_pos) identifier_pos
(string_'beforeend') string_'beforeend'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_df) identifier_df
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_pos) identifier_pos
(string_'afterend') string_'afterend'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_after) identifier_after
)attribute
(argument_list
(identifier_df) identifier_df
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'The value provided ({}) is not one of "beforeBegin", ') string_'The value provided ({}) is not one of "beforeBegin", '
(string_'"afterBegin", "beforeEnd", or "afterEnd".') string_'"afterBegin", "beforeEnd", or "afterEnd".'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_position) identifier_position
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Parse ``html`` to DOM and insert to ``position``.
``position`` is a case-insensive string, and must be one of
"beforeBegin", "afterBegin", "beforeEnd", or "afterEnd". |
(module
(function_definition
(function_name_powerset) function_name_powerset
(parameters
(identifier_iterable) identifier_iterable
(keyword_separator
)keyword_separator
(default_parameter
(identifier_reverse) identifier_reverse
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_lst) identifier_lst
(call
(identifier_list) identifier_list
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_reverse) identifier_reverse
(block
(expression_statement
(assignment
(identifier_rng) identifier_rng
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_lst) identifier_lst
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_rng) identifier_rng
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lst) identifier_lst
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_chain) identifier_chain
(identifier_from_iterable) identifier_from_iterable
)attribute
(generator_expression
(call
(identifier_combinations) identifier_combinations
(argument_list
(identifier_lst) identifier_lst
(identifier_r) identifier_r
)argument_list
)call
(for_in_clause
(identifier_r) identifier_r
(identifier_rng) identifier_rng
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Return the powerset.
Arguments
---------
iterable : iterable
reverse : boolean
Indicates whether the powerset should be returned descending by
size
Returns
-------
A generator producing each element of the powerset. |
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_text) identifier_text
(None) None
)default_parameter
(default_parameter
(identifier_attachments) identifier_attachments
(None) None
)default_parameter
(default_parameter
(identifier_source_guid) identifier_source_guid
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_messages) identifier_messages
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(keyword_argument
(identifier_text) identifier_text
(identifier_text) identifier_text
)keyword_argument
(keyword_argument
(identifier_attachments) identifier_attachments
(identifier_attachments) identifier_attachments
)keyword_argument
(keyword_argument
(identifier_source_guid) identifier_source_guid
(identifier_source_guid) identifier_source_guid
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Post a direct message to the user.
:param str text: the message content
:param attachments: message attachments
:param str source_guid: a client-side unique ID for the message
:return: the message sent
:rtype: :class:`~groupy.api.messages.DirectMessage` |
(module
(function_definition
(function_name_filename_for) function_name_filename_for
(parameters
(identifier_self) identifier_self
(identifier_subpath) identifier_subpath
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(identifier_self) identifier_self
(identifier_readme_for) identifier_readme_for
)attribute
(argument_list
(identifier_subpath) identifier_subpath
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(identifier_filename) identifier_filename
(attribute
(identifier_self) identifier_self
(identifier_root_directory) identifier_root_directory
)attribute
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ReadmeNotFoundError) identifier_ReadmeNotFoundError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the relative filename for the specified subpath, or the
root filename if subpath is None.
Raises werkzeug.exceptions.NotFound if the resulting path
would fall out of the root directory. |
(module
(function_definition
(function_name_photos) function_name_photos
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
(default_parameter
(identifier_page) identifier_page
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_per_page) identifier_per_page
(integer_10) integer_10
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(string_"/search/photos") string_"/search/photos"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__search) identifier__search
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_query) identifier_query
(keyword_argument
(identifier_page) identifier_page
(identifier_page) identifier_page
)keyword_argument
(keyword_argument
(identifier_per_page) identifier_per_page
(identifier_per_page) identifier_per_page
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"results") string_"results"
)subscript
(call
(attribute
(identifier_PhotoModel) identifier_PhotoModel
(identifier_parse_list) identifier_parse_list
)attribute
(argument_list
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_"results") string_"results"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Get a single page of photo results for a query.
:param query [string]: Search terms.
:param page [integer]: Page number to retrieve. (Optional; default: 1)
:param per_page [integer]: Number of items per page. (Optional; default: 10)
:return: [dict]: {u'total': 0, u'total_pages': 0, u'results': [Photo]} |
(module
(function_definition
(function_name_needs_gcloud) function_name_needs_gcloud
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_gcloud_default_path) identifier_gcloud_default_path
(list
(string_'google-cloud-sdk') string_'google-cloud-sdk'
(string_'bin') string_'bin'
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_platform) identifier_platform
(identifier_system) identifier_system
)attribute
(argument_list
)argument_list
)call
(string_"Windows") string_"Windows"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_gcloud_default_path) identifier_gcloud_default_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(string_'~') string_'~'
)argument_list
)call
(list_splat
(identifier_gcloud_default_path) identifier_gcloud_default_path
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_gcloud_default_path) identifier_gcloud_default_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(string_'LOCALAPPDATA') string_'LOCALAPPDATA'
)subscript
(string_'Google') string_'Google'
(string_'Cloud SDK') string_'Cloud SDK'
(list_splat
(identifier_gcloud_default_path) identifier_gcloud_default_path
)list_splat
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(boolean_operator
(boolean_operator
(not_operator
(call
(attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_getenv) identifier_getenv
)attribute
(argument_list
(string_'SERVER_SOFTWARE') string_'SERVER_SOFTWARE'
(string_'') string_''
)argument_list
)call
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'Google App Engine/') string_'Google App Engine/'
)argument_list
)call
)not_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_gcloud_default_path) identifier_gcloud_default_path
(call
(attribute
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(string_"PATH") string_"PATH"
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(attribute
(identifier_os) identifier_os
(identifier_pathsep) identifier_pathsep
)attribute
)argument_list
)call
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_which) identifier_which
(argument_list
(string_'gcloud') string_'gcloud'
)argument_list
)call
(None) None
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Returns true if gcloud is unavailable and needed for
authentication. |
(module
(function_definition
(function_name__one_iteration) function_name__one_iteration
(parameters
(identifier_self) identifier_self
(identifier_F) identifier_F
(identifier_Ybus) identifier_Ybus
(identifier_V) identifier_V
(identifier_Vm) identifier_Vm
(identifier_Va) identifier_Va
(identifier_pv) identifier_pv
(identifier_pq) identifier_pq
(identifier_pvpq) identifier_pvpq
)parameters
(block
(expression_statement
(assignment
(identifier_J) identifier_J
(call
(attribute
(identifier_self) identifier_self
(identifier__build_jacobian) identifier__build_jacobian
)attribute
(argument_list
(identifier_Ybus) identifier_Ybus
(identifier_V) identifier_V
(identifier_pv) identifier_pv
(identifier_pq) identifier_pq
(identifier_pvpq) identifier_pvpq
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dx) identifier_dx
(binary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(call
(identifier_spsolve) identifier_spsolve
(argument_list
(identifier_J) identifier_J
(identifier_F) identifier_F
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_npv) identifier_npv
(call
(identifier_len) identifier_len
(argument_list
(identifier_pv) identifier_pv
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_npq) identifier_npq
(call
(identifier_len) identifier_len
(argument_list
(identifier_pq) identifier_pq
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_npv) identifier_npv
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_Va) identifier_Va
(identifier_pv) identifier_pv
)subscript
(binary_operator
(subscript
(identifier_Va) identifier_Va
(identifier_pv) identifier_pv
)subscript
(subscript
(identifier_dx) identifier_dx
(call
(identifier_range) identifier_range
(argument_list
(identifier_npv) identifier_npv
)argument_list
)call
)subscript
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_npq) identifier_npq
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_Va) identifier_Va
(identifier_pq) identifier_pq
)subscript
(binary_operator
(subscript
(identifier_Va) identifier_Va
(identifier_pq) identifier_pq
)subscript
(subscript
(identifier_dx) identifier_dx
(call
(identifier_range) identifier_range
(argument_list
(identifier_npv) identifier_npv
(binary_operator
(identifier_npv) identifier_npv
(identifier_npq) identifier_npq
)binary_operator
)argument_list
)call
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_Vm) identifier_Vm
(identifier_pq) identifier_pq
)subscript
(binary_operator
(subscript
(identifier_Vm) identifier_Vm
(identifier_pq) identifier_pq
)subscript
(subscript
(identifier_dx) identifier_dx
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(identifier_npv) identifier_npv
(identifier_npq) identifier_npq
)binary_operator
(binary_operator
(binary_operator
(identifier_npv) identifier_npv
(identifier_npq) identifier_npq
)binary_operator
(identifier_npq) identifier_npq
)binary_operator
)argument_list
)call
)subscript
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_V) identifier_V
(binary_operator
(identifier_Vm) identifier_Vm
(call
(identifier_exp) identifier_exp
(argument_list
(binary_operator
(integer_1j) integer_1j
(identifier_Va) identifier_Va
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Vm) identifier_Vm
(call
(identifier_abs) identifier_abs
(argument_list
(identifier_V) identifier_V
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Va) identifier_Va
(call
(identifier_angle) identifier_angle
(argument_list
(identifier_V) identifier_V
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_V) identifier_V
(identifier_Vm) identifier_Vm
(identifier_Va) identifier_Va
)expression_list
)return_statement
)block
)function_definition
)module | Performs one Newton iteration. |
(module
(function_definition
(function_name_load_rc) function_name_load_rc
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(default_parameter
(identifier_system) identifier_system
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_user_rc_path) identifier_user_rc_path
)attribute
)argument_list
)call
(not_operator
(identifier_system) identifier_system
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_user_rc_path) identifier_user_rc_path
)attribute
)assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sys_rc_path) identifier_sys_rc_path
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_sys_rc_path) identifier_sys_rc_path
)attribute
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_path) identifier_path
)not_operator
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(boolean_operator
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(dictionary
)dictionary
)boolean_operator
)return_statement
)block
)with_statement
)block
)function_definition
)module | Load the conda configuration file.
If both user and system configuration exists, user will be used. |
(module
(function_definition
(function_name_get_current_value) function_name_get_current_value
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_use_cached) identifier_use_cached
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_current_value) identifier_current_value
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_stream_metadata) identifier__get_stream_metadata
)attribute
(argument_list
(identifier_use_cached) identifier_use_cached
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_"currentValue") string_"currentValue"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_current_value) identifier_current_value
(block
(return_statement
(call
(attribute
(identifier_DataPoint) identifier_DataPoint
(identifier_from_json) identifier_from_json
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_current_value) identifier_current_value
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the most recent DataPoint value written to a stream
The current value is the last recorded data point for this stream.
:param bool use_cached: If False, the function will always request the latest from Device Cloud.
If True, the device will not make a request if it already has cached data.
:raises devicecloud.DeviceCloudHttpException: in the case of an unexpected http error
:raises devicecloud.streams.NoSuchStreamException: if this stream has not yet been created
:return: The most recent value written to this stream (or None if nothing has been written)
:rtype: :class:`~DataPoint` or None |
(module
(function_definition
(function_name_eigenvalues_samples) function_name_eigenvalues_samples
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(tuple
(attribute
(identifier_self) identifier_self
(identifier_nsamples) identifier_nsamples
)attribute
(attribute
(identifier_self) identifier_self
(identifier_nstates) identifier_nstates
)attribute
)tuple
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_config) identifier_config
(identifier_dtype) identifier_dtype
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_nsamples) identifier_nsamples
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_res) identifier_res
(identifier_i) identifier_i
(slice
(colon) colon
)slice
)subscript
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__sampled_hmms) identifier__sampled_hmms
)attribute
(identifier_i) identifier_i
)subscript
(identifier_eigenvalues) identifier_eigenvalues
)attribute
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | r""" Samples of the eigenvalues |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
(identifier_dict) identifier_dict
)parameters
(block
(expression_statement
(assignment
(identifier_ex_res) identifier_ex_res
(call
(attribute
(identifier_self) identifier_self
(identifier_extract) identifier_extract
)attribute
(argument_list
(subscript
(identifier_dict) identifier_dict
(string_'url') string_'url'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(string_"{sid}:{dom}.{suf}:queue") string_"{sid}:{dom}.{suf}:queue"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_sid) identifier_sid
(subscript
(identifier_dict) identifier_dict
(string_'spiderid') string_'spiderid'
)subscript
)keyword_argument
(keyword_argument
(identifier_dom) identifier_dom
(attribute
(identifier_ex_res) identifier_ex_res
(identifier_domain) identifier_domain
)attribute
)keyword_argument
(keyword_argument
(identifier_suf) identifier_suf
(attribute
(identifier_ex_res) identifier_ex_res
(identifier_suffix) identifier_suffix
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(identifier_ujson) identifier_ujson
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_dict) identifier_dict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_redis_conn) identifier_redis_conn
)attribute
(identifier_zadd) identifier_zadd
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_val) identifier_val
(unary_operator
(subscript
(identifier_dict) identifier_dict
(string_'priority') string_'priority'
)subscript
)unary_operator
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'expires') string_'expires'
(identifier_dict) identifier_dict
)comparison_operator
(comparison_operator
(subscript
(identifier_dict) identifier_dict
(string_'expires') string_'expires'
)subscript
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(string_"timeout:{sid}:{appid}:{crawlid}") string_"timeout:{sid}:{appid}:{crawlid}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_sid) identifier_sid
(subscript
(identifier_dict) identifier_dict
(string_'spiderid') string_'spiderid'
)subscript
)keyword_argument
(keyword_argument
(identifier_appid) identifier_appid
(subscript
(identifier_dict) identifier_dict
(string_'appid') string_'appid'
)subscript
)keyword_argument
(keyword_argument
(identifier_crawlid) identifier_crawlid
(subscript
(identifier_dict) identifier_dict
(string_'crawlid') string_'crawlid'
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_redis_conn) identifier_redis_conn
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_key) identifier_key
(subscript
(identifier_dict) identifier_dict
(string_'expires') string_'expires'
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_dict) identifier_dict
(string_'parsed') string_'parsed'
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_dict) identifier_dict
(string_'valid') string_'valid'
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Added crawl to Redis') string_'Added crawl to Redis'
(keyword_argument
(identifier_extra) identifier_extra
(identifier_dict) identifier_dict
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Processes a vaild crawl request
@param dict: a valid dictionary object |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_body) identifier_body
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_top_level) identifier__parse_top_level
)attribute
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_resource) identifier__parse_resource
)attribute
(argument_list
(subscript
(identifier_body) identifier_body
(string_'data') string_'data'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_resource) identifier_resource
(subscript
(identifier_body) identifier_body
(string_'data') string_'data'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'attributes') string_'attributes'
(identifier_resource) identifier_resource
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_attributes) identifier__parse_attributes
)attribute
(argument_list
(subscript
(identifier_resource) identifier_resource
(string_'attributes') string_'attributes'
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'relationships') string_'relationships'
(identifier_resource) identifier_resource
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_relationships) identifier__parse_relationships
)attribute
(argument_list
(subscript
(identifier_resource) identifier_resource
(string_'relationships') string_'relationships'
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Invoke the JSON API spec compliant parser
Order is important. Start from the request body root key
& work your way down so exception handling is easier to
follow.
:return:
the parsed & vetted request body |
(module
(function_definition
(function_name_remove_all_labels) function_name_remove_all_labels
(parameters
(default_parameter
(identifier_stdout) identifier_stdout
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_stdout) identifier_stdout
)not_operator
(block
(expression_statement
(assignment
(identifier_stdout) identifier_stdout
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_stdout) identifier_stdout
(identifier_write) identifier_write
)attribute
(argument_list
(string_"Droping constraints...\n") string_"Droping constraints...\n"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_drop_constraints) identifier_drop_constraints
(argument_list
(keyword_argument
(identifier_quiet) identifier_quiet
(False) False
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(identifier_stdout) identifier_stdout
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_stdout) identifier_stdout
(identifier_write) identifier_write
)attribute
(argument_list
(string_'Droping indexes...\n') string_'Droping indexes...\n'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_drop_indexes) identifier_drop_indexes
(argument_list
(keyword_argument
(identifier_quiet) identifier_quiet
(False) False
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(identifier_stdout) identifier_stdout
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Calls functions for dropping constraints and indexes.
:param stdout: output stream
:return: None |
(module
(function_definition
(function_name__tab) function_name__tab
(parameters
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(call
(identifier__data_frame) identifier__data_frame
(argument_list
(identifier_content) identifier_content
)argument_list
)call
(identifier_to_csv) identifier_to_csv
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(False) False
)keyword_argument
(keyword_argument
(identifier_sep) identifier_sep
(string_'\t') string_'\t'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Helper funcation that converts text-based get response
to tab separated values for additional manipulation. |
(module
(function_definition
(function_name_detect_format) function_name_detect_format
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_filename) identifier_filename
(identifier_suffix) identifier_suffix
)attribute
(string_'.csv') string_'.csv'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_recformat) identifier_recformat
(string_'csv') string_'csv'
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_filename) identifier_filename
(identifier_suffix) identifier_suffix
)attribute
(string_'.sfp') string_'.sfp'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_recformat) identifier_recformat
(string_'sfp') string_'sfp'
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_recformat) identifier_recformat
(string_'unknown') string_'unknown'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_recformat) identifier_recformat
)return_statement
)block
)function_definition
)module | Detect file format of the channels based on extension.
Parameters
----------
filename : Path
name of the filename
Returns
-------
str
file format |
(module
(function_definition
(function_name_predict) function_name_predict
(parameters
(identifier_self) identifier_self
(identifier_y_prob) identifier_y_prob
)parameters
(block
(expression_statement
(assignment
(identifier_y_pred) identifier_y_pred
(call
(attribute
(identifier_np) identifier_np
(identifier_floor) identifier_floor
)attribute
(argument_list
(binary_operator
(subscript
(identifier_y_prob) identifier_y_prob
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(attribute
(identifier_self) identifier_self
(identifier_threshold_) identifier_threshold_
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_y_pred) identifier_y_pred
)return_statement
)block
)function_definition
)module | Calculate the prediction using the ThresholdingOptimization.
Parameters
----------
y_prob : array-like of shape = [n_samples, 2]
Predicted probabilities.
Returns
-------
y_pred : array-like of shape = [n_samples]
Predicted class |
(module
(function_definition
(function_name__getitem_with_mask) function_name__getitem_with_mask
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_fill_value) identifier_fill_value
(attribute
(identifier_dtypes) identifier_dtypes
(identifier_NA) identifier_NA
)attribute
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_fill_value) identifier_fill_value
(attribute
(identifier_dtypes) identifier_dtypes
(identifier_NA) identifier_NA
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_fill_value) identifier_fill_value
(call
(attribute
(identifier_dtypes) identifier_dtypes
(identifier_get_fill_value) identifier_get_fill_value
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dtype) identifier_dtype
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_dims) identifier_dims
(identifier_indexer) identifier_indexer
(identifier_new_order) identifier_new_order
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__broadcast_indexes) identifier__broadcast_indexes
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_dask_array_type) identifier_dask_array_type
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_actual_indexer) identifier_actual_indexer
(call
(attribute
(identifier_indexing) identifier_indexing
(identifier_posify_mask_indexer) identifier_posify_mask_indexer
)attribute
(argument_list
(identifier_indexer) identifier_indexer
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_actual_indexer) identifier_actual_indexer
(identifier_indexer) identifier_indexer
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(call
(identifier_as_indexable) identifier_as_indexable
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
)argument_list
)call
(identifier_actual_indexer) identifier_actual_indexer
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chunks_hint) identifier_chunks_hint
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_data) identifier_data
(string_'chunks') string_'chunks'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(attribute
(identifier_indexing) identifier_indexing
(identifier_create_mask) identifier_create_mask
)attribute
(argument_list
(identifier_indexer) identifier_indexer
(attribute
(identifier_self) identifier_self
(identifier_shape) identifier_shape
)attribute
(identifier_chunks_hint) identifier_chunks_hint
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_duck_array_ops) identifier_duck_array_ops
(identifier_where) identifier_where
)attribute
(argument_list
(identifier_mask) identifier_mask
(identifier_fill_value) identifier_fill_value
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(attribute
(identifier_indexing) identifier_indexing
(identifier_create_mask) identifier_create_mask
)attribute
(argument_list
(identifier_indexer) identifier_indexer
(attribute
(identifier_self) identifier_self
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_np) identifier_np
(identifier_broadcast_to) identifier_broadcast_to
)attribute
(argument_list
(identifier_fill_value) identifier_fill_value
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_mask) identifier_mask
(string_'shape') string_'shape'
(tuple
)tuple
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_new_order) identifier_new_order
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_np) identifier_np
(identifier_moveaxis) identifier_moveaxis
)attribute
(argument_list
(identifier_data) identifier_data
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_new_order) identifier_new_order
)argument_list
)call
)argument_list
)call
(identifier_new_order) identifier_new_order
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__finalize_indexing_result) identifier__finalize_indexing_result
)attribute
(argument_list
(identifier_dims) identifier_dims
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Index this Variable with -1 remapped to fill_value. |
(module
(function_definition
(function_name_exposed_method) function_name_exposed_method
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_private) identifier_private
(False) False
)default_parameter
(default_parameter
(identifier_is_coroutine) identifier_is_coroutine
(True) True
)default_parameter
(default_parameter
(identifier_requires_handler_reference) identifier_requires_handler_reference
(False) False
)default_parameter
)parameters
(block
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(identifier_func) identifier_func
)parameters
(block
(if_statement
(identifier_name) identifier_name
(block
(expression_statement
(assignment
(identifier_method_name) identifier_method_name
(identifier_name) identifier_name
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_method_name) identifier_method_name
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_METHOD_NAME_REGEX) identifier_METHOD_NAME_REGEX
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_method_name) identifier_method_name
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Invalid method name: '{}'") string_"Invalid method name: '{}'"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_method_name) identifier_method_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_real_wrapper) function_name_real_wrapper
(parameters
(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
(identifier_func) identifier_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(if_statement
(identifier_private) identifier_private
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_real_wrapper) identifier_real_wrapper
(string_"_exposed_private") string_"_exposed_private"
(True) True
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_real_wrapper) identifier_real_wrapper
(string_"_exposed_public") string_"_exposed_public"
(True) True
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_is_coroutine) identifier_is_coroutine
(block
(expression_statement
(assignment
(attribute
(identifier_real_wrapper) identifier_real_wrapper
(identifier___gemstone_is_coroutine) identifier___gemstone_is_coroutine
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_real_wrapper) identifier_real_wrapper
(call
(attribute
(attribute
(identifier_tornado) identifier_tornado
(identifier_gen) identifier_gen
)attribute
(identifier_coroutine) identifier_coroutine
)attribute
(argument_list
(identifier_real_wrapper) identifier_real_wrapper
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_real_wrapper) identifier_real_wrapper
(string_"_is_coroutine") string_"_is_coroutine"
(True) True
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_requires_handler_reference) identifier_requires_handler_reference
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_real_wrapper) identifier_real_wrapper
(string_"_req_h_ref") string_"_req_h_ref"
(True) True
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_real_wrapper) identifier_real_wrapper
(string_"_exposed_name") string_"_exposed_name"
(identifier_method_name) identifier_method_name
)argument_list
)call
)expression_statement
(return_statement
(identifier_real_wrapper) identifier_real_wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Marks a method as exposed via JSON RPC.
:param name: the name of the exposed method. Must contains only letters, digits, dots and underscores.
If not present or is set explicitly to ``None``, this parameter will default to the name
of the exposed method.
If two methods with the same name are exposed, a ``ValueError`` is raised.
:type name: str
:param private: Flag that specifies if the exposed method is private.
:type private: bool
:param is_coroutine: Flag that specifies if the method is a Tornado coroutine. If True, it will be wrapped
with the :py:func:`tornado.gen.coroutine` decorator.
:type is_coroutine: bool
:param requires_handler_reference: If ``True``, the handler method will receive as the first
parameter a ``handler`` argument with the Tornado
request handler for the current request. This request handler
can be further used to extract various information from the
request, such as headers, cookies, etc.
:type requires_handler_reference: bool
.. versionadded:: 0.9.0 |
(module
(function_definition
(function_name__run_cmplx) function_name__run_cmplx
(parameters
(identifier_fn) identifier_fn
(identifier_image) identifier_image
)parameters
(block
(expression_statement
(assignment
(identifier_original_format) identifier_original_format
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
(string_'complex') string_'complex'
)comparison_operator
(comparison_operator
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
(string_'dpcomplex') string_'dpcomplex'
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_image) identifier_image
(identifier_bands) identifier_bands
)attribute
(integer_2) integer_2
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_Error) identifier_Error
(argument_list
(string_'not an even number of bands') string_'not an even number of bands'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
(string_'float') string_'float'
)comparison_operator
(comparison_operator
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
(string_'double') string_'double'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_image) identifier_image
(identifier_cast) identifier_cast
)attribute
(argument_list
(string_'float') string_'float'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
(string_'double') string_'double'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_format) identifier_new_format
(string_'dpcomplex') string_'dpcomplex'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_new_format) identifier_new_format
(string_'complex') string_'complex'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_image) identifier_image
(identifier_copy) identifier_copy
)attribute
(argument_list
(keyword_argument
(identifier_format) identifier_format
(identifier_new_format) identifier_new_format
)keyword_argument
(keyword_argument
(identifier_bands) identifier_bands
(binary_operator
(attribute
(identifier_image) identifier_image
(identifier_bands) identifier_bands
)attribute
(integer_2) integer_2
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(identifier_fn) identifier_fn
(argument_list
(identifier_image) identifier_image
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_original_format) identifier_original_format
(string_'complex') string_'complex'
)comparison_operator
(comparison_operator
(identifier_original_format) identifier_original_format
(string_'dpcomplex') string_'dpcomplex'
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_image) identifier_image
(identifier_format) identifier_format
)attribute
(string_'dpcomplex') string_'dpcomplex'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_new_format) identifier_new_format
(string_'double') string_'double'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_new_format) identifier_new_format
(string_'float') string_'float'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_image) identifier_image
(identifier_copy) identifier_copy
)attribute
(argument_list
(keyword_argument
(identifier_format) identifier_format
(identifier_new_format) identifier_new_format
)keyword_argument
(keyword_argument
(identifier_bands) identifier_bands
(binary_operator
(attribute
(identifier_image) identifier_image
(identifier_bands) identifier_bands
)attribute
(integer_2) integer_2
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_image) identifier_image
)return_statement
)block
)function_definition
)module | Run a complex function on a non-complex image.
The image needs to be complex, or have an even number of bands. The input
can be int, the output is always float or double. |
(module
(function_definition
(function_name_find_by_id) function_name_find_by_id
(parameters
(identifier_self) identifier_self
(identifier_organization_export) identifier_organization_export
(default_parameter
(identifier_params) identifier_params
(dictionary
)dictionary
)default_parameter
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(binary_operator
(string_"/organization_exports/%s") string_"/organization_exports/%s"
(parenthesized_expression
(identifier_organization_export) identifier_organization_export
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_params) identifier_params
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns details of a previously-requested Organization export.
Parameters
----------
organization_export : {Id} Globally unique identifier for the Organization export.
[params] : {Object} Parameters for the request |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_cls) identifier_cls
(identifier_source) identifier_source
(default_parameter
(identifier_format) identifier_format
(None) None
)default_parameter
(default_parameter
(identifier_coalesce) identifier_coalesce
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_combiner) function_name_combiner
(parameters
(identifier_listofseglists) identifier_listofseglists
)parameters
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(identifier_cls) identifier_cls
(generator_expression
(identifier_seg) identifier_seg
(for_in_clause
(identifier_seglist) identifier_seglist
(identifier_listofseglists) identifier_listofseglists
)for_in_clause
(for_in_clause
(identifier_seg) identifier_seg
(identifier_seglist) identifier_seglist
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(identifier_coalesce) identifier_coalesce
(block
(return_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_coalesce) identifier_coalesce
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
(return_statement
(call
(identifier_io_read_multi) identifier_io_read_multi
(argument_list
(identifier_combiner) identifier_combiner
(identifier_cls) identifier_cls
(identifier_source) identifier_source
(keyword_argument
(identifier_format) identifier_format
(identifier_format) identifier_format
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read segments from file into a `SegmentList`
Parameters
----------
filename : `str`
path of file to read
format : `str`, optional
source format identifier. If not given, the format will be
detected if possible. See below for list of acceptable
formats.
coalesce : `bool`, optional
if `True` coalesce the segment list before returning,
otherwise return exactly as contained in file(s).
**kwargs
other keyword arguments depend on the format, see the online
documentation for details (:ref:`gwpy-segments-io`)
Returns
-------
segmentlist : `SegmentList`
`SegmentList` active and known segments read from file.
Notes
----- |
(module
(function_definition
(function_name_complete) function_name_complete
(parameters
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)parameters
(block
(assert_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_complete) identifier_is_complete
)attribute
(argument_list
)argument_list
)call
)not_operator
)assert_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__marker) identifier__marker
)attribute
(identifier_addInputPort) identifier_addInputPort
)attribute
(argument_list
(keyword_argument
(identifier_outputPort) identifier_outputPort
(attribute
(identifier_stream) identifier_stream
(identifier_oport) identifier_oport
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_oport) identifier_oport
)attribute
(identifier_schema) identifier_schema
)attribute
(attribute
(attribute
(identifier_stream) identifier_stream
(identifier_oport) identifier_oport
)attribute
(identifier_schema) identifier_schema
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pending_schema) identifier__pending_schema
)attribute
(identifier__set) identifier__set
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(identifier_oport) identifier_oport
)attribute
(identifier_schema) identifier_schema
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_stream) identifier_stream
(identifier_oport) identifier_oport
)attribute
(identifier_operator) identifier_operator
)attribute
(identifier__start_op) identifier__start_op
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Complete the pending stream.
Any connections made to :py:attr:`stream` are connected to `stream` once
this method returns.
Args:
stream(Stream): Stream that completes the connection. |
(module
(function_definition
(function_name_describe_volumes) function_name_describe_volumes
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_volume_ids) identifier_volume_ids
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_volumeset) identifier_volumeset
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_pos) identifier_pos
(identifier_volume_id) identifier_volume_id
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_volume_ids) identifier_volume_ids
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_volumeset) identifier_volumeset
(binary_operator
(string_"VolumeId.%d") string_"VolumeId.%d"
(parenthesized_expression
(binary_operator
(identifier_pos) identifier_pos
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)subscript
(identifier_volume_id) identifier_volume_id
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_self) identifier_self
(identifier_query_factory) identifier_query_factory
)attribute
(argument_list
(keyword_argument
(identifier_action) identifier_action
(string_"DescribeVolumes") string_"DescribeVolumes"
)keyword_argument
(keyword_argument
(identifier_creds) identifier_creds
(attribute
(identifier_self) identifier_self
(identifier_creds) identifier_creds
)attribute
)keyword_argument
(keyword_argument
(identifier_endpoint) identifier_endpoint
(attribute
(identifier_self) identifier_self
(identifier_endpoint) identifier_endpoint
)attribute
)keyword_argument
(keyword_argument
(identifier_other_params) identifier_other_params
(identifier_volumeset) identifier_volumeset
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_query) identifier_query
(identifier_submit) identifier_submit
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_d) identifier_d
(identifier_addCallback) identifier_addCallback
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parser) identifier_parser
)attribute
(identifier_describe_volumes) identifier_describe_volumes
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Describe available volumes. |
(module
(function_definition
(function_name__ip_string_from_prefix) function_name__ip_string_from_prefix
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_prefixlen) identifier_prefixlen
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_prefixlen) identifier_prefixlen
)not_operator
(block
(expression_statement
(assignment
(identifier_prefixlen) identifier_prefixlen
(attribute
(identifier_self) identifier_self
(identifier__prefixlen) identifier__prefixlen
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__string_from_ip_int) identifier__string_from_ip_int
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__ip_int_from_prefix) identifier__ip_int_from_prefix
)attribute
(argument_list
(identifier_prefixlen) identifier_prefixlen
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Turn a prefix length into a dotted decimal string.
Args:
prefixlen: An integer, the netmask prefix length.
Returns:
A string, the dotted decimal netmask string. |
(module
(function_definition
(function_name_del_object_from_parent) function_name_del_object_from_parent
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_objects) identifier_objects
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ref) identifier_ref
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Delete object from parent object. |
(module
(function_definition
(function_name_clean_fail) function_name_clean_fail
(parameters
(identifier_func) identifier_func
)parameters
(block
(function_definition
(function_name_func_wrapper) function_name_func_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_botocore) identifier_botocore
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_ClientError) identifier_ClientError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)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
)block
)function_definition
(return_statement
(identifier_func_wrapper) identifier_func_wrapper
)return_statement
)block
)function_definition
)module | A decorator to cleanly exit on a failed call to AWS.
catch a `botocore.exceptions.ClientError` raised from an action.
This sort of error is raised if you are targeting a region that
isn't set up (see, `credstash setup`. |
(module
(function_definition
(function_name__format_summary_node) function_name__format_summary_node
(parameters
(identifier_self) identifier_self
(identifier_task_class) identifier_task_class
)parameters
(block
(expression_statement
(assignment
(identifier_modulename) identifier_modulename
(attribute
(identifier_task_class) identifier_task_class
(identifier___module__) identifier___module__
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_classname) identifier_classname
(attribute
(identifier_task_class) identifier_task_class
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nodes) identifier_nodes
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__format_class_nodes) identifier__format_class_nodes
)attribute
(argument_list
(identifier_task_class) identifier_task_class
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__format_config_nodes) identifier__format_config_nodes
)attribute
(argument_list
(identifier_modulename) identifier_modulename
(identifier_classname) identifier_classname
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_methods) identifier_methods
(tuple
(string_'run') string_'run'
(string_'runDataRef') string_'runDataRef'
)tuple
)assignment
)expression_statement
(for_statement
(identifier_method) identifier_method
(identifier_methods) identifier_methods
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_task_class) identifier_task_class
(identifier_method) identifier_method
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_method_obj) identifier_method_obj
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_task_class) identifier_task_class
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__format_method_nodes) identifier__format_method_nodes
)attribute
(argument_list
(identifier_method_obj) identifier_method_obj
(identifier_modulename) identifier_modulename
(identifier_classname) identifier_classname
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_nodes) identifier_nodes
)return_statement
)block
)function_definition
)module | Format a section node containg a summary of a Task class's key APIs. |
(module
(function_definition
(function_name_data_structure_builder) function_name_data_structure_builder
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_ds_builder_wrapper) function_name_ds_builder_wrapper
(parameters
(identifier_function) identifier_function
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_function) identifier_function
(call
(identifier_DSBuilder) identifier_DSBuilder
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_NoBuilder) identifier_NoBuilder
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_function) identifier_function
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_ds_builder_wrapper) identifier_ds_builder_wrapper
)return_statement
)block
)function_definition
)module | Decorator to handle automatic data structure creation for pipe-utils. |
(module
(function_definition
(function_name__create_sot_file) function_name__create_sot_file
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__delete_file) identifier__delete_file
)attribute
(argument_list
(keyword_argument
(identifier_filename) identifier_filename
(string_"sot_file") string_"sot_file"
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_commands) identifier_commands
(list
(string_"terminal dont-ask") string_"terminal dont-ask"
(string_"checkpoint file sot_file") string_"checkpoint file sot_file"
(string_"no terminal dont-ask") string_"no terminal dont-ask"
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_command_list) identifier__send_command_list
)attribute
(argument_list
(identifier_commands) identifier_commands
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create Source of Truth file to compare. |
(module
(function_definition
(function_name_get_doctype) function_name_get_doctype
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_index) identifier_index
(attribute
(identifier_self) identifier_self
(identifier_indices) identifier_indices
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_all_indices) identifier_get_all_indices
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_indices) identifier_indices
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_index) identifier_index
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
(None) None
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a doctype given an index and a name |
(module
(function_definition
(function_name_WriteUInt160) function_name_WriteUInt160
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_UInt160) identifier_UInt160
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_Serialize) identifier_Serialize
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"value must be UInt160 instance ") string_"value must be UInt160 instance "
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Write a UInt160 type to the stream.
Args:
value (UInt160):
Raises:
Exception: when `value` is not of neocore.UInt160 type. |
(module
(function_definition
(function_name__get_model_metadata) function_name__get_model_metadata
(parameters
(identifier_model_class) identifier_model_class
(identifier_metadata) identifier_metadata
(default_parameter
(identifier_version) identifier_version
(None) None
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_turicreate) identifier_turicreate
)dotted_name
(dotted_name
(identifier___version__) identifier___version__
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
(pair
(string_'turicreate_version') string_'turicreate_version'
(identifier___version__) identifier___version__
)pair
(pair
(string_'type') string_'type'
(identifier_model_class) identifier_model_class
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_version) identifier_version
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_info) identifier_info
(string_'version') string_'version'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_version) identifier_version
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_info) identifier_info
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_metadata) identifier_metadata
)argument_list
)call
)expression_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Returns user-defined metadata, making sure information all models should
have is also available, as a dictionary |
(module
(function_definition
(function_name_get_bbox_list) function_name_get_bbox_list
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_crs) identifier_crs
(None) None
)default_parameter
(default_parameter
(identifier_buffer) identifier_buffer
(None) None
)default_parameter
(default_parameter
(identifier_reduce_bbox_sizes) identifier_reduce_bbox_sizes
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_bbox_list) identifier_bbox_list
(attribute
(identifier_self) identifier_self
(identifier_bbox_list) identifier_bbox_list
)attribute
)assignment
)expression_statement
(if_statement
(identifier_buffer) identifier_buffer
(block
(expression_statement
(assignment
(identifier_bbox_list) identifier_bbox_list
(list_comprehension
(call
(attribute
(identifier_bbox) identifier_bbox
(identifier_buffer) identifier_buffer
)attribute
(argument_list
(identifier_buffer) identifier_buffer
)argument_list
)call
(for_in_clause
(identifier_bbox) identifier_bbox
(identifier_bbox_list) identifier_bbox_list
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_reduce_bbox_sizes) identifier_reduce_bbox_sizes
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_reduce_bbox_sizes) identifier_reduce_bbox_sizes
(attribute
(identifier_self) identifier_self
(identifier_reduce_bbox_sizes) identifier_reduce_bbox_sizes
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_reduce_bbox_sizes) identifier_reduce_bbox_sizes
(block
(expression_statement
(assignment
(identifier_bbox_list) identifier_bbox_list
(call
(attribute
(identifier_self) identifier_self
(identifier__reduce_sizes) identifier__reduce_sizes
)attribute
(argument_list
(identifier_bbox_list) identifier_bbox_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_crs) identifier_crs
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_bbox) identifier_bbox
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_crs) identifier_crs
)argument_list
)call
(for_in_clause
(identifier_bbox) identifier_bbox
(identifier_bbox_list) identifier_bbox_list
)for_in_clause
)list_comprehension
)return_statement
)block
)if_statement
(return_statement
(identifier_bbox_list) identifier_bbox_list
)return_statement
)block
)function_definition
)module | Returns a list of bounding boxes that are the result of the split
:param crs: Coordinate reference system in which the bounding boxes should be returned. If None the CRS will
be the default CRS of the splitter.
:type crs: CRS or None
:param buffer: A percentage of each BBox size increase. This will cause neighbouring bounding boxes to overlap.
:type buffer: float or None
:param reduce_bbox_sizes: If `True` it will reduce the sizes of bounding boxes so that they will tightly
fit the given geometry in `shape_list`. This overrides the same parameter from constructor
:type reduce_bbox_sizes: bool
:return: List of bounding boxes
:rtype: list(BBox) |
(module
(function_definition
(function_name_popHiveKey) function_name_popHiveKey
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_perm) identifier_perm
(binary_operator
(tuple
(string_'hive:pop') string_'hive:pop'
)tuple
(identifier_path) identifier_path
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
(identifier_allowed) identifier_allowed
)attribute
(argument_list
(identifier_perm) identifier_perm
)argument_list
)call
)expression_statement
(return_statement
(await
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cell) identifier_cell
)attribute
(identifier_hive) identifier_hive
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Remove and return the value of a key in the cell default hive |
(module
(function_definition
(function_name_start_server_in_loop) function_name_start_server_in_loop
(parameters
(identifier_runner) identifier_runner
(identifier_hostname) identifier_hostname
(identifier_port) identifier_port
(identifier_agent) identifier_agent
)parameters
(block
(expression_statement
(await
(call
(attribute
(identifier_runner) identifier_runner
(identifier_setup) identifier_setup
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_agent) identifier_agent
(identifier_web) identifier_web
)attribute
(identifier_server) identifier_server
)attribute
(call
(attribute
(identifier_aioweb) identifier_aioweb
(identifier_TCPSite) identifier_TCPSite
)attribute
(argument_list
(identifier_runner) identifier_runner
(identifier_hostname) identifier_hostname
(identifier_port) identifier_port
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(attribute
(attribute
(identifier_agent) identifier_agent
(identifier_web) identifier_web
)attribute
(identifier_server) identifier_server
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_f"Serving on http://{hostname}:{port}/") string_f"Serving on http://{hostname}:{port}/"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Listens to http requests and sends them to the webapp.
Args:
runner: AppRunner to process the http requests
hostname: host name to listen from.
port: port to listen from.
agent: agent that owns the web app. |
(module
(function_definition
(function_name_scatter) function_name_scatter
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(default_parameter
(identifier_xerr) identifier_xerr
(list
)list
)default_parameter
(default_parameter
(identifier_yerr) identifier_yerr
(list
)list
)default_parameter
(default_parameter
(identifier_mark) identifier_mark
(string_'o') string_'o'
)default_parameter
(default_parameter
(identifier_markstyle) identifier_markstyle
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_plot) identifier_plot
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_y) identifier_y
(keyword_argument
(identifier_xerr) identifier_xerr
(identifier_xerr) identifier_xerr
)keyword_argument
(keyword_argument
(identifier_yerr) identifier_yerr
(identifier_yerr) identifier_yerr
)keyword_argument
(keyword_argument
(identifier_mark) identifier_mark
(identifier_mark) identifier_mark
)keyword_argument
(keyword_argument
(identifier_linestyle) identifier_linestyle
(None) None
)keyword_argument
(keyword_argument
(identifier_markstyle) identifier_markstyle
(identifier_markstyle) identifier_markstyle
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Plot a series of points.
Plot a series of points (marks) that are not connected by a
line. Shortcut for plot with linestyle=None.
:param x: array containing x-values.
:param y: array containing y-values.
:param xerr: array containing errors on the x-values.
:param yerr: array containing errors on the y-values.
:param mark: the symbol used to mark the data points. May be
any plot mark accepted by TikZ (e.g. ``*, x, +, o, square,
triangle``).
:param markstyle: the style of the plot marks (e.g. 'mark
size=.75pt')
Example::
>>> plot = artist.Plot()
>>> x = np.random.normal(size=20)
>>> y = np.random.normal(size=20)
>>> plot.scatter(x, y, mark='*') |
(module
(function_definition
(function_name_get_language) function_name_get_language
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(string_'lang') string_'lang'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_GET) identifier_GET
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_lang) identifier_lang
(call
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_GET) identifier_GET
)attribute
(string_'lang') string_'lang'
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_lang) identifier_lang
(attribute
(identifier_settings) identifier_settings
(identifier_LANGUAGE_URL_MAP) identifier_LANGUAGE_URL_MAP
)attribute
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_settings) identifier_settings
(identifier_LANGUAGE_URL_MAP) identifier_LANGUAGE_URL_MAP
)attribute
(identifier_lang) identifier_lang
)subscript
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_META) identifier_META
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'HTTP_ACCEPT_LANGUAGE') string_'HTTP_ACCEPT_LANGUAGE'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_best) identifier_best
(call
(attribute
(identifier_self) identifier_self
(identifier_get_best_language) identifier_get_best_language
)attribute
(argument_list
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_META) identifier_META
)attribute
(string_'HTTP_ACCEPT_LANGUAGE') string_'HTTP_ACCEPT_LANGUAGE'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_best) identifier_best
(block
(return_statement
(identifier_best) identifier_best
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_settings) identifier_settings
(identifier_LANGUAGE_CODE) identifier_LANGUAGE_CODE
)attribute
)return_statement
)block
)function_definition
)module | Return a locale code we support on the site using the
user's Accept-Language header to determine which is best. This
mostly follows the RFCs but read bug 439568 for details. |
(module
(function_definition
(function_name_by_zipcode) function_name_by_zipcode
(parameters
(identifier_self) identifier_self
(identifier_zipcode) identifier_zipcode
(default_parameter
(identifier_zipcode_type) identifier_zipcode_type
(None) None
)default_parameter
(default_parameter
(identifier_zero_padding) identifier_zero_padding
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_zero_padding) identifier_zero_padding
(block
(expression_statement
(assignment
(identifier_zipcode) identifier_zipcode
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_zipcode) identifier_zipcode
)argument_list
)call
(identifier_zfill) identifier_zfill
)attribute
(argument_list
(integer_5) integer_5
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_zipcode) identifier_zipcode
(call
(identifier_str) identifier_str
(argument_list
(identifier_zipcode) identifier_zipcode
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_query) identifier_query
)attribute
(argument_list
(keyword_argument
(identifier_zipcode) identifier_zipcode
(identifier_zipcode) identifier_zipcode
)keyword_argument
(keyword_argument
(identifier_sort_by) identifier_sort_by
(None) None
)keyword_argument
(keyword_argument
(identifier_returns) identifier_returns
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_zipcode_type) identifier_zipcode_type
(identifier_zipcode_type) identifier_zipcode_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_res) identifier_res
)argument_list
)call
(block
(return_statement
(subscript
(identifier_res) identifier_res
(integer_0) integer_0
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_zip_klass) identifier_zip_klass
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Search zipcode by exact 5 digits zipcode. No zero padding is needed.
:param zipcode: int or str, the zipcode will be automatically
zero padding to 5 digits.
:param zipcode_type: str or :class`~uszipcode.model.ZipcodeType` attribute.
by default, it returns any zipcode type.
:param zero_padding: bool, toggle on and off automatic zero padding. |
(module
(function_definition
(function_name_keys_values) function_name_keys_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_keys_values) identifier_keys_values
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_value) identifier_value
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_keys) identifier_keys
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_keys_values) identifier_keys_values
(identifier_value) identifier_value
)augmented_assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_basestring) identifier_basestring
)argument_list
)call
(not_operator
(call
(attribute
(identifier_value) identifier_value
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'-') string_'-'
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_keys_values) identifier_keys_values
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_int) identifier_int
)argument_list
)call
(comparison_operator
(identifier_value) identifier_value
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_keys_values) identifier_keys_values
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_keys_values) identifier_keys_values
)return_statement
)block
)function_definition
)module | Key values might be a list or not, always return a list. |
(module
(function_definition
(function_name_update_pricing) function_name_update_pricing
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(string_'https://cloudpricingcalculator.appspot.com/static/data/pricelist.json') string_'https://cloudpricingcalculator.appspot.com/static/data/pricelist.json'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_price_json) identifier_price_json
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_http) identifier_http
)attribute
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_decode) identifier_decode
(True) True
)keyword_argument
(keyword_argument
(identifier_decode_type) identifier_decode_type
(string_'json') string_'json'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_outfile) identifier_outfile
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier___opts__) identifier___opts__
(string_'cachedir') string_'cachedir'
)subscript
(string_'gce-pricing.p') string_'gce-pricing.p'
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_files) identifier_files
)attribute
(identifier_fopen) identifier_fopen
)attribute
(argument_list
(identifier_outfile) identifier_outfile
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_fho) identifier_fho
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_msgpack) identifier_msgpack
)attribute
(identifier_dump) identifier_dump
)attribute
(argument_list
(subscript
(identifier_price_json) identifier_price_json
(string_'dict') string_'dict'
)subscript
(identifier_fho) identifier_fho
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Download most recent pricing information from GCE and save locally
CLI Examples:
.. code-block:: bash
salt-cloud -f update_pricing my-gce-config
.. versionadded:: 2015.8.0 |
(module
(function_definition
(function_name__check_structure) function_name__check_structure
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_unused_variables) identifier_unused_variables
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unused_operators) identifier_unused_operators
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_variable) identifier_variable
(call
(attribute
(identifier_self) identifier_self
(identifier_unordered_variable_iterator) identifier_unordered_variable_iterator
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_unused_variables) identifier_unused_variables
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_variable) identifier_variable
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_operator) identifier_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_unordered_operator_iterator) identifier_unordered_operator_iterator
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_unused_operators) identifier_unused_operators
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_operator) identifier_operator
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_operator) identifier_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_unordered_operator_iterator) identifier_unordered_operator_iterator
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_variable) identifier_variable
(attribute
(identifier_operator) identifier_operator
(identifier_inputs) identifier_inputs
)attribute
(block
(expression_statement
(call
(attribute
(identifier_unused_variables) identifier_unused_variables
(identifier_discard) identifier_discard
)attribute
(argument_list
(attribute
(identifier_variable) identifier_variable
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_unused_operators) identifier_unused_operators
(identifier_discard) identifier_discard
)attribute
(argument_list
(attribute
(identifier_operator) identifier_operator
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_variable) identifier_variable
(attribute
(identifier_operator) identifier_operator
(identifier_outputs) identifier_outputs
)attribute
(block
(expression_statement
(call
(attribute
(identifier_unused_variables) identifier_unused_variables
(identifier_discard) identifier_discard
)attribute
(argument_list
(attribute
(identifier_variable) identifier_variable
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_unused_operators) identifier_unused_operators
(identifier_discard) identifier_discard
)attribute
(argument_list
(attribute
(identifier_operator) identifier_operator
(identifier_full_name) identifier_full_name
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_unused_variables) identifier_unused_variables
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_'Isolated variables exist: %s') string_'Isolated variables exist: %s'
(identifier_unused_variables) identifier_unused_variables
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_unused_operators) identifier_unused_operators
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_'Isolated operators exist: %s') string_'Isolated operators exist: %s'
(identifier_unused_operators) identifier_unused_operators
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | This function applies some rules to check if the parsed model is proper. Currently, it only checks if isolated
variable and isolated operator exists. |
(module
(function_definition
(function_name_form_invalid) function_name_form_invalid
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_error) identifier_error
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(subscript
(attribute
(identifier_form) identifier_form
(identifier_errors) identifier_errors
)attribute
(identifier_NON_FIELD_ERRORS) identifier_NON_FIELD_ERRORS
)subscript
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_redirect) identifier_redirect
(argument_list
(call
(identifier_reverse) identifier_reverse
(argument_list
(string_'forum_conversation:topic') string_'forum_conversation:topic'
(keyword_argument
(identifier_kwargs) identifier_kwargs
(dictionary
(pair
(string_'forum_slug') string_'forum_slug'
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_topic) identifier_topic
)attribute
(identifier_forum) identifier_forum
)attribute
(identifier_slug) identifier_slug
)attribute
)pair
(pair
(string_'forum_pk') string_'forum_pk'
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_topic) identifier_topic
)attribute
(identifier_forum) identifier_forum
)attribute
(identifier_pk) identifier_pk
)attribute
)pair
(pair
(string_'slug') string_'slug'
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_topic) identifier_topic
)attribute
(identifier_slug) identifier_slug
)attribute
)pair
(pair
(string_'pk') string_'pk'
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_topic) identifier_topic
)attribute
(identifier_pk) identifier_pk
)attribute
)pair
)dictionary
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Handles an invalid form. |
(module
(function_definition
(function_name_process_md5) function_name_process_md5
(parameters
(identifier_md5_output) identifier_md5_output
(default_parameter
(identifier_pattern) identifier_pattern
(string_r"=\s+(\S+)") string_r"=\s+(\S+)"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_pattern) identifier_pattern
(identifier_md5_output) identifier_md5_output
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(return_statement
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Invalid output from MD5 command: {}") string_"Invalid output from MD5 command: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_md5_output) identifier_md5_output
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Process the string to retrieve the MD5 hash
Output from Cisco IOS (ASA is similar)
.MD5 of flash:file_name Done!
verify /md5 (flash:file_name) = 410db2a7015eaa42b1fe71f1bf3d59a2 |
(module
(function_definition
(function_name_filter_pyfqn) function_name_filter_pyfqn
(parameters
(identifier_cls) identifier_cls
(identifier_value) identifier_value
(default_parameter
(identifier_relative_to) identifier_relative_to
(integer_0) integer_0
)default_parameter
)parameters
(block
(function_definition
(function_name_collect_packages) function_name_collect_packages
(parameters
(identifier_element) identifier_element
(identifier_packages) identifier_packages
)parameters
(block
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(attribute
(identifier_element) identifier_element
(identifier_eContainer) identifier_eContainer
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_parent) identifier_parent
(block
(expression_statement
(call
(identifier_collect_packages) identifier_collect_packages
(argument_list
(identifier_parent) identifier_parent
(identifier_packages) identifier_packages
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_packages) identifier_packages
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_packages) identifier_packages
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(identifier_collect_packages) identifier_collect_packages
(argument_list
(identifier_value) identifier_value
(identifier_packages) identifier_packages
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_relative_to) identifier_relative_to
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_relative_to) identifier_relative_to
(call
(identifier_len) identifier_len
(argument_list
(identifier_packages) identifier_packages
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'relative_to not in range of number of packages') string_'relative_to not in range of number of packages'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_fqn) identifier_fqn
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_packages) identifier_packages
(slice
(identifier_relative_to) identifier_relative_to
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_relative_to) identifier_relative_to
(block
(expression_statement
(assignment
(identifier_fqn) identifier_fqn
(binary_operator
(string_'.') string_'.'
(identifier_fqn) identifier_fqn
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_module_path_map) identifier_module_path_map
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_fqn) identifier_fqn
(identifier_fqn) identifier_fqn
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns Python form of fully qualified name.
Args:
relative_to: If greater 0, the returned path is relative to the first n directories. |
(module
(function_definition
(function_name_get_value) function_name_get_value
(parameters
(identifier_self) identifier_self
(identifier_spec) identifier_spec
(identifier_row) identifier_row
)parameters
(block
(expression_statement
(assignment
(identifier_column) identifier_column
(call
(attribute
(identifier_spec) identifier_spec
(identifier_get) identifier_get
)attribute
(argument_list
(string_'column') string_'column'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_default) identifier_default
(call
(attribute
(identifier_spec) identifier_spec
(identifier_get) identifier_get
)attribute
(argument_list
(string_'default') string_'default'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_column) identifier_column
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_default) identifier_default
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_type) identifier_convert_type
)attribute
(argument_list
(identifier_default) identifier_default
(identifier_spec) identifier_spec
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_row) identifier_row
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_column) identifier_column
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_is_empty) identifier_is_empty
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_default) identifier_default
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_type) identifier_convert_type
)attribute
(argument_list
(identifier_default) identifier_default
(identifier_spec) identifier_spec
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_convert_type) identifier_convert_type
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_spec) identifier_spec
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the value or a dict with a 'value' entry plus extra fields. |
(module
(function_definition
(function_name_install_new_pipeline) function_name_install_new_pipeline
(parameters
)parameters
(block
(function_definition
(function_name_new_create_pipeline) function_name_new_create_pipeline
(parameters
(identifier_context) identifier_context
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_old_create_pipeline) identifier_old_create_pipeline
(argument_list
(identifier_context) identifier_context
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(call
(identifier_DAAPObjectTransformer) identifier_DAAPObjectTransformer
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_old_create_pipeline) identifier_old_create_pipeline
(attribute
(identifier_Pipeline) identifier_Pipeline
(identifier_create_pipeline) identifier_create_pipeline
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_Pipeline) identifier_Pipeline
(identifier_create_pipeline) identifier_create_pipeline
)attribute
(identifier_new_create_pipeline) identifier_new_create_pipeline
)assignment
)expression_statement
)block
)function_definition
)module | Install above transformer into the existing pipeline creator. |
(module
(function_definition
(function_name_update_momentum_by_name) function_name_update_momentum_by_name
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_momentum) identifier_momentum
(call
(attribute
(identifier_self) identifier_self
(identifier_pop_momentum_by_name) identifier_pop_momentum_by_name
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_velocity) identifier_velocity
(identifier_since) identifier_since
(identifier_until) identifier_until
)pattern_list
(subscript
(identifier_momentum) identifier_momentum
(slice
(colon) colon
(integer_3) integer_3
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_velocity) identifier_velocity
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'velocity') string_'velocity'
(identifier_velocity) identifier_velocity
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_since) identifier_since
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'since') string_'since'
(identifier_since) identifier_since
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_until) identifier_until
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'until') string_'until'
(identifier_until) identifier_until
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_momentum) identifier_add_momentum
)attribute
(argument_list
(identifier_velocity) identifier_velocity
(identifier_since) identifier_since
(identifier_until) identifier_until
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Updates a momentum by the given name.
:param name: the momentum name.
:param velocity: (keyword-only) a new value for `velocity`.
:param since: (keyword-only) a new value for `since`.
:param until: (keyword-only) a new value for `until`.
:returns: a momentum updated.
:raises TypeError: `name` is ``None``.
:raises KeyError: failed to find a momentum named `name`. |
(module
(function_definition
(function_name_var_expand) function_name_var_expand
(parameters
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
(default_parameter
(identifier_depth) identifier_depth
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_formatter) identifier_formatter
(call
(identifier_DollarFormatter) identifier_DollarFormatter
(argument_list
)argument_list
)call
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ns) identifier_ns
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_user_ns) identifier_user_ns
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_frame) identifier_frame
(call
(attribute
(identifier_sys) identifier_sys
(identifier__getframe) identifier__getframe
)attribute
(argument_list
(binary_operator
(identifier_depth) identifier_depth
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_ns) identifier_ns
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_frame) identifier_frame
(identifier_f_locals) identifier_f_locals
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(identifier_formatter) identifier_formatter
(identifier_vformat) identifier_vformat
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_args) identifier_args
(list
)list
)keyword_argument
(keyword_argument
(identifier_kwargs) identifier_kwargs
(identifier_ns) identifier_ns
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_cmd) identifier_cmd
)return_statement
)block
)function_definition
)module | Expand python variables in a string.
The depth argument indicates how many frames above the caller should
be walked to look for the local namespace where to expand variables.
The global namespace for expansion is always the user's interactive
namespace. |
(module
(function_definition
(function_name_revoke_membership) function_name_revoke_membership
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__build_url) identifier__build_url
)attribute
(argument_list
(string_'memberships') string_'memberships'
(identifier_username) identifier_username
(keyword_argument
(identifier_base_url) identifier_base_url
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__boolean) identifier__boolean
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__delete) identifier__delete
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
(integer_204) integer_204
(integer_404) integer_404
)argument_list
)call
)return_statement
)block
)function_definition
)module | Revoke this user's team membership.
:param str username: (required), name of the team member
:returns: bool |
(module
(function_definition
(function_name_change_group) function_name_change_group
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_group) identifier_group
)parameters
(block
(expression_statement
(assignment
(identifier_m1) identifier_m1
(call
(attribute
(identifier_OmapiMessage) identifier_OmapiMessage
(identifier_open) identifier_open
)attribute
(argument_list
(string_b"host") string_b"host"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_m1) identifier_m1
(identifier_update_object) identifier_update_object
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_r1) identifier_r1
(call
(attribute
(identifier_self) identifier_self
(identifier_query_server) identifier_query_server
)attribute
(argument_list
(identifier_m1) identifier_m1
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_r1) identifier_r1
(identifier_opcode) identifier_opcode
)attribute
(identifier_OMAPI_OP_UPDATE) identifier_OMAPI_OP_UPDATE
)comparison_operator
(block
(raise_statement
(call
(identifier_OmapiError) identifier_OmapiError
(argument_list
(binary_operator
(string_"opening host %s failed") string_"opening host %s failed"
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_m2) identifier_m2
(call
(attribute
(identifier_OmapiMessage) identifier_OmapiMessage
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_r1) identifier_r1
(identifier_handle) identifier_handle
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_m2) identifier_m2
(identifier_update_object) identifier_update_object
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_group) identifier_group
(identifier_group) identifier_group
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_r2) identifier_r2
(call
(attribute
(identifier_self) identifier_self
(identifier_query_server) identifier_query_server
)attribute
(argument_list
(identifier_m2) identifier_m2
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_r2) identifier_r2
(identifier_opcode) identifier_opcode
)attribute
(identifier_OMAPI_OP_UPDATE) identifier_OMAPI_OP_UPDATE
)comparison_operator
(block
(raise_statement
(call
(identifier_OmapiError) identifier_OmapiError
(argument_list
(binary_operator
(string_"changing group of host %s to %s failed") string_"changing group of host %s to %s failed"
(tuple
(identifier_name) identifier_name
(identifier_group) identifier_group
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Change the group of a host given the name of the host.
@type name: str
@type group: str |
(module
(function_definition
(function_name_get_xml) function_name_get_xml
(parameters
(identifier_self) identifier_self
(identifier_fp) identifier_fp
(default_parameter
(identifier_format) identifier_format
(identifier_FORMAT_NATIVE) identifier_FORMAT_NATIVE
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'GET') string_'GET'
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_format) identifier_format
)argument_list
)call
(keyword_argument
(identifier_stream) identifier_stream
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filename) identifier_filename
(call
(attribute
(identifier_stream) identifier_stream
(identifier_stream_response_to_file) identifier_stream_response_to_file
)attribute
(argument_list
(identifier_r) identifier_r
(keyword_argument
(identifier_path) identifier_path
(identifier_fp) identifier_fp
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_filename) identifier_filename
)return_statement
)block
)function_definition
)module | Returns the XML metadata for this source, converted to the requested format.
Converted metadata may not contain all the same information as the native format.
:param file fp: A path, or an open file-like object which the content should be written to.
:param str format: desired format for the output. This should be one of the available
formats from :py:meth:`.get_formats`, or :py:attr:`.FORMAT_NATIVE` for the native format.
If you pass this function an open file-like object as the fp parameter, the function will
not close that file for you. |
(module
(function_definition
(function_name_append_use_flags) function_name_append_use_flags
(parameters
(identifier_atom) identifier_atom
(default_parameter
(identifier_uses) identifier_uses
(None) None
)default_parameter
(default_parameter
(identifier_overwrite) identifier_overwrite
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_uses) identifier_uses
)not_operator
(block
(expression_statement
(assignment
(identifier_uses) identifier_uses
(call
(attribute
(attribute
(identifier_portage) identifier_portage
(identifier_dep) identifier_dep
)attribute
(identifier_dep_getusedeps) identifier_dep_getusedeps
)attribute
(argument_list
(identifier_atom) identifier_atom
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_uses) identifier_uses
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_atom) identifier_atom
(subscript
(identifier_atom) identifier_atom
(slice
(colon) colon
(call
(attribute
(identifier_atom) identifier_atom
(identifier_rfind) identifier_rfind
)attribute
(argument_list
(string_'[') string_'['
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(identifier_append_to_package_conf) identifier_append_to_package_conf
(argument_list
(string_'use') string_'use'
(keyword_argument
(identifier_atom) identifier_atom
(identifier_atom) identifier_atom
)keyword_argument
(keyword_argument
(identifier_flags) identifier_flags
(identifier_uses) identifier_uses
)keyword_argument
(keyword_argument
(identifier_overwrite) identifier_overwrite
(identifier_overwrite) identifier_overwrite
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Append a list of use flags for a given package or DEPEND atom
CLI Example:
.. code-block:: bash
salt '*' portage_config.append_use_flags "app-admin/salt[ldap, -libvirt]"
salt '*' portage_config.append_use_flags ">=app-admin/salt-0.14.1" "['ldap', '-libvirt']" |
(module
(function_definition
(function_name__run_hooks) function_name__run_hooks
(parameters
(identifier_config) identifier_config
(identifier_hooks) identifier_hooks
(identifier_args) identifier_args
(identifier_environ) identifier_environ
)parameters
(block
(expression_statement
(assignment
(identifier_skips) identifier_skips
(call
(identifier__get_skips) identifier__get_skips
(argument_list
(identifier_environ) identifier_environ
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cols) identifier_cols
(call
(identifier__compute_cols) identifier__compute_cols
(argument_list
(identifier_hooks) identifier_hooks
(attribute
(identifier_args) identifier_args
(identifier_verbose) identifier_verbose
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filenames) identifier_filenames
(call
(identifier__all_filenames) identifier__all_filenames
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filenames) identifier_filenames
(call
(identifier_filter_by_include_exclude) identifier_filter_by_include_exclude
(argument_list
(identifier_filenames) identifier_filenames
(string_'') string_''
(subscript
(identifier_config) identifier_config
(string_'exclude') string_'exclude'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_classifier) identifier_classifier
(call
(identifier_Classifier) identifier_Classifier
(argument_list
(identifier_filenames) identifier_filenames
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_retval) identifier_retval
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_hook) identifier_hook
(identifier_hooks) identifier_hooks
(block
(expression_statement
(augmented_assignment
(identifier_retval) identifier_retval
(call
(identifier__run_single_hook) identifier__run_single_hook
(argument_list
(identifier_classifier) identifier_classifier
(identifier_hook) identifier_hook
(identifier_args) identifier_args
(identifier_skips) identifier_skips
(identifier_cols) identifier_cols
)argument_list
)call
)augmented_assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_retval) identifier_retval
(subscript
(identifier_config) identifier_config
(string_'fail_fast') string_'fail_fast'
)subscript
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_retval) identifier_retval
(attribute
(identifier_args) identifier_args
(identifier_show_diff_on_failure) identifier_show_diff_on_failure
)attribute
)boolean_operator
(call
(attribute
(identifier_git) identifier_git
(identifier_has_diff) identifier_has_diff
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(if_statement
(attribute
(identifier_args) identifier_args
(identifier_all_files) identifier_all_files
)attribute
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_write_line) identifier_write_line
)attribute
(argument_list
(concatenated_string
(string_'pre-commit hook(s) made changes.\n') string_'pre-commit hook(s) made changes.\n'
(string_'If you are seeing this message in CI, ') string_'If you are seeing this message in CI, '
(string_'reproduce locally with: `pre-commit run --all-files`.\n') string_'reproduce locally with: `pre-commit run --all-files`.\n'
(string_'To run `pre-commit` as part of git workflow, use ') string_'To run `pre-commit` as part of git workflow, use '
(string_'`pre-commit install`.') string_'`pre-commit install`.'
)concatenated_string
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_write_line) identifier_write_line
)attribute
(argument_list
(string_'All changes made by hooks:') string_'All changes made by hooks:'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_call) identifier_call
)attribute
(argument_list
(tuple
(string_'git') string_'git'
(string_'--no-pager') string_'--no-pager'
(string_'diff') string_'diff'
(string_'--no-ext-diff') string_'--no-ext-diff'
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_retval) identifier_retval
)return_statement
)block
)function_definition
)module | Actually run the hooks. |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___stop) identifier___stop
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__queue) identifier__queue
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__zk) identifier__zk
)attribute
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Starts the connection |
(module
(function_definition
(function_name__itemsLoadedDone) function_name__itemsLoadedDone
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(if_statement
(comparison_operator
(identifier_data) identifier_data
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_continuation) identifier_continuation
)attribute
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'continuation') string_'continuation'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastUpdated) identifier_lastUpdated
)attribute
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'updated') string_'updated'
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastLoadLength) identifier_lastLoadLength
)attribute
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'items') string_'items'
(list
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_googleReader) identifier_googleReader
)attribute
(identifier_itemsToObjects) identifier_itemsToObjects
)attribute
(argument_list
(identifier_self) identifier_self
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'items') string_'items'
(list
)list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastLoadOk) identifier_lastLoadOk
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Called when all items are loaded |
(module
(function_definition
(function_name_distance) function_name_distance
(parameters
(identifier_cls) identifier_cls
(identifier_q0) identifier_q0
(identifier_q1) identifier_q1
)parameters
(block
(expression_statement
(assignment
(identifier_q) identifier_q
(call
(attribute
(identifier_Quaternion) identifier_Quaternion
(identifier_log_map) identifier_log_map
)attribute
(argument_list
(identifier_q0) identifier_q0
(identifier_q1) identifier_q1
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_q) identifier_q
(identifier_norm) identifier_norm
)attribute
)return_statement
)block
)function_definition
)module | Quaternion intrinsic distance.
Find the intrinsic geodesic distance between q0 and q1.
Params:
q0: the first quaternion
q1: the second quaternion
Returns:
A positive amount corresponding to the length of the geodesic arc
connecting q0 to q1.
Note:
Although the q0^(-1)*q1 != q1^(-1)*q0, the length of the path joining
them is given by the logarithm of those product quaternions, the norm
of which is the same. |
(module
(function_definition
(function_name_get_rect) function_name_get_rect
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)attribute
(block
(expression_statement
(assignment
(pattern_list
(identifier_left) identifier_left
(identifier_top) identifier_top
(identifier_right) identifier_right
(identifier_bottom) identifier_bottom
)pattern_list
(call
(attribute
(identifier_win32gui) identifier_win32gui
(identifier_GetWindowRect) identifier_GetWindowRect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_RECT) identifier_RECT
(argument_list
(identifier_left) identifier_left
(identifier_top) identifier_top
(identifier_right) identifier_right
(identifier_bottom) identifier_bottom
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_desktop) identifier_desktop
(call
(attribute
(identifier_win32gui) identifier_win32gui
(identifier_GetDesktopWindow) identifier_GetDesktopWindow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_left) identifier_left
(identifier_top) identifier_top
(identifier_right) identifier_right
(identifier_bottom) identifier_bottom
)pattern_list
(call
(attribute
(identifier_win32gui) identifier_win32gui
(identifier_GetWindowRect) identifier_GetWindowRect
)attribute
(argument_list
(identifier_desktop) identifier_desktop
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_RECT) identifier_RECT
(argument_list
(identifier_left) identifier_left
(identifier_top) identifier_top
(identifier_right) identifier_right
(identifier_bottom) identifier_bottom
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get rectangle of app or desktop resolution
Returns:
RECT(left, top, right, bottom) |
(module
(function_definition
(function_name_compose_post) function_name_compose_post
(parameters
(identifier_apikey) identifier_apikey
(identifier_resize) identifier_resize
(identifier_rotation) identifier_rotation
(identifier_noexif) identifier_noexif
)parameters
(block
(expression_statement
(call
(identifier_check_rotation) identifier_check_rotation
(argument_list
(identifier_rotation) identifier_rotation
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_check_resize) identifier_check_resize
(argument_list
(identifier_resize) identifier_resize
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_post_data) identifier_post_data
(dictionary
(pair
(string_'formatliste') string_'formatliste'
(tuple
(string_'') string_''
(string_'og') string_'og'
)tuple
)pair
(pair
(string_'userdrehung') string_'userdrehung'
(tuple
(string_'') string_''
(identifier_rotation) identifier_rotation
)tuple
)pair
(pair
(string_'apikey') string_'apikey'
(tuple
(string_'') string_''
(identifier_apikey) identifier_apikey
)tuple
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_resize) identifier_resize
(comparison_operator
(string_'x') string_'x'
(identifier_resize) identifier_resize
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_width) identifier_width
(identifier_height) identifier_height
)pattern_list
(list_comprehension
(call
(attribute
(identifier_x) identifier_x
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_resize) identifier_resize
(identifier_split) identifier_split
)attribute
(argument_list
(string_'x') string_'x'
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'udefb') string_'udefb'
)subscript
(tuple
(string_'') string_''
(identifier_width) identifier_width
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'udefh') string_'udefh'
)subscript
(tuple
(string_'') string_''
(identifier_height) identifier_height
)tuple
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(identifier_resize) identifier_resize
(comparison_operator
(string_'%') string_'%'
(identifier_resize) identifier_resize
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_precentage) identifier_precentage
(call
(attribute
(call
(attribute
(identifier_resize) identifier_resize
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'%') string_'%'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'udefp') string_'udefp'
)subscript
(identifier_precentage) identifier_precentage
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(identifier_noexif) identifier_noexif
(block
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'noexif') string_'noexif'
)subscript
(tuple
(string_'') string_''
(string_'') string_''
)tuple
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_post_data) identifier_post_data
)return_statement
)block
)function_definition
)module | composes basic post requests |
(module
(function_definition
(function_name_purgeRDR) function_name_purgeRDR
(parameters
(identifier_rh) identifier_rh
)parameters
(block
(expression_statement
(call
(attribute
(identifier_rh) identifier_rh
(identifier_printSysLog) identifier_printSysLog
)attribute
(argument_list
(string_"Enter changeVM.purgeRDR") string_"Enter changeVM.purgeRDR"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(identifier_purgeReader) identifier_purgeReader
(argument_list
(identifier_rh) identifier_rh
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rh) identifier_rh
(identifier_updateResults) identifier_updateResults
)attribute
(argument_list
(identifier_results) identifier_results
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_rh) identifier_rh
(identifier_printSysLog) identifier_printSysLog
)attribute
(argument_list
(binary_operator
(string_"Exit changeVM.purgeRDR, rc: ") string_"Exit changeVM.purgeRDR, rc: "
(call
(identifier_str) identifier_str
(argument_list
(subscript
(attribute
(identifier_rh) identifier_rh
(identifier_results) identifier_results
)attribute
(string_'overallRC') string_'overallRC'
)subscript
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(subscript
(attribute
(identifier_rh) identifier_rh
(identifier_results) identifier_results
)attribute
(string_'overallRC') string_'overallRC'
)subscript
)return_statement
)block
)function_definition
)module | Purge the reader belonging to the virtual machine.
Input:
Request Handle with the following properties:
function - 'CHANGEVM'
subfunction - 'PURGERDR'
userid - userid of the virtual machine
Output:
Request Handle updated with the results.
Return code - 0: ok, non-zero: error |
(module
(function_definition
(function_name_gen_template_files) function_name_gen_template_files
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(string_" Generate relative template pathes. ") string_" Generate relative template pathes. "
)expression_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_path) identifier_path
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
(attribute
(identifier_op) identifier_op
(identifier_sep) identifier_sep
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_root) identifier_root
(identifier__) identifier__
(identifier_files) identifier_files
)pattern_list
(call
(identifier_walk) identifier_walk
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(for_statement
(identifier_f) identifier_f
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(not_operator
(comparison_operator
(identifier_x) identifier_x
(tuple
(identifier_TPLNAME) identifier_TPLNAME
(identifier_CFGNAME) identifier_CFGNAME
)tuple
)comparison_operator
)not_operator
)lambda
(identifier_files) identifier_files
)argument_list
)call
(block
(expression_statement
(yield
(call
(attribute
(identifier_op) identifier_op
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(call
(attribute
(identifier_op) identifier_op
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root) identifier_root
(identifier_f) identifier_f
)argument_list
)call
(identifier_path) identifier_path
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Generate relative template pathes. |
(module
(function_definition
(function_name_reset_term_stats) function_name_reset_term_stats
(parameters
(identifier_set_id) identifier_set_id
(identifier_term_id) identifier_term_id
(identifier_client_id) identifier_client_id
(identifier_user_id) identifier_user_id
(identifier_access_token) identifier_access_token
)parameters
(block
(expression_statement
(assignment
(identifier_found_sets) identifier_found_sets
(list_comprehension
(identifier_user_set) identifier_user_set
(for_in_clause
(identifier_user_set) identifier_user_set
(call
(identifier_get_user_sets) identifier_get_user_sets
(argument_list
(identifier_client_id) identifier_client_id
(identifier_user_id) identifier_user_id
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_user_set) identifier_user_set
(identifier_set_id) identifier_set_id
)attribute
(identifier_set_id) identifier_set_id
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_found_sets) identifier_found_sets
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'{} set(s) found with id {}') string_'{} set(s) found with id {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_found_sets) identifier_found_sets
)argument_list
)call
(identifier_set_id) identifier_set_id
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_found_terms) identifier_found_terms
(list_comprehension
(identifier_term) identifier_term
(for_in_clause
(identifier_term) identifier_term
(attribute
(subscript
(identifier_found_sets) identifier_found_sets
(integer_0) integer_0
)subscript
(identifier_terms) identifier_terms
)attribute
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_term) identifier_term
(identifier_term_id) identifier_term_id
)attribute
(identifier_term_id) identifier_term_id
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_found_terms) identifier_found_terms
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'{} term(s) found with id {}') string_'{} term(s) found with id {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_found_terms) identifier_found_terms
)argument_list
)call
(identifier_term_id) identifier_term_id
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_term) identifier_term
(subscript
(identifier_found_terms) identifier_found_terms
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(attribute
(attribute
(identifier_term) identifier_term
(identifier_image) identifier_image
)attribute
(identifier_url) identifier_url
)attribute
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(call
(attribute
(string_'"{}" has an image and is thus not supported') string_'"{}" has an image and is thus not supported'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_term) identifier_term
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'Deleting "{}"...') string_'Deleting "{}"...'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_term) identifier_term
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_delete_term) identifier_delete_term
(argument_list
(identifier_set_id) identifier_set_id
(identifier_term_id) identifier_term_id
(identifier_access_token) identifier_access_token
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'Re-creating "{}"...') string_'Re-creating "{}"...'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_term) identifier_term
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_add_term) identifier_add_term
(argument_list
(identifier_set_id) identifier_set_id
(identifier_term) identifier_term
(identifier_access_token) identifier_access_token
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Done') string_'Done'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reset the stats of a term by deleting and re-creating it. |
(module
(function_definition
(function_name__root) function_name__root
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier__n) identifier__n
(identifier_self) identifier_self
)assignment
)expression_statement
(while_statement
(attribute
(identifier__n) identifier__n
(identifier_parent) identifier_parent
)attribute
(block
(expression_statement
(assignment
(identifier__n) identifier__n
(attribute
(identifier__n) identifier__n
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier__n) identifier__n
)return_statement
)block
)function_definition
)module | Attribute referencing the root node of the tree.
:returns: the root node of the tree containing this instance.
:rtype: Node |
(module
(function_definition
(function_name_replace) function_name_replace
(parameters
(identifier_old) identifier_old
(identifier_new) identifier_new
)parameters
(block
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(attribute
(identifier_old) identifier_old
(identifier_getparent) identifier_getparent
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parent) identifier_parent
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_old) identifier_old
(identifier_new) identifier_new
)argument_list
)call
)expression_statement
)block
)function_definition
)module | A simple way to replace one element node with another. |
(module
(function_definition
(function_name_economic_qs) function_name_economic_qs
(parameters
(identifier_K) identifier_K
(default_parameter
(identifier_epsilon) identifier_epsilon
(call
(identifier_sqrt) identifier_sqrt
(argument_list
(attribute
(call
(identifier_finfo) identifier_finfo
(argument_list
(identifier_float) identifier_float
)argument_list
)call
(identifier_eps) identifier_eps
)attribute
)argument_list
)call
)default_parameter
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_S) identifier_S
(identifier_Q) identifier_Q
)tuple_pattern
(call
(identifier_eigh) identifier_eigh
(argument_list
(identifier_K) identifier_K
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nok) identifier_nok
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(subscript
(identifier_Q) identifier_Q
(integer_0) integer_0
)subscript
(identifier_min) identifier_min
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(subscript
(identifier_Q) identifier_Q
(integer_0) integer_0
)subscript
(identifier_max) identifier_max
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(identifier_abs) identifier_abs
)keyword_argument
)argument_list
)call
)argument_list
)call
(identifier_epsilon) identifier_epsilon
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nok) identifier_nok
(boolean_operator
(identifier_nok) identifier_nok
(comparison_operator
(call
(identifier_abs) identifier_abs
(argument_list
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(identifier_K) identifier_K
(identifier_min) identifier_min
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_K) identifier_K
(identifier_max) identifier_max
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(identifier_abs) identifier_abs
)keyword_argument
)argument_list
)call
)argument_list
)call
(identifier_epsilon) identifier_epsilon
)comparison_operator
)boolean_operator
)assignment
)expression_statement
(if_statement
(identifier_nok) identifier_nok
(block
(import_from_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_linalg) identifier_linalg
)dotted_name
(aliased_import
(dotted_name
(identifier_eigh) identifier_eigh
)dotted_name
(identifier_sp_eigh) identifier_sp_eigh
)aliased_import
)import_from_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_S) identifier_S
(identifier_Q) identifier_Q
)tuple_pattern
(call
(identifier_sp_eigh) identifier_sp_eigh
(argument_list
(identifier_K) identifier_K
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ok) identifier_ok
(comparison_operator
(identifier_S) identifier_S
(identifier_epsilon) identifier_epsilon
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nok) identifier_nok
(call
(identifier_logical_not) identifier_logical_not
(argument_list
(identifier_ok) identifier_ok
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_S0) identifier_S0
(subscript
(identifier_S) identifier_S
(identifier_ok) identifier_ok
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Q0) identifier_Q0
(subscript
(identifier_Q) identifier_Q
(slice
(colon) colon
)slice
(identifier_ok) identifier_ok
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Q1) identifier_Q1
(subscript
(identifier_Q) identifier_Q
(slice
(colon) colon
)slice
(identifier_nok) identifier_nok
)subscript
)assignment
)expression_statement
(return_statement
(tuple
(tuple
(identifier_Q0) identifier_Q0
(identifier_Q1) identifier_Q1
)tuple
(identifier_S0) identifier_S0
)tuple
)return_statement
)block
)function_definition
)module | r"""Economic eigen decomposition for symmetric matrices.
A symmetric matrix ``K`` can be decomposed in
:math:`\mathrm Q_0 \mathrm S_0 \mathrm Q_0^\intercal + \mathrm Q_1\
\mathrm S_1 \mathrm Q_1^ \intercal`, where :math:`\mathrm S_1` is a zero
matrix with size determined by ``K``'s rank deficiency.
Args:
K (array_like): Symmetric matrix.
epsilon (float): Eigen value threshold. Default is
``sqrt(finfo(float).eps)``.
Returns:
tuple: ``((Q0, Q1), S0)``. |
(module
(function_definition
(function_name_put_attributes) function_name_put_attributes
(parameters
(identifier_self) identifier_self
(identifier_item_name) identifier_item_name
(identifier_attributes) identifier_attributes
(default_parameter
(identifier_replace) identifier_replace
(True) True
)default_parameter
(default_parameter
(identifier_expected_value) identifier_expected_value
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_put_attributes) identifier_put_attributes
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_item_name) identifier_item_name
(identifier_attributes) identifier_attributes
(identifier_replace) identifier_replace
(identifier_expected_value) identifier_expected_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Store attributes for a given item.
:type item_name: string
:param item_name: The name of the item whose attributes are being stored.
:type attribute_names: dict or dict-like object
:param attribute_names: The name/value pairs to store as attributes
:type expected_value: list
:param expected_value: If supplied, this is a list or tuple consisting
of a single attribute name and expected value. The list can be
of the form:
* ['name', 'value']
In which case the call will first verify that the attribute
"name" of this item has a value of "value". If it does, the delete
will proceed, otherwise a ConditionalCheckFailed error will be
returned. The list can also be of the form:
* ['name', True|False]
which will simply check for the existence (True) or non-existence
(False) of the attribute.
:type replace: bool
:param replace: Whether the attribute values passed in will replace
existing values or will be added as addition values.
Defaults to True.
:rtype: bool
:return: True if successful |
(module
(function_definition
(function_name_map_indices) function_name_map_indices
(parameters
(identifier_fn) identifier_fn
(identifier_iterable) identifier_iterable
(identifier_indices) identifier_indices
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_index_set) identifier_index_set
(call
(identifier_set) identifier_set
(argument_list
(identifier_indices) identifier_indices
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_arg) identifier_arg
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_i) identifier_i
(identifier_index_set) identifier_index_set
)comparison_operator
(block
(expression_statement
(yield
(call
(identifier_fn) identifier_fn
(argument_list
(identifier_arg) identifier_arg
)argument_list
)call
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(identifier_arg) identifier_arg
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | r"""
Map a function across indices of an iterable.
Notes
-----
Roughly equivalent to, though more efficient than::
lambda fn, iterable, *indices: (fn(arg) if i in indices else arg
for i, arg in enumerate(iterable))
Examples
--------
>>> a = [4, 6, 7, 1, 6, 8, 2]
>>> from operator import mul
>>> list(map_indices(partial(mul, 3), a, [0, 3, 5]))
[12, 6, 7, 3, 6, 24, 2]
>>> b = [9., np.array([5., 6., 2.]),
... np.array([[5., 6., 2.], [2., 3., 9.]])]
>>> list(map_indices(np.log, b, [0, 2])) # doctest: +NORMALIZE_WHITESPACE
[2.1972245773362196,
array([ 5., 6., 2.]),
array([[ 1.60943791, 1.79175947, 0.69314718],
[ 0.69314718, 1.09861229, 2.19722458]])]
.. todo::
Floating point precision
>>> list(map_indices(np.exp, list(map_indices(np.log, b, [0, 2])), [0, 2]))
... # doctest: +NORMALIZE_WHITESPACE +SKIP
[9.,
array([5., 6., 2.]),
array([[ 5., 6., 2.],
[ 2., 3., 9.]])] |
(module
(function_definition
(function_name_request_update_of_all_params) function_name_request_update_of_all_params
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_group) identifier_group
(attribute
(attribute
(identifier_self) identifier_self
(identifier_toc) identifier_toc
)attribute
(identifier_toc) identifier_toc
)attribute
(block
(for_statement
(identifier_name) identifier_name
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_toc) identifier_toc
)attribute
(identifier_toc) identifier_toc
)attribute
(identifier_group) identifier_group
)subscript
(block
(expression_statement
(assignment
(identifier_complete_name) identifier_complete_name
(binary_operator
(string_'%s.%s') string_'%s.%s'
(tuple
(identifier_group) identifier_group
(identifier_name) identifier_name
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_request_param_update) identifier_request_param_update
)attribute
(argument_list
(identifier_complete_name) identifier_complete_name
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Request an update of all the parameters in the TOC |
(module
(function_definition
(function_name_get_rollup_ttl) function_name_get_rollup_ttl
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_use_cached) identifier_use_cached
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rollup_ttl_text) identifier_rollup_ttl_text
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_stream_metadata) identifier__get_stream_metadata
)attribute
(argument_list
(identifier_use_cached) identifier_use_cached
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_"rollupTtl") string_"rollupTtl"
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(identifier_rollup_ttl_text) identifier_rollup_ttl_text
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve the rollupTtl for this stream
The rollupTtl is the time to live (TTL) in seconds for the aggregate roll-ups of data points
stored in the stream. A roll-up expires after the configured amount of time and is
automatically deleted.
:param bool use_cached: If False, the function will always request the latest from Device Cloud.
If True, the device will not make a request if it already has cached data.
:raises devicecloud.DeviceCloudHttpException: in the case of an unexpected http error
:raises devicecloud.streams.NoSuchStreamException: if this stream has not yet been created
:return: The rollupTtl associated with this stream in seconds
:rtype: int or None |
(module
(function_definition
(function_name_surface_based_cape_cin) function_name_surface_based_cape_cin
(parameters
(identifier_pressure) identifier_pressure
(identifier_temperature) identifier_temperature
(identifier_dewpoint) identifier_dewpoint
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_p) identifier_p
(identifier_t) identifier_t
(identifier_td) identifier_td
(identifier_profile) identifier_profile
)pattern_list
(call
(identifier_parcel_profile_with_lcl) identifier_parcel_profile_with_lcl
(argument_list
(identifier_pressure) identifier_pressure
(identifier_temperature) identifier_temperature
(identifier_dewpoint) identifier_dewpoint
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_cape_cin) identifier_cape_cin
(argument_list
(identifier_p) identifier_p
(identifier_t) identifier_t
(identifier_td) identifier_td
(identifier_profile) identifier_profile
)argument_list
)call
)return_statement
)block
)function_definition
)module | r"""Calculate surface-based CAPE and CIN.
Calculate the convective available potential energy (CAPE) and convective inhibition (CIN)
of a given upper air profile for a surface-based parcel. CIN is integrated
between the surface and LFC, CAPE is integrated between the LFC and EL (or top of
sounding). Intersection points of the measured temperature profile and parcel profile are
linearly interpolated.
Parameters
----------
pressure : `pint.Quantity`
Atmospheric pressure profile. The first entry should be the starting
(surface) observation.
temperature : `pint.Quantity`
Temperature profile
dewpoint : `pint.Quantity`
Dewpoint profile
Returns
-------
`pint.Quantity`
Surface based Convective Available Potential Energy (CAPE).
`pint.Quantity`
Surface based Convective INhibition (CIN).
See Also
--------
cape_cin, parcel_profile |
(module
(function_definition
(function_name_write_file) function_name_write_file
(parameters
(identifier_path) identifier_path
(identifier_data) identifier_data
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_'w') string_'w'
)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_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'setting %s contents:\n%s') string_'setting %s contents:\n%s'
(identifier_path) identifier_path
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
)module | Writes data to specified path. |
(module
(function_definition
(function_name__persist) function_name__persist
(parameters
(identifier_source) identifier_source
(identifier_path) identifier_path
(default_parameter
(identifier_encoder) identifier_encoder
(None) None
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_posixpath) identifier_posixpath
)dotted_name
)import_statement
(import_from_statement
(dotted_name
(identifier_dask) identifier_dask
(identifier_bytes) identifier_bytes
)dotted_name
(dotted_name
(identifier_open_files) identifier_open_files
)dotted_name
)import_from_statement
(import_statement
(dotted_name
(identifier_dask) identifier_dask
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_pickle) identifier_pickle
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_json) identifier_json
)dotted_name
)import_statement
(import_from_statement
(dotted_name
(identifier_intake) identifier_intake
(identifier_source) identifier_source
(identifier_textfiles) identifier_textfiles
)dotted_name
(dotted_name
(identifier_TextFilesSource) identifier_TextFilesSource
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_encoder) identifier_encoder
(subscript
(dictionary
(pair
(None) None
(identifier_str) identifier_str
)pair
(pair
(string_'str') string_'str'
(identifier_str) identifier_str
)pair
(pair
(string_'json') string_'json'
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
)pair
(pair
(string_'pickle') string_'pickle'
(attribute
(identifier_pickle) identifier_pickle
(identifier_dumps) identifier_dumps
)attribute
)pair
)dictionary
(identifier_encoder) identifier_encoder
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(attribute
(identifier_source) identifier_source
(identifier_to_dask) identifier_to_dask
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_NotImplementedError) identifier_NotImplementedError
(block
(import_statement
(aliased_import
(dotted_name
(identifier_dask) identifier_dask
(identifier_bag) identifier_bag
)dotted_name
(identifier_db) identifier_db
)aliased_import
)import_statement
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(attribute
(identifier_db) identifier_db
(identifier_from_sequence) identifier_from_sequence
)attribute
(argument_list
(call
(attribute
(identifier_source) identifier_source
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_npartitions) identifier_npartitions
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(identifier_open_files) identifier_open_files
(argument_list
(call
(attribute
(identifier_posixpath) identifier_posixpath
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(string_'part.*') string_'part.*'
)argument_list
)call
(keyword_argument
(identifier_mode) identifier_mode
(string_'wt') string_'wt'
)keyword_argument
(keyword_argument
(identifier_num) identifier_num
(attribute
(identifier_b) identifier_b
(identifier_npartitions) identifier_npartitions
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dwrite) identifier_dwrite
(call
(attribute
(identifier_dask) identifier_dask
(identifier_delayed) identifier_delayed
)attribute
(argument_list
(identifier_write_file) identifier_write_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(list_comprehension
(call
(identifier_dwrite) identifier_dwrite
(argument_list
(identifier_part) identifier_part
(identifier_f) identifier_f
(identifier_encoder) identifier_encoder
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_part) identifier_part
(identifier_f) identifier_f
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(call
(attribute
(identifier_b) identifier_b
(identifier_to_delayed) identifier_to_delayed
)attribute
(argument_list
)argument_list
)call
(identifier_files) identifier_files
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dask) identifier_dask
(identifier_compute) identifier_compute
)attribute
(argument_list
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(identifier_TextFilesSource) identifier_TextFilesSource
(argument_list
(call
(attribute
(identifier_posixpath) identifier_posixpath
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(string_'part.*') string_'part.*'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_s) identifier_s
)return_statement
)block
)function_definition
)module | Save list to files using encoding
encoder : None or one of str|json|pickle
None is equivalent to str |
(module
(function_definition
(function_name_plugins) function_name_plugins
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_fluent_contents) identifier_fluent_contents
)dotted_name
(dotted_name
(identifier_extensions) identifier_extensions
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__plugins) identifier__plugins
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_extensions) identifier_extensions
(identifier_plugin_pool) identifier_plugin_pool
)attribute
(identifier_get_plugins) identifier_get_plugins
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_extensions) identifier_extensions
(identifier_plugin_pool) identifier_plugin_pool
)attribute
(identifier_get_plugins_by_name) identifier_get_plugins_by_name
)attribute
(argument_list
(list_splat
(attribute
(identifier_self) identifier_self
(identifier__plugins) identifier__plugins
)attribute
)list_splat
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get the set of plugins that this widget should display. |
(module
(function_definition
(function_name_leaveEvent) function_name_leaveEvent
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_ToolTipWidget) identifier_ToolTipWidget
(identifier_self) identifier_self
)argument_list
)call
(identifier_leaveEvent) identifier_leaveEvent
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_hide) identifier_hide
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Override Qt method to hide the tooltip on leave. |
(module
(function_definition
(function_name_flatten_pages) function_name_flatten_pages
(parameters
(identifier_self) identifier_self
(identifier_pages) identifier_pages
(default_parameter
(identifier_level) identifier_level
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_flattened) identifier_flattened
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_page) identifier_page
(identifier_pages) identifier_pages
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_page) identifier_page
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_flattened) identifier_flattened
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'file') string_'file'
(subscript
(identifier_page) identifier_page
(integer_0) integer_0
)subscript
)pair
(pair
(string_'title') string_'title'
(subscript
(identifier_page) identifier_page
(integer_1) integer_1
)subscript
)pair
(pair
(string_'level') string_'level'
(identifier_level) identifier_level
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_page) identifier_page
)argument_list
)call
(identifier_dict) identifier_dict
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_page) identifier_page
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)argument_list
)call
(identifier_str) identifier_str
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_flattened) identifier_flattened
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'file') string_'file'
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_page) identifier_page
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)pair
(pair
(string_'title') string_'title'
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_page) identifier_page
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)pair
(pair
(string_'level') string_'level'
(identifier_level) identifier_level
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_page) identifier_page
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_flattened) identifier_flattened
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_flatten_pages) identifier_flatten_pages
)attribute
(argument_list
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_page) identifier_page
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
(binary_operator
(identifier_level) identifier_level
(integer_1) integer_1
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_flattened) identifier_flattened
)return_statement
)block
)function_definition
)module | Recursively flattens pages data structure into a one-dimensional data structure |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_document) identifier_document
)parameters
(block
(expression_statement
(assignment
(identifier_type_name) identifier_type_name
(subscript
(identifier_document) identifier_document
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_type_name) identifier_type_name
(identifier_ATTR_TYPE_INT) identifier_ATTR_TYPE_INT
)comparison_operator
(block
(return_statement
(call
(identifier_IntType) identifier_IntType
(argument_list
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_type_name) identifier_type_name
(identifier_ATTR_TYPE_FLOAT) identifier_ATTR_TYPE_FLOAT
)comparison_operator
(block
(return_statement
(call
(identifier_FloatType) identifier_FloatType
(argument_list
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type_name) identifier_type_name
(identifier_ATTR_TYPE_ENUM) identifier_ATTR_TYPE_ENUM
)comparison_operator
(block
(return_statement
(call
(identifier_EnumType) identifier_EnumType
(argument_list
(subscript
(identifier_document) identifier_document
(string_'values') string_'values'
)subscript
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type_name) identifier_type_name
(identifier_ATTR_TYPE_DICT) identifier_ATTR_TYPE_DICT
)comparison_operator
(block
(return_statement
(call
(identifier_DictType) identifier_DictType
(argument_list
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_type_name) identifier_type_name
(identifier_ATTR_TYPE_LIST) identifier_ATTR_TYPE_LIST
)comparison_operator
(block
(return_statement
(call
(identifier_ListType) identifier_ListType
(argument_list
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'invalid attribute type: ') string_'invalid attribute type: '
(call
(identifier_str) identifier_str
(argument_list
(identifier_type_name) identifier_type_name
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Create data type definition form Json-like object represenation.
Parameters
----------
document : dict
Json-like object represenation
Returns
-------
AttributeType |
(module
(function_definition
(function_name_handle_error) function_name_handle_error
(parameters
(identifier_self) identifier_self
(identifier_type_) identifier_type_
(identifier_value) identifier_value
(identifier_tb) identifier_tb
)parameters
(block
(if_statement
(not_operator
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_type_) identifier_type_
(attribute
(identifier_pywsgi) identifier_pywsgi
(identifier_GreenletExit) identifier_GreenletExit
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_loop) identifier_loop
)attribute
(identifier_handle_error) identifier_handle_error
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_environ) identifier_environ
)attribute
(identifier_type_) identifier_type_
(identifier_value) identifier_value
(identifier_tb) identifier_tb
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_response_length) identifier_response_length
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_close_connection) identifier_close_connection
)attribute
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_tb_stream) identifier_tb_stream
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_format_exception) identifier_format_exception
)attribute
(argument_list
(identifier_type_) identifier_type_
(identifier_value) identifier_value
(identifier_tb) identifier_tb
)argument_list
)call
)assignment
)expression_statement
(delete_statement
(identifier_tb) identifier_tb
)delete_statement
(expression_statement
(call
(attribute
(identifier_tb_stream) identifier_tb_stream
(identifier_append) identifier_append
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_tb_stream) identifier_tb_stream
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_pprint) identifier_pprint
(identifier_pformat) identifier_pformat
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_environ) identifier_environ
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_tb_stream) identifier_tb_stream
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(subscript
(attribute
(identifier_pywsgi) identifier_pywsgi
(identifier__INTERNAL_ERROR_HEADERS) identifier__INTERNAL_ERROR_HEADERS
)attribute
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(integer_2) integer_2
)subscript
(tuple
(string_'Content-Length') string_'Content-Length'
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)argument_list
)call
)tuple
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_start_response) identifier_start_response
)attribute
(argument_list
(attribute
(identifier_pywsgi) identifier_pywsgi
(identifier__INTERNAL_ERROR_STATUS) identifier__INTERNAL_ERROR_STATUS
)attribute
(identifier_headers) identifier_headers
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | This method copies the code from pywsgi.WSGIHandler.handle_error,
change the write part to be a reflection of traceback and environ |
(module
(function_definition
(function_name_get_soap_client) function_name_get_soap_client
(parameters
(identifier_db_alias) identifier_db_alias
(default_parameter
(identifier_client_class) identifier_client_class
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_beatbox) identifier_beatbox
)not_operator
(block
(raise_statement
(call
(identifier_InterfaceError) identifier_InterfaceError
(argument_list
(string_"To use SOAP API, you'll need to install the Beatbox package.") string_"To use SOAP API, you'll need to install the Beatbox package."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_client_class) identifier_client_class
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_client_class) identifier_client_class
(attribute
(identifier_beatbox) identifier_beatbox
(identifier_PythonClient) identifier_PythonClient
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_soap_client) identifier_soap_client
(call
(identifier_client_class) identifier_client_class
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_connection) identifier_connection
(subscript
(identifier_connections) identifier_connections
(identifier_db_alias) identifier_db_alias
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(identifier_connection) identifier_connection
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_urls_request) identifier_urls_request
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_auth_info) identifier_auth_info
(attribute
(attribute
(subscript
(identifier_connections) identifier_connections
(identifier_db_alias) identifier_db_alias
)subscript
(identifier_sf_session) identifier_sf_session
)attribute
(identifier_auth) identifier_auth
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_access_token) identifier_access_token
(subscript
(call
(attribute
(identifier_auth_info) identifier_auth_info
(identifier_get_auth) identifier_get_auth
)attribute
(argument_list
)argument_list
)call
(string_'access_token') string_'access_token'
)subscript
)assignment
)expression_statement
(assert_statement
(comparison_operator
(subscript
(identifier_access_token) identifier_access_token
(integer_15) integer_15
)subscript
(string_'!') string_'!'
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_org_id) identifier_org_id
(subscript
(identifier_access_token) identifier_access_token
(slice
(colon) colon
(integer_15) integer_15
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'/services/Soap/u/{version}/{org_id}') string_'/services/Soap/u/{version}/{org_id}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_version) identifier_version
(attribute
(identifier_salesforce) identifier_salesforce
(identifier_API_VERSION) identifier_API_VERSION
)attribute
)keyword_argument
(keyword_argument
(identifier_org_id) identifier_org_id
(identifier_org_id) identifier_org_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_soap_client) identifier_soap_client
(identifier_useSession) identifier_useSession
)attribute
(argument_list
(identifier_access_token) identifier_access_token
(binary_operator
(attribute
(identifier_auth_info) identifier_auth_info
(identifier_instance_url) identifier_instance_url
)attribute
(identifier_url) identifier_url
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(identifier_soap_client) identifier_soap_client
)return_statement
)block
)function_definition
)module | Create the SOAP client for the current user logged in the db_alias
The default created client is "beatbox.PythonClient", but an
alternative client is possible. (i.e. other subtype of beatbox.XMLClient) |
(module
(function_definition
(function_name_handleOACK) function_name_handleOACK
(parameters
(identifier_self) identifier_self
(identifier_pkt) identifier_pkt
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(attribute
(identifier_pkt) identifier_pkt
(identifier_options) identifier_options
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(call
(attribute
(identifier_pkt) identifier_pkt
(identifier_match_options) identifier_match_options
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_options) identifier_options
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Successful negotiation of options") string_"Successful negotiation of options"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_options) identifier_options
)attribute
(attribute
(identifier_pkt) identifier_pkt
(identifier_options) identifier_options
)attribute
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_options) identifier_options
)attribute
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_" %s = %s") string_" %s = %s"
(tuple
(identifier_key) identifier_key
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_options) identifier_options
)attribute
(identifier_key) identifier_key
)subscript
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Failed to negotiate options") string_"Failed to negotiate options"
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_TftpException) identifier_TftpException
(argument_list
(string_"Failed to negotiate options") string_"Failed to negotiate options"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_TftpException) identifier_TftpException
(argument_list
(string_"No options found in OACK") string_"No options found in OACK"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | This method handles an OACK from the server, syncing any accepted
options. |
(module
(function_definition
(function_name_decode_step) function_name_decode_step
(parameters
(identifier_self) identifier_self
(identifier_step_input) identifier_step_input
(identifier_states) identifier_states
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_step_output) identifier_step_output
(identifier_states) identifier_states
(identifier_step_additional_outputs) identifier_step_additional_outputs
)pattern_list
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_self) identifier_self
(identifier_decoder) identifier_decoder
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_tgt_embed) identifier_tgt_embed
)attribute
(argument_list
(identifier_step_input) identifier_step_input
)argument_list
)call
(identifier_states) identifier_states
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_step_output) identifier_step_output
(call
(attribute
(identifier_self) identifier_self
(identifier_tgt_proj) identifier_tgt_proj
)attribute
(argument_list
(identifier_step_output) identifier_step_output
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_step_output) identifier_step_output
(identifier_states) identifier_states
(identifier_step_additional_outputs) identifier_step_additional_outputs
)expression_list
)return_statement
)block
)function_definition
)module | One step decoding of the translation model.
Parameters
----------
step_input : NDArray
Shape (batch_size,)
states : list of NDArrays
Returns
-------
step_output : NDArray
Shape (batch_size, C_out)
states : list
step_additional_outputs : list
Additional outputs of the step, e.g, the attention weights |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_WURIComponentVerifier) identifier_WURIComponentVerifier
(identifier_validate) identifier_validate
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)argument_list
)call
(False) False
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(identifier_WStrictURIQuery) identifier_WStrictURIQuery
(argument_list
(call
(attribute
(identifier_WURIQuery) identifier_WURIQuery
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(attribute
(identifier_uri) identifier_uri
(identifier_component) identifier_component
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_component) identifier_component
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
(list_splat
(attribute
(identifier_self) identifier_self
(identifier___specs) identifier___specs
)attribute
)list_splat
(keyword_argument
(identifier_extra_parameters) identifier_extra_parameters
(attribute
(identifier_self) identifier_self
(identifier___extra_parameters) identifier___extra_parameters
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check that an query part of an URI is compatible with this descriptor. Return True if the URI is
compatible.
:param uri: an URI to check
:return: bool |
(module
(function_definition
(function_name_set_qos) function_name_set_qos
(parameters
(identifier_self) identifier_self
(identifier_port_name) identifier_port_name
(default_parameter
(identifier_type) identifier_type
(string_'linux-htb') string_'linux-htb'
)default_parameter
(default_parameter
(identifier_max_rate) identifier_max_rate
(None) None
)default_parameter
(default_parameter
(identifier_queues) identifier_queues
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_queues) identifier_queues
(conditional_expression
(identifier_queues) identifier_queues
(identifier_queues) identifier_queues
(list
)list
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command_qos) identifier_command_qos
(call
(attribute
(identifier_ovs_vsctl) identifier_ovs_vsctl
(identifier_VSCtlCommand) identifier_VSCtlCommand
)attribute
(argument_list
(string_'set-qos') string_'set-qos'
(list
(identifier_port_name) identifier_port_name
(identifier_type) identifier_type
(identifier_max_rate) identifier_max_rate
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command_queue) identifier_command_queue
(call
(attribute
(identifier_ovs_vsctl) identifier_ovs_vsctl
(identifier_VSCtlCommand) identifier_VSCtlCommand
)attribute
(argument_list
(string_'set-queue') string_'set-queue'
(list
(identifier_port_name) identifier_port_name
(identifier_queues) identifier_queues
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_run_command) identifier_run_command
)attribute
(argument_list
(list
(identifier_command_qos) identifier_command_qos
(identifier_command_queue) identifier_command_queue
)list
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(attribute
(identifier_command_qos) identifier_command_qos
(identifier_result) identifier_result
)attribute
(attribute
(identifier_command_queue) identifier_command_queue
(identifier_result) identifier_result
)attribute
)boolean_operator
(block
(return_statement
(binary_operator
(attribute
(identifier_command_qos) identifier_command_qos
(identifier_result) identifier_result
)attribute
(attribute
(identifier_command_queue) identifier_command_queue
(identifier_result) identifier_result
)attribute
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Sets a Qos rule and creates Queues on the given port. |
(module
(function_definition
(function_name_file_size) function_name_file_size
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_fd) identifier_fd
(call
(attribute
(identifier_os) identifier_os
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filename) identifier_filename
(attribute
(identifier_os) identifier_os
(identifier_O_RDONLY) identifier_O_RDONLY
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_lseek) identifier_lseek
)attribute
(argument_list
(identifier_fd) identifier_fd
(integer_0) integer_0
(attribute
(identifier_os) identifier_os
(identifier_SEEK_END) identifier_SEEK_END
)attribute
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_KeyboardInterrupt) identifier_KeyboardInterrupt
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(identifier_e) identifier_e
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_"file_size failed to obtain the size of '%s': %s") string_"file_size failed to obtain the size of '%s': %s"
(tuple
(identifier_filename) identifier_filename
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_close) identifier_close
)attribute
(argument_list
(identifier_fd) identifier_fd
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Obtains the size of a given file.
@filename - Path to the file.
Returns the size of the file. |
(module
(function_definition
(function_name_popleft) function_name_popleft
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_block) identifier_block
(True) True
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__pop) identifier__pop
)attribute
(argument_list
(identifier_block) identifier_block
(identifier_timeout) identifier_timeout
(keyword_argument
(identifier_left) identifier_left
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove and return an item from the right side of the
GeventDeque. If no elements are present, raises an IndexError.
If optional args *block* is True and *timeout* is ``None``
(the default), block if necessary until an item is
available. If *timeout* is a positive number, it blocks at
most *timeout* seconds and raises the :class:`IndexError`
exception if no item was available within that time. Otherwise
(*block* is False), return an item if one is immediately
available, else raise the :class:`IndexError` exception
(*timeout* is ignored in that case). |
(module
(function_definition
(function_name_filter) function_name_filter
(parameters
(identifier_self) identifier_self
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier_get_request) identifier_get_request
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_request) identifier_request
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_request) identifier_request
(string_'user') string_'user'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_user) identifier_user
(not_operator
(call
(attribute
(identifier_user) identifier_user
(identifier_is_anonymous) identifier_is_anonymous
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_username) identifier_username
)attribute
(attribute
(identifier_user) identifier_user
(identifier_username) identifier_username
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_username) identifier_username
)attribute
(string_'-') string_'-'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_meta) identifier_meta
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_request) identifier_request
(string_'META') string_'META'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_remote_addr) identifier_remote_addr
)attribute
(call
(attribute
(identifier_meta) identifier_meta
(identifier_get) identifier_get
)attribute
(argument_list
(string_'REMOTE_ADDR') string_'REMOTE_ADDR'
(string_'-') string_'-'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_http_user_agent) identifier_http_user_agent
)attribute
(call
(attribute
(identifier_meta) identifier_meta
(identifier_get) identifier_get
)attribute
(argument_list
(string_'HTTP_USER_AGENT') string_'HTTP_USER_AGENT'
(string_'-') string_'-'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_record) identifier_record
(string_'request') string_'request'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_request) identifier_request
)attribute
(identifier_request) identifier_request
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_username) identifier_username
)attribute
(string_'-') string_'-'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_remote_addr) identifier_remote_addr
)attribute
(string_'-') string_'-'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_http_user_agent) identifier_http_user_agent
)attribute
(string_'-') string_'-'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Adds user and remote_addr to the record. |
(module
(function_definition
(function_name_random_alphanum) function_name_random_alphanum
(parameters
(default_parameter
(identifier_length) identifier_length
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_lower_only) identifier_lower_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_character_set) identifier_character_set
(conditional_expression
(identifier_ALPHANUM_LOWER) identifier_ALPHANUM_LOWER
(identifier_lower_only) identifier_lower_only
(identifier_ALPHANUM) identifier_ALPHANUM
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sample_size) identifier_sample_size
(integer_5) integer_5
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chars) identifier_chars
(call
(attribute
(identifier_random) identifier_random
(identifier_sample) identifier_sample
)attribute
(argument_list
(identifier_character_set) identifier_character_set
(identifier_sample_size) identifier_sample_size
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_chars) identifier_chars
)argument_list
)call
(identifier_length) identifier_length
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_chars) identifier_chars
(call
(attribute
(identifier_random) identifier_random
(identifier_sample) identifier_sample
)attribute
(argument_list
(identifier_character_set) identifier_character_set
(identifier_sample_size) identifier_sample_size
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_random) identifier_random
(identifier_shuffle) identifier_shuffle
)attribute
(argument_list
(identifier_chars) identifier_chars
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_chars) identifier_chars
(slice
(colon) colon
(identifier_length) identifier_length
)slice
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets a random alphanumeric value using both letters and numbers.
:param length: size of the random alphanumeric string.
:param lower_only: boolean indicating if only lower case letters should be
used.
:return: alphanumeric string size of length
This function uses all number except for:
* 0
* 1
and uses all letters except for:
* lower case "l" (el)
* lower and upper case "o" and "O" (oh)
For upper and lower cased letters...
------------------------------------
Upper and lower cased letters and numbers can be used more than once which
leaves the possible combinations as follows:
8 numbers used + 49 letters used (upper and lower) = 57 total characters
Which leads us to the following equation:
57 total characters ^ length = total possible combinations
The following total possible combinations are below for a given length:
57 ^ 1 = 57
57 ^ 2 = 3,249
57 ^ 3 = 185,193
57 ^ 4 = 10,556,001
57 ^ 5 = 601,692,057
57 ^ 6 = 34,296,447,249
57 ^ 7 = 1,954,897,493,193
57 ^ 8 = 111,429,157,112,001
57 ^ 9 = 6,351,461,955,384,057
57 ^ 10 = 362,033,331,456,891,249
...
For lower cased letters...
--------------------------
Lower cased letters and numbers can be used more than once which leaves the
possible combinations as follows:
8 numbers used + 24 letters used (lower only) = 32 total characters
Which leads us to the following equation:
32 total characters ^ length = total possible combinations
The following total possible combinations are below for a given length:
32 ^ 1 = 32
32 ^ 2 = 1,024
32 ^ 3 = 32,768
32 ^ 4 = 1,048,576
32 ^ 5 = 33,554,432
32 ^ 6 = 1,073,741,824
32 ^ 7 = 34,359,738,368
32 ^ 8 = 1,099,511,627,776
32 ^ 9 = 35,184,372,088,832
32 ^ 10 = 1,125,899,906,842,624
... |
(module
(function_definition
(function_name_set_reply_markup) function_name_set_reply_markup
(parameters
(typed_parameter
(identifier_msg) identifier_msg
(type
(identifier_Dict) identifier_Dict
)type
)typed_parameter
(typed_parameter
(identifier_request) identifier_request
(type
(string_'Request') string_'Request'
)type
)typed_parameter
(typed_parameter
(identifier_stack) identifier_stack
(type
(string_'Stack') string_'Stack'
)type
)typed_parameter
)parameters
(line_continuation_\) line_continuation_\
(type
(None) None
)type
(block
(import_from_statement
(dotted_name
(identifier_bernard) identifier_bernard
(identifier_platforms) identifier_platforms
(identifier_telegram) identifier_telegram
(identifier_layers) identifier_layers
)dotted_name
(dotted_name
(identifier_InlineKeyboard) identifier_InlineKeyboard
)dotted_name
(line_continuation_\) line_continuation_\
(dotted_name
(identifier_ReplyKeyboard) identifier_ReplyKeyboard
)dotted_name
(line_continuation_\) line_continuation_\
(dotted_name
(identifier_ReplyKeyboardRemove) identifier_ReplyKeyboardRemove
)dotted_name
)import_from_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_keyboard) identifier_keyboard
(call
(attribute
(identifier_stack) identifier_stack
(identifier_get_layer) identifier_get_layer
)attribute
(argument_list
(identifier_InlineKeyboard) identifier_InlineKeyboard
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_msg) identifier_msg
(string_'reply_markup') string_'reply_markup'
)subscript
(await
(call
(attribute
(identifier_keyboard) identifier_keyboard
(identifier_serialize) identifier_serialize
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)await
)assignment
)expression_statement
)block
)else_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_keyboard) identifier_keyboard
(call
(attribute
(identifier_stack) identifier_stack
(identifier_get_layer) identifier_get_layer
)attribute
(argument_list
(identifier_ReplyKeyboard) identifier_ReplyKeyboard
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_msg) identifier_msg
(string_'reply_markup') string_'reply_markup'
)subscript
(await
(call
(attribute
(identifier_keyboard) identifier_keyboard
(identifier_serialize) identifier_serialize
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)await
)assignment
)expression_statement
)block
)else_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_remove) identifier_remove
(call
(attribute
(identifier_stack) identifier_stack
(identifier_get_layer) identifier_get_layer
)attribute
(argument_list
(identifier_ReplyKeyboardRemove) identifier_ReplyKeyboardRemove
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_msg) identifier_msg
(string_'reply_markup') string_'reply_markup'
)subscript
(call
(attribute
(identifier_remove) identifier_remove
(identifier_serialize) identifier_serialize
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Add the "reply markup" to a message from the layers
:param msg: Message dictionary
:param request: Current request being replied
:param stack: Stack to analyze |
(module
(function_definition
(function_name__update_pods_metrics) function_name__update_pods_metrics
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
(identifier_pods) identifier_pods
)parameters
(block
(expression_statement
(assignment
(identifier_tags_map) identifier_tags_map
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_int) identifier_int
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_pod) identifier_pod
(subscript
(identifier_pods) identifier_pods
(string_'items') string_'items'
)subscript
(block
(expression_statement
(assignment
(identifier_pod_meta) identifier_pod_meta
(call
(attribute
(identifier_pod) identifier_pod
(identifier_get) identifier_get
)attribute
(argument_list
(string_'metadata') string_'metadata'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pod_tags) identifier_pod_tags
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kubeutil) identifier_kubeutil
)attribute
(identifier_get_pod_creator_tags) identifier_get_pod_creator_tags
)attribute
(argument_list
(identifier_pod_meta) identifier_pod_meta
(keyword_argument
(identifier_legacy_rep_controller_tag) identifier_legacy_rep_controller_tag
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_services) identifier_services
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kubeutil) identifier_kubeutil
)attribute
(identifier_match_services_for_pod) identifier_match_services_for_pod
)attribute
(argument_list
(identifier_pod_meta) identifier_pod_meta
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_services) identifier_services
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_service) identifier_service
(identifier_services) identifier_services
(block
(expression_statement
(call
(attribute
(identifier_pod_tags) identifier_pod_tags
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'kube_service:%s') string_'kube_service:%s'
(identifier_service) identifier_service
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'namespace') string_'namespace'
(identifier_pod_meta) identifier_pod_meta
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pod_tags) identifier_pod_tags
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_'kube_namespace:%s') string_'kube_namespace:%s'
(subscript
(identifier_pod_meta) identifier_pod_meta
(string_'namespace') string_'namespace'
)subscript
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(subscript
(identifier_tags_map) identifier_tags_map
(call
(identifier_frozenset) identifier_frozenset
(argument_list
(identifier_pod_tags) identifier_pod_tags
)argument_list
)call
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_commmon_tags) identifier_commmon_tags
(call
(attribute
(identifier_instance) identifier_instance
(identifier_get) identifier_get
)attribute
(argument_list
(string_'tags') string_'tags'
(list
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_pod_tags) identifier_pod_tags
(identifier_pod_count) identifier_pod_count
)pattern_list
(call
(attribute
(identifier_tags_map) identifier_tags_map
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(identifier_list) identifier_list
(argument_list
(identifier_pod_tags) identifier_pod_tags
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tags) identifier_tags
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_commmon_tags) identifier_commmon_tags
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_publish_gauge) identifier_publish_gauge
)attribute
(argument_list
(identifier_self) identifier_self
(binary_operator
(identifier_NAMESPACE) identifier_NAMESPACE
(string_'.pods.running') string_'.pods.running'
)binary_operator
(identifier_pod_count) identifier_pod_count
(identifier_tags) identifier_tags
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Reports the number of running pods on this node, tagged by service and creator
We go though all the pods, extract tags then count them by tag list, sorted and
serialized in a pipe-separated string (it is an illegar character for tags) |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_password) identifier_password
(default_parameter
(identifier_message) identifier_message
(string_"") string_""
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'user') string_'user'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
(identifier_name) identifier_name
)attribute
)pair
(pair
(string_'passwd') string_'passwd'
(identifier_password) identifier_password
)pair
(pair
(string_'delete_message') string_'delete_message'
(identifier_message) identifier_message
)pair
(pair
(string_'confirm') string_'confirm'
(True) True
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_request_json) identifier_request_json
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(string_'delete_redditor') string_'delete_redditor'
)subscript
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Delete the currently authenticated redditor.
WARNING!
This action is IRREVERSIBLE. Use only if you're okay with NEVER
accessing this reddit account again.
:param password: password for currently authenticated account
:param message: optional 'reason for deletion' message.
:returns: json response from the server. |
(module
(function_definition
(function_name_save_evaluations) function_name_save_evaluations
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_evaluations_file) identifier_evaluations_file
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_iterations) identifier_iterations
(subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Y) identifier_Y
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
(integer_1) integer_1
)binary_operator
)argument_list
)call
)argument_list
)call
(slice
(colon) colon
)slice
(None) None
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(identifier_np) identifier_np
(identifier_hstack) identifier_hstack
)attribute
(argument_list
(tuple
(identifier_iterations) identifier_iterations
(attribute
(identifier_self) identifier_self
(identifier_Y) identifier_Y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_X) identifier_X
)attribute
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header) identifier_header
(binary_operator
(list
(string_'Iteration') string_'Iteration'
(string_'Y') string_'Y'
)list
(list_comprehension
(binary_operator
(string_'var_') string_'var_'
(call
(identifier_str) identifier_str
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)binary_operator
(for_in_clause
(identifier_k) identifier_k
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_X) identifier_X
)attribute
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
(integer_1) integer_1
)binary_operator
)argument_list
)call
)for_in_clause
)list_comprehension
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(binary_operator
(list
(identifier_header) identifier_header
)list
(call
(attribute
(identifier_results) identifier_results
(identifier_tolist) identifier_tolist
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__write_csv) identifier__write_csv
)attribute
(argument_list
(identifier_evaluations_file) identifier_evaluations_file
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Saves evaluations at each iteration of the optimization
:param evaluations_file: name of the file in which the results are saved. |
(module
(function_definition
(function_name_iter_all) function_name_iter_all
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_direction) identifier_direction
(type
(attribute
(identifier_msg) identifier_msg
(identifier_StreamDirection) identifier_StreamDirection
)attribute
)type
(attribute
(attribute
(identifier_msg) identifier_msg
(identifier_StreamDirection) identifier_StreamDirection
)attribute
(identifier_Forward) identifier_Forward
)attribute
)typed_default_parameter
(typed_default_parameter
(identifier_from_position) identifier_from_position
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(attribute
(identifier_msg) identifier_msg
(identifier_Position) identifier_Position
)attribute
)type
(type
(attribute
(identifier_msg) identifier_msg
(identifier__PositionSentinel) identifier__PositionSentinel
)attribute
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_batch_size) identifier_batch_size
(type
(identifier_int) identifier_int
)type
(integer_100) integer_100
)typed_default_parameter
(typed_default_parameter
(identifier_resolve_links) identifier_resolve_links
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
(typed_default_parameter
(identifier_require_master) identifier_require_master
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_correlation_id) identifier_correlation_id
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(attribute
(identifier_uuid) identifier_uuid
(identifier_UUID) identifier_UUID
)attribute
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_correlation_id) identifier_correlation_id
(identifier_correlation_id) identifier_correlation_id
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(identifier_convo) identifier_convo
(identifier_IterAllEvents) identifier_IterAllEvents
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_msg) identifier_msg
(identifier_Position) identifier_Position
)attribute
(identifier_for_direction) identifier_for_direction
)attribute
(argument_list
(identifier_direction) identifier_direction
(identifier_from_position) identifier_from_position
)argument_list
)call
(identifier_batch_size) identifier_batch_size
(identifier_resolve_links) identifier_resolve_links
(identifier_require_master) identifier_require_master
(identifier_direction) identifier_direction
(attribute
(identifier_self) identifier_self
(identifier_credential) identifier_credential
)attribute
(identifier_correlation_id) identifier_correlation_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dispatcher) identifier_dispatcher
)attribute
(identifier_start_conversation) identifier_start_conversation
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iterator) identifier_iterator
(await
(identifier_result) identifier_result
)await
)assignment
)expression_statement
(for_statement
(identifier_event) identifier_event
(identifier_iterator) identifier_iterator
(block
(expression_statement
(yield
(identifier_event) identifier_event
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Read through all the events in the database.
Args:
direction (optional): Controls whether to read forward or backward
through the events. Defaults to StreamDirection.Forward
from_position (optional): The position to start reading from.
Defaults to photonpump.Beginning when direction is Forward,
photonpump.End when direction is Backward.
batch_size (optional): The maximum number of events to read at a time.
resolve_links (optional): True if eventstore should
automatically resolve Link Events, otherwise False.
required_master (optional): True if this command must be
sent direct to the master node, otherwise False.
correlation_id (optional): A unique identifer for this
command.
Examples:
Print every event from the database.
>>> with async.connect() as conn:
>>> async for event in conn.iter_all()
>>> print(event)
Print every event from the database in reverse order
>>> with async.connect() as conn:
>>> async for event in conn.iter_all(direction=StreamDirection.Backward):
>>> print(event)
Start reading from a known commit position
>>> with async.connect() as conn:
>>> async for event in conn.iter_all(from_position=Position(12345))
>>> print(event) |
(module
(function_definition
(function_name_main) function_name_main
(parameters
(identifier_global_config) identifier_global_config
(dictionary_splat_pattern
(identifier_settings) identifier_settings
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_engine) identifier_engine
(call
(identifier_engine_from_config) identifier_engine_from_config
(argument_list
(identifier_settings) identifier_settings
(string_"sqlalchemy.") string_"sqlalchemy."
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_DBSession) identifier_DBSession
(identifier_configure) identifier_configure
)attribute
(argument_list
(keyword_argument
(identifier_bind) identifier_bind
(identifier_engine) identifier_engine
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_Base) identifier_Base
(identifier_metadata) identifier_metadata
)attribute
(identifier_bind) identifier_bind
)attribute
(identifier_engine) identifier_engine
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(identifier_Configurator) identifier_Configurator
(argument_list
(keyword_argument
(identifier_settings) identifier_settings
(identifier_settings) identifier_settings
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_include) identifier_include
)attribute
(argument_list
(string_"pyramid_jinja2") string_"pyramid_jinja2"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_include) identifier_include
)attribute
(argument_list
(string_"pyramid_debugtoolbar") string_"pyramid_debugtoolbar"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"home") string_"home"
(string_"/") string_"/"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"data") string_"data"
(string_"/data") string_"/data"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"data_advanced") string_"data_advanced"
(string_"/data_advanced") string_"/data_advanced"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"data_yadcf") string_"data_yadcf"
(string_"/data_yadcf") string_"/data_yadcf"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"dt_110x") string_"dt_110x"
(string_"/dt_110x") string_"/dt_110x"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"dt_110x_custom_column") string_"dt_110x_custom_column"
(string_"/dt_110x_custom_column") string_"/dt_110x_custom_column"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"dt_110x_basic_column_search") string_"dt_110x_basic_column_search"
(string_"/dt_110x_basic_column_search") string_"/dt_110x_basic_column_search"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"dt_110x_advanced_column_search") string_"dt_110x_advanced_column_search"
(string_"/dt_110x_advanced_column_search") string_"/dt_110x_advanced_column_search"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_route) identifier_add_route
)attribute
(argument_list
(string_"dt_110x_yadcf") string_"dt_110x_yadcf"
(string_"/dt_110x_yadcf") string_"/dt_110x_yadcf"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_scan) identifier_scan
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_json_renderer) identifier_json_renderer
(call
(identifier_JSON) identifier_JSON
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_json_renderer) identifier_json_renderer
(identifier_add_adapter) identifier_add_adapter
)attribute
(argument_list
(identifier_date) identifier_date
(identifier_date_adapter) identifier_date_adapter
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_renderer) identifier_add_renderer
)attribute
(argument_list
(string_"json_with_dates") string_"json_with_dates"
(identifier_json_renderer) identifier_json_renderer
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_jinja2_renderer) identifier_add_jinja2_renderer
)attribute
(argument_list
(string_'.html') string_'.html'
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_make_wsgi_app) identifier_make_wsgi_app
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a Pyramid WSGI application. |
(module
(function_definition
(function_name_join_voice_channel) function_name_join_voice_channel
(parameters
(identifier_self) identifier_self
(identifier_guild_id) identifier_guild_id
(identifier_channel_id) identifier_channel_id
)parameters
(block
(expression_statement
(assignment
(identifier_voice_ws) identifier_voice_ws
(call
(attribute
(identifier_self) identifier_self
(identifier_get_voice_ws) identifier_get_voice_ws
)attribute
(argument_list
(identifier_guild_id) identifier_guild_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_voice_ws) identifier_voice_ws
(identifier_voice_state) identifier_voice_state
)attribute
(argument_list
(identifier_guild_id) identifier_guild_id
(identifier_channel_id) identifier_channel_id
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Alternative way to join a voice channel if node is known. |
(module
(function_definition
(function_name_bin_spikes) function_name_bin_spikes
(parameters
(identifier_spike_times) identifier_spike_times
(identifier_binsz) identifier_binsz
)parameters
(block
(expression_statement
(assignment
(identifier_bins) identifier_bins
(call
(attribute
(identifier_np) identifier_np
(identifier_empty) identifier_empty
)attribute
(argument_list
(tuple
(call
(identifier_len) identifier_len
(argument_list
(identifier_spike_times) identifier_spike_times
)argument_list
)call
)tuple
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_int) identifier_int
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_stime) identifier_stime
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_spike_times) identifier_spike_times
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_bins) identifier_bins
(identifier_i) identifier_i
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_floor) identifier_floor
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_around) identifier_around
)attribute
(argument_list
(binary_operator
(identifier_stime) identifier_stime
(identifier_binsz) identifier_binsz
)binary_operator
(integer_5) integer_5
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_bins) identifier_bins
)return_statement
)block
)function_definition
)module | Sort spike times into bins
:param spike_times: times of spike instances
:type spike_times: list
:param binsz: length of time bin to use
:type binsz: float
:returns: list of bin indicies, one for each element in spike_times |
(module
(function_definition
(function_name_eager_load_relations) function_name_eager_load_relations
(parameters
(identifier_self) identifier_self
(identifier_models) identifier_models
)parameters
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_constraints) identifier_constraints
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__eager_load) identifier__eager_load
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_name) identifier_name
(identifier_find) identifier_find
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_models) identifier_models
(call
(attribute
(identifier_self) identifier_self
(identifier__load_relation) identifier__load_relation
)attribute
(argument_list
(identifier_models) identifier_models
(identifier_name) identifier_name
(identifier_constraints) identifier_constraints
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_models) identifier_models
)return_statement
)block
)function_definition
)module | Eager load the relationship of the models.
:param models:
:type models: list
:return: The models
:rtype: list |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.